/* ==========================================================================
   Processing 中文站 — 全局样式表
   配色取自 Processing 标志三色:亮蓝 #0468FF / 深蓝紫 #1F34AB / 浅蓝 #85AEFF
   风格:扁平 · 现代 · 专业
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --c-primary: #0468FF;        /* 主色:标志亮蓝 */
  --c-primary-dark: #0355D9;   /* 主色深:悬停 */
  --c-primary-soft: #E8F0FF;   /* 主色浅底 */
  --c-indigo: #1F34AB;         /* 深蓝紫:标志主笔画 */
  --c-indigo-deep: #16245F;    /* 更深的蓝紫 */
  --c-peri: #85AEFF;           /* 浅蓝:标志辅笔画 */
  --c-peri-soft: #EEF3FF;      /* 浅蓝浅底 */

  --c-ink: #0D1434;            /* 标题墨色 */
  --c-text: #333D5E;           /* 正文 */
  --c-muted: #64708F;          /* 次要文字 */
  --c-border: #E1E7F5;         /* 边框 */
  --c-bg: #FFFFFF;             /* 页面底色 */
  --c-bg-soft: #F4F7FD;        /* 浅灰蓝区块 */
  --c-bg-mute: #E9EFFB;        /* 更深一档 */
  --c-code-bg: #0D1633;        /* 代码编辑器底 */
  --c-code-line: #1A2650;      /* 编辑器行号区 */

  --c-footer-bg: #101735;      /* 页脚深蓝 */
  --c-footer-text: #B9C3E3;

  --font-sans: "Inter", "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", ui-monospace, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(16, 23, 53, 0.05), 0 10px 28px rgba(16, 23, 53, 0.07);
  --shadow-pop: 0 12px 40px rgba(13, 20, 52, 0.22);
  --container: 1120px;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.3; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2.05rem, 4.6vw, 3.05rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.13rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.45em; }
strong { color: var(--c-ink); font-weight: 600; }
code, kbd {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--c-bg-mute);
  color: var(--c-indigo);
  border-radius: 5px;
  padding: 0.12em 0.4em;
}
hr { border: 0; border-top: 1px solid var(--c-border); margin: 2em 0; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--c-peri); color: var(--c-ink); }

/* ---------- 布局工具 ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--soft { background: var(--c-bg-soft); }
.section--tight { padding: clamp(40px, 6vw, 64px) 0; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--beta { grid-template-columns: 1.35fr 1fr; }

/* ---------- 区块标题 ---------- */
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-primary);
}
.section-head .section-head__desc { color: var(--c-muted); font-size: 1.02rem; margin: 0; }
.page-hero { padding: clamp(48px, 7vw, 84px) 0 clamp(32px, 4vw, 48px); background: linear-gradient(180deg, var(--c-bg-soft) 0%, #FFFFFF 100%); }
.page-hero p { max-width: 760px; color: var(--c-muted); font-size: 1.05rem; }
.page-hero .eyebrow { margin-bottom: 14px; }
.crumbs { font-size: 0.85rem; color: var(--c-muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--c-border); }
.crumbs a { color: var(--c-muted); }
.crumbs a:hover { color: var(--c-primary); }
.crumbs [aria-current] { color: var(--c-ink); font-weight: 600; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  padding: 13px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
}
.btn .i { width: 18px; height: 18px; }
.btn--primary { background: var(--c-primary); color: #FFFFFF; box-shadow: 0 6px 16px rgba(4, 104, 255, 0.28); }
.btn--primary:hover { background: var(--c-primary-dark); color: #FFFFFF; transform: translateY(-1px); }
.btn--indigo { background: var(--c-indigo); color: #FFFFFF; box-shadow: 0 6px 16px rgba(31, 52, 171, 0.28); }
.btn--indigo:hover { background: var(--c-indigo-deep); color: #FFFFFF; transform: translateY(-1px); }
.btn--ghost { background: #FFFFFF; color: var(--c-indigo); border-color: var(--c-border); }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--light { background: #FFFFFF; color: var(--c-indigo); box-shadow: 0 6px 18px rgba(9, 13, 32, 0.22); }
.btn--light:hover { transform: translateY(-1px); }
.btn--outline-light { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.5); }
.btn--outline-light:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.1); color: #FFFFFF; }
.btn--sm { padding: 9px 18px; font-size: 0.92rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- 顶部导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow 0.2s ease;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(16, 23, 53, 0.08); }
.header__inner { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--c-ink); }
.brand:hover { color: var(--c-ink); }
.brand__mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand__name { font-weight: 800; font-size: 1.28rem; letter-spacing: -0.01em; }
.brand__tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--c-indigo);
  background: var(--c-peri-soft);
  border: 1px solid var(--c-peri);
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 2px;
}
.nav { margin-left: auto; }
.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  display: block;
  color: var(--c-text);
  font-weight: 500;
  font-size: 0.97rem;
  padding: 8px 14px;
  border-radius: 8px;
}
.nav__link:hover { color: var(--c-indigo); background: var(--c-bg-mute); }
.nav__link[aria-current="page"], .nav__link.is-active { color: var(--c-indigo); font-weight: 600; }
.nav__link[aria-current="page"]::after, .nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-primary);
}
.nav__toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: #FFFFFF;
  cursor: pointer;
  position: relative;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-ink);
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}
.nav__toggle span { top: 20px; }
.nav__toggle span::before { top: -6px; left: 0; }
.nav__toggle span::after { top: 6px; left: 0; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.header__cta { flex: 0 0 auto; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--c-bg-soft) 0%, #FFFFFF 82%);
  padding: clamp(52px, 7vw, 92px) 0 clamp(56px, 7vw, 96px);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
}
.hero::before { width: 420px; height: 420px; background: var(--c-peri); top: -180px; right: -120px; }
.hero::after { width: 360px; height: 360px; background: var(--c-primary); opacity: 0.14; bottom: -200px; left: -140px; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__copy { min-width: 0; }
.hero__eyebrow { margin-bottom: 18px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .hl { color: var(--c-primary); }
.hero__lead { font-size: 1.08rem; color: var(--c-muted); max-width: 540px; }
.hero__cta { margin: 28px 0 20px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.88rem; color: var(--c-muted); margin: 0; padding: 0; list-style: none; }
.hero__meta li { display: flex; align-items: center; gap: 7px; margin: 0; }
.hero__meta .i { width: 15px; height: 15px; color: var(--c-primary); flex: 0 0 auto; }
.hero__visual { position: relative; }
.hero__visual .editor { transform: rotate(-0.5deg); }
.hero__visual .preview { position: absolute; right: -14px; bottom: -46px; width: 216px; transform: rotate(1.5deg); }
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 12px; }
  .hero__visual .preview { position: relative; right: auto; bottom: auto; margin: 14px auto 0; }
}

/* ---------- 代码编辑器与预览窗口(纯 CSS 模拟) ---------- */
.editor {
  background: var(--c-code-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  border: 1px solid #1E2B57;
}
.editor__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #101A3C;
  border-bottom: 1px solid #1E2B57;
}
.editor__dots { display: flex; gap: 6px; }
.editor__dot { width: 11px; height: 11px; border-radius: 50%; }
.editor__dot--r { background: #FF6B6B; }
.editor__dot--y { background: #FFC24B; }
.editor__dot--g { background: #3DDC97; }
.editor__file { font-family: var(--font-mono); font-size: 0.78rem; color: #8FA0D6; }
.editor__badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--c-peri);
  border: 1px solid rgba(133, 174, 255, 0.4);
  border-radius: 5px;
  padding: 1px 8px;
}
.editor__code {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: #D9E2FB;
  overflow-x: auto;
  tab-size: 2;
  white-space: pre;
}
.editor__code .ln { color: #41508A; user-select: none; margin-right: 16px; }
.tk-kw { color: #85AEFF; font-weight: 600; }
.tk-cls { color: #B9CCFF; }
.tk-fn { color: #6FB4FF; }
.tk-num { color: #FFC978; }
.tk-str { color: #9BE8C0; }
.tk-cmt { color: #5A6FA8; font-style: italic; }

/* 运行效果窗口 */
.preview {
  background: #FFFFFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  border: 1px solid var(--c-border);
  overflow: hidden;
}
.preview__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--c-muted);
}
.preview__bar b { color: var(--c-indigo); font-weight: 600; }
.preview__stage {
  position: relative;
  height: 150px;
  background: #1E2964;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.orbit { position: relative; width: 110px; height: 110px; animation: orbit-spin 14s linear infinite; }
.orbit__ring {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(133, 174, 255, 0.5);
  border-radius: 50%;
}
.orbit__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  background: var(--c-peri);
}
.orbit__dot:nth-child(2) { transform: rotate(30deg) translate(55px); }
.orbit__dot:nth-child(3) { transform: rotate(60deg) translate(55px); background: #A7C4FF; }
.orbit__dot:nth-child(4) { transform: rotate(90deg) translate(55px); }
.orbit__dot:nth-child(5) { transform: rotate(120deg) translate(55px); background: #A7C4FF; }
.orbit__dot:nth-child(6) { transform: rotate(150deg) translate(55px); }
.orbit__dot:nth-child(7) { transform: rotate(180deg) translate(55px); background: #A7C4FF; }
.orbit__dot:nth-child(8) { transform: rotate(210deg) translate(55px); }
.orbit__dot:nth-child(9) { transform: rotate(240deg) translate(55px); background: #A7C4FF; }
.orbit__dot:nth-child(10) { transform: rotate(270deg) translate(55px); }
.orbit__dot:nth-child(11) { transform: rotate(300deg) translate(55px); background: #A7C4FF; }
.orbit__dot:nth-child(12) { transform: rotate(330deg) translate(55px); }
.orbit__core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: var(--c-primary);
  box-shadow: 0 0 0 8px rgba(4, 104, 255, 0.22);
}
@keyframes orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---------- 数据带 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--c-border); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.stat { background: #FFFFFF; padding: 26px 22px; text-align: center; }
.stat__num { display: block; font-size: 1.85rem; font-weight: 800; color: var(--c-indigo); letter-spacing: -0.01em; }
.stat__num em { font-style: normal; color: var(--c-primary); }
.stat__label { display: block; margin-top: 4px; font-size: 0.88rem; color: var(--c-muted); }

/* ---------- 通用卡片 ---------- */
.card {
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--c-peri); box-shadow: 0 4px 10px rgba(16, 23, 53, 0.06), 0 16px 36px rgba(16, 23, 53, 0.1); }
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  margin-bottom: 16px;
}
.icon-tile .i { width: 22px; height: 22px; }
.icon-tile--indigo { background: var(--c-peri-soft); color: var(--c-indigo); }
.icon-tile--peri { background: var(--c-peri-soft); color: var(--c-peri); }

/* 场景卡片 */
.scene-card p, .res-card p, .feat-card p { color: var(--c-muted); font-size: 0.94rem; margin: 0; }
.scene-card .tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--c-indigo);
  background: var(--c-peri-soft);
  border-radius: 999px;
  padding: 3px 11px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--c-primary);
  margin-top: 16px;
}
.card-link .i { width: 15px; height: 15px; transition: transform 0.18s ease; }
.card-link:hover .i { transform: translateX(3px); }

/* 优势 Bento 网格 */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.feat-card { grid-column: span 2; position: relative; overflow: hidden; }
.feat-card--wide { grid-column: span 3; }
.feat-card__num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-peri);
}
.feat-card h3 { margin: 0 0 8px; }
.feat-card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.feat-card ul li { position: relative; padding-left: 22px; font-size: 0.9rem; color: var(--c-muted); margin: 6px 0; }
.feat-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--c-primary-soft);
  border: 2px solid var(--c-primary);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) scale(0.9);
}
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .feat-card, .feat-card--wide { grid-column: span 1; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }

/* ---------- 代码演示区 ---------- */
.code-demo { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.code-demo__editor { margin: 0; }
.check-list { list-style: none; margin: 22px 0 0; padding: 0; }
.check-list li { display: flex; gap: 12px; margin-bottom: 14px; }
.check-list .i { flex: 0 0 auto; width: 20px; height: 20px; color: var(--c-primary); margin-top: 4px; }
.check-list h4 { margin: 0 0 3px; }
.check-list p { margin: 0; color: var(--c-muted); font-size: 0.92rem; }
.demo-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--c-muted);
  background: var(--c-bg-soft);
  border: 1px dashed var(--c-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 20px;
}
.demo-note .i { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; color: var(--c-indigo); }
@media (max-width: 900px) { .code-demo { grid-template-columns: 1fr; } }

/* ---------- 交互演武场(功能页) ---------- */
.playground { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.playground__stage { background: #1E2964; position: relative; min-height: 360px; }
.playground__stage canvas { width: 100%; height: 100%; position: absolute; inset: 0; }
.playground__hud {
  position: absolute;
  left: 14px;
  top: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-peri);
  background: rgba(13, 22, 51, 0.6);
  border-radius: 6px;
  padding: 3px 10px;
}
.playground__ctrls { background: #FFFFFF; padding: 26px 28px; display: flex; flex-direction: column; gap: 20px; }
.ctrl label { display: flex; justify-content: space-between; font-size: 0.88rem; font-weight: 600; color: var(--c-ink); margin-bottom: 8px; }
.ctrl output { font-family: var(--font-mono); color: var(--c-primary); font-weight: 600; }
.ctrl input[type="range"] { width: 100%; accent-color: var(--c-primary); }
.playground__btns { display: flex; gap: 12px; margin-top: auto; }
@media (max-width: 880px) { .playground { grid-template-columns: 1fr; } .playground__stage { min-height: 280px; } }

/* ---------- 下载中心 ---------- */
.release-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  background: linear-gradient(120deg, var(--c-indigo) 0%, var(--c-indigo-deep) 100%);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 30px 34px;
  box-shadow: var(--shadow-pop);
}
.release-card__badge {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.release-card__badge svg { width: 42px; height: 42px; }
.release-card h2 { color: #FFFFFF; margin: 0 0 6px; font-size: 1.5rem; }
.release-card__meta { display: flex; flex-wrap: wrap; gap: 8px 10px; font-size: 0.85rem; color: #CFE0FF; }
.release-card__chip { background: rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 3px 12px; }
.release-card p { margin: 0; color: #CFE0FF; font-size: 0.92rem; }
@media (max-width: 820px) { .release-card { grid-template-columns: 1fr; text-align: left; } }

.dl-card { display: flex; flex-direction: column; }
.dl-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.dl-card__head h3 { margin: 0; }
.dl-card__req { margin: 0; font-size: 0.85rem; color: var(--c-muted); }
.dl-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--c-border); }
.dl-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--c-border); }
.dl-item__name { font-family: var(--font-mono); font-size: 0.8rem; color: var(--c-text); word-break: break-all; }
.dl-item__size { flex: 0 0 auto; font-size: 0.78rem; color: var(--c-muted); font-family: var(--font-mono); }
.dl-item a { flex: 0 0 auto; font-size: 0.82rem; font-weight: 600; }

.sys-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.sys-table th, .sys-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.sys-table th { width: 180px; color: var(--c-ink); font-weight: 600; background: var(--c-bg-soft); }
.sys-table td { color: var(--c-text); }
.sys-table tr:first-child th { border-top-left-radius: var(--radius-sm); }
.sys-table tr:first-child td { border-top-right-radius: var(--radius-sm); }

/* 安装指南标签页 */
.tabs { border: 1px solid var(--c-border); border-radius: var(--radius); background: #FFFFFF; box-shadow: var(--shadow-card); overflow: hidden; }
.tab-list { display: flex; gap: 0; border-bottom: 1px solid var(--c-border); background: var(--c-bg-soft); overflow-x: auto; }
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-muted);
  padding: 15px 24px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab:hover { color: var(--c-indigo); }
.tab[aria-selected="true"] { color: var(--c-primary); border-bottom-color: var(--c-primary); background: #FFFFFF; }
.tabpanel { padding: 26px 30px 30px; }
.js .tabpanel[hidden] { display: none; }
.step { display: flex; gap: 16px; margin-bottom: 18px; }
.step__num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.step h4 { margin: 0 0 3px; }
.step p { margin: 0; color: var(--c-muted); font-size: 0.92rem; }

/* 版本历史表 */
.rel-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.rel-table th { text-align: left; padding: 12px 16px; color: var(--c-muted); font-weight: 600; font-size: 0.82rem; border-bottom: 2px solid var(--c-border); background: var(--c-bg-soft); }
.rel-table td { padding: 12px 16px; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.rel-table .ver { font-family: var(--font-mono); font-weight: 600; color: var(--c-indigo); white-space: nowrap; }
.rel-table .date { color: var(--c-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rel-table .note { color: var(--c-text); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #FFFFFF; border: 1px solid var(--c-border); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--c-ink);
  font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--c-muted);
  border-bottom: 2px solid var(--c-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); border-color: var(--c-primary); }
.faq-item summary:hover { color: var(--c-primary); }
.faq-item .faq-item__body { padding: 0 22px 20px; color: var(--c-text); font-size: 0.94rem; }
.faq-item .faq-item__body p:last-child { margin-bottom: 0; }

/* ---------- 学习资源页 ---------- */
.path { counter-reset: path; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.path__item { position: relative; padding: 24px 22px 22px; background: #FFFFFF; border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.path__item::before {
  counter-increment: path;
  content: counter(path, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-peri);
}
.path__item h3 { margin: 8px 0 8px; font-size: 1.05rem; }
.path__item p { margin: 0; font-size: 0.9rem; color: var(--c-muted); }
.path__arrow { position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--c-peri); z-index: 1; }
.path__arrow .i { width: 20px; height: 20px; }
@media (max-width: 900px) { .path { grid-template-columns: 1fr 1fr; } .path__arrow { display: none; } }
@media (max-width: 560px) { .path { grid-template-columns: 1fr; } }

.book-card { display: flex; gap: 20px; }
.book-card__cover {
  flex: 0 0 auto;
  width: 96px;
  height: 128px;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--c-indigo) 0%, var(--c-primary) 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 12px;
  box-shadow: 6px 6px 0 0 var(--c-peri-soft);
  border: 1px solid var(--c-indigo-deep);
}
.book-card__cover b { font-size: 0.92rem; line-height: 1.35; }
.book-card__cover span { font-size: 0.62rem; opacity: 0.85; }
.book-card h3 { margin-bottom: 4px; font-size: 1.05rem; }
.book-card__meta { font-size: 0.8rem; color: var(--c-muted); margin: 0 0 10px; }
.book-card p { margin: 0; font-size: 0.92rem; color: var(--c-text); }
.book-card .card-link { margin-top: 12px; }
@media (max-width: 600px) { .book-card { flex-direction: column; } .book-card__cover { width: 82px; height: 110px; } }

/* ---------- 关于页:时间线 ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--c-peri) 0%, var(--c-primary) 100%); border-radius: 2px; }
.timeline__item { position: relative; padding-bottom: 30px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid var(--c-primary);
}
.timeline__year { font-family: var(--font-mono); font-weight: 700; color: var(--c-primary); font-size: 0.95rem; }
.timeline__item h3 { margin: 2px 0 6px; font-size: 1.05rem; }
.timeline__item p { margin: 0; color: var(--c-muted); font-size: 0.93rem; max-width: 640px; }

.quote-block {
  border-left: 4px solid var(--c-primary);
  background: var(--c-bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 26px;
  margin: 26px 0;
}
.quote-block p { margin: 0; font-size: 1.02rem; color: var(--c-ink); }
.quote-block footer { margin-top: 10px; font-size: 0.85rem; color: var(--c-muted); }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(133, 174, 255, 0.35) 0%, transparent 60%),
    linear-gradient(125deg, var(--c-indigo) 0%, var(--c-indigo-deep) 60%, #0C1330 100%);
  color: #FFFFFF;
  border-radius: 22px;
  padding: clamp(36px, 6vw, 60px) clamp(26px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #FFFFFF; margin-bottom: 12px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-band p { color: #CFE0FF; max-width: 560px; margin: 0 0 26px; }
.cta-band__mark { position: absolute; right: -30px; bottom: -50px; width: 260px; opacity: 0.13; transform: rotate(-8deg); }

/* ---------- 页脚 ---------- */
.footer { background: var(--c-footer-bg); color: var(--c-footer-text); padding: 60px 0 30px; margin-top: auto; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand .brand { color: #FFFFFF; margin-bottom: 16px; }
.footer__brand .brand:hover { color: #FFFFFF; }
.footer__brand p { font-size: 0.88rem; color: #8E9AC0; max-width: 300px; }
.footer__title { color: #FFFFFF; font-size: 0.95rem; font-weight: 600; margin: 0 0 14px; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: 9px; }
.footer__links a { color: var(--c-footer-text); font-size: 0.9rem; }
.footer__links a:hover { color: #FFFFFF; }
.footer__links .i { width: 14px; height: 14px; vertical-align: -2px; margin-right: 7px; color: var(--c-peri); }
.footer__divider { border-top: 1px solid rgba(255, 255, 255, 0.1); margin: 40px 0 22px; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; font-size: 0.8rem; color: #8E9AC0; }
.footer__bottom p { margin: 0; }
.footer__legal { font-size: 0.76rem; color: #6C779E; margin-top: 12px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 下载弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block;   left: 0;
  right: 0;
  top: 0;
  bottom: 0;}
button { outline: none } 
.modal__backdrop { position: absolute; inset: 0; background: rgba(13, 20, 52, 0.62); backdrop-filter: blur(3px); animation: fade-in 0.2s ease; }
.modal__panel {
  position: relative;
  max-width: 620px;
  margin: 8vh auto 0;
  max-height: 86vh;
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: var(--shadow-pop);
  padding: 34px 34px 30px;
  animation: pop-in 0.25s cubic-bezier(0.2, 0.9, 0.35, 1.2);
}
@media (max-width: 640px) { .modal__panel { margin: 4vh 14px 0; padding: 26px 20px 24px; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  background: #FFFFFF;
  color: var(--c-muted);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.modal__close:hover { color: var(--c-ink); border-color: var(--c-primary); }
.modal__head h2 { margin-bottom: 6px; font-size: 1.4rem; }
.modal__head p { color: var(--c-muted); font-size: 0.9rem; margin: 0; }
.modal__qrs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0 6px; }
@media (max-width: 560px) { .modal__qrs { grid-template-columns: 1fr; } }
.qr-card {
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px 16px 18px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.qr-card.is-focus { border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-soft); transform: translateY(-2px); }
.qr-card__img {
  width: 172px;
  height: 172px;
  margin: 0 auto 14px;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  padding: 8px;
  background: #FFFFFF;
}
.qr-card__img img { width: 100%; height: 100%; image-rendering: pixelated; }
.qr-card__title { font-size: 1rem; font-weight: 700; color: var(--c-ink); margin: 0 0 4px; }
.qr-card__meta { font-size: 0.8rem; color: var(--c-muted); margin: 0 0 12px; line-height: 1.6; }
.qr-card__link { font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 7px; }
.qr-card__link .i { width: 15px; height: 15px; }
.modal__note { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: var(--c-muted); background: var(--c-bg-soft); border-radius: var(--radius-sm); padding: 12px 16px; margin-top: 14px; }
.modal__note .i { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; color: var(--c-indigo); }
.modal__more { text-align: center; font-size: 0.9rem; margin: 16px 0 0; }

/* ---------- 出现动画 ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: 0.07s; }
.js .reveal:nth-child(3) { transition-delay: 0.14s; }
.js .reveal:nth-child(4) { transition-delay: 0.21s; }
.js .grid .reveal:nth-child(5), .js .grid .reveal:nth-child(6) { transition-delay: 0.21s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .orbit { animation: none; }
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  background: var(--c-indigo);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #FFFFFF; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--beta { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 16px 32px rgba(16, 23, 53, 0.1);
    padding: 10px 24px 18px;
  }
  .nav__menu.is-open { display: flex; }
  .nav__link { padding: 12px 10px; font-size: 1rem; }
  .nav__link[aria-current="page"]::after, .nav__link.is-active::after { left: 10px; right: auto; width: 26px; bottom: 6px; }
  .header__inner { gap: 14px; }
  .header__cta { display: none; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat__num { font-size: 1.5rem; }
  .hero__cta .btn { width: 100%; }
  .modal__qrs { gap: 12px; }
  .tabs .tabpanel { padding: 20px 18px 24px; }
}
