/* ========================================
   知微咨询 ZHIWEI CONSULTING - Main Stylesheet
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #008080;
  --primary-dark: #006666;
  --primary-light: #009999;
  --primary-bg: #e6f2f2;
  --primary-bg-light: #f2f8f8;
  --text: #1a1a2e;
  --text-secondary: #555;
  --text-muted: #888;
  --white: #fff;
  --bg: #fafafa;
  --bg-dark: #f0f0f0;
  --border: #e8e8e8;
  --shadow: 0 2px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.10);
  --radius: 4px;
  --radius-lg: 8px;
  --max-width: 1200px;
  --nav-height: 72px;
  --font-cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;
}


html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-cn);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.3;
}

h1 { font-size: 3rem; letter-spacing: 0.02em; }
h2 { font-size: 2.25rem; letter-spacing: 0.01em; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

.section-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* --- Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  height: 36px;
  width: auto;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-bg-light);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --- Hero (Home) --- */
.hero {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #f8fafa 0%, #eef6f6 40%, #e8f2f2 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -180px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,128,128,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,128,128,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 40px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.hero-title em {
  font-style: normal;
  color: var(--primary);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-cn);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,128,128,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Page Hero (Sub-pages) --- */
.page-hero {
  margin-top: var(--nav-height);
  padding: 80px 40px 64px;
  background: linear-gradient(160deg, #f8fafa 0%, #eef6f6 100%);
  text-align: center;
}

.page-hero .section-label {
  margin-bottom: 0.75rem;
}

.page-hero .section-title {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.page-hero .section-desc {
  margin: 0 auto;
}

/* --- Sections --- */
.section {
  padding: 100px 40px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-desc {
  margin: 0 auto;
}

.section-light {
  background: var(--bg);
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary-bg) 0%, #dceeee 50%, var(--primary-bg-light) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 40%, rgba(0,128,128,0.04) 40%, rgba(0,128,128,0.04) 60%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, rgba(0,128,128,0.03) 40%, rgba(0,128,128,0.03) 60%, transparent 60%);
}

.about-image-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.about-image-inner .logo-placeholder {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  background: var(--white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.about-image-inner .logo-placeholder img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.about-image-inner .company-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.06em;
}

.about-text .section-title {
  margin-bottom: 0.5rem;
}

.about-text .section-label {
  margin-bottom: 0.75rem;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 2rem;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.value-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 8px;
  flex-shrink: 0;
}

.value-content h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.value-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- Stats --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  padding: 48px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-en);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Services Detail --- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:first-child {
  padding-top: 0;
}

.service-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-block:nth-child(even) {
  direction: rtl;
}

.service-block:nth-child(even) .service-block-content {
  direction: ltr;
}

.service-block-visual {
  aspect-ratio: 5/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-bg-light) 0%, var(--primary-bg) 100%);
  position: relative;
  overflow: hidden;
}

.service-block-visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 60%;
  background: linear-gradient(225deg, transparent 50%, rgba(0,128,128,0.06) 50%);
}

.service-block-content .section-label {
  margin-bottom: 0.75rem;
}

.service-block-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.service-block-content p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.service-feature::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* --- Insights --- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.insight-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.insight-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.insight-card-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--primary-bg-light) 0%, var(--primary-bg) 100%);
  position: relative;
  overflow: hidden;
}

.insight-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(0,128,128,0.08) 0%, transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(0,128,128,0.05) 0%, transparent 50%);
}

.insight-card-body {
  padding: 24px;
}

.insight-card-tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.insight-card-title {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-card-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-en);
}

/* --- Contact --- */
.contact-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.contact-card-icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.contact-card-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.contact-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.contact-card-email {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary);
  font-family: var(--font-en);
  transition: color 0.2s;
}

.contact-card-email:hover {
  color: var(--primary-dark);
}

.contact-info h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.contact-item-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item-value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: var(--font-cn);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,128,128,0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #bbb;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  justify-content: center;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--primary);
  color: var(--white);
  padding: 80px 40px;
  text-align: center;
}

.cta-banner .section-label {
  color: rgba(255,255,255,0.75);
}

.cta-banner .section-title {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-banner .section-desc {
  color: rgba(255,255,255,0.85);
  margin: 0 auto 2rem;
}

.cta-banner .btn {
  background: var(--white);
  color: var(--primary);
}

.cta-banner .btn:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* --- Footer --- */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.7);
  padding: 64px 40px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: rgba(255,255,255,0.85);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  margin-left: 24px;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.7);
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .card-grid,
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .service-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-block:nth-child(even) {
    direction: ltr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  h1, .hero-title { font-size: 2.5rem; }
  h2, .section-title { font-size: 1.75rem; }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .header-inner {
    padding: 0 24px;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 96px 32px 32px;
    gap: 4px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
    transition: right 0.35s ease;
  }

  .nav-list.open {
    right: 0;
  }

  .nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-content {
    padding: 60px 24px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .section {
    padding: 64px 24px;
  }

  .page-hero {
    padding: 60px 24px 48px;
  }

  .page-hero .section-title {
    font-size: 1.75rem;
  }

  .card-grid,
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-dual {
    grid-template-columns: 1fr;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-number {
    font-size: 2rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-bottom a {
    margin-left: 16px;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
