/* ============================================================
   官网样式 - Tech Consulting Official Website
   设计：深蓝主色 + 金色点缀，专业高端感
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-bg:        #0a1628;
  --color-bg-alt:    #0d1c33;
  --color-surface:   #111f3a;
  --color-surface-hover: #162746;
  --color-border:    rgba(255, 255, 255, 0.07);
  --color-gold:      #c9a96e;
  --color-gold-light:#d4bc8a;
  --color-gold-dim:  rgba(201, 169, 110, 0.15);
  --color-text:      #e8e6e3;
  --color-text-muted:#8b95a8;
  --color-text-dim:  rgba(232, 230, 227, 0.55);
  --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-en: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  font-family: var(--font-cn);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
  font-family: var(--font-en);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 680px;
  line-height: 1.9;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-cn);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-gold);
  color: #0a1628;
}
.btn-primary:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: var(--color-gold-dim);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all var(--transition);
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text);
  font-family: var(--font-en);
}

.nav-logo .accent {
  color: var(--color-gold);
  margin-right: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--color-text-dim);
  transition: color var(--transition);
  position: relative;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text-dim);
  transition: color var(--transition);
}

.nav-mobile a:hover { color: var(--color-gold); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--color-gold);
  border: 1px solid var(--color-gold-dim);
  background: var(--color-gold-dim);
  margin-bottom: 32px;
  font-weight: 500;
}

.hero-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 50%, #e8d5a3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.9;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-reassure {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--color-text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-reassure::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: rgba(201, 169, 110, 0.2);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9a96e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* ---------- Section Spacing ---------- */
.section {
  padding: 120px 0;
  position: relative;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  background: var(--color-surface-hover);
  border-color: rgba(201, 169, 110, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.6rem;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.service-card .subtitle {
  display: block;
  font-size: 0.85rem;
  color: var(--color-gold);
  font-weight: 500;
  margin-bottom: 16px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ---------- Value / Results ---------- */
#value {
  background: var(--color-bg-alt);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.value-card {
  text-align: center;
  padding: 48px 28px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.value-card:hover {
  border-color: rgba(201, 169, 110, 0.2);
  background: var(--color-surface-hover);
}

.value-number {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-en);
  background: linear-gradient(180deg, var(--color-gold) 0%, rgba(201, 169, 110, 0.4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

.value-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-card:hover {
  border-color: rgba(201, 169, 110, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold-dim), rgba(201, 169, 110, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 2.5rem;
  border: 3px solid rgba(201, 169, 110, 0.2);
}

.team-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.85rem;
  color: var(--color-gold);
  font-weight: 500;
  margin-bottom: 20px;
}

.team-details {
  text-align: left;
  width: 100%;
}

.team-details .item {
  margin-bottom: 16px;
}

.team-details .item-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  font-family: var(--font-en);
}

.team-details .item-text {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.team-highlight {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--color-gold-dim);
  border-left: 3px solid var(--color-gold);
  text-align: left;
  width: 100%;
}

.team-highlight .hl-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.team-highlight .hl-text {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.7;
}

/* ---------- CTA ---------- */
.cta {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.05) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.cta .container { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-desc {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-or {
  color: var(--color-text-dim);
  font-size: 0.9rem;
}

/* ---------- QR Code Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px 36px;
  text-align: center;
  max-width: 380px;
  width: 90%;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-text-dim);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
  padding: 4px 8px;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.qr-placeholder {
  width: 180px;
  height: 246px;
  margin: 0 auto 20px;
  border-radius: var(--radius);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qr-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-fallback {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #0a1628;
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.6;
  padding: 16px;
}

.qr-fallback code {
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.modal-wechatid {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.modal-wechatid strong {
  color: var(--color-gold);
  font-weight: 700;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid .service-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    justify-self: center;
  }
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .value-grid .value-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    justify-self: center;
  }

  .section { padding: 100px 0; }
  .hero { padding: 100px 0 60px; }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-cta { display: none; }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }
  .hero-desc {
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-actions .btn {
    width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  .services-grid .service-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }
  .value-grid .value-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 80px 0;
  }

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

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .container {
    padding: 0 20px;
  }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-tag { font-size: 0.78rem; padding: 6px 16px; }
  .service-card { padding: 28px 22px; }
  .value-card { padding: 32px 20px; }
  .team-card { padding: 32px 22px; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .modal-card { padding: 36px 24px 28px; }
  .qr-placeholder { width: 140px; height: 191px; }
  .cta-actions { flex-direction: column; }
  .cta-or { display: none; }
}

/* Large Desktop (≥1400px) */
@media (min-width: 1400px) {
  :root { --max-width: 1280px; }
  .hero-title { font-size: 4rem; }
}
