/* =============================================================
   MacType Official Site  ·  www.mactype.cn
   Flat · Modern · Professional
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand scale (OKLCH-derived, hue 175) */
  --teal-900:#003B2C;
  --teal-800:#00543F;
  --teal-700:#006E54;
  --teal-600:#008B6D;
  --teal-500:#1BC6A7;
  --mint:#64DABE;
  --mint-300:#6DDCC1;
  --mint-200:#A9EFDB;
  --mint-100:#D0F9ED;
  --mint-50:#E6FDF6;

  --ink:#0E241E;
  --ink-soft:#3D4B47;
  --muted:#5C6B66;
  --faint:#82908B;

  --bg:#FFFFFF;
  --bg-soft:#F5FAF8;
  --bg-tint:#EFF8F5;
  --line:#E1EEEA;
  --line-strong:#CFE2DC;

  --white:#FFFFFF;
  --danger:#B4443A;

  /* Typography */
  --font-display:"Sora","Noto Sans SC",-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  --font-body:"Noto Sans SC","Sora",-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  --font-serif:"Noto Serif SC","Songti SC",Georgia,serif;
  --font-mono:"SFMono-Regular",ui-monospace,Consolas,"Liberation Mono",Menlo,monospace;

  /* Sizing */
  --container:1180px;
  --radius:14px;
  --radius-sm:10px;
  --radius-lg:22px;
  --radius-pill:999px;

  --shadow-xs:0 1px 2px rgba(11,46,39,.05);
  --shadow-sm:0 4px 14px rgba(11,46,39,.06);
  --shadow-md:0 14px 34px rgba(11,46,39,.10);
  --shadow-lg:0 28px 70px rgba(11,46,39,.16);
  --shadow-brand:0 14px 30px rgba(0,139,109,.22);

  --ease:cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body {
  margin:0;
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.75;
  color:var(--ink-soft);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,svg,canvas { max-width:100%; display:block; }
button,input,select,textarea { font:inherit; color:inherit; }
button { cursor:pointer; background:none; border:0; padding:0; }
a { color:var(--teal-600); text-decoration:none; transition:color .2s var(--ease); }
a:hover { color:var(--teal-700); }
h1,h2,h3,h4,h5,h6 { margin:0; font-family:var(--font-display); color:var(--ink); line-height:1.25; font-weight:700; }
p { margin:0; }
ul,ol { margin:0; padding:0; list-style:none; }
figure { margin:0; }
code { font-family:var(--font-mono); font-size:.9em; }
::selection { background:var(--mint); color:var(--teal-900); }

:focus-visible { outline:3px solid var(--teal-500); outline-offset:2px; border-radius:6px; }

/* ---------- Layout ---------- */
.container { width:100%; max-width:var(--container); margin-inline:auto; padding-inline:24px; }
.section { padding:92px 0; }
.section.tight { padding:68px 0; }
.section.soft { background:var(--bg-soft); }
.section.tint { background:linear-gradient(180deg,var(--mint-50),#fff); }

.section-head { max-width:720px; margin:0 auto 56px; text-align:center; }
.section-head.left { margin-inline:0; text-align:left; }
.eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-display); font-size:13px; font-weight:600;
  letter-spacing:.08em; color:var(--teal-700);
  background:var(--mint-100); border:1px solid var(--mint-200);
  padding:6px 14px; border-radius:var(--radius-pill); margin-bottom:18px;
}
.eyebrow .dot { width:7px; height:7px; border-radius:50%; background:var(--teal-500); }
.section-title { font-size:clamp(27px,3.4vw,38px); font-weight:700; letter-spacing:-.01em; }
.section-sub { margin-top:16px; font-size:17px; color:var(--muted); line-height:1.8; }
.lead { font-size:18px; color:var(--muted); line-height:1.9; }

.grid { display:grid; gap:26px; }
.g-2 { grid-template-columns:repeat(2,1fr); }
.g-3 { grid-template-columns:repeat(3,1fr); }
.g-4 { grid-template-columns:repeat(4,1fr); }
.mt-40 { margin-top:40px; }
.center { text-align:center; }
.muted { color:var(--muted); }
.small { font-size:14px; }

/* ---------- Buttons ---------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--font-display); font-weight:600; font-size:16px;
  padding:14px 28px; border-radius:var(--radius-pill);
  border:1px solid transparent; white-space:nowrap;
  transition:transform .18s var(--ease),box-shadow .2s var(--ease),background .2s,color .2s,border-color .2s;
  line-height:1;
}
.btn:active { transform:translateY(1px); }
.btn-primary { background:var(--teal-600); color:#fff; box-shadow:var(--shadow-brand); }
.btn-primary:hover { background:var(--teal-700); color:#fff; transform:translateY(-2px); }
.btn-mint { background:var(--mint); color:var(--teal-900); }
.btn-mint:hover { background:var(--mint-300); color:var(--teal-900); transform:translateY(-2px); }
.btn-ghost { background:#fff; color:var(--teal-700); border-color:var(--line-strong); box-shadow:var(--shadow-xs); }
.btn-ghost:hover { background:var(--mint-50); border-color:var(--mint-200); color:var(--teal-700); transform:translateY(-2px); }
.btn-outline { background:transparent; color:var(--teal-700); border-color:var(--teal-500); }
.btn-outline:hover { background:var(--mint-50); color:var(--teal-700); }
.btn-lg { padding:17px 36px; font-size:17px; }
.btn-sm { padding:10px 18px; font-size:14px; }
.btn-block { width:100%; }
.btn .ico { width:18px; height:18px; flex:none; }
.btn .ico.arr { transition:transform .2s var(--ease); }
.btn:hover .ico.arr { transform:translateX(3px); }

/* ---------- Badges / chips ---------- */
.badge {
  display:inline-flex; align-items:center; gap:7px;
  font-family:var(--font-display); font-size:13px; font-weight:600;
  padding:5px 12px; border-radius:var(--radius-pill);
  background:var(--mint-100); color:var(--teal-700); border:1px solid var(--mint-200);
}
.badge .dot { width:6px; height:6px; border-radius:50%; background:var(--teal-500); }
.chips { display:flex; flex-wrap:wrap; gap:10px; }
.chip {
  font-size:13.5px; font-weight:500; color:var(--ink-soft);
  background:var(--bg-soft); border:1px solid var(--line);
  padding:6px 14px; border-radius:var(--radius-pill);
}

/* ---------- Header / navigation ---------- */
.site-header {
  position:sticky; top:0; z-index:80;
  background:rgba(255,255,255,.86);
  backdrop-filter:saturate(1.4) blur(12px);
  border-bottom:1px solid var(--line);
}
.nav { display:flex; align-items:center; gap:28px; height:70px; }
.brand { display:flex; align-items:center; gap:11px; font-family:var(--font-display); font-weight:700; font-size:20px; color:var(--ink); letter-spacing:-.01em; }
.brand:hover { color:var(--ink); }
.brand img { width:34px; height:27.2px; }
.brand .cn { font-size:12px; font-weight:500; color:var(--faint); letter-spacing:.02em; border-left:1px solid var(--line-strong); padding-left:11px; line-height:1.3; }
.nav-links { display:flex; align-items:center; gap:4px; margin-left:8px; }
.nav-links a {
  font-family:var(--font-display); font-size:15px; font-weight:500; color:var(--ink-soft);
  padding:9px 15px; border-radius:var(--radius-pill); position:relative;
}
.nav-links a:hover { color:var(--teal-700); background:var(--mint-50); }
.nav-links a.active { color:var(--teal-700); font-weight:600; }
.nav-links a.active::after {
  content:""; position:absolute; left:50%; bottom:2px; transform:translateX(-50%);
  width:18px; height:2.5px; border-radius:2px; background:var(--teal-500);
}
.nav-actions { margin-left:auto; display:flex; align-items:center; gap:14px; }
.nav-github { display:flex; align-items:center; gap:8px; font-family:var(--font-display); font-size:14px; font-weight:600; color:var(--ink-soft); }
.nav-github:hover { color:var(--teal-700); }
.nav-github svg { width:22px; height:22px; }
.nav-toggle { display:none; width:44px; height:44px; align-items:center; justify-content:center; border-radius:10px; }
.nav-toggle span,.nav-toggle span::before,.nav-toggle span::after {
  content:""; display:block; width:22px; height:2px; background:var(--ink); border-radius:2px; transition:.25s var(--ease); position:relative;
}
.nav-toggle span::before { position:absolute; top:-7px; }
.nav-toggle span::after { position:absolute; top:7px; }
.nav-toggle.open span { background:transparent; }
.nav-toggle.open span::before { top:0; transform:rotate(45deg); }
.nav-toggle.open span::after { top:0; transform:rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position:relative; overflow:hidden; background:linear-gradient(180deg,#F1FAF7 0%,#fff 78%); }
.hero::before {
  content:""; position:absolute; inset:0;
  background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);
  background-size:46px 46px; opacity:.45;
  mask-image:radial-gradient(ellipse 90% 70% at 50% 0%,#000 30%,transparent 75%);
}
.hero::after {
  content:""; position:absolute; width:680px; height:680px; border-radius:50%;
  background:radial-gradient(circle,rgba(100,218,190,.32),transparent 65%);
  top:-300px; right:-160px; pointer-events:none;
}
.hero-inner { position:relative; display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center; padding:84px 0 92px; }
.hero-badge { margin-bottom:22px; }
.hero h1 { font-size:clamp(34px,5vw,56px); font-weight:800; letter-spacing:-.02em; line-height:1.12; }
.hero h1 .accent { color:var(--teal-600); }
.hero p.hero-sub { margin-top:22px; font-size:18.5px; color:var(--muted); line-height:1.85; max-width:540px; }
.hero-actions { margin-top:34px; display:flex; flex-wrap:wrap; gap:14px; align-items:center; }
.hero-meta { margin-top:26px; display:flex; flex-wrap:wrap; gap:18px 26px; font-size:14px; color:var(--faint); }
.hero-meta span { display:inline-flex; align-items:center; gap:8px; }
.hero-meta svg { width:16px; height:16px; color:var(--teal-500); }

/* Hero visual: type specimen card */
.hero-visual { position:relative; }
.spec-card {
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg); padding:30px 30px 26px; position:relative; z-index:2;
}
.spec-card::before {
  content:""; position:absolute; inset:-14px 18px auto auto; width:120px; height:120px;
  background:var(--mint); opacity:.5; border-radius:24px; z-index:-1; filter:blur(2px);
}
.spec-bar { display:flex; gap:7px; margin-bottom:22px; }
.spec-bar i { width:11px; height:11px; border-radius:50%; background:var(--mint-200); }
.spec-bar i:first-child { background:#F2B4AD; }
.spec-bar i:nth-child(2){ background:#F5D99B; }
.spec-glyph { font-family:var(--font-serif); font-size:96px; font-weight:700; line-height:1; color:var(--teal-700); }
.spec-line { margin-top:18px; height:9px; border-radius:6px; background:linear-gradient(90deg,var(--teal-600),var(--mint)); }
.spec-line.short { width:68%; background:var(--mint-200); }
.spec-row { display:flex; align-items:baseline; gap:8px; margin-top:16px; }
.spec-row .big { font-family:var(--font-display); font-weight:700; font-size:26px; color:var(--ink); }
.spec-row .txt { font-size:14px; color:var(--faint); }
.spec-subpix { margin-top:20px; display:flex; gap:3px; }
.spec-subpix span { flex:1; height:14px; border-radius:3px; }
.spec-subpix span:nth-child(3n+1){ background:rgba(220,60,60,.55); }
.spec-subpix span:nth-child(3n+2){ background:rgba(60,170,80,.55); }
.spec-subpix span:nth-child(3n+3){ background:rgba(60,110,220,.55); }
.hero-float {
  position:absolute; z-index:3; background:#fff; border:1px solid var(--line);
  box-shadow:var(--shadow-md); border-radius:14px; padding:12px 16px;
  display:flex; align-items:center; gap:11px; font-size:13.5px; font-weight:600; color:var(--ink);
}
.hero-float .ic { width:34px; height:34px; border-radius:9px; background:var(--mint-100); display:flex; align-items:center; justify-content:center; color:var(--teal-600); }
.hero-float .ic svg { width:19px; height:19px; }
.hero-float.f1 { top:-22px; left:-26px; }
.hero-float.f2 { bottom:-24px; right:-14px; }

/* ---------- Stats ---------- */
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.stat { text-align:center; padding:30px 16px; border-radius:var(--radius); background:#fff; border:1px solid var(--line); box-shadow:var(--shadow-xs); }
.stat .num { font-family:var(--font-display); font-size:clamp(30px,3.4vw,42px); font-weight:800; color:var(--teal-600); letter-spacing:-.02em; line-height:1; }
.stat .lbl { margin-top:12px; font-size:14.5px; color:var(--muted); }

/* ---------- Feature cards ---------- */
.card {
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:30px 28px; box-shadow:var(--shadow-xs);
  transition:transform .25s var(--ease),box-shadow .25s var(--ease),border-color .25s;
  position:relative; overflow:hidden;
}
.card:hover { transform:translateY(-5px); box-shadow:var(--shadow-md); border-color:var(--mint-200); }
.card .ic {
  width:50px; height:50px; border-radius:13px; display:flex; align-items:center; justify-content:center;
  background:var(--mint-100); color:var(--teal-600); margin-bottom:20px;
}
.card .ic svg { width:25px; height:25px; }
.card h3 { font-size:19px; font-weight:700; margin-bottom:11px; }
.card p { font-size:15px; color:var(--muted); line-height:1.75; }
.card.alt { background:var(--bg-soft); }
.card .more { display:inline-flex; align-items:center; gap:6px; margin-top:16px; font-family:var(--font-display); font-size:14px; font-weight:600; color:var(--teal-600); }
.card .more svg { width:15px; height:15px; transition:transform .2s; }
.card:hover .more svg { transform:translateX(3px); }

/* feature row (large alternating) */
.feature-row { display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.feature-row + .feature-row { margin-top:84px; }
.feature-row.flip .fr-media { order:2; }
.fr-media {
  background:linear-gradient(150deg,var(--mint-50),#fff);
  border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:38px; min-height:300px; display:flex; flex-direction:column; justify-content:center; box-shadow:var(--shadow-sm);
}
.fr-media h4 { font-size:15px; font-weight:600; color:var(--faint); margin-bottom:14px; font-family:var(--font-body); }
.fr-body h2 { font-size:clamp(25px,2.8vw,33px); margin-bottom:18px; }
.fr-body p { color:var(--muted); font-size:16px; line-height:1.9; }
.fr-list { margin-top:22px; display:grid; gap:14px; }
.fr-list li { display:flex; gap:13px; font-size:15.5px; color:var(--ink-soft); }
.fr-list .tick { flex:none; width:23px; height:23px; border-radius:7px; background:var(--mint-100); color:var(--teal-600); display:flex; align-items:center; justify-content:center; margin-top:2px; }
.fr-list .tick svg { width:14px; height:14px; }

/* ---------- Scenarios ---------- */
.scenario {
  display:flex; gap:18px; align-items:flex-start; padding:26px 24px;
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  border-left:4px solid var(--mint); box-shadow:var(--shadow-xs);
  transition:transform .22s var(--ease),box-shadow .22s;
}
.scenario:hover { transform:translateY(-4px); box-shadow:var(--shadow-sm); }
.scenario .ic { flex:none; width:46px; height:46px; border-radius:12px; background:var(--mint-100); color:var(--teal-600); display:flex; align-items:center; justify-content:center; }
.scenario .ic svg { width:23px; height:23px; }
.scenario h3 { font-size:17px; margin-bottom:7px; }
.scenario p { font-size:14.5px; color:var(--muted); line-height:1.7; }

/* ---------- Pipeline ---------- */
.pipeline { display:grid; grid-template-columns:repeat(5,1fr); gap:0; align-items:stretch; }
.pipe-node {
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:26px 18px; text-align:center; position:relative; z-index:2; box-shadow:var(--shadow-xs);
}
.pipe-node .ic { width:48px; height:48px; margin:0 auto 14px; border-radius:12px; background:var(--mint-100); color:var(--teal-600); display:flex; align-items:center; justify-content:center; }
.pipe-node .ic svg { width:24px; height:24px; }
.pipe-node h4 { font-size:15.5px; margin-bottom:6px; }
.pipe-node p { font-size:13px; color:var(--faint); line-height:1.6; }
.pipe-node.hot { border-color:var(--teal-500); background:linear-gradient(180deg,#fff,var(--mint-50)); box-shadow:var(--shadow-brand); }
.pipe-arrow { display:flex; align-items:center; justify-content:center; color:var(--teal-500); }
.pipe-arrow svg { width:26px; height:26px; }

/* ---------- Compare slider ---------- */
.compare { position:relative; border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--line); box-shadow:var(--shadow-md); user-select:none; }
.compare .pane { padding:44px 42px; }
.compare .after { position:absolute; inset:0; overflow:hidden; }
.compare .before { background:#EEF2F1; }
.compare .after-inner,
.compare .before-inner { max-width:760px; }
.compare .tag {
  position:absolute; top:16px; z-index:4; font-family:var(--font-display); font-size:12.5px; font-weight:600;
  padding:5px 12px; border-radius:var(--radius-pill);
}
.compare .before .tag { left:16px; background:#DDE5E2; color:#54635E; }
.compare .after .tag { right:16px; background:var(--teal-600); color:#fff; }
.compare .sample-h { font-family:var(--font-display); font-weight:700; font-size:27px; margin-bottom:12px; }
.compare .sample-p { font-size:16.5px; line-height:1.85; }
.compare .before .sample-h,
.compare .before .sample-p { color:#6B7773; filter:blur(.55px) contrast(.92); }
.compare .after .sample-h { color:var(--teal-800); }
.compare .after .sample-p { color:var(--ink); }
.compare .handle {
  position:absolute; top:0; bottom:0; width:3px; background:var(--teal-500); z-index:5;
}
.compare .handle .grip {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:46px; height:46px; border-radius:50%; background:#fff; border:2px solid var(--teal-500);
  box-shadow:var(--shadow-md); display:flex; align-items:center; justify-content:center; color:var(--teal-600);
}
.compare .handle .grip svg { width:22px; height:22px; }
.compare-note { margin-top:14px; font-size:13px; color:var(--faint); text-align:center; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { display:grid; gap:12px; max-width:860px; margin-inline:auto; }
.acc-item { border:1px solid var(--line); border-radius:var(--radius-sm); background:#fff; overflow:hidden; transition:border-color .2s,box-shadow .2s; }
.acc-item.open { border-color:var(--mint-200); box-shadow:var(--shadow-sm); }
.acc-head { width:100%; display:flex; align-items:center; justify-content:space-between; gap:18px; text-align:left; padding:20px 24px; font-family:var(--font-display); font-weight:600; font-size:16.5px; color:var(--ink); }
.acc-head:hover { color:var(--teal-700); }
.acc-head .pm { flex:none; width:28px; height:28px; border-radius:8px; background:var(--mint-100); color:var(--teal-600); position:relative; transition:transform .25s var(--ease),background .2s; }
.acc-head .pm::before,.acc-head .pm::after { content:""; position:absolute; background:currentColor; border-radius:2px; }
.acc-head .pm::before { width:13px; height:2px; top:13px; left:7.5px; }
.acc-head .pm::after { width:2px; height:13px; top:7.5px; left:13px; transition:transform .25s var(--ease); }
.acc-item.open .pm::after { transform:scaleY(0); }
.acc-body { max-height:0; overflow:hidden; transition:max-height .35s var(--ease); }
.acc-body .inner { padding:0 24px 22px; color:var(--muted); font-size:15.5px; line-height:1.85; }
.acc-body .inner p + p { margin-top:10px; }
.acc-body code { background:var(--bg-soft); border:1px solid var(--line); border-radius:6px; padding:1px 7px; color:var(--teal-700); }

/* ---------- Timeline ---------- */
.timeline { display:grid; grid-template-columns:150px 40px 1fr; gap:0; row-gap:6px; max-width:920px; margin-inline:auto; }
.tl-time { text-align:right; padding:26px 20px 26px 0; }
.tl-time .yr { font-family:var(--font-display); font-weight:700; font-size:18px; color:var(--teal-700); }
.tl-time .dt { font-size:13px; color:var(--faint); margin-top:3px; }
.tl-axis { position:relative; }
.tl-axis::before { content:""; position:absolute; top:0; bottom:0; left:50%; transform:translateX(-50%); width:2px; background:var(--line-strong); }
.tl-dot { position:absolute; left:50%; top:34px; transform:translate(-50%,0); width:15px; height:15px; border-radius:50%; background:#fff; border:3px solid var(--teal-500); z-index:2; }
.tl-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:22px 26px; margin:18px 0 18px 8px; box-shadow:var(--shadow-xs); }
.tl-card h4 { font-size:17px; margin-bottom:8px; }
.tl-card p { font-size:14.5px; color:var(--muted); line-height:1.75; }
.tl-card .tags { margin-top:12px; }

/* ---------- Tables ---------- */
.table-wrap { border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-xs); background:#fff; }
table { width:100%; border-collapse:collapse; table-layout:fixed; }
th,td { padding:15px 20px; text-align:left; border-bottom:1px solid var(--line); font-size:15px; vertical-align:top; word-break:break-word; }
thead th { background:var(--bg-soft); font-family:var(--font-display); font-weight:600; color:var(--ink); font-size:14.5px; }
tbody tr:last-child td { border-bottom:0; }
tbody tr:hover { background:var(--mint-50); }
td code,.table-wrap code { background:var(--bg-soft); border:1px solid var(--line); border-radius:6px; padding:1px 7px; color:var(--teal-700); font-size:13.5px; }
.ver { font-family:var(--font-display); font-weight:600; color:var(--teal-700); }

/* ---------- Steps ---------- */
.steps { display:grid; gap:22px; counter-reset:step; }
.step { display:grid; grid-template-columns:52px 1fr; gap:20px; align-items:start; }
.step .n {
  counter-increment:step; width:52px; height:52px; border-radius:14px;
  background:var(--teal-600); color:#fff; font-family:var(--font-display); font-weight:700; font-size:20px;
  display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-brand);
}
.step .n::before { content:counter(step,decimal-leading-zero); }
.step h4 { font-size:17.5px; margin-bottom:7px; }
.step p { font-size:15px; color:var(--muted); line-height:1.8; }
.step p code { background:var(--bg-soft); border:1px solid var(--line); border-radius:6px; padding:1px 7px; color:var(--teal-700); }

/* ---------- Notice / callout ---------- */
.notice { display:flex; gap:14px; padding:18px 22px; border-radius:var(--radius-sm); border:1px solid; font-size:14.5px; line-height:1.75; }
.notice .ic { flex:none; margin-top:2px; }
.notice .ic svg { width:20px; height:20px; }
.notice.info { background:var(--mint-50); border-color:var(--mint-200); color:var(--teal-800); }
.notice.info .ic { color:var(--teal-600); }
.notice.warn { background:#FDF4EC; border-color:#F3D6BC; color:#8A4B1E; }
.notice.warn .ic { color:#C77A35; }
.notice + .notice { margin-top:14px; }

/* ---------- CTA band ---------- */
.cta-band { position:relative; overflow:hidden; border-radius:var(--radius-lg); background:linear-gradient(135deg,var(--teal-800),var(--teal-600) 60%,var(--teal-500)); color:#fff; padding:64px 6%; text-align:center; box-shadow:var(--shadow-lg); }
.cta-band::before { content:""; position:absolute; width:420px; height:420px; border-radius:50%; background:radial-gradient(circle,rgba(100,218,190,.4),transparent 65%); top:-220px; right:-100px; }
.cta-band h2 { color:#fff; font-size:clamp(26px,3.2vw,38px); position:relative; }
.cta-band p { margin:16px auto 30px; color:rgba(255,255,255,.86); font-size:17px; max-width:560px; position:relative; }
.cta-band .btn { position:relative; }
.cta-band .btn-mint { box-shadow:0 14px 30px rgba(0,0,0,.18); }

/* ---------- Inner page hero / breadcrumb ---------- */
.page-hero { background:linear-gradient(180deg,#F1FAF7,#fff); border-bottom:1px solid var(--line); padding:64px 0 56px; position:relative; overflow:hidden; }
.page-hero::after { content:""; position:absolute; width:480px; height:480px; border-radius:50%; background:radial-gradient(circle,rgba(100,218,190,.28),transparent 65%); top:-260px; right:-120px; }
.page-hero .inner { position:relative; max-width:780px; }
.breadcrumb { display:flex; flex-wrap:wrap; gap:8px; font-size:13.5px; color:var(--faint); margin-bottom:20px; }
.breadcrumb a { color:var(--muted); }
.breadcrumb a:hover { color:var(--teal-700); }
.breadcrumb .sep { color:var(--line-strong); }
.breadcrumb [aria-current="page"] { color:var(--teal-700); font-weight:600; }
.page-hero h1 { font-size:clamp(30px,4.2vw,46px); font-weight:800; letter-spacing:-.02em; }
.page-hero p { margin-top:16px; font-size:17.5px; color:var(--muted); line-height:1.8; max-width:680px; }
.page-hero .actions { margin-top:28px; display:flex; flex-wrap:wrap; gap:13px; }

/* ---------- Download modal ---------- */
.modal { position:fixed; inset:0; z-index:200; display:none; }
.modal.open { display:block; }
.modal-backdrop { position:absolute; inset:0; background:rgba(8,32,26,.55); backdrop-filter:blur(3px); opacity:0; transition:opacity .25s var(--ease); }
.modal.open .modal-backdrop { opacity:1; }
.modal-dialog {
  position:absolute; left:50%; top:50%; transform:translate(-50%,calc(-50% + 14px));
  width:min(720px,calc(100% - 32px)); max-height:calc(100vh - 48px); overflow:auto;
  background:#fff; border-radius:var(--radius-lg); box-shadow:var(--shadow-lg);
  border:1px solid var(--line); opacity:0; transition:opacity .25s var(--ease),transform .25s var(--ease);
}
.modal.open .modal-dialog { opacity:1; transform:translate(-50%,-50%); }
.modal-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:28px 32px 0; }
.modal-head h3 { font-size:23px; }
.modal-head .meta { margin-top:8px; font-size:14px; color:var(--faint); display:flex; flex-wrap:wrap; gap:8px 18px; }
.modal-close { width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; color:var(--muted); flex:none; }
.modal-close:hover { background:var(--bg-soft); color:var(--ink); }
.modal-close svg { width:20px; height:20px; }
.modal-body { padding:24px 32px 30px; }
.qr-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.qr-card { border:1px solid var(--line); border-radius:var(--radius); padding:22px 18px; text-align:center; background:var(--bg-soft); }
.qr-card .brand-name { display:flex; align-items:center; justify-content:center; gap:9px; font-family:var(--font-display); font-weight:600; font-size:15.5px; color:var(--ink); margin-bottom:16px; }
.qr-card .brand-name .b-ic { width:26px; height:26px; border-radius:7px; display:flex; align-items:center; justify-content:center; color:#fff; }
.qr-card.quark .b-ic { background:#2B5BEC; }
.qr-card.baidu .b-ic { background:#2B7CE0; }
.qr-card .b-ic svg { width:16px; height:16px; }
.qr-box { width:168px; height:168px; margin:0 auto; border:2px dashed var(--line-strong); border-radius:12px; background:#fff; }
.qr-cap { margin-top:14px; font-size:13.5px; color:var(--muted); }
.modal-divider { display:flex; align-items:center; gap:14px; margin:24px 0 18px; color:var(--faint); font-size:13px; }
.modal-divider::before,.modal-divider::after { content:""; height:1px; flex:1; background:var(--line); }
.modal .btn svg { width:18px; height:18px; }
.modal-foot { margin-top:18px; font-size:12.5px; color:var(--faint); line-height:1.7; text-align:center; }

/* ---------- Footer ---------- */
.site-footer { background:var(--teal-900); color:rgba(255,255,255,.72); padding:64px 0 30px; margin-top:0; }
.footer-grid { display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:40px; }
.footer-brand .brand { color:#fff; }
.footer-brand .brand:hover { color:#fff; }
.footer-brand p { margin-top:18px; font-size:14px; line-height:1.85; color:rgba(255,255,255,.6); max-width:320px; }
.footer-col h4 { color:#fff; font-size:15px; margin-bottom:18px; font-weight:600; }
.footer-col li { margin-bottom:11px; }
.footer-col a { color:rgba(255,255,255,.68); font-size:14.5px; }
.footer-col a:hover { color:var(--mint); }
.footer-social { display:flex; gap:12px; margin-top:20px; }
.footer-social a { width:38px; height:38px; border-radius:10px; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.8); }
.footer-social a:hover { background:var(--teal-600); color:#fff; }
.footer-social svg { width:19px; height:19px; }
.footer-bottom { margin-top:48px; padding-top:24px; border-top:1px solid rgba(255,255,255,.1); display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; font-size:13px; color:rgba(255,255,255,.5); }
.footer-bottom a { color:rgba(255,255,255,.55); }
.footer-bottom a:hover { color:var(--mint); }

/* ---------- Reveal animations ---------- */
.reveal { opacity:0; transform:translateY(26px); transition:opacity .7s var(--ease),transform .7s var(--ease); }
.reveal.in { opacity:1; transform:none; }
.reveal.d1 { transition-delay:.08s; }
.reveal.d2 { transition-delay:.16s; }
.reveal.d3 { transition-delay:.24s; }

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  .hero-inner { grid-template-columns:1fr; gap:60px; }
  .hero-visual { max-width:520px; margin-inline:auto; width:100%; }
  .g-4 { grid-template-columns:repeat(2,1fr); }
  .stats { grid-template-columns:repeat(2,1fr); }
  .pipeline { grid-template-columns:1fr; gap:14px; }
  .pipe-arrow { transform:rotate(90deg); height:22px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .feature-row { grid-template-columns:1fr; gap:32px; }
  .feature-row.flip .fr-media { order:0; }
}
@media (max-width:820px){
  .section { padding:64px 0; }
  .nav-links {
    position:fixed; inset:70px 0 auto 0; flex-direction:column; align-items:stretch; gap:2px;
    background:#fff; border-bottom:1px solid var(--line); padding:14px 24px 22px;
    box-shadow:var(--shadow-md); display:none; margin:0;
  }
  .nav-links.open { display:flex; }
  .nav-links a { padding:13px 16px; border-radius:10px; font-size:16px; }
  .nav-links a.active::after { display:none; }
  .nav-toggle { display:flex; }
  .nav-actions .nav-github span { display:none; }
  .g-3,.g-2 { grid-template-columns:1fr; }
  .qr-grid { grid-template-columns:1fr; }
  .timeline { grid-template-columns:24px 1fr; }
  .tl-time { grid-column:1/3; text-align:left; padding:0 0 4px 40px; }
  .tl-axis { grid-column:1; grid-row:span 1; }
  .tl-card { grid-column:2; margin:0 0 22px 14px; }
  .tl-dot { top:2px; }
  .compare .pane { padding:52px 24px 34px; }
}
@media (max-width:560px){
  .container { padding-inline:18px; }
  .g-4,.stats { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; gap:32px; }
  .hero-inner { padding:56px 0 70px; }
  .hero-float.f1 { left:0; } .hero-float.f2 { right:0; }
  .modal-body,.modal-head { padding-inline:22px; }
  .brand .cn { display:none; }
  .btn-lg { width:100%; }
  .hero-actions .btn { width:100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.001ms !important; transition-duration:.001ms !important; }
  .reveal { opacity:1; transform:none; }
}

