/* ============================================================
   FBCMS 官网 - 高端科技感样式
   ============================================================ */
:root {
  --bg: #05070d;
  --bg-2: #090c14;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.35);
  --text: #e6edf7;
  --text-dim: #8b96ab;
  --cyan: #22d3ee;
  --blue: #38bdf8;
  --violet: #8b5cf6;
  --green: #34d399;
  --orange: #fbbf24;
  --pink: #f472b6;
  --grad: linear-gradient(120deg, #22d3ee 0%, #38bdf8 45%, #8b5cf6 100%);
  --radius: 16px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: rgba(34, 211, 238, 0.3); }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- 背景特效层 ---------- */
#particles {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-glow {
  position: fixed; z-index: 0; pointer-events: none;
  border-radius: 50%; filter: blur(120px); opacity: 0.22;
}
.bg-glow-1 { width: 640px; height: 640px; top: -220px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, #0ea5e9, transparent 65%); }
.bg-glow-2 { width: 520px; height: 520px; top: 30%; right: -180px;
  background: radial-gradient(circle, #7c3aed, transparent 65%); opacity: 0.16; }

main, section, footer, header { position: relative; z-index: 1; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 40px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.logo-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; background: var(--grad); color: #04121a;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.45);
}
.logo-mark svg { width: 20px; height: 20px; }
.logo-text em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 34px; margin-left: auto; }
.nav-links a {
  font-size: 14.5px; color: var(--text-dim); position: relative; padding: 6px 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 9px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: 0.3s; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 12px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
  border: 1px solid transparent;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.25s; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  background: var(--grad); color: #04121a;
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(56, 189, 248, 0.5); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04); color: var(--text);
  border-color: var(--border); backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--border-glow); background: rgba(56, 189, 248, 0.08); transform: translateY(-3px); }
.btn-sm { padding: 9px 20px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { padding: 170px 0 90px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 20px; border-radius: 999px;
  border: 1px solid var(--border-glow);
  background: rgba(34, 211, 238, 0.06);
  color: #7dd3fc; font-size: 13.5px; letter-spacing: 1px;
  margin-bottom: 34px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
.hero-title {
  font-size: clamp(44px, 7vw, 84px); font-weight: 900; line-height: 1.16;
  letter-spacing: 2px; margin-bottom: 28px;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  max-width: 760px; margin: 0 auto 40px; color: var(--text-dim);
  font-size: 17px;
}
.hero-sub strong { color: #7dd3fc; font-weight: 600; }
.hero-actions { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 64px; }

/* 终端窗口 */
.hero-terminal {
  max-width: 720px; margin: 0 auto 70px;
  border: 1px solid var(--border); border-radius: 14px;
  background: rgba(8, 11, 18, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(56, 189, 248, 0.07);
  text-align: left; overflow: hidden;
  transition: transform 0.3s;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.terminal-title { margin-left: 12px; font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
.terminal-body {
  padding: 22px 24px; font-family: var(--mono);
  font-size: 13.5px; line-height: 1.9; color: #a5f3fc;
  min-height: 216px; white-space: pre-wrap;
}
.terminal-body .cursor {
  display: inline-block; width: 8px; height: 16px;
  background: var(--cyan); vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* 数据统计 */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 860px; margin: 0 auto;
}
.stat {
  padding: 26px 12px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-card);
  backdrop-filter: blur(8px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.stat:hover { transform: translateY(-6px); border-color: var(--border-glow); box-shadow: 0 12px 40px rgba(56, 189, 248, 0.12); }
.stat-num { font-size: 40px; font-weight: 900; font-family: var(--mono);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-num i { font-style: normal; font-size: 24px; }
.stat-label { color: var(--text-dim); font-size: 13.5px; margin-top: 6px; letter-spacing: 2px; }

.scroll-hint {
  width: 26px; height: 44px; border: 2px solid rgba(255,255,255,0.25);
  border-radius: 14px; margin: 70px auto 0; position: relative;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px;
  margin-left: -2px; border-radius: 2px; background: var(--cyan);
  animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- 通用 Section ---------- */
.section { padding: 110px 0; }
.section-alt { background: linear-gradient(180deg, rgba(9,12,20,0.6), rgba(9,12,20,0.9)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 64px; }
.section-tag {
  font-family: var(--mono); font-size: 13px; color: var(--cyan);
  letter-spacing: 4px; margin-bottom: 16px;
}
.section-title { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; letter-spacing: 1px; margin-bottom: 18px; }
.section-desc { color: var(--text-dim); font-size: 16px; }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; padding: 34px 28px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); overflow: hidden;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 189, 248, 0.1), transparent 55%);
  opacity: 0; transition: opacity 0.35s; pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-8px); border-color: var(--border-glow); box-shadow: 0 18px 50px rgba(2, 8, 20, 0.6); }
.card h3 { font-size: 19px; margin: 22px 0 12px; letter-spacing: 0.5px; }
.card p { color: var(--text-dim); font-size: 14.5px; }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center;
}
.card-icon svg { width: 26px; height: 26px; }
.c-cyan   { background: rgba(34, 211, 238, 0.12); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.3); }
.c-violet { background: rgba(139, 92, 246, 0.12); color: #a78bfa; box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.3); }
.c-blue   { background: rgba(56, 189, 248, 0.12); color: var(--blue); box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.3); }
.c-green  { background: rgba(52, 211, 153, 0.12); color: var(--green); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.3); }
.c-orange { background: rgba(251, 191, 36, 0.12); color: var(--orange); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.3); }
.c-pink   { background: rgba(244, 114, 182, 0.12); color: var(--pink); box-shadow: inset 0 0 0 1px rgba(244, 114, 182, 0.3); }

/* ---------- 架构 ---------- */
.arch-wrap {
  display: flex; align-items: stretch; gap: 14px;
}
.arch-col {
  flex: 1; padding: 22px 18px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-card);
  transition: transform 0.3s, border-color 0.3s;
}
.arch-col:hover { transform: translateY(-6px); border-color: var(--border-glow); }
.arch-head {
  font-size: 16px; font-weight: 700; margin-bottom: 18px;
  display: flex; align-items: baseline; gap: 8px; justify-content: center;
}
.arch-head em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--cyan); letter-spacing: 2px; }
.arch-node {
  font-family: var(--mono); font-size: 13px;
  padding: 11px 14px; margin-bottom: 10px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  transition: 0.25s;
}
.arch-node span { font-family: var(--font); font-size: 12px; color: var(--text-dim); }
.arch-node:hover { border-color: var(--border-glow); background: rgba(56, 189, 248, 0.07); }
.node-home:hover   { border-color: rgba(34, 211, 238, 0.5); }
.node-admin:hover  { border-color: rgba(139, 92, 246, 0.5); }
.node-api:hover    { border-color: rgba(52, 211, 153, 0.5); }
.node-common:hover { border-color: rgba(251, 191, 36, 0.5); }
.arch-arrow {
  align-self: center; color: var(--cyan); font-size: 22px;
  animation: arrowFlow 1.6s infinite; flex-shrink: 0;
}
@keyframes arrowFlow { 0%, 100% { opacity: 0.35; transform: translateX(0); } 50% { opacity: 1; transform: translateX(4px); } }
.arch-note {
  margin-top: 44px; text-align: center; color: var(--text-dim); font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.arch-note strong { color: #7dd3fc; }

/* ---------- 功能矩阵 Tabs ---------- */
.feature-tabs {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 44px;
}
.ftab {
  padding: 11px 30px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.03); color: var(--text-dim);
  border: 1px solid var(--border); font-size: 14.5px; font-family: var(--font);
  transition: 0.3s;
}
.ftab:hover { color: var(--text); border-color: var(--border-glow); }
.ftab.active {
  background: var(--grad); color: #04121a; font-weight: 700;
  border-color: transparent; box-shadow: 0 8px 26px rgba(34, 211, 238, 0.3);
}
.ftab-panel { display: none; animation: fadeUp 0.5s ease; }
.ftab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.fchip {
  padding: 22px 20px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-card);
  transition: 0.3s;
}
.fchip:hover { border-color: var(--border-glow); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(56, 189, 248, 0.1); }
.fchip b { display: block; font-size: 15.5px; margin-bottom: 6px; }
.fchip span { font-size: 12.5px; color: var(--text-dim); font-family: var(--mono); }

/* ---------- 代码块 ---------- */
.code-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.code-card {
  border: 1px solid var(--border); border-radius: 14px;
  background: #070a12; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.code-card:hover { border-color: var(--border-glow); box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 50px rgba(56, 189, 248, 0.08); }
.code-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono); font-size: 12.5px; color: var(--text-dim);
}
.lang-badge {
  padding: 3px 12px; border-radius: 6px; font-size: 11px;
  background: rgba(34, 211, 238, 0.12); color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.code-body {
  padding: 22px 24px; font-family: var(--mono);
  font-size: 13px; line-height: 1.85; overflow-x: auto;
  color: #c9d5e8; tab-size: 4;
}
.code-body i { font-style: normal; }
.cm { color: #5b6b84; }   /* 注释 */
.ct { color: #22d3ee; }   /* 模板标签 */
.ch { color: #7dd3fc; }   /* html 标签 */
.ca { color: #a78bfa; }   /* 属性 */
.cs { color: #86efac; }   /* 字符串 */
.ck { color: #f472b6; }   /* 关键字 */
.cf { color: #fbbf24; }   /* 函数 */
.cv { color: #e2e8f0; }   /* 变量 */
.cn { color: #fb923c; }   /* 数字 */

.template-points {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px;
}
.tpoint {
  padding: 20px; border-radius: 12px; text-align: center;
  border: 1px dashed rgba(56, 189, 248, 0.28); background: rgba(34, 211, 238, 0.04);
  transition: 0.3s;
}
.tpoint:hover { background: rgba(34, 211, 238, 0.08); border-style: solid; }
.tpoint b { display: block; color: #7dd3fc; font-size: 15px; margin-bottom: 6px; }
.tpoint span { font-size: 12.5px; color: var(--text-dim); }

/* ---------- API ---------- */
.api-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.api-endpoints {
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--bg-card); padding: 14px;
}
.api-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 14px; border-radius: 10px;
  transition: 0.25s;
}
.api-row:hover { background: rgba(56, 189, 248, 0.06); }
.api-row code {
  font-family: var(--mono); font-size: 13.5px; color: #a5f3fc;
}
.method {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px; flex-shrink: 0; letter-spacing: 1px;
}
.method.get  { background: rgba(52, 211, 153, 0.14); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.35); }
.method.post { background: rgba(251, 191, 36, 0.14); color: var(--orange); border: 1px solid rgba(251, 191, 36, 0.35); }
.api-desc { margin-left: auto; font-size: 12.5px; color: var(--text-dim); }

/* ---------- 应用场景 ---------- */
.scenario {
  position: relative; padding: 34px 26px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); overflow: hidden;
  transition: 0.35s;
}
.scenario:hover { transform: translateY(-8px); border-color: var(--border-glow); box-shadow: 0 18px 50px rgba(2, 8, 20, 0.6); }
.scenario-num {
  font-family: var(--mono); font-size: 44px; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; opacity: 0.85;
}
.scenario h3 { font-size: 18px; margin: 14px 0 10px; }
.scenario p { color: var(--text-dim); font-size: 14px; }

/* ---------- CTA ---------- */
.cta { padding: 60px 0 120px; }
.cta-box {
  position: relative; text-align: center; overflow: hidden;
  padding: 90px 30px; border-radius: 24px;
  border: 1px solid var(--border-glow);
  background: linear-gradient(160deg, rgba(14, 116, 144, 0.14), rgba(139, 92, 246, 0.1) 60%, rgba(9, 12, 20, 0.4));
  box-shadow: 0 0 90px rgba(56, 189, 248, 0.12);
}
.cta-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
}
.cta-box h2 { position: relative; font-size: clamp(28px, 4vw, 44px); font-weight: 900; margin-bottom: 16px; }
.cta-box p { position: relative; color: var(--text-dim); margin-bottom: 42px; font-size: 16px; }
.cta-box .hero-actions { position: relative; margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: rgba(5, 7, 13, 0.92); padding: 70px 0 34px; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 46px; border-bottom: 1px solid var(--border);
}
.footer-brand p { color: var(--text-dim); font-size: 13.5px; margin-top: 18px; }
.footer-col h4 { font-size: 15px; margin-bottom: 20px; letter-spacing: 1px; }
.footer-col a {
  display: block; color: var(--text-dim); font-size: 13.5px;
  margin-bottom: 13px; transition: color 0.25s, transform 0.25s;
}
.footer-col a:hover { color: var(--cyan); transform: translateX(4px); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 28px; color: #5b6b84; font-size: 13px;
}
.footer-bottom b { color: var(--cyan); font-weight: 600; }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.grid .reveal:nth-child(6) { transition-delay: 0.4s; }

/* ---------- 系统下载 ---------- */
.dl-wrap {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px;
}
.dl-main {
  position: relative; overflow: hidden;
  padding: 48px 44px; border-radius: 20px;
  border: 1px solid var(--border-glow);
  background: linear-gradient(160deg, rgba(14, 116, 144, 0.13), rgba(9, 12, 20, 0.55) 55%, rgba(139, 92, 246, 0.08));
  box-shadow: 0 0 70px rgba(56, 189, 248, 0.1);
}
.dl-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 80% 90% at 0% 0%, #000 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 0% 0%, #000 15%, transparent 70%);
}
.dl-main > * { position: relative; }
.dl-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.08);
  color: var(--green); font-size: 13px; font-weight: 600;
  margin-bottom: 22px;
}
.dl-badge svg { width: 15px; height: 15px; }
.dl-main h3 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 900; margin-bottom: 24px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 28px; }
.dl-meta span { font-size: 15px; font-weight: 600; font-family: var(--mono); }
.dl-meta i {
  font-style: normal; display: block; font-size: 11.5px;
  color: var(--text-dim); font-family: var(--font); margin-bottom: 2px; letter-spacing: 1px;
}
.dl-list { list-style: none; margin-bottom: 38px; }
.dl-list li {
  position: relative; padding-left: 30px; margin-bottom: 13px;
  color: var(--text-dim); font-size: 14.5px;
}
.dl-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 16px; height: 8px;
  border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}
.dl-actions { justify-content: flex-start; margin-bottom: 0; }
.dl-side { display: flex; flex-direction: column; gap: 24px; }
.dl-card {
  flex: 1; padding: 30px 28px; border-radius: 18px;
  border: 1px solid var(--border); background: var(--bg-card);
  transition: 0.3s;
}
.dl-card:hover { border-color: var(--border-glow); transform: translateY(-5px); box-shadow: 0 14px 40px rgba(56, 189, 248, 0.1); }
.dl-card h4 { font-size: 16px; margin-bottom: 20px; color: #7dd3fc; letter-spacing: 1px; }
.dl-env {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  font-size: 13.5px;
}
.dl-env:last-child { border-bottom: none; }
.dl-env span { color: var(--text-dim); }
.dl-env b { font-family: var(--mono); font-weight: 600; color: var(--text); font-size: 13px; }
.dl-card-mini p { color: var(--text-dim); font-size: 13.5px; line-height: 1.9; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .arch-wrap { flex-wrap: wrap; }
  .arch-arrow { display: none; }
  .arch-col { flex: 1 1 44%; }
  .code-split, .api-layout { grid-template-columns: 1fr; }
  .dl-wrap { grid-template-columns: 1fr; }
  .template-points { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 72px; right: 0; left: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: rgba(5, 7, 13, 0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a { padding: 16px 6%; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .hero { padding-top: 130px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .dl-main { padding: 34px 24px; }
  .dl-actions .btn { width: 100%; justify-content: center; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .api-desc { display: none; }
  .terminal-body { font-size: 11.5px; min-height: 240px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
