/* ==========================================================================
   clash-meta.top — 设计系统
   视觉语言：暖纸底 × 墨色线框 × 朱橙强调 · 技术手册风 · 硬投影卡片 · 猫爪细节
   ========================================================================== */

:root {
  --paper: #f6f0e3;
  --paper-deep: #ede4d0;
  --card: #fffdf7;
  --ink: #201a12;
  --ink-soft: #6b5f4e;
  --ink-faint: #a2947f;
  --line: #201a12;
  --line-soft: #d8cdb8;
  --accent: #e85d04;
  --accent-deep: #bc4a00;
  --accent-soft: #fbe3cc;
  --accent-wash: #fdf1e3;
  --teal: #0e7c6b;
  --teal-soft: #d9ece7;
  --gold: #f2b705;
  --shadow: 6px 6px 0 rgba(32, 26, 18, 0.10);
  --shadow-lg: 9px 9px 0 rgba(32, 26, 18, 0.12);
  --radius: 16px;
  --radius-sm: 12px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, Menlo, monospace;
  --head-h: 68px;
}

html[lang="zh-TW"] {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif;
}
html[lang="fa"] {
  --font-sans: "Vazirmatn", "Segoe UI", Tahoma, system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 76px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  /* 长单词（俄语等）在窄屏不撑破布局 */
  overflow-wrap: break-word;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(32, 26, 18, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
}
img { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { max-width: 1120px; margin-inline: auto; padding-inline: 22px; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  border-radius: 10px; z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   头部
   -------------------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 240, 227, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.head-in {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--head-h);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 42px; height: 42px; object-fit: contain;
  background: var(--card); border: 2px solid var(--line); border-radius: 12px;
  padding: 4px; box-shadow: 3px 3px 0 rgba(32, 26, 18, 0.12);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: 17px; letter-spacing: .01em; }
.brand-text small { font-size: 11.5px; color: var(--ink-soft); font-family: var(--font-mono); }
.lang-short { display: none; }

.main-nav { display: flex; gap: 4px; margin-inline-start: 10px; }
.nav-link {
  padding: 8px 14px; border-radius: 10px; color: var(--ink);
  font-weight: 600; font-size: 15px; position: relative;
}
.nav-link:hover { background: var(--paper-deep); text-decoration: none; }
.nav-link[data-active="1"]::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 3px; height: 3px;
  background: var(--accent); border-radius: 2px;
}
.nav-ext svg { width: 14px; height: 14px; margin-inline-start: 4px; vertical-align: -1px; }

.head-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

/* 语言下拉 */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 2px solid var(--line); border-radius: 12px;
  padding: 7px 12px; font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink); cursor: pointer; box-shadow: 3px 3px 0 rgba(32, 26, 18, 0.10);
  transition: transform .12s, box-shadow .12s; white-space: nowrap;
}
.lang-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(32, 26, 18, 0.12); }
.lang-btn svg { width: 16px; height: 16px; }
.lang-btn .chev { width: 12px; height: 12px; transition: transform .15s; }
.lang[data-open="1"] .lang-btn .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px);
  min-width: 190px; margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 2px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); display: none; z-index: 120;
}
.lang[data-open="1"] .lang-menu { display: block; animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 9px; color: var(--ink); font-size: 14.5px; font-weight: 500;
}
.lang-menu a:hover { background: var(--accent-wash); text-decoration: none; }
.lang-menu li[aria-selected="1"] a { background: var(--accent-soft); font-weight: 700; }
.lang-menu .ck { width: 15px; height: 15px; color: var(--accent-deep); visibility: hidden; }
.lang-menu li[aria-selected="1"] .ck { visibility: visible; }

.burger {
  display: none; background: var(--card); border: 2px solid var(--line);
  border-radius: 12px; padding: 8px; cursor: pointer; color: var(--ink);
  box-shadow: 3px 3px 0 rgba(32, 26, 18, 0.10);
}
.burger svg { width: 20px; height: 20px; display: block; }
.burger .ic-close { display: none; }
.mobile-open .burger .ic-menu { display: none; }
.mobile-open .burger .ic-close { display: block; }

.mobile-nav {
  display: none; border-bottom: 2px solid var(--line);
  background: var(--paper); padding: 10px 0 16px;
}
.mobile-open .mobile-nav { display: block; }
.mobile-nav a {
  display: block; padding: 12px 8px; font-size: 17px; font-weight: 700; color: var(--ink);
  border-bottom: 1px dashed var(--line-soft);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a:hover { text-decoration: none; color: var(--accent-deep); }

/* --------------------------------------------------------------------------
   按钮与徽标
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  border: 2px solid var(--line); font-family: inherit; font-size: 15.5px; font-weight: 700;
  cursor: pointer; text-decoration: none; line-height: 1.2;
  box-shadow: 4px 4px 0 rgba(32, 26, 18, 0.14);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(32, 26, 18, 0.16); text-decoration: none; }
.btn:active { transform: translate(0, 0); box-shadow: 2px 2px 0 rgba(32, 26, 18, 0.14); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #35291a; color: var(--paper); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); }
.btn-ghost:hover { background: var(--paper-deep); }
.btn-sm { padding: 8px 14px; font-size: 14px; box-shadow: 3px 3px 0 rgba(32, 26, 18, 0.12); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  padding: 3px 10px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); white-space: nowrap;
}
.chip-accent { background: var(--accent-soft); border-color: var(--accent-deep); color: var(--accent-deep); }
.chip-teal { background: var(--teal-soft); border-color: var(--teal); color: var(--teal); }
.badge-reco {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gold); border: 2px solid var(--line); border-radius: 999px;
  font-size: 12.5px; font-weight: 800; padding: 3px 11px; color: var(--ink);
  box-shadow: 2px 2px 0 rgba(32, 26, 18, 0.18);
}
.badge-reco svg { width: 12px; height: 12px; }

/* --------------------------------------------------------------------------
   区块骨架
   -------------------------------------------------------------------------- */
.sec { padding: 64px 0; }
.sec-tint { background: var(--paper-deep); border-block: 2px solid var(--line); }
.sec-head { margin-bottom: 34px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep);
  margin-bottom: 10px;
}
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--accent); border-radius: 2px; }
.kicker .knum { color: var(--ink-faint); }
.sec-title { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
.sec-lead { color: var(--ink-soft); max-width: 640px; margin: 12px 0 0; font-size: 16.5px; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.view-all { font-weight: 700; white-space: nowrap; }
.view-all svg { width: 14px; height: 14px; vertical-align: -2px; }

.hl { background: linear-gradient(transparent 62%, var(--accent-soft) 62%); padding-inline: 2px; }

/* --------------------------------------------------------------------------
   首页 Hero
   -------------------------------------------------------------------------- */
.hero { padding: 64px 0 70px; position: relative; overflow: hidden; }
.hero-route {
  position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 30px;
  width: 100%; height: 100%; pointer-events: none; opacity: .5; z-index: 0;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 52px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  background: var(--card); border: 2px solid var(--line); border-radius: 999px;
  padding: 6px 14px; margin: 0 0 18px; box-shadow: 3px 3px 0 rgba(32, 26, 18, 0.10);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero-title {
  font-size: clamp(34px, 5.6vw, 56px); line-height: 1.12; margin: 0 0 6px;
  letter-spacing: -0.02em; font-weight: 900;
}
.hero-sub {
  font-size: clamp(20px, 3vw, 28px); font-weight: 800; color: var(--accent-deep);
  margin: 2px 0 18px; letter-spacing: -0.01em;
}
.hero-sub .hl { background: linear-gradient(transparent 58%, var(--accent-soft) 58%); }
.hero-lead { font-size: 17px; color: var(--ink-soft); max-width: 560px; margin: 0 0 26px; }
.hero-lead strong { color: var(--ink); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-badges { display: flex; gap: 16px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft); font-family: var(--font-mono);
}
.hero-badges svg { width: 15px; height: 15px; color: var(--teal); }

.hero-side { display: flex; flex-direction: column; gap: 22px; align-items: stretch; }
.hero-visual {
  position: relative; background: var(--card); border: 2px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow-lg); padding: 52px 26px 26px;
  text-align: center; overflow: hidden;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 10px; border: 1.5px dashed var(--line-soft);
  border-radius: 16px; pointer-events: none;
}
.hero-cat {
  width: 132px; height: 132px; object-fit: contain; position: relative; z-index: 1;
  filter: drop-shadow(5px 6px 0 rgba(32, 26, 18, 0.14));
}
.hero-visual h2 { margin: 12px 0 2px; font-size: 21px; letter-spacing: -0.01em; position: relative; z-index: 1; }
.hero-visual .hv-sub { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); margin: 0 0 14px; position: relative; z-index: 1; }
.hv-chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.stamp {
  position: absolute; z-index: 2; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  border: 2px solid var(--accent-deep); color: var(--accent-deep); border-radius: 10px;
  padding: 4px 10px; background: rgba(255, 253, 247, 0.9); letter-spacing: .06em;
}
.stamp-tl { top: 18px; inset-inline-start: 18px; transform: rotate(-5deg); }
.stamp-br { top: 18px; inset-inline-end: 18px; transform: rotate(4deg); border-color: var(--teal); color: var(--teal); }

/* --------------------------------------------------------------------------
   广告卡（与整体协调的赞助位）
   -------------------------------------------------------------------------- */
.network-option__card {
  position: relative; display: block;
  background: linear-gradient(130deg, #fff6e6, #ffe9cf 55%, #ffe2bd);
  border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px; color: var(--ink); overflow: hidden;
}
.network-option__card::after {
  content: ""; position: absolute; inset-inline-end: -34px; top: -34px; width: 110px; height: 110px;
  background: radial-gradient(circle, rgba(232, 93, 4, 0.16), transparent 70%);
  pointer-events: none;
}
.network-option__flag {
  position: absolute; top: 12px; inset-inline-end: 12px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--ink-soft); border: 1.5px solid var(--ink-faint); border-radius: 999px; padding: 2px 8px;
  background: rgba(255, 253, 247, 0.75);
}
.network-option__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.network-option__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff; border: 2px solid var(--line);
  font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 10px;
  box-shadow: 2px 2px 0 rgba(32, 26, 18, 0.18);
}
.network-option__badge svg { width: 12px; height: 12px; }
.network-option__title { font-size: 19px; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.network-option__name { font-family: var(--font-mono); font-size: 13px; color: var(--accent-deep); font-weight: 700; margin: 2px 0 8px; }
.network-option__desc { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 12px; }
.network-option__points { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; margin: 0 0 16px; padding: 0; list-style: none; }
.network-option__points li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; font-weight: 600; }
.network-option__points svg { width: 15px; height: 15px; color: var(--teal); flex-shrink: 0; margin-top: 4px; }
.network-option__cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.network-option__cta-row .btn { box-shadow: 4px 4px 0 rgba(188, 74, 0, 0.35); }
.ad-gift {
  font-size: 13px; font-weight: 700; color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 6px;
}
.ad-gift svg { width: 15px; height: 15px; }

.network-option__banner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px 26px; align-items: center; }
.network-option__banner .network-option__points { grid-template-columns: 1fr 1fr; margin-bottom: 0; }
.network-option__banner .network-option__side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* --------------------------------------------------------------------------
   流程说明（内核与客户端）
   -------------------------------------------------------------------------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.flow-step {
  position: relative; background: var(--card); border: 2px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px 20px;
  counter-increment: flow;
}
.flow-step::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute; top: -14px; inset-inline-start: 18px;
  font-family: var(--font-mono); font-weight: 800; font-size: 13px;
  background: var(--ink); color: var(--paper); border-radius: 8px; padding: 3px 9px;
  border: 2px solid var(--line); box-shadow: 2px 2px 0 rgba(32, 26, 18, 0.2);
}
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; inset-inline-end: -20px; width: 18px; height: 2px;
  background: repeating-linear-gradient(to right, var(--ink) 0 4px, transparent 4px 8px);
}
.flow-step h3 { margin: 6px 0 8px; font-size: 18px; }
.flow-step p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.flow-note {
  margin-top: 26px; background: var(--teal-soft); border: 2px solid var(--teal);
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: 15.5px;
}

/* --------------------------------------------------------------------------
   产品卡
   -------------------------------------------------------------------------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-3 > *, .plat-grid > *, .related-grid > *, .flow > * { min-width: 0; }
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; color: var(--ink);
  transition: transform .14s, box-shadow .14s;
}
.product-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.pc-reco { position: absolute; top: -13px; inset-inline-end: 16px; }
.pc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.pc-logo {
  width: 58px; height: 58px; object-fit: contain; flex-shrink: 0;
  background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 6px;
}
.pc-head h3 { margin: 0 0 3px; font-size: 19.5px; letter-spacing: -0.01em; }
.pc-head .tagline { margin: 0; font-size: 13px; color: var(--ink-soft); font-family: var(--font-mono); }
.product-card .desc { flex: 1; margin: 0 0 16px; font-size: 14.5px; color: var(--ink-soft); }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pc-go { font-weight: 800; color: var(--accent-deep); display: inline-flex; align-items: center; gap: 6px; }
.pc-go svg { width: 15px; height: 15px; transition: transform .14s; }
.product-card:hover .pc-go svg { transform: translateX(3px); }
[dir="rtl"] .product-card:hover .pc-go svg { transform: translateX(-3px); }

.more-android {
  margin-top: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 14.5px; color: var(--ink-soft);
}
.more-android a {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 13px 5px 6px;
}
[dir="rtl"] .more-android a { padding: 5px 6px 5px 13px; }
.more-android a:hover { background: var(--accent-wash); text-decoration: none; }
.more-android img { width: 24px; height: 24px; border-radius: 50%; object-fit: contain; background: var(--paper); border: 1px solid var(--line-soft); }

/* --------------------------------------------------------------------------
   平台磁贴
   -------------------------------------------------------------------------- */
.plat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plat-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; color: var(--ink);
  transition: transform .14s, box-shadow .14s;
}
.plat-tile:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.plat-ic {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--paper-deep); border: 2px solid var(--line); border-radius: 12px;
}
.plat-ic svg { width: 24px; height: 24px; }
.plat-tile strong { font-size: 18px; }
.plat-tile span { font-size: 13.5px; color: var(--accent-deep); font-weight: 700; }

/* --------------------------------------------------------------------------
   文章卡
   -------------------------------------------------------------------------- */
.post-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px; color: var(--ink);
  transition: transform .14s, box-shadow .14s;
}
.post-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.post-card h3 {
  margin: 0; font-size: 17.5px; line-height: 1.45; letter-spacing: -0.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card:hover h3 { color: var(--accent-deep); }
.post-card p {
  margin: 0; font-size: 14px; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta {
  display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); margin-top: auto;
}
.post-meta .chip { white-space: normal; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list { display: grid; gap: 14px; max-width: 780px; }
.faq-item {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 14px; padding: 16px 20px; font-weight: 700; font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 20px; font-weight: 700;
  color: var(--accent-deep); flex-shrink: 0; transition: transform .15s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 20px 18px; color: var(--ink-soft); font-size: 15px; }

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.site-foot { background: var(--ink); color: #e9e0d0; margin-top: 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 52px 0 36px; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.foot-brand img { width: 40px; height: 40px; background: #2e2618; border-radius: 10px; padding: 4px; border: 1.5px solid #4a3f2c; }
.foot-brand strong { color: #fff; font-size: 16.5px; display: block; }
.foot-brand small { font-family: var(--font-mono); font-size: 11px; color: #b3a68e; }
.foot-about { font-size: 13.5px; color: #b3a68e; margin: 0; max-width: 300px; }
.site-foot h4 {
  font-size: 13px; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin: 4px 0 14px;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-foot ul a { color: #e9e0d0; font-size: 14px; }
.site-foot ul a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid #3d3423; padding: 20px 0 30px; }
.foot-disclaimer { font-size: 12px; color: #9a8d75; margin: 0 0 12px; max-width: 860px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-rights { font-size: 13px; color: #b3a68e; margin: 0; font-family: var(--font-mono); }
.foot-langs { display: flex; gap: 14px; flex-wrap: wrap; }
.foot-langs a { color: #b3a68e; font-size: 13px; }
.foot-langs a:hover { color: #fff; }
.foot-langs a[data-active="1"] { color: var(--gold); font-weight: 700; }

/* --------------------------------------------------------------------------
   页面头（下载中心 / 博客）
   -------------------------------------------------------------------------- */
.page-hero { padding: 52px 0 36px; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 44px); margin: 0 0 12px; letter-spacing: -0.015em; }
.page-hero .lead { font-size: 16.5px; color: var(--ink-soft); max-width: 720px; margin: 0; }

/* 下载中心 OS 导航 */
.os-nav {
  position: sticky; top: var(--head-h); z-index: 60;
  background: rgba(246, 240, 227, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-block: 2px solid var(--line); padding: 10px 0;
}
.os-nav ul { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.os-chip {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  border: 2px solid var(--line); border-radius: 999px; padding: 7px 16px;
  background: var(--card); color: var(--ink); font-weight: 700; font-size: 14.5px;
  box-shadow: 3px 3px 0 rgba(32, 26, 18, 0.08);
}
.os-chip svg { width: 16px; height: 16px; }
.os-chip:hover { background: var(--accent-wash); text-decoration: none; }
.os-chip[data-active="1"] { background: var(--ink); color: var(--paper); }

.os-sec { padding: 46px 0 8px; }
.os-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
.os-icon {
  width: 58px; height: 58px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--card); border: 2px solid var(--line); border-radius: 16px;
  box-shadow: 4px 4px 0 rgba(32, 26, 18, 0.10);
}
.os-icon svg { width: 30px; height: 30px; }
.os-head h2 { margin: 0 0 4px; font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.01em; }
.os-head .blurb { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: 640px; }

.dl-stack { display: grid; gap: 22px; }
.dl-card {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.dl-head {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  border-bottom: 1.5px dashed var(--line-soft); flex-wrap: wrap;
}
.dl-logo {
  width: 54px; height: 54px; object-fit: contain; flex-shrink: 0;
  background: var(--paper); border: 2px solid var(--line); border-radius: 13px; padding: 5px;
}
.dl-title { flex: 1; min-width: 200px; }
.dl-title h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.01em; }
.dl-title .tagline { margin: 0 0 7px; font-size: 13px; color: var(--ink-soft); }
.dl-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.dl-head .gh-btn { flex-shrink: 0; }
.dl-desc { padding: 14px 24px 0; margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.dl-body { padding: 10px 24px 20px; display: grid; }
.build-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px dashed var(--line-soft); flex-wrap: wrap;
}
.build-row:last-child { border-bottom: 0; }
.build-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.build-arch { font-weight: 700; font-size: 15px; }
.kind-chip {
  font-family: var(--font-mono); font-size: 11.5px; border: 1.5px solid var(--line-soft);
  color: var(--ink-soft); border-radius: 7px; padding: 1.5px 8px; background: var(--paper);
}
.btn-dl { padding: 9px 18px; font-size: 14px; }
.btn-dl svg { width: 15px; height: 15px; }
.gh-only {
  margin: 0; padding: 16px 24px 20px; color: var(--ink-soft); font-size: 14.5px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.gh-only svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent-deep); }
.gh-only span { flex: 1; min-width: 0; }
.dl-foot {
  padding: 12px 24px; background: var(--paper); border-top: 1.5px dashed var(--line-soft);
  font-size: 14px; color: var(--ink-soft);
}
.mirror-note {
  margin: 26px 0 0; font-size: 13.5px; color: var(--ink-soft);
  background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  padding: 12px 18px;
}

/* --------------------------------------------------------------------------
   博客列表
   -------------------------------------------------------------------------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-chip {
  border: 2px solid var(--line); border-radius: 999px; padding: 7px 17px;
  background: var(--card); color: var(--ink); font-family: inherit; font-weight: 700; font-size: 14px;
  cursor: pointer; box-shadow: 3px 3px 0 rgba(32, 26, 18, 0.08);
  transition: transform .12s, background .12s;
}
.filter-chip:hover { transform: translate(-1px, -1px); background: var(--accent-wash); }
.filter-chip[data-active="1"] { background: var(--ink); color: var(--paper); }
.blog-grid { margin-bottom: 40px; }
.post-hidden { display: none !important; }

/* --------------------------------------------------------------------------
   文章页
   -------------------------------------------------------------------------- */
.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 48px;
  padding: 40px 0 60px; align-items: start;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-faint); margin-bottom: 18px; font-family: var(--font-mono);
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb .sep { color: var(--ink-faint); }
.art-title { font-size: clamp(28px, 4vw, 40px); line-height: 1.22; margin: 0 0 16px; letter-spacing: -0.015em; }
.art-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); margin-bottom: 26px;
}
.art-meta .chip { font-size: 11.5px; }
.art-ad { margin-bottom: 34px; }

.toc-side {
  position: sticky; top: calc(var(--head-h) + 24px);
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px;
}
.toc-side h4 {
  margin: 0 0 12px; font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep);
}
.toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc-list a {
  display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-soft);
  font-size: 13.5px; line-height: 1.45; border-inline-start: 3px solid transparent;
}
.toc-list a:hover { background: var(--paper-deep); text-decoration: none; color: var(--ink); }
.toc-list a[data-active="1"] {
  background: var(--accent-wash); color: var(--accent-deep); font-weight: 700;
  border-inline-start-color: var(--accent);
}
.toc-mobile { display: none; }

.prose { font-size: 16.5px; }
.prose > p:first-of-type { font-size: 17.5px; }
.prose h2 {
  font-size: 24px; margin: 44px 0 16px; letter-spacing: -0.01em; line-height: 1.35;
  padding-bottom: 10px; border-bottom: 2px solid var(--line);
  display: flex; align-items: baseline; gap: 10px;
}
.prose h2::before {
  content: ""; width: 10px; height: 10px; background: var(--accent);
  border-radius: 3px; flex-shrink: 0; transform: rotate(45deg);
}
.prose h3 { font-size: 19px; margin: 30px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-inline-start: 26px; }
.prose li { margin-bottom: 7px; }
.prose li::marker { color: var(--accent-deep); font-weight: 700; }
.prose a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-soft); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose code {
  font-family: var(--font-mono); font-size: .88em; background: var(--accent-wash);
  border: 1px solid var(--accent-soft); border-radius: 6px; padding: 1.5px 6px; color: var(--accent-deep);
  word-break: break-word;
}
.prose pre {
  position: relative; background: #241d12; color: #f3ead8; border: 2px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: 4px 4px 0 rgba(32, 26, 18, 0.14);
  padding: 18px 20px; overflow-x: auto; margin: 0 0 20px; direction: ltr; text-align: left;
}
.prose pre code {
  background: none; border: 0; padding: 0; color: inherit; font-size: 13.5px; line-height: 1.65;
}
.copy-btn {
  position: absolute; top: 8px; right: 8px;
  background: rgba(246, 240, 227, 0.12); color: #d8cdb8; border: 1px solid #4a3f2c;
  border-radius: 8px; font-family: var(--font-mono); font-size: 11.5px; padding: 4px 10px;
  cursor: pointer;
}
.copy-btn:hover { background: rgba(246, 240, 227, 0.22); color: #fff; }
.prose blockquote {
  margin: 0 0 18px; padding: 12px 20px; border-inline-start: 4px solid var(--accent);
  background: var(--accent-wash); border-radius: 0 10px 10px 0; color: var(--ink-soft); font-style: normal;
}
[dir="rtl"] .prose blockquote { border-radius: 10px 0 0 10px; }
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 2px solid var(--line); border-radius: var(--radius-sm); box-shadow: 4px 4px 0 rgba(32, 26, 18, 0.10); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; background: var(--card); margin: 0; }
.prose th {
  text-align: start; background: var(--ink); color: var(--paper); font-weight: 700;
  padding: 10px 14px; font-size: 13.5px; letter-spacing: .02em; white-space: nowrap;
}
.prose td { padding: 10px 14px; border-top: 1px solid var(--line-soft); vertical-align: top; }
.prose tr:nth-child(even) td { background: var(--paper); }
.prose .note, .prose .tip, .prose .warn {
  border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 20px; font-size: 15px;
  border: 2px solid; background: var(--card);
}
.prose .note { border-color: var(--teal); background: var(--teal-soft); }
.prose .tip { border-color: var(--gold); background: #fdf3d3; }
.prose .warn { border-color: var(--accent-deep); background: var(--accent-wash); }
.prose .note p, .prose .tip p, .prose .warn p { margin: 0; }
.prose .note p + p, .prose .tip p + p, .prose .warn p + p { margin-top: 8px; }

.art-cta {
  display: flex; gap: 14px; flex-wrap: wrap; margin: 40px 0 0;
  padding-top: 26px; border-top: 2px dashed var(--line-soft);
}
.related-sec { margin-top: 44px; }
.related-sec h2 { font-size: 21px; margin: 0 0 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-grid .post-card { padding: 16px 18px; }
.related-grid .post-card h3 { font-size: 15px; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.nf-wrap { text-align: center; padding: 90px 0 100px; }
.nf-wrap img { width: 130px; height: 130px; object-fit: contain; opacity: .9; filter: grayscale(30%); }
.nf-wrap h1 { font-size: clamp(30px, 5vw, 44px); margin: 18px 0 10px; }
.nf-wrap p { color: var(--ink-soft); margin: 0 0 26px; }
.nf-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   RTL 细节
   -------------------------------------------------------------------------- */
[dir="rtl"] .flow-step:not(:last-child)::after {
  inset-inline-end: -20px;
  background: repeating-linear-gradient(to left, var(--ink) 0 4px, transparent 4px 8px);
}
[dir="rtl"] .icon-dir { transform: scaleX(-1); }
/* 代码块内容始终 LTR，复制按钮固定右上角（RTL 下不覆盖命令起始位置） */
[dir="rtl"] .chip, [dir="rtl"] .kind-chip, [dir="rtl"] .post-meta, [dir="rtl"] .breadcrumb { direction: rtl; }
[dir="rtl"] code, [dir="rtl"] .build-arch bdi { unicode-bidi: plaintext; }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-side { flex-direction: row; align-items: stretch; }
  .hero-side > * { flex: 1; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc-side { display: none; }
  .toc-mobile {
    display: block; margin-bottom: 26px; background: var(--card);
    border: 2px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  }
  .toc-mobile summary {
    cursor: pointer; padding: 13px 18px; font-weight: 700; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
  }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent-deep); font-size: 18px; }
  .toc-mobile[open] summary::after { content: "−"; }
  .toc-mobile .toc-list { padding: 0 12px 12px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .burger { display: block; }
  .head-cta { display: none; }
  .cards-3, .related-grid { grid-template-columns: 1fr 1fr; }
  .plat-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow-step:not(:last-child)::after { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .network-option__banner { grid-template-columns: 1fr; }
  .network-option__banner .network-option__side { align-items: stretch; }
  .network-option__banner .network-option__side .btn { width: 100%; }
}

@media (max-width: 640px) {
  /* 头部：品牌可收缩换行 + 语言按钮用紧凑标签，保证窄屏不横向溢出 */
  .head-in { gap: 10px; }
  .brand { gap: 10px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-text strong { font-size: 15px; line-height: 1.15; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .head-actions { gap: 8px; }
  /* 广告角标改为常规流，避免与标题重叠 */
  .network-option__flag { position: static; display: inline-block; justify-self: start; width: fit-content; margin-bottom: 10px; }
  .network-option__head { flex-wrap: wrap; }
  .network-option__banner { gap: 4px 26px; }
  .sec { padding: 48px 0; }
  .hero { padding: 44px 0 52px; }
  .hero-side { flex-direction: column; }
  .cards-3, .related-grid { grid-template-columns: 1fr; }
  .plat-grid { grid-template-columns: 1fr 1fr; }
  .network-option__points { grid-template-columns: 1fr; }
  .dl-head { padding: 16px 18px; }
  .dl-body { padding: 8px 18px 16px; }
  .dl-desc { padding: 12px 18px 0; }
  .gh-only { padding: 14px 18px 18px; }
  .dl-foot { padding: 11px 18px; }
  .build-row { align-items: stretch; flex-direction: column; gap: 10px; }
  .btn-dl { width: 100%; }
  .dl-head .gh-btn { width: 100%; }
  .os-head { flex-direction: column; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; padding: 40px 0 28px; }
  .hero-badges { gap: 10px 14px; }
  .container { padding-inline: 18px; }
}

@media (max-width: 400px) {
  .plat-grid { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  .lang-btn { padding: 7px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Codex click-target fix: inner artwork/text must not intercept control clicks. */
a[href] > *, button > *, [role="button"] > *, summary > * { pointer-events: none; }
