:root {
  --bg: #07090d;
  --bg2: #0c1016;
  --panel: rgba(255, 255, 255, 0.035);
  --panel2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 178, 36, 0.35);
  --fg: #e8edf3;
  --muted: #8b95a3;
  --amber: #ffb224;
  --red: #ff4d2e;
  --grad: linear-gradient(120deg, #ffcf5c 0%, #ffb224 35%, #ff4d2e 100%);
  --max: 1160px;
  --mono: "JetBrains Mono", Consolas, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--fg);
  background: var(--bg);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 背景：顶部光晕 + 渐隐的蜂巢纹理 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(255, 77, 46, 0.18), transparent 60%),
    radial-gradient(800px 500px at 8% 6%, rgba(255, 178, 36, 0.12), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23ffb224' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

::selection { background: rgba(255, 178, 36, 0.35); color: #fff; }

a { color: var(--amber); text-decoration: none; transition: color .2s; }
a:hover { color: #ffd27a; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ========== 顶栏 ========== */
header.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 13, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
header.top .brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 650; letter-spacing: .3px; }
header.top .brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(255, 178, 36, .45)); }
header.top nav { display: flex; gap: 6px; }
header.top nav a {
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 15px;
  transition: color .2s, background .2s;
}
header.top nav a:hover { color: var(--fg); background: var(--panel2); }
header.top nav a.on { color: var(--fg); background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); }

/* ========== 按钮 / 标签 ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #1a0d00; box-shadow: 0 8px 30px -8px rgba(255, 110, 40, .7); }
.btn-primary:hover { color: #1a0d00; box-shadow: 0 12px 36px -8px rgba(255, 110, 40, .9); }
.btn-ghost { color: var(--fg); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { color: var(--fg); background: var(--panel2); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: #ffd27a;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 178, 36, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 178, 36, .25);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: pulse 2s infinite; }

/* ========== 首屏 ========== */
.hero { position: relative; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 88px; }
.hero h1 { font-size: 54px; line-height: 1.18; margin: 22px 0 20px; letter-spacing: -0.5px; font-weight: 800; }
.hero p.sub { color: var(--muted); font-size: 18px; margin: 0 0 32px; max-width: 34em; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* 终端窗口 */
.term {
  position: relative;
  background: rgba(12, 16, 22, .82);
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 80px -30px rgba(255, 120, 40, .5);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  overflow: hidden;
}
.term::before {
  content: ""; position: absolute; inset: 0; border-radius: 14px; padding: 1px;
  background: linear-gradient(140deg, rgba(255, 178, 36, .5), transparent 40%, transparent 60%, rgba(255, 77, 46, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.term .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.term .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f48; }
.term .bar i:nth-child(1) { background: #ff5f57; }
.term .bar i:nth-child(2) { background: #febc2e; }
.term .bar i:nth-child(3) { background: #28c840; }
.term .bar span { margin-left: 10px; font: 12px var(--mono); color: var(--muted); }
.term pre { margin: 0; padding: 18px 20px 22px; font: 13.5px/1.9 var(--mono); color: #c9d1d9; white-space: pre-wrap; }
.term .ln { display: block; opacity: 0; animation: lineIn .35s ease forwards; }
.term .ln:nth-child(1) { animation-delay: .3s; }
.term .ln:nth-child(2) { animation-delay: 1.1s; }
.term .ln:nth-child(3) { animation-delay: 1.7s; }
.term .ln:nth-child(4) { animation-delay: 2.3s; }
.term .ln:nth-child(5) { animation-delay: 2.9s; }
.term .ln:nth-child(6) { animation-delay: 3.5s; }
.term .ln:nth-child(7) { animation-delay: 4.1s; }
.term .ln:nth-child(8) { animation-delay: 4.6s; }
.term .p { color: var(--amber); }
.term .c { color: #6b7684; }
.term .n { color: #ffd27a; font-weight: 700; }
.term .ok { color: #3fd68a; }
.term .cur { display: inline-block; width: 8px; height: 16px; background: var(--amber); vertical-align: -3px; animation: blink 1s steps(1) infinite; }

/* 数据条 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.stats div { padding: 26px 24px; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-size: 34px; line-height: 1.2; font-weight: 800; }
.stats span { color: var(--muted); font-size: 14px; }

/* ========== 区块通用 ========== */
section.block { padding: 96px 0; position: relative; }
.head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.head .eyebrow { font: 600 13px var(--mono); letter-spacing: 2px; color: var(--amber); text-transform: uppercase; }
.head h2 { font-size: 38px; line-height: 1.25; margin: 12px 0 14px; font-weight: 800; letter-spacing: -0.3px; }
.head p { color: var(--muted); margin: 0; font-size: 17px; }

/* 功能卡片 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative;
  padding: 28px 26px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .3s, box-shadow .3s;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: 16px; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 178, 36, .12), transparent 45%);
  transition: opacity .3s; pointer-events: none;
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line2), 0 20px 50px -24px rgba(255, 120, 40, .45); }
.card:hover::after { opacity: 1; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, rgba(255, 178, 36, .18), rgba(255, 77, 46, .12));
  box-shadow: inset 0 0 0 1px rgba(255, 178, 36, .3);
  color: var(--amber);
}
.card .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 19px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* 流程 */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.flow::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 34px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 178, 36, .5), rgba(255, 77, 46, .5), transparent);
  background-size: 200% 100%;
  animation: flowLine 4s linear infinite;
}
.flow .step { text-align: center; position: relative; }
.flow .num {
  width: 68px; height: 68px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font: 800 22px var(--mono);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
  background: var(--grad); color: #1a0d00;
  filter: drop-shadow(0 0 16px rgba(255, 120, 40, .55));
}
.flow h3 { margin: 0 0 6px; font-size: 19px; }
.flow p { margin: 0; color: var(--muted); font-size: 14.5px; padding: 0 8px; }

/* 浏览器样机 */
.browser {
  border-radius: 14px; overflow: hidden;
  background: var(--bg2);
  box-shadow: 0 0 0 1px var(--line), 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 120px -40px rgba(255, 120, 40, .45);
}
.browser .bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--line); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f48; }
.browser .bar .url { flex: 1; margin-left: 14px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .05); font: 12px/22px var(--mono); color: var(--muted); padding: 0 10px; max-width: 360px; }
.browser .view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.browser .view img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; transition: transform .6s; }
/* 首页大图有真实截图时按原始比例显示，不裁切；项目页截图统一 16:10 */
.showcase .browser .view:not(.missing) { aspect-ratio: auto; background: #fff; }
.showcase .browser .view:not(.missing) img { height: auto; }
.browser:hover .view img { transform: scale(1.02); }
/* 截图缺失时的骨架占位 */
.browser .view.missing {
  background:
    linear-gradient(rgba(255, 255, 255, .05), rgba(255, 255, 255, .05)) 0 0 / 18% 100% no-repeat,
    linear-gradient(rgba(255, 255, 255, .06), rgba(255, 255, 255, .06)) 24% 9% / 46% 7% no-repeat,
    linear-gradient(rgba(255, 178, 36, .14), rgba(255, 178, 36, .14)) 24% 26% / 22% 26% no-repeat,
    linear-gradient(rgba(255, 255, 255, .05), rgba(255, 255, 255, .05)) 51% 26% / 22% 26% no-repeat,
    linear-gradient(rgba(255, 255, 255, .05), rgba(255, 255, 255, .05)) 78% 26% / 18% 26% no-repeat,
    linear-gradient(rgba(255, 255, 255, .04), rgba(255, 255, 255, .04)) 24% 64% / 72% 6% no-repeat,
    linear-gradient(rgba(255, 255, 255, .04), rgba(255, 255, 255, .04)) 24% 76% / 60% 6% no-repeat,
    linear-gradient(rgba(255, 255, 255, .04), rgba(255, 255, 255, .04)) 24% 88% / 66% 6% no-repeat;
}
.browser .view.missing::after {
  content: attr(data-label); position: absolute; right: 14px; bottom: 12px;
  font: 12px var(--mono); color: var(--muted);
}

.showcase { max-width: 980px; margin: 0 auto; }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 26px; max-width: 860px; margin: 0 auto; }
.shot figcaption b { font-size: 15.5px; }
.shot figcaption span { font-size: 13.5px; }
.shot figcaption { margin-top: 14px; }
.shot figcaption b { display: block; font-size: 17px; }
.shot figcaption span { color: var(--muted); font-size: 14.5px; }
figure { margin: 0; }

/* Bee 客户端 */
.bees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bee { text-align: center; padding: 34px 24px 30px; }
.bee img { width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(255, 140, 40, .35)); animation: float 5s ease-in-out infinite; }
.bee:nth-child(2) img { animation-delay: -1.6s; }
.bee:nth-child(3) img { animation-delay: -3.2s; }
.bee h3 { margin: 16px 0 6px; }

/* 文章卡片 */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post { display: flex; flex-direction: column; color: var(--fg); }
.post:hover { color: var(--fg); }
.post .date { font: 12.5px var(--mono); color: var(--amber); }
.post h3 { margin: 10px 0 10px; font-size: 18px; line-height: 1.5; }
.post p { flex: 1; }
.post .more { margin-top: 18px; font-size: 14px; color: var(--amber); }

/* ========== 子页面页头 ========== */
.page-head { padding: 84px 0 40px; text-align: center; }
.page-head h1 { font-size: 46px; line-height: 1.2; margin: 18px 0 14px; font-weight: 800; letter-spacing: -0.4px; }
.page-head p { color: var(--muted); font-size: 18px; margin: 0 auto; max-width: 40em; }

/* 两栏说明 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split p { color: #c3cbd5; }
.quote {
  padding: 30px 32px; border-radius: 16px;
  background: linear-gradient(140deg, rgba(255, 178, 36, .08), rgba(255, 77, 46, .05));
  box-shadow: inset 0 0 0 1px rgba(255, 178, 36, .2);
  font-size: 20px; line-height: 1.7; font-weight: 600;
}
.quote small { display: block; margin-top: 14px; font-size: 14px; font-weight: 400; color: var(--muted); }

/* 架构图 */
.arch { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.arch .core {
  width: 240px; height: 240px; margin: 0 auto; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  background: linear-gradient(150deg, rgba(255, 178, 36, .22), rgba(255, 77, 46, .16));
}
.arch .core img { width: 74px; height: 74px; }
.arch .core b { font-size: 19px; margin-top: 6px; }
.arch .core span { font-size: 13px; color: var(--muted); }
.arch .side { display: flex; flex-direction: column; gap: 14px; }
.arch .node {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 12px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
}
.arch .node img { width: 40px; height: 40px; object-fit: contain; }
.arch .node .ico { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--amber); background: rgba(255, 178, 36, .1); flex: none; }
.arch .node .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.arch .node b { display: block; font-size: 15.5px; }
.arch .node span { font-size: 13.5px; color: var(--muted); }
.arch .side.left .node { flex-direction: row-reverse; text-align: right; }

/* 平台模块 */
.mods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mod {
  padding: 26px 28px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  box-shadow: inset 0 0 0 1px var(--line);
}
.mod-h { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 800; margin-bottom: 14px; }
.mod-h span { font: 700 13px var(--mono); color: #1a0d00; background: var(--grad); padding: 2px 8px; border-radius: 6px; }
.mod ul { list-style: none; margin: 0; padding: 0; }
.mod li { position: relative; padding: 10px 0 10px 16px; color: var(--muted); font-size: 14.5px; line-height: 1.75; border-top: 1px dashed var(--line); }
.mod li:first-child { border-top: 0; }
.mod li::before { content: ""; position: absolute; left: 0; top: 19px; width: 6px; height: 6px; border-radius: 2px; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.mod li b { display: block; color: var(--fg); font-size: 15.5px; margin-bottom: 2px; }

/* Bee 卡片正文左对齐，避免长段落居中难读 */
.bees .bee p { text-align: left; font-size: 14.5px; line-height: 1.8; }

/* 蜂巢小配件 */
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.extras > div {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
}
.extras img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.extras span { color: var(--muted); font-size: 14px; line-height: 1.6; }
.extras b { display: block; color: var(--fg); font-size: 15px; }

/* 技术栈分组 */
.stack-groups { display: grid; gap: 22px; max-width: 900px; margin: 0 auto; }
.stack-groups > div { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 16px; }
.stack-groups h4 { margin: 0; font: 600 14px var(--mono); color: var(--amber); text-align: right; }
.stack-groups ul.stack { justify-content: flex-start; }

/* 技术栈 */
ul.stack { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
ul.stack li {
  font: 14px var(--mono); padding: 8px 16px; border-radius: 10px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s, color .2s;
}
ul.stack li:hover { color: var(--amber); box-shadow: inset 0 0 0 1px var(--line2); }

/* 关于我 */
.profile { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: start; }
.avatar {
  width: 180px; height: 180px; display: flex; align-items: center; justify-content: center;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  background: linear-gradient(150deg, rgba(255, 178, 36, .28), rgba(255, 77, 46, .2));
}
.avatar img { width: 112px; height: 112px; object-fit: contain; }
.profile h2 { margin: 0 0 12px; font-size: 26px; }
.profile p { color: #c3cbd5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 26px; }
.chips span { font-size: 13.5px; padding: 4px 12px; border-radius: 999px; color: #ffd27a; background: rgba(255, 178, 36, .08); box-shadow: inset 0 0 0 1px rgba(255, 178, 36, .22); }

/* ========== 文章正文 ========== */
main > article { max-width: 780px; margin: 0 auto; padding: 72px 0 40px; }
article h1 { font-size: 38px; line-height: 1.3; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.3px; }
article .meta { font: 13px var(--mono); color: var(--amber); margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
article p, article li { color: #c9d1d9; font-size: 16.5px; line-height: 1.9; }
article strong { color: #fff; }
article h2 { font-size: 24px; margin: 44px 0 14px; padding-left: 14px; border-left: 3px solid var(--amber); line-height: 1.4; }
article pre {
  background: #0b0f15; border-radius: 10px; padding: 16px 18px; overflow-x: auto;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; line-height: 1.7;
}
article code { font-family: var(--mono); font-size: .9em; }
article pre code { color: #e6c07b; }
article :not(pre) > code { background: rgba(255, 178, 36, .1); color: #ffd27a; padding: 2px 6px; border-radius: 5px; }
article table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 15px; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); margin: 8px 0 16px; }
article th, article td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
article tr:last-child td { border-bottom: 0; }
article th { background: rgba(255, 178, 36, .08); color: #ffd27a; font-weight: 600; }

/* 笔记列表 */
ul.posts { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
ul.posts li {
  padding: 22px 24px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .25s, box-shadow .25s;
}
ul.posts li:hover { transform: translateX(4px); box-shadow: inset 0 0 0 1px var(--line2); }
ul.posts .date { display: block; font: 12.5px var(--mono); color: var(--amber); margin-bottom: 4px; }
ul.posts a { font-size: 19px; font-weight: 650; color: var(--fg); }
ul.posts a:hover { color: var(--amber); }
ul.posts .sum { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ========== 页脚 ========== */
footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 14px; text-align: center; background: rgba(0, 0, 0, .25); }
footer a { color: var(--muted); }
footer a:hover { color: var(--amber); }
footer p { margin: 4px 0; }

/* ========== 滚动渐显 ========== */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .08s; }
.js .rv.d2 { transition-delay: .16s; }
.js .rv.d3 { transition-delay: .24s; }

@keyframes lineIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes flowLine { from { background-position: 200% 0; } to { background-position: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .term .ln { opacity: 1; }
  .js .rv { opacity: 1; transform: none; }
}

/* ========== 响应式 ========== */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; }
  .hero h1 { font-size: 40px; }
  .grid, .posts-grid, .bees { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .flow::before { display: none; }
  .split { grid-template-columns: 1fr; }
  .arch { grid-template-columns: 1fr; }
  .arch .side.left .node { flex-direction: row; text-align: left; }
  .mods, .extras { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  header.top .brand span { display: none; }
  header.top nav a { padding: 6px 10px; font-size: 14px; }
  .hero h1 { font-size: 32px; }
  .head h2, .page-head h1 { font-size: 30px; }
  article h1 { font-size: 28px; }
  section.block { padding: 64px 0; }
  .grid, .posts-grid, .bees, .shots { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .chips { justify-content: center; }
  .stack-groups > div { grid-template-columns: 1fr; gap: 8px; }
  .stack-groups h4 { text-align: left; }
}
