/* ==========================================================================
   BinanceGuide — 设计系统
   参考主流交易平台（币安 / 欧易）的深色、数据密集型视觉语言。
   纯原生 CSS，无构建依赖。
   ========================================================================== */

:root {
  --bg: #0b0e11;
  --bg-soft: #12161c;
  --panel: #181a20;
  --panel-2: #1e2329;
  --panel-3: #262b33;
  --border: #2b3139;
  --border-soft: #21262e;

  --text: #eaecef;
  --text-2: #b7bdc6;
  --muted: #848e9c;
  --muted-2: #5e6673;

  --accent: #f0b90b;
  --accent-hi: #fcd535;
  --accent-dim: rgba(240, 185, 11, 0.12);
  --accent-line: rgba(240, 185, 11, 0.35);

  --up: #0ecb81;
  --down: #f6465d;
  --up-dim: rgba(14, 203, 129, 0.12);
  --down-dim: rgba(246, 70, 93, 0.12);

  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 16px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-s: 0 2px 10px rgba(0, 0, 0, 0.3);

  --maxw: 1240px;
  --gap: 24px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); text-decoration: underline; }

h1, h2, h3, h4 { color: #fff; line-height: 1.3; margin: 0 0 12px; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.5px; }
h2 { font-size: clamp(22px, 2.2vw, 28px); margin-top: 40px; }
h3 { font-size: 19px; margin-top: 28px; }
p { margin: 0 0 16px; }

ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 8px; }
li::marker { color: var(--accent); }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-s);
  padding: 2px 6px;
  color: var(--accent-hi);
  word-break: break-all;
}

pre {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}
pre code { background: none; border: 0; padding: 0; color: var(--text-2); }

hr { border: 0; border-top: 1px solid var(--border-soft); margin: 32px 0; }

::selection { background: var(--accent); color: #0b0e11; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 顶部行情条 ---------- */
.ticker {
  background: #07090c;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12.5px;
  overflow: hidden;
}
.ticker-inner {
  display: flex; align-items: center; gap: 22px;
  max-width: var(--maxw); margin: 0 auto; padding: 7px 20px;
  white-space: nowrap; overflow-x: auto;
  scrollbar-width: none;
}
.ticker-inner::-webkit-scrollbar { display: none; }
.tk { display: inline-flex; align-items: baseline; gap: 7px; color: var(--muted); }
.tk b { color: var(--text); font-weight: 600; }
.tk .p { font-variant-numeric: tabular-nums; color: var(--text-2); }
.tk .c { font-variant-numeric: tabular-nums; font-weight: 600; }
.tk .c.up { color: var(--up); }
.tk .c.down { color: var(--down); }
.ticker .spacer { flex: 1; }
.ticker .tnote { color: var(--muted-2); flex: none; white-space: nowrap; }
@media (max-width: 1500px) { .ticker .tnote { display: none; } }
.ticker a { color: var(--muted); }
.ticker a:hover { color: var(--accent); text-decoration: none; }

/* ---------- 站点头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 17, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  max-width: var(--maxw); margin: 0 auto; padding: 10px 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -0.3px; }
.brand-name span { color: var(--accent); }
.brand-tag { color: var(--muted-2); font-size: 11px; display: block; line-height: 1.1; letter-spacing: 0.4px; }

.main-nav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 1px; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; margin: 0; }
.main-nav > ul > li::marker { content: none; }
.main-nav a.nav-link {
  display: block; color: var(--text-2); font-size: 13.5px; font-weight: 500;
  padding: 9px 8px; border-radius: var(--radius-s); white-space: nowrap;
}
.main-nav a.nav-link:hover,
.main-nav a.nav-link[aria-current="page"] { background: var(--panel-2); color: #fff; text-decoration: none; }
.main-nav li.has-kids > a.nav-link::after {
  content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: 0.7;
}
.nav-kids {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.main-nav li.has-kids:hover .nav-kids,
.main-nav li.has-kids:focus-within .nav-kids { opacity: 1; visibility: visible; transform: none; }
.nav-kids li { margin: 0; }
.nav-kids a {
  display: block; color: var(--text-2); font-size: 14px; padding: 8px 10px;
  border-radius: var(--radius-s);
}
.nav-kids a:hover { background: var(--panel-2); color: #fff; text-decoration: none; }

.header-tools { display: flex; align-items: center; gap: 9px; flex: none; }
.header-cta { white-space: nowrap; }

.search-box { position: relative; }
.search-box input {
  width: 186px; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 999px; color: var(--text); font-size: 13.5px;
  padding: 8px 14px 8px 34px; font-family: inherit; outline: none;
  transition: border-color .15s, width .15s;
}
.search-box input:focus { border-color: var(--accent); width: 215px; }
.search-box .ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--muted); pointer-events: none;
}
.search-results {
  position: absolute; top: calc(100% + 8px); right: 0; width: 380px; max-width: 82vw;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px; max-height: 60vh; overflow-y: auto;
  display: none; z-index: 60;
}
.search-results.on { display: block; }
.search-results a {
  display: block; padding: 9px 11px; border-radius: var(--radius-s); color: var(--text-2);
}
.search-results a:hover, .search-results a.sel { background: var(--panel-2); text-decoration: none; color: #fff; }
.search-results .r-t { font-size: 14px; font-weight: 600; color: var(--text); }
.search-results .r-d { font-size: 12px; color: var(--muted); margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-results .empty { padding: 14px 12px; color: var(--muted); font-size: 13.5px; }

.lang-switch { position: relative; }
.lang-switch > button {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text-2);
  border-radius: 999px; padding: 7px 13px; font-size: 13px; cursor: pointer;
  font-family: inherit; display: inline-flex; align-items: center; gap: 6px;
}
.lang-switch > button:hover { color: #fff; border-color: var(--muted-2); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; width: 172px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px; display: none; z-index: 60;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu a { display: block; padding: 8px 10px; border-radius: var(--radius-s); color: var(--text-2); font-size: 14px; }
.lang-menu a:hover { background: var(--panel-2); color: #fff; text-decoration: none; }
.lang-menu a[aria-current="true"] { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-s);
  font-family: inherit; font-size: 14.5px; font-weight: 600; line-height: 1;
  padding: 11px 18px; cursor: pointer; transition: all .15s ease;
}
.btn-primary { background: var(--accent); color: #0b0e11; }
.btn-primary:hover { background: var(--accent-hi); color: #0b0e11; text-decoration: none; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-sm { padding: 8px 13px; font-size: 13.5px; }

.nav-toggle {
  display: none; background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius-s); padding: 8px 10px; cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; display: block; }

/* ---------- 结构 ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; padding: 34px 0 60px; }
.layout--full { grid-template-columns: minmax(0, 1fr); }

.breadcrumbs { font-size: 13px; color: var(--muted); padding: 14px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 6px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--muted-2); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); text-decoration: none; }

.notice-bar {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--accent-dim); border: 1px solid var(--accent-line);
  border-radius: var(--radius); padding: 12px 15px; margin: 18px 0 0;
  font-size: 13.5px; color: var(--text-2);
}
.notice-bar strong { color: var(--accent-hi); }
.notice-bar.info { background: rgba(30, 120, 200, 0.08); border-color: rgba(80, 160, 240, .3); }
.notice-bar.warn { background: var(--down-dim); border-color: rgba(246, 70, 93, .35); }
.notice-bar svg { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--accent); }

.page-head { padding: 26px 0 6px; }
.page-head .lang-chip {
  display: inline-block; font-size: 11.5px; letter-spacing: .6px; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent-line); border-radius: 999px;
  padding: 3px 10px; margin-bottom: 14px;
}
.page-head h1 { margin-bottom: 14px; }
.page-head .lede { font-size: 17.5px; color: var(--text-2); max-width: 36em; }
.page-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 16px; }

.hero {
  background:
    radial-gradient(1200px 340px at 12% -10%, rgba(240, 185, 11, .13), transparent 62%),
    radial-gradient(900px 300px at 92% 0%, rgba(14, 203, 129, .07), transparent 60%);
  border-bottom: 1px solid var(--border-soft);
  padding: 54px 0 46px;
}
.hero h1 { max-width: 19em; }
.hero .lede { font-size: 19px; color: var(--text-2); max-width: 34em; margin-top: 6px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border-soft); }
.hero-stats div { min-width: 130px; }
.hero-stats b { display: block; font-size: 20px; color: #fff; }
.hero-stats span { font-size: 13px; color: var(--muted); }

.section { margin: 46px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head .more { font-size: 14px; white-space: nowrap; }

/* 卡片网格 */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 20px; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--muted-2); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: 16.5px; }
.card h3 a { color: #fff; }
.card h3 a:hover { color: var(--accent); text-decoration: none; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }
.card .ico-badge {
  width: 36px; height: 36px; border-radius: var(--radius-s); background: var(--accent-dim);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.card .ico-badge svg { width: 19px; height: 19px; color: var(--accent); }
.card--link:hover h3 a { color: var(--accent); }

/* 要点速览 / Key facts */
.keyfacts {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 20px 22px; margin: 28px 0;
}
.keyfacts h2 { margin: 0 0 12px; font-size: 15px; letter-spacing: .8px; text-transform: uppercase; color: var(--accent); }
.keyfacts ul { list-style: none; padding: 0; margin: 0; }
.keyfacts li { position: relative; padding-left: 24px; margin-bottom: 9px; color: var(--text-2); font-size: 15px; }
.keyfacts li::before {
  content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
}

/* 正文 */
.prose { max-width: 38em; }
.prose h2 { scroll-margin-top: 110px; }
.prose p, .prose li { max-width: 44em; }
.prose h2 .anchor { color: var(--muted-2); font-size: .7em; margin-left: 8px; opacity: 0; transition: opacity .15s; }
.prose h2:hover .anchor { opacity: 1; }
.prose h3 { color: var(--text); }
.prose-wide { max-width: none; }

.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 480px; }
caption { caption-side: top; text-align: left; padding: 12px 16px 0; color: var(--muted); font-size: 13px; }
thead th {
  background: var(--panel-2); color: var(--text-2); text-align: left; font-weight: 600;
  padding: 11px 16px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody td { padding: 11px 16px; border-bottom: 1px solid var(--border-soft); color: var(--text-2); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, .015); }
td.num, th.num { font-variant-numeric: tabular-nums; text-align: right; }
.up { color: var(--up); }
.down { color: var(--down); }

.steps { list-style: none; padding: 0; counter-reset: step; margin: 22px 0; }
.steps li { position: relative; padding: 0 0 22px 54px; counter-increment: step; margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 17px; top: 36px; bottom: 4px;
  width: 1px; background: var(--border);
}
.steps li strong { display: block; color: #fff; margin-bottom: 3px; }
.steps li span { color: var(--muted); font-size: 14.5px; }

/* FAQ */
.faq { margin: 22px 0; }
.faq details {
  background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: var(--radius); margin-bottom: 10px; overflow: hidden;
}
.faq details[open] { border-color: var(--border); }
.faq summary {
  cursor: pointer; padding: 15px 46px 15px 18px; font-weight: 600; color: #fff;
  font-size: 15.5px; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); border-color: var(--accent); }
.faq .faq-a { padding: 0 18px 18px; color: var(--text-2); font-size: 15px; border-top: 1px solid var(--border-soft); padding-top: 14px; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* 侧栏 */
.sidebar { position: relative; }
.side-sticky { position: sticky; top: 96px; }
.side-card { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.side-card h2, .side-card h3 { font-size: 13px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; font-size: 14px; }
.toc li { counter-increment: toc; margin: 0; }
.toc a { display: block; padding: 6px 0 6px 26px; color: var(--muted); position: relative; }
.toc a::before {
  content: counter(toc, decimal-leading-zero); position: absolute; left: 0;
  color: var(--muted-2); font-size: 11.5px; font-variant-numeric: tabular-nums;
}
.toc a:hover, .toc a.active { color: var(--accent); text-decoration: none; }
.related-list { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.related-list li { margin: 0 0 2px; }
.related-list a { display: block; padding: 7px 0; color: var(--text-2); border-bottom: 1px dashed var(--border-soft); }
.related-list li:last-child a { border-bottom: 0; }
.related-list a:hover { color: var(--accent); text-decoration: none; }

.cta-box {
  background: linear-gradient(150deg, rgba(240, 185, 11, .16), rgba(240, 185, 11, .03));
  border: 1px solid var(--accent-line);
}
.cta-box .btn { width: 100%; }
.cta-box p { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* 域名核验器 */
.checker { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.checker form { display: flex; gap: 10px; flex-wrap: wrap; }
.checker input {
  flex: 1; min-width: 220px; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: var(--radius-s); color: var(--text); padding: 11px 14px; font-family: inherit; font-size: 14.5px;
}
.checker input:focus { outline: none; border-color: var(--accent); }
.checker-result { margin-top: 14px; font-size: 14.5px; display: none; padding: 13px 15px; border-radius: var(--radius-s); }
.checker-result.on { display: block; }
.checker-result.ok { background: var(--up-dim); border: 1px solid rgba(14, 203, 129, .35); color: var(--up); }
.checker-result.bad { background: var(--down-dim); border: 1px solid rgba(246, 70, 93, .35); color: var(--down); }
.checker-result small { display: block; color: var(--text-2); margin-top: 6px; font-size: 13px; }

/* 换算器 */
.converter { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.conv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.conv-field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; letter-spacing: .4px; }
.conv-field input, .conv-field select {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-s); padding: 11px 13px; font-family: inherit; font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.conv-field input:focus, .conv-field select:focus { outline: none; border-color: var(--accent); }
.conv-out {
  margin-top: 16px; background: var(--bg-soft); border: 1px dashed var(--border);
  border-radius: var(--radius-s); padding: 15px 17px; font-variant-numeric: tabular-nums;
}
.conv-out b { color: var(--accent-hi); font-size: 22px; }

/* 行情表 */
.market-table { table-layout: fixed; }
.market-table td .sym { color: #fff; font-weight: 600; }
.market-table td .nm { color: var(--muted); font-size: 12.5px; display: block; }
.market-table .skel { color: var(--muted-2); }
.market-table .c-link { text-align: right; font-weight: 600; }

/* 页脚 */
.site-footer { background: #07090c; border-top: 1px solid var(--border-soft); margin-top: 60px; padding: 46px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; max-width: 30em; }
.footer-col h3 { font-size: 13px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 4px; }
.footer-col a { color: var(--text-2); font-size: 14px; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-langs { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.footer-langs a { font-size: 13px; color: var(--muted); }
.disclaimer {
  margin-top: 34px; padding: 16px 18px; background: var(--panel);
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  color: var(--muted); font-size: 12.5px; line-height: 1.75;
}
.disclaimer strong { color: var(--text-2); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-soft);
  color: var(--muted-2); font-size: 12.5px;
}

/* 工具类 */
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.pill {
  display: inline-block; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--text-2); margin: 0 8px 8px 0;
}
.pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* 中等宽度先收起品牌副标题，避免挤垮导航 */
@media (max-width: 1400px) {
  .brand-tag { display: none; }
}
@media (max-width: 1180px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--panel); border-bottom: 1px solid var(--border);
    padding: 12px 20px 22px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-kids {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: transparent; padding: 0 0 8px 12px; min-width: 0;
  }
  .nav-toggle { display: block; }
  .header-tools { margin-left: auto; }
  .search-box input { width: 150px; }
  .search-box input:focus { width: 190px; }
  .search-results { right: -60px; }
}
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .side-sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .conv-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* 390px 宽时「品牌文字 + 搜索框 + 语言切换」放不进一行：
     只留菱形 logo（brand-mark 本身是完整可识别的图标），并把搜索框收窄，
     避免 header 撑出视口造成整页横向滚动。 */
  .brand-text { display: none; }
  .search-box input { width: 132px; padding-left: 30px; }
  .search-box input:focus { width: 156px; }
  .header-inner { gap: 10px; }
  /* 390px 下放不下「搜索 + 语言 + CTA」三者：优先保留语言切换，
     官方入口在导航与正文里都能到达，CTA 在移动端隐藏不损失转化路径。 */
  .header-tools .btn-primary { display: none; }
  .hero { padding: 36px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .ticker, .site-header, .sidebar, .site-footer, .notice-bar { display: none; }
  body { background: #fff; color: #000; }
}

/* ----------------------------------------------------------------------
   站内下载中心（转化落点）+ 纯文本域名样式
   ---------------------------------------------------------------------- */
code.plain-host {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: .88em; padding: 1px 6px; border-radius: 5px;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--muted); white-space: nowrap;
}

.dl-center {
  background: linear-gradient(180deg, rgba(240,185,11,.07), transparent 60%), var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius, 14px);
  padding: 26px 26px 22px;
}
.dl-steps { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: dl; }
.dl-steps > li { position: relative; padding: 0 0 22px 0; }
.dl-steps > li + li { border-top: 1px solid var(--border); padding-top: 20px; }
.dl-steps > li > b { display: block; font-size: 15px; margin-bottom: 12px; color: var(--text); }
.dl-steps p { margin: 8px 0 0; }

.dl-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.dl-tab {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-family: inherit;
  cursor: pointer; transition: all .15s;
}
.dl-tab:hover { color: var(--text); border-color: var(--muted-2, #5e6673); }
.dl-tab.on { background: var(--accent, #f0b90b); border-color: var(--accent, #f0b90b); color: #181a20; font-weight: 700; }

.dl-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.dl-start { min-width: 200px; }
.dl-store-row { margin-top: 10px !important; }
.dl-store { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.dl-store:hover { color: var(--text); }
.dl-copy-done { color: var(--up, #0ecb81); font-weight: 600; }

.dl-typo {
  margin-top: 6px; padding: 16px 18px; border-radius: 12px;
  background: var(--panel-2); border: 1px dashed var(--border);
}
.dl-typo h3 { font-size: 14.5px; margin: 0 0 6px; color: var(--accent, #f0b90b); }
.dl-typo p { margin: 0; font-size: 13.5px; color: var(--muted); }
.dl-typo a { color: var(--text); }

.dl-disclosure {
  margin: 16px 0 0 !important; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted-2, #848e9c); line-height: 1.65;
}

@media (max-width: 560px) {
  .dl-center { padding: 20px 16px 18px; }
  .dl-start { width: 100%; min-width: 0; }
  .dl-actions .btn { width: 100%; }
}
