/* ===== 智慧测序 官网样式 ===== */
/* 占位主题色，可在 :root 中统一修改 */
:root {
  --brand: #ff2d72;          /* 抖音粉主色 */
  --brand-2: #00d2ff;        /* 渐变辅色 */
  --ink: #1a1a24;
  --ink-soft: #4a4a58;
  --muted: #8a8a99;
  --line: #ececf1;
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(20, 20, 40, .08);
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== 导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff; font-size: 18px;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px; color: var(--ink-soft);
  font-size: 15px; font-weight: 500; transition: .2s;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links a.active { color: var(--brand); }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: 9px 18px !important;
  border-radius: 10px; font-weight: 600;
}
.nav-cta:hover { background: var(--brand) !important; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-weight: 600; font-size: 16px;
  cursor: pointer; border: 0; transition: .2s; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), #ff5e8c); color: #fff; box-shadow: 0 8px 24px rgba(255, 45, 114, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 45, 114, .4); }
.btn-ghost { background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #eef0f5; }

/* ===== 通用区块 ===== */
section { padding: 92px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.section-head h2 { font-size: 40px; line-height: 1.2; letter-spacing: -.5px; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 16px; }
.bg-soft { background: var(--bg-soft); }

/* ===== Hero ===== */
.hero { padding: 96px 0 84px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(255, 45, 114, .10), transparent 70%),
    radial-gradient(50% 50% at 10% 20%, rgba(0, 210, 255, .10), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 56px; line-height: 1.1; letter-spacing: -1.5px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 20px; color: var(--ink-soft); margin: 24px 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 46px; }
.hero-stats .num { font-size: 30px; font-weight: 800; }
.hero-stats .lbl { font-size: 14px; color: var(--muted); }

/* hero 模拟界面 */
.mockup {
  background: linear-gradient(135deg, #20202c, #2c2c3c);
  border-radius: 22px; padding: 18px; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; display: flex; flex-direction: column; gap: 12px;
}
.mockup-bar { display: flex; gap: 7px; }
.mockup-bar i { width: 12px; height: 12px; border-radius: 50%; background: #4a4a5a; }
.mockup-bar i:first-child { background: #ff5f57; }
.mockup-bar i:nth-child(2) { background: #febc2e; }
.mockup-bar i:nth-child(3) { background: #28c840; }
.mockup-body { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mockup-body span {
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 45, 114, .25), rgba(0, 210, 255, .25));
  animation: pulse 2.4s ease-in-out infinite;
}
.mockup-body span:nth-child(odd) { animation-delay: .4s; }
.mockup-body span:nth-child(3n) { animation-delay: .8s; }
@keyframes pulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

/* ===== 特性卡片 ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(255, 45, 114, .12), rgba(0, 210, 255, .12));
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ===== 公司介绍 ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split h2 { font-size: 36px; line-height: 1.25; margin-bottom: 20px; letter-spacing: -.5px; }
.split p { color: var(--ink-soft); font-size: 17px; margin-bottom: 16px; }
.value-list { list-style: none; margin-top: 24px; }
.value-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 16px; }
.value-list .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 14px; margin-top: 2px;
}
.media-box {
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); aspect-ratio: 4/3;
  display: grid; place-items: center; color: #fff; text-align: center; padding: 30px;
}
.media-box .big { font-size: 64px; }

/* ===== 视频教程 ===== */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.video-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .25s;
}
.video-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.video-card video,
.video-card .thumb {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #14141c; display: block;
}
.video-card .thumb {
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #20202c, #34344a); position: relative;
}
.video-card .thumb .play {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255, 255, 255, .15); border: 2px solid rgba(255,255,255,.6);
  display: grid; place-items: center; font-size: 24px;
}
.video-card .meta { padding: 18px 20px; }
.video-card .meta .tag {
  font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: 1px;
}
.video-card .meta h3 { font-size: 18px; margin: 6px 0; }
.video-card .meta p { color: var(--muted); font-size: 14px; }

/* ===== 步骤 ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ===== CTA 区 ===== */
.cta-band {
  background: linear-gradient(120deg, var(--ink), #2a2a3c);
  border-radius: 24px; padding: 60px; text-align: center; color: #fff;
}
.cta-band h2 { font-size: 36px; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, .7); font-size: 18px; margin-bottom: 30px; }
.wechat-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
  background: rgba(255, 255, 255, .12); padding: 10px 20px; border-radius: 50px; font-weight: 600;
}

/* ===== 页脚 ===== */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { font-size: 15px; margin-bottom: 16px; }
.footer a, .footer p { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.footer a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; text-align: center; color: var(--muted); font-size: 13px; }
.footer-bottom a { color: var(--muted); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px;
    display: none; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .nav-toggle { display: block; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 40px; }
  .grid-3, .video-grid, .steps { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 30px; }
  section { padding: 64px 0; }
  .cta-band { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { gap: 24px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .grid-3, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
