/* ============================================================
   微澜智灵官网样式
   深海蓝 × 青色 · 现代科技风
   ============================================================ */

:root {
  --navy-950: #04101f;
  --navy-900: #06182e;
  --navy-800: #0a2540;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --blue-500: #3b82f6;
  --violet-500: #8b5cf6;
  --ink: #0f172a;
  --muted: #5b6b7c;
  --line: #e4ebf1;
  --bg: #f6f9fb;
  --card: #ffffff;
  --grad-brand: linear-gradient(135deg, var(--teal-400), var(--blue-500));
  --shadow-sm: 0 1px 2px rgb(6 24 46 / 0.06), 0 4px 12px rgb(6 24 46 / 0.05);
  --shadow-md: 0 4px 16px rgb(6 24 46 / 0.08), 0 12px 32px rgb(6 24 46 / 0.08);
  --shadow-lg: 0 8px 24px rgb(6 24 46 / 0.1), 0 24px 56px rgb(6 24 46 / 0.12);
  --radius: 16px;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
section { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 16px rgb(20 184 166 / 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgb(20 184 166 / 0.45); }
.btn-ghost {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.35);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgb(255 255 255 / 0.16); border-color: rgb(255 255 255 / 0.6); transform: translateY(-2px); }
.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgb(246 249 251 / 0.85);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: 0.06em; }
.brand-sub { font-size: 10px; font-weight: 600; letter-spacing: 0.22em; color: var(--muted); }

/* 导航在 hero 深色区上时为浅色文字 */
.nav:not(.scrolled) .brand-name { color: #fff; }
.nav:not(.scrolled) .brand-sub { color: rgb(255 255 255 / 0.6); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  color: var(--ink);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--teal-500); background: rgb(20 184 166 / 0.08); }
.nav:not(.scrolled) .nav-links a { color: rgb(255 255 255 / 0.85); }
.nav:not(.scrolled) .nav-links a:hover { color: #fff; background: rgb(255 255 255 / 0.12); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px 9px;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav.scrolled .nav-toggle { background: rgb(6 24 46 / 0.05); border-color: var(--line); }
.nav.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 48px) 0 96px;
  background: var(--navy-950);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/hero-bg.png") center 30% / cover no-repeat;
  transform: scale(1.06);
  animation: heroDrift 24s ease-in-out infinite alternate;
  z-index: -2;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translateY(0); }
  to   { transform: scale(1.12) translateY(-12px); }
}
.hero-mask {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(4 16 31 / 0.72) 0%, rgb(4 16 31 / 0.5) 40%, rgb(4 16 31 / 0.88) 100%),
    radial-gradient(ellipse 80% 60% at 20% 30%, rgb(20 184 166 / 0.14), transparent 60%);
}
.hero-inner { max-width: 860px; }
.hero-eyebrow {
  display: inline-block;
  padding: 7px 18px;
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--teal-400);
  border: 1px solid rgb(45 212 191 / 0.35);
  border-radius: 999px;
  background: rgb(45 212 191 / 0.08);
  backdrop-filter: blur(6px);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 7.5vw, 84px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, #ffffff 20%, var(--teal-400) 60%, var(--blue-500) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 28px;
}
.hero-title-dot { -webkit-text-fill-color: rgb(255 255 255 / 0.5); }
.hero-sub {
  max-width: 680px;
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgb(255 255 255 / 0.78);
  margin-bottom: 40px;
}
.hero-sub strong { color: #fff; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 64px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px 32px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius);
  background: rgb(6 24 46 / 0.45);
  backdrop-filter: blur(12px);
}
.stat dt { font-size: 13px; letter-spacing: 0.12em; color: rgb(255 255 255 / 0.6); margin-bottom: 6px; }
.stat dd { font-size: clamp(18px, 2.4vw, 26px); font-weight: 700; color: var(--teal-400); font-variant-numeric: tabular-nums; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgb(255 255 255 / 0.55);
  font-size: 12px;
  letter-spacing: 0.2em;
  transition: color 0.2s ease;
}
.hero-scroll:hover { color: #fff; }
.hero-scroll-line { width: 1px; height: 40px; background: linear-gradient(180deg, transparent, var(--teal-400)); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.4; transform: scaleY(0.7); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); transform-origin: top; } }

/* ---------- 区块通用 ---------- */
.section { padding: 104px 0; }
.section-alt { background: linear-gradient(180deg, #eef4f7 0%, var(--bg) 100%); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--teal-500);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.section-desc { font-size: 16px; color: var(--muted); }

/* 深色区（核心优势） */
.section-dark {
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgb(59 130 246 / 0.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgb(20 184 166 / 0.14), transparent 60%),
    var(--navy-900);
  color: #fff;
}
.section-head-dark .section-title { color: #fff; }
.section-head-dark .section-desc { color: rgb(255 255 255 / 0.65); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgb(20 184 166 / 0.35); }

.icon-box {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 20px;
}
.icon-box svg { width: 26px; height: 26px; }
.icon-teal { background: rgb(20 184 166 / 0.1); color: var(--teal-500); }
.icon-blue { background: rgb(59 130 246 / 0.1); color: var(--blue-500); }
.icon-violet { background: rgb(139 92 246 / 0.1); color: var(--violet-500); }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about-card { padding: 32px 28px; }
.about-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.about-card p { font-size: 15px; color: var(--muted); }

/* ---------- 服务 ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { padding: 32px 28px; display: flex; flex-direction: column; }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; }
.service-index {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(20 184 166 / 0.4);
}
.service-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.service-card > p { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.feature-list { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--ink);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgb(20 184 166 / 0.12);
  border: 1.5px solid var(--teal-500);
}
.feature-list li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 10.5px;
  width: 5px;
  height: 3px;
  border-left: 1.8px solid var(--teal-500);
  border-bottom: 1.8px solid var(--teal-500);
  transform: rotate(-45deg);
}

/* ---------- 产品 ---------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-900); }
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-media img { transform: scale(1.06); }
.product-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 999px;
  background: rgb(6 24 46 / 0.06);
  color: var(--muted);
}
.tag-teal { background: rgb(20 184 166 / 0.12); color: var(--teal-500); }
.product-body h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.product-body > p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.chips li {
  padding: 5px 12px;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.product-card:hover .chips li { border-color: rgb(20 184 166 / 0.4); color: var(--teal-500); }

/* 旗舰产品横排 */
.product-featured { grid-column: span 3; flex-direction: row; }
.product-featured .product-media { width: 46%; aspect-ratio: auto; min-height: 320px; flex: none; }
.product-featured .product-body { padding: 40px; justify-content: center; }
.product-featured .product-body h3 { font-size: 28px; }
.product-featured .product-body > p { font-size: 16px; }

/* 更多产品 CTA 卡 */
.product-more {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-style: dashed;
  border-color: rgb(20 184 166 / 0.45);
  background: linear-gradient(160deg, rgb(20 184 166 / 0.06), rgb(59 130 246 / 0.05));
}
.product-more:hover { border-color: var(--teal-500); border-style: solid; }
.product-more .icon-box { margin-inline: auto; }
.product-more-inner { padding: 36px 28px; }
.product-more h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.product-more p { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.product-more-link { font-size: 14px; font-weight: 700; color: var(--teal-500); }

/* ---------- 核心优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.adv-card {
  position: relative;
  padding: 36px 28px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.04);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.adv-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.adv-card:hover { transform: translateY(-6px); border-color: rgb(45 212 191 / 0.45); background: rgb(255 255 255 / 0.07); }
.adv-card:hover::after { transform: scaleX(1); }
.adv-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal-400);
  margin-bottom: 18px;
}
.adv-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; color: #fff; }
.adv-card p { font-size: 14.5px; color: rgb(255 255 255 / 0.62); }

/* ---------- 联系 ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info .section-eyebrow { margin-bottom: 14px; }
.contact-info .section-title { margin-bottom: 16px; }
.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgb(20 184 166 / 0.1);
  color: var(--teal-500);
}
.contact-icon svg { width: 21px; height: 21px; }
.contact-label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.contact-value { display: block; font-size: 15.5px; font-weight: 600; }

.contact-cta { padding: 36px 32px; }
.contact-cta h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.contact-cta > p { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; }
.contact-cta-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.contact-cta-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  font-weight: 500;
}
.contact-cta-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
}
.contact-cta-note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy-950); color: rgb(255 255 255 / 0.7); padding: 72px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}
.footer .brand-name { color: #fff; }
.footer .brand-sub { color: rgb(255 255 255 / 0.45); }
.footer-slogan { margin-top: 20px; font-size: 14px; line-height: 1.8; color: rgb(255 255 255 / 0.55); }
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 18px;
}
.footer-col a { display: block; font-size: 14px; padding: 5px 0; color: rgb(255 255 255 / 0.6); transition: color 0.2s ease, transform 0.2s ease; }
.footer-col a:hover { color: var(--teal-400); transform: translateX(4px); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 24px 0 28px;
  font-size: 12.5px;
  color: rgb(255 255 255 / 0.4);
}

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.hero .reveal { transition-delay: 0.1s; }
.hero .hero-sub.reveal { transition-delay: 0.2s; }
.hero .hero-cta.reveal { transition-delay: 0.3s; }
.hero .hero-stats.reveal { transition-delay: 0.42s; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .section { padding: 76px 0; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgb(246 249 251 / 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; font-size: 16px; color: var(--ink) !important; }
  .nav:not(.scrolled) .nav-links { background: rgb(4 16 31 / 0.96); }
  .nav:not(.scrolled) .nav-links a { color: rgb(255 255 255 / 0.85) !important; }
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }

  .about-grid, .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .product-featured { grid-column: span 1; flex-direction: column; }
  .product-featured .product-media { width: 100%; min-height: 0; aspect-ratio: 16 / 10; }
  .product-featured .product-body { padding: 26px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; padding: 24px; }
  .contact-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- 减少动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
