/* ==========================================================================
   星启科技 · 官网前台样式（浅色清爽版）
   ========================================================================== */

:root {
  --bg: #f6f7fb;
  --bg-2: #eef0f7;
  --panel: #ffffff;
  --panel-2: #f4f6fc;
  --border: rgba(19, 29, 58, .09);
  --border-2: rgba(19, 29, 58, .17);
  --text: #1c2337;
  --text-dim: #4d5670;
  --text-mute: #7c849c;
  --brand: #6366f1;
  --brand-2: #8b5cf6;
  --cyan: #06b6d4;
  --grad: linear-gradient(115deg, #6366f1 0%, #8b5cf6 45%, #0ea5e9 100%);
  --grad-soft: linear-gradient(115deg, rgba(99, 102, 241, .1), rgba(14, 165, 233, .08));
  --ok: #10b981;
  --warn: #f59e0b;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --nav-h: 68px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

::selection { background: rgba(99, 102, 241, .22); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eef0f7; }
::-webkit-scrollbar-thumb { background: #c9cfe0; border-radius: 8px; border: 2px solid #eef0f7; }
::-webkit-scrollbar-thumb:hover { background: #aab2c9; }

/* ---------- 背景氛围 ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-fx .grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(19, 29, 58, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 29, 58, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}
.bg-fx .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .55;
}
.bg-fx .glow.a { width: 620px; height: 620px; background: #dbe2ff; top: -260px; left: -120px; }
.bg-fx .glow.b { width: 540px; height: 540px; background: #ece4ff; top: -180px; right: -140px; opacity: .5; }
.bg-fx .glow.c { width: 520px; height: 520px; background: #d7f3fa; top: 900px; left: 40%; opacity: .4; }

/* ---------- 布局 ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; position: relative; z-index: 2; }
section { position: relative; z-index: 2; padding: 92px 0; }
section.tight { padding: 64px 0; }

.sec-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.sec-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: #4f46e5; background: rgba(99, 102, 241, .08);
  border: 1px solid rgba(99, 102, 241, .25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  font-weight: 600;
}
.sec-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px rgba(6, 182, 212, .6); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 16px; }
.sec-head p { color: var(--text-dim); margin: 0; font-size: 15.5px; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 60;
  display: flex; align-items: center;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom-color: var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; font-size: 16px; font-weight: 800; color: #fff;
  box-shadow: 0 6px 22px rgba(99, 102, 241, .35); flex: 0 0 auto;
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--text-dim); padding: 8px 14px; border-radius: 9px; font-size: 14.5px;
  transition: color .18s, background .18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(19, 29, 58, .06); }
.nav-cta { margin-left: 10px; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--border);
  color: var(--text); width: 40px; height: 38px; border-radius: 10px; cursor: pointer;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: 12px; font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s, box-shadow .25s, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 28px -8px rgba(99, 102, 241, .55);
}
.btn-primary:hover { box-shadow: 0 16px 36px -8px rgba(139, 92, 246, .6); transform: translateY(-2px); }
.btn-ghost { background: #fff; border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { background: var(--panel-2); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + 78px) 0 76px; position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.12; margin-bottom: 22px; letter-spacing: -.03em; }
.hero .lead { font-size: 17px; color: var(--text-dim); max-width: 540px; margin-bottom: 34px; }
.hero .lead b { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 22px; font-size: 13.5px; color: var(--text-mute); display: flex; align-items: center; gap: 8px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

.hero-stats { display: flex; gap: 40px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats .num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.hero-stats .lbl { font-size: 13px; color: var(--text-mute); margin-top: 2px; }

/* 代码卡片（保留深色作为视觉焦点） */
.code-card {
  border-radius: 20px; border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(160deg, #171b2e, #0b0e1a);
  box-shadow: 0 30px 70px -30px rgba(23, 32, 90, .45);
  overflow: hidden;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
.code-card .bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); }
.code-card .bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.code-card .bar i:nth-child(1) { background: #ff5f57; }
.code-card .bar i:nth-child(2) { background: #febc2e; }
.code-card .bar i:nth-child(3) { background: #28c840; }
.code-card .bar span { margin-left: 8px; font-size: 12px; color: #7c849c; font-family: var(--mono); }
.code-card pre {
  margin: 0; padding: 20px 22px; font-family: var(--mono); font-size: 12.8px; line-height: 1.95;
  color: #c8d0e6; overflow-x: auto;
}
.c-key { color: #c084fc; } .c-fn { color: #7dd3fc; } .c-str { color: #86efac; }
.c-com { color: #566072; } .c-num { color: #fbbf24; } .c-tag { color: #f472b6; }

.term { padding: 18px 22px; font-family: var(--mono); font-size: 12.6px; line-height: 2; }
.term .ok { color: #4ade80; } .term .dim { color: #566072; } .term .cy { color: #67e8f9; }

/* ---------- 卡片通用 ---------- */
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; position: relative; overflow: hidden;
  box-shadow: 0 2px 10px -4px rgba(23, 32, 90, .06);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s, background .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-2); background: var(--panel); box-shadow: 0 22px 44px -24px rgba(23, 32, 90, .25); }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(99, 102, 241, .09), transparent 70%);
  transition: opacity .3s; pointer-events: none;
}
.card:hover::after { opacity: 1; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- 服务 ---------- */
.svc-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(99, 102, 241, .25);
  font-size: 21px; margin-bottom: 18px;
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 14.2px; margin: 0 0 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: 12px; padding: 4px 11px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text-dim);
}

/* ---------- 技术栈 ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.stack-item {
  border: 1px solid var(--border); border-radius: 14px; background: var(--panel);
  padding: 18px 10px; text-align: center; transition: .25s;
}
.stack-item:hover { border-color: rgba(99, 102, 241, .45); background: rgba(99, 102, 241, .05); transform: translateY(-4px); }
.stack-item .n { font-size: 13.5px; font-weight: 600; }
.stack-item .d { font-size: 11.5px; color: var(--text-mute); margin-top: 3px; }

/* ---------- 流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.flow-item { position: relative; padding-top: 26px; }
.flow-item::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: #4f46e5; display: block; margin-bottom: 10px;
}
.flow-item::after {
  content: ""; position: absolute; top: 34px; left: 34px; right: -16px; height: 1px;
  background: linear-gradient(90deg, rgba(99, 102, 241, .45), rgba(99, 102, 241, 0));
}
.flow-item:last-child::after { display: none; }
.flow-item h4 { font-size: 16px; margin-bottom: 8px; }
.flow-item p { font-size: 13.6px; color: var(--text-dim); margin: 0; }

/* ---------- 案例 ---------- */
.case {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--panel);
  transition: transform .3s, border-color .3s, box-shadow .3s;
  box-shadow: 0 2px 10px -4px rgba(23, 32, 90, .06);
}
.case:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: 0 26px 54px -30px rgba(23, 32, 90, .28); }
.case-thumb {
  height: 168px; position: relative; display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--text-mute);
  border-bottom: 1px solid var(--border);
}
.case-thumb span { position: relative; z-index: 2; letter-spacing: .18em; text-transform: uppercase; }
.case-thumb::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(19, 29, 58, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(19, 29, 58, .05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.case-body { padding: 22px; }
.case-body h3 { font-size: 16.5px; margin-bottom: 8px; }
.case-body p { font-size: 13.6px; color: var(--text-dim); margin: 0 0 14px; }
.case-metrics { display: flex; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.case-metrics div { font-size: 12.5px; color: var(--text-mute); }
.case-metrics b { display: block; font-size: 16px; color: var(--text); font-weight: 700; }

/* ---------- 优势 ---------- */
.adv { display: flex; gap: 16px; align-items: flex-start; }
.adv .ic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(99, 102, 241, .25); font-size: 18px; }
.adv h4 { font-size: 15.5px; margin-bottom: 6px; }
.adv p { font-size: 13.6px; color: var(--text-dim); margin: 0; }

/* ---------- 评价 ---------- */
.quote { font-size: 14.6px; color: #3a4260; line-height: 1.85; }
.who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 15px; }
.who .nm { font-size: 14px; font-weight: 600; }
.who .rl { font-size: 12.5px; color: var(--text-mute); }
.stars { color: #f59e0b; font-size: 13px; letter-spacing: 3px; margin-bottom: 14px; }

/* ---------- 文章 ---------- */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
  padding: 24px; display: flex; flex-direction: column;
  box-shadow: 0 2px 10px -4px rgba(23, 32, 90, .06);
  transition: transform .3s, border-color .3s, background .3s, box-shadow .3s;
}
.post:hover { transform: translateY(-5px); border-color: var(--border-2); background: var(--panel); box-shadow: 0 18px 40px -24px rgba(23, 32, 90, .22); }
.post .meta { font-size: 12.5px; color: var(--text-mute); display: flex; gap: 12px; margin-bottom: 12px; }
.post h3 { font-size: 17px; margin-bottom: 10px; line-height: 1.45; }
.post h3 a:hover { color: #4f46e5; }
.post p { font-size: 13.6px; color: var(--text-dim); margin: 0 0 16px; flex: 1; }
.post .more { font-size: 13.5px; color: #4f46e5; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; color: var(--text);
  padding: 18px 22px; font-size: 15.2px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .ic { transition: transform .3s; color: #4f46e5; font-size: 20px; line-height: 1; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { margin: 0; padding: 0 22px 20px; color: var(--text-dim); font-size: 14.2px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.ci { display: flex; gap: 14px; align-items: flex-start; }
.ci .ic { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--border); font-size: 18px; }
.ci .k { font-size: 12.5px; color: var(--text-mute); }
.ci .v { font-size: 15px; font-weight: 600; word-break: break-all; }

.form-card { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.2px; color: var(--text-dim); margin-bottom: 7px; font-weight: 500; }
.field label .req { color: #dc2626; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 11px;
  background: #fff; border: 1px solid var(--border-2);
  color: var(--text); outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 108px; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #9aa3b8; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(99, 102, 241, .7); background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .14);
}
.field select option { background: #fff; color: var(--text); }
.field .err { color: #dc2626; font-size: 12.4px; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: rgba(220, 38, 38, .7); }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 12.4px; color: var(--text-mute); margin-top: 14px; text-align: center; }

.form-status { display: none; padding: 14px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; align-items: center; gap: 10px; }
.form-status.show { display: flex; }
.form-status.ok { background: rgba(16, 185, 129, .08); border: 1px solid rgba(16, 185, 129, .35); color: #047857; }
.form-status.bad { background: rgba(220, 38, 38, .07); border: 1px solid rgba(220, 38, 38, .35); color: #b91c1c; }

/* ---------- CTA 条 ---------- */
.cta-band {
  border: 1px solid rgba(99, 102, 241, .28); border-radius: 24px; padding: 52px 40px;
  background: radial-gradient(1000px circle at 50% 0%, rgba(99, 102, 241, .1), transparent 62%), #fff;
  box-shadow: 0 24px 60px -36px rgba(23, 32, 90, .2);
  text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.cta-band p { color: var(--text-dim); margin: 0 auto 28px; max-width: 560px; }
.cta-band .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--border); padding: 56px 0 30px; margin-top: 40px; position: relative; z-index: 2; background: rgba(255, 255, 255, .7); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 36px; }
.foot-grid h4 { font-size: 14px; margin-bottom: 16px; color: #2a3252; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-grid a, .foot-grid li { color: var(--text-mute); font-size: 13.6px; }
.foot-grid a:hover { color: #4f46e5; }
.foot-desc { color: var(--text-mute); font-size: 13.6px; margin-top: 16px; max-width: 300px; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-mute); font-size: 12.8px; }

/* ---------- 滚动动效 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* 回到顶部 */
.to-top {
  position: fixed; right: 24px; bottom: 26px; z-index: 50; width: 44px; height: 44px;
  border-radius: 13px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); color: var(--text); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 8px 24px -10px rgba(23, 32, 90, .25);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); border-color: rgba(99, 102, 241, .6); }

/* 空状态 */
.empty { text-align: center; padding: 56px 20px; color: var(--text-mute); font-size: 14px; }
.skeleton { background: linear-gradient(90deg, rgba(19,29,58,.05) 25%, rgba(19,29,58,.09) 37%, rgba(19,29,58,.05) 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 12px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- 文章详情 ---------- */
.article-head { padding: calc(var(--nav-h) + 62px) 0 34px; }
.breadcrumb { font-size: 13px; color: var(--text-mute); margin-bottom: 18px; }
.breadcrumb a:hover { color: #4f46e5; }
.article-head h1 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 18px; max-width: 860px; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--text-mute); font-size: 13.4px; }
.article-meta span { display: flex; align-items: center; gap: 6px; }
.article-body { max-width: 780px; margin: 0 auto; padding-bottom: 40px; }
.article-body .cover { border-radius: 18px; border: 1px solid var(--border); margin-bottom: 34px; width: 100%; }
.prose { font-size: 16px; line-height: 1.95; color: #2a3252; }
.prose h2 { font-size: 24px; margin: 40px 0 16px; padding-left: 14px; border-left: 3px solid var(--brand); color: var(--text); }
.prose h3 { font-size: 20px; margin: 32px 0 13px; padding-left: 14px; border-left: 3px solid rgba(99, 102, 241, .6); color: var(--text); }
.prose h4 { font-size: 17px; margin: 24px 0 10px; color: var(--text); }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose a { color: #4f46e5; text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 22px 0; padding: 16px 20px; border-left: 3px solid var(--brand-2); background: rgba(139, 92, 246, .06); border-radius: 0 12px 12px 0; color: #3a4260; }
.prose code { font-family: var(--mono); font-size: 13.6px; background: rgba(19, 29, 58, .06); padding: 2px 6px; border-radius: 6px; color: #1d4ed8; }
.prose pre { background: #0c0e18; border: 1px solid var(--border); border-radius: 12px; padding: 18px; overflow-x: auto; margin: 0 0 20px; }
.prose pre code { background: none; padding: 0; color: #c8d0e6; }
.prose img { border-radius: 14px; border: 1px solid var(--border); margin: 8px 0 20px; }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 34px 0; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 14.4px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 13px; text-align: left; }
.prose th { background: var(--panel-2); font-weight: 600; }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--border); max-width: 780px; margin-left: auto; margin-right: auto; }
.pager a { font-size: 14px; color: var(--text-dim); max-width: 46%; }
.pager a:hover { color: #4f46e5; }
.pager .lbl { font-size: 12px; color: var(--text-mute); display: block; margin-bottom: 4px; }

/* 文章列表页 */
.page-head { padding: calc(var(--nav-h) + 62px) 0 20px; }
.page-head h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.page-head p { color: var(--text-dim); max-width: 620px; margin: 0; }
.tag-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0 36px; }
.tag-filter button {
  background: #fff; border: 1px solid var(--border); color: var(--text-dim);
  padding: 7px 15px; border-radius: 999px; font-size: 13.2px; cursor: pointer; transition: .2s;
}
.tag-filter button:hover { border-color: var(--border-2); color: var(--text); }
.tag-filter button.active { background: var(--grad); border-color: transparent; color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .grid-3, .post-list { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-item::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
/* ---------- 微信卡片（首页右侧） ---------- */
.wx-card {
  border-radius: 22px; border: 1px solid var(--border);
  background: linear-gradient(160deg, #ffffff, #f0f3fb);
  box-shadow: 0 30px 70px -32px rgba(23, 32, 90, .3), 0 0 0 1px rgba(255, 255, 255, .6) inset;
  padding: 26px; position: relative; overflow: hidden;
  animation: floaty 8s ease-in-out infinite;
}
.wx-card .halo {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(7, 193, 96, .16), transparent 68%);
  top: -140px; right: -110px; filter: blur(26px); pointer-events: none;
}
.wx-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; position: relative; }
.wx-avatar {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #07c160, #059a4c); color: #fff; font-size: 22px;
  box-shadow: 0 10px 26px -10px rgba(7, 193, 96, .6); flex: 0 0 auto;
}
.wx-title { font-size: 16px; font-weight: 700; }
.wx-sub { font-size: 12.8px; color: var(--text-mute); margin-top: 2px; }
.wx-qr {
  width: 100%; max-width: 246px; aspect-ratio: 1 / 1; margin: 0 auto 18px;
  border-radius: 16px; background: var(--panel-2);
  border: 1px dashed var(--border-2); display: grid; place-items: center; overflow: hidden;
}
.wx-qr img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 9px; border-radius: 15px; }
.wx-qr .ph { text-align: center; color: var(--text-mute); font-size: 13px; line-height: 2; padding: 0 18px; }
.wx-qr .ph .big { font-size: 30px; display: block; margin-bottom: 8px; opacity: .5; }
.wx-qr .ph b { color: #059a4c; font-weight: 600; }
.wx-id {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 14px; margin-bottom: 14px;
}
.wx-id .k { font-size: 11.5px; color: var(--text-mute); letter-spacing: .08em; }
.wx-id .v { font-size: 16.5px; font-weight: 700; font-family: var(--mono); word-break: break-all; }
.wx-copy {
  background: var(--grad); border: 0; color: #fff; border-radius: 9px;
  padding: 7px 15px; font-size: 12.8px; font-weight: 600; cursor: pointer;
  transition: filter .2s, transform .2s; flex: 0 0 auto;
}
.wx-copy:hover { filter: brightness(1.08); }
.wx-copy:active { transform: scale(.96); }
.wx-marquee {
  position: relative; overflow: hidden; border: 1px solid var(--border);
  border-radius: 12px; background: var(--panel-2); padding: 11px 0; margin-top: 4px;
}
.wx-marquee::before, .wx-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 2; pointer-events: none;
}
.wx-marquee::before { left: 0; background: linear-gradient(90deg, #f0f3fb, transparent); }
.wx-marquee::after { right: 0; background: linear-gradient(270deg, #f0f3fb, transparent); }
.wx-track { display: inline-flex; white-space: nowrap; animation: wxmove 24s linear infinite; will-change: transform; }
.wx-track span {
  padding: 0 20px; font-size: 13px; color: var(--text-dim); position: relative;
}
.wx-track span::after {
  content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: #c9cfe0;
}
.wx-marquee:hover .wx-track { animation-play-state: paused; }
@keyframes wxmove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.wx-trust { display: flex; gap: 8px; margin-top: 16px; }
.wx-trust div {
  flex: 1; text-align: center; font-size: 11.8px; color: var(--text-mute);
  background: rgba(255, 255, 255, .7); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 4px;
}

/* ---------- Toast ---------- */
.toast-box {
  position: fixed; top: 84px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none; max-width: 90vw;
}
.toast {
  padding: 11px 20px; border-radius: 12px; font-size: 14px;
  background: rgba(255, 255, 255, .97); border: 1px solid var(--border-2); color: var(--text);
  box-shadow: 0 18px 44px -18px rgba(23, 32, 90, .3);
  opacity: 0; transform: translateY(-14px); transition: opacity .3s, transform .3s;
}
.toast.in { opacity: 1; transform: none; }
.toast.ok { border-color: rgba(16, 185, 129, .5); color: #047857; }
.toast.bad { border-color: rgba(220, 38, 38, .5); color: #b91c1c; }

@media (max-width: 1024px) {
  .wx-card { animation: none; }
}
@media (max-width: 720px) {
  .wx-qr { max-width: 210px; }
}

@media (max-width: 720px) {
  section { padding: 66px 0; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(20px);
    padding: 14px 22px 20px; gap: 2px; border-bottom: 1px solid var(--border);
    display: none; align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .grid-3, .grid-2, .grid-4, .post-list, .flow { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-stats { gap: 26px; }
  .hero-stats .num { font-size: 24px; }
  .cta-band { padding: 38px 22px; }
  .form-card { padding: 22px; }
  .code-card pre { font-size: 11.6px; }
}
