:root{
  --bg:#f4f7fc;
  --panel:#ffffff;
  --soft:#f6f9fe;
  --text:#14203a;
  --muted:#5d6b85;
  --line:#e3e9f4;
  --brand:#2563eb;
  --brand-dark:#1d4ed8;
  --teal:#0f766e;
  --amber:#b45309;
  --green:#047857;
  --red:#dc2626;
  /* 极光品牌渐变：青 -> 蓝 -> 紫 */
  --aurora-1:#2dd4bf;
  --aurora-2:#3b82f6;
  --aurora-3:#8b5cf6;
  --grad:linear-gradient(135deg,#14b8a6 0%,#3b82f6 52%,#6366f1 100%);
  --grad-soft:linear-gradient(135deg,rgba(20,184,166,.10),rgba(99,102,241,.10));
  --shadow-sm:0 1px 2px rgba(16,24,40,.05);
  --shadow:0 14px 34px rgba(20,31,54,.10);
  --shadow-lg:0 22px 48px rgba(20,31,54,.16);
  /* apple-id 页账号卡片使用的别名 */
  --border:var(--line);
  --bg-card:var(--panel);
  --text-muted:var(--muted);
  --text-secondary:var(--muted);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(1100px 380px at 85% -120px,rgba(45,212,191,.10),transparent 60%),
    radial-gradient(900px 340px at 8% -140px,rgba(99,102,241,.10),transparent 60%),
    linear-gradient(180deg,#f7faff 0,var(--bg) 300px);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,Arial,sans-serif;
  line-height:1.72;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--brand)}
button,input,select,textarea{font:inherit}
img{max-width:100%;display:block}

/* 无障碍：键盘焦点清晰可见 */
a:focus-visible,button:focus-visible,input:focus-visible,.tag:focus-visible,.btn:focus-visible{
  outline:3px solid rgba(59,130,246,.35);
  outline-offset:2px;
}

/* ---------------------------------------------------------------- 顶部导航 */
.top{
  background:linear-gradient(90deg,#0b1226 0%,#101a33 55%,#0d1730 100%);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset;
  position:sticky;
  top:0;
  z-index:20;
}
.top-inner{
  max-width:1120px;
  margin:0 auto;
  padding:14px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.brand{
  font-weight:800;
  font-size:20px;
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  text-decoration:none;
  white-space:nowrap;
  letter-spacing:.2px;
}
.brand:before{
  content:"";
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--grad);
  box-shadow:0 0 0 5px rgba(59,130,246,.18),0 0 14px rgba(45,212,191,.55);
}
.nav{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.nav a{
  color:#c6d4ef;
  text-decoration:none;
  font-size:14px;
  padding:7px 12px;
  border-radius:999px;
  transition:background .15s ease,color .15s ease;
}
.nav a:hover{
  background:rgba(255,255,255,.10);
  color:#fff;
}
.nav a.active{
  background:rgba(255,255,255,.14);
  color:#fff;
  font-weight:700;
}

.wrap{
  max-width:1120px;
  margin:0 auto;
  padding:30px 22px 58px;
}

/* ---------------------------------------------------------------- Hero */
.hero{
  padding:34px 0 24px;
}
.home-hero{
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(300px,360px);
  gap:30px;
  align-items:stretch;
  padding:46px 0 28px;
}
.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.hero h1{
  margin:0 0 10px;
  font-size:38px;
  line-height:1.18;
  letter-spacing:0;
}
.home-hero h1{
  font-size:44px;
  font-weight:800;
  letter-spacing:-.5px;
  background:var(--grad);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:var(--text);
}
.hero p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  max-width:760px;
}
.home-hero .hero-copy p{
  max-width:720px;
}
.home-hero .hero-panel{
  display:grid;
  gap:10px;
  align-content:start;
}
.hero-panel a{
  display:grid;
  grid-template-columns:48px 1fr;
  gap:14px;
  align-items:center;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:13px 16px;
  color:inherit;
  text-decoration:none;
  box-shadow:var(--shadow-sm);
  transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease;
}
.hero-panel a:hover{
  border-color:#9ec5ff;
  box-shadow:0 12px 26px rgba(15,23,42,.10);
  transform:translateY(-2px);
}
.hp-icon{
  width:48px;
  height:48px;
  border-radius:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  background:var(--grad);
  box-shadow:0 8px 16px rgba(59,130,246,.25);
}
.hp-icon.ic-android{background:linear-gradient(135deg,#10b981,#059669);box-shadow:0 8px 16px rgba(16,185,129,.28)}
.hp-icon.ic-apple{background:linear-gradient(135deg,#475569,#1e293b);box-shadow:0 8px 16px rgba(51,65,85,.28)}
.hp-icon.ic-windows{background:linear-gradient(135deg,#3b82f6,#2563eb);box-shadow:0 8px 16px rgba(59,130,246,.28)}
.hp-text{display:grid;gap:2px;min-width:0}
.hero-panel strong{
  font-size:15px;
  font-weight:800;
  color:#0f172a;
}
.hero-panel span{
  font-size:13px;
  color:var(--muted);
  line-height:1.45;
}

/* ---------------------------------------------------------------- 搜索 */
.search-panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px;
  margin:8px 0 24px;
  box-shadow:var(--shadow-sm);
}
.search-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
}
.search-field{position:relative}
.search-input{
  width:100%;
  height:46px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:0 42px;
  font-size:15px;
  background:#fbfdff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") no-repeat 15px center;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.search-input:focus{
  outline:none;
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(59,130,246,.12);
  background-color:#fff;
}
.search-clear{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:26px;
  height:26px;
  border:0;
  border-radius:50%;
  background:#e8edf6;
  color:#64748b;
  font-size:15px;
  line-height:1;
  cursor:pointer;
  display:none;
  align-items:center;
  justify-content:center;
  padding:0;
}
.search-clear:hover{background:#dbe3f0;color:#334155}
.search-clear.show{display:flex}
.quick-tags{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}
.tag{
  border:1px solid var(--line);
  background:#f8fafc;
  color:#334155;
  border-radius:999px;
  padding:7px 13px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  transition:all .15s ease;
}
.tag:hover{
  background:#e8f1ff;
  border-color:#93c5fd;
  color:#1d4ed8;
}
.tag.active{
  background:var(--grad);
  border-color:transparent;
  color:#fff;
  box-shadow:0 6px 14px rgba(59,130,246,.28);
}
.search-meta{
  min-height:20px;
  margin-top:10px;
  color:var(--muted);
  font-size:13px;
}

/* ---------------------------------------------------------------- 下载卡片 */
.download-band{
  margin:24px 0 28px;
}
.download-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.download-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  min-height:184px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:20px;
  box-shadow:var(--shadow-sm);
  transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease;
}
.download-card:hover{
  border-color:#9ec5ff;
  box-shadow:var(--shadow);
  transform:translateY(-2px);
}
.download-card.android{
  border-top:4px solid #10b981;
}
.download-card.windows{
  border-top:4px solid var(--brand);
}
.download-platform{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:26px;
  padding:3px 11px;
  border-radius:999px;
  background:#eef4ff;
  color:#1d4ed8;
  font-size:12px;
  font-weight:800;
}
.download-card.android .download-platform{
  background:#ecfdf5;
  color:#047857;
}
.download-platform svg{flex:0 0 auto}
.download-card h3{
  margin:10px 0 6px;
  font-size:20px;
  line-height:1.3;
}
.download-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.58;
}
.download-actions{
  display:grid;
  gap:10px;
  justify-items:start;
  min-width:178px;
}
.text-link{
  color:var(--brand);
  font-size:13px;
  font-weight:800;
  text-decoration:none;
}
.text-link:hover{
  text-decoration:underline;
}

/* ---------------------------------------------------------------- 推荐路径 */
.guide-band,
.guide-group{
  margin-top:28px;
}
.guide-band{
  padding:0;
}
.intro-section{
  margin-top:0;
}
.category-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin:0 0 12px;
}
.category-title.compact{
  margin-bottom:14px;
}
.category-title h2{
  margin:0;
  font-size:23px;
  line-height:1.2;
  display:flex;
  align-items:center;
}
.category-title h2:before{
  content:"";
  display:inline-block;
  flex:0 0 auto;
  width:7px;
  height:20px;
  background:var(--grad);
  border-radius:999px;
  margin-right:10px;
}
.category-title span{
  font-size:13px;
  color:var(--muted);
}

.path-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:14px;
}
.path{
  display:block;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px;
  color:inherit;
  text-decoration:none;
  box-shadow:var(--shadow-sm);
  transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease;
}
.path:hover{
  border-color:#9ec5ff;
  box-shadow:var(--shadow);
  transform:translateY(-2px);
}
.path-index{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:28px;
  border-radius:999px;
  background:var(--grad-soft);
  color:var(--brand-dark);
  font-size:12px;
  font-weight:800;
  margin-bottom:10px;
  border:1px solid rgba(59,130,246,.15);
}
.path strong{
  display:block;
  margin:0 0 8px;
  font-size:17px;
  line-height:1.35;
}
.path ol{
  margin:8px 0 0;
  padding-left:20px;
  color:#475467;
}

/* ---------------------------------------------------------------- 教程卡片 */
.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
@media(max-width:980px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:178px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px 18px 18px 22px;
  text-decoration:none;
  color:inherit;
  box-shadow:var(--shadow-sm);
  transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease;
  --accent:var(--aurora-2);
}
.card:before{
  content:"";
  position:absolute;
  left:0;
  top:16px;
  bottom:16px;
  width:4px;
  border-radius:0 6px 6px 0;
  background:var(--grad);
  opacity:.9;
}
.card:nth-child(3n+2){--accent:var(--teal)}
.card:nth-child(3n){--accent:var(--amber)}
.card:hover{
  border-color:#9ec5ff;
  box-shadow:var(--shadow-lg);
  transform:translateY(-3px);
}
.card-kind{
  display:inline-flex;
  align-self:flex-start;
  padding:4px 10px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:12px;
  font-weight:800;
  margin-bottom:10px;
}
.card:nth-child(3n+2) .card-kind{
  background:#ecfdf5;
  color:#047857;
}
.card:nth-child(3n) .card-kind{
  background:#fff7ed;
  color:#b45309;
}
.card h2,.card h3{
  margin:0 0 7px;
  font-size:18px;
  line-height:1.35;
}
.card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.58;
}
.card-link{
  margin-top:auto;
  padding-top:14px;
  color:var(--accent);
  font-weight:800;
  font-size:13px;
  letter-spacing:0;
}
.card-link:after{content:" →";font-weight:700}
.help-card[hidden],
.guide-group[hidden]{
  display:none;
}

/* ---------------------------------------------------------------- 正文区块 */
.section{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:24px;
  margin:18px 0;
  box-shadow:var(--shadow-sm);
}
.section h2{
  margin:0 0 14px;
  font-size:24px;
  line-height:1.28;
}
.section h2:before{
  content:"";
  display:inline-block;
  width:8px;
  height:20px;
  background:var(--grad);
  border-radius:999px;
  margin-right:10px;
  vertical-align:-3px;
}
.section h3{
  margin:18px 0 8px;
  font-size:18px;
}
.section p{margin:8px 0}
.section ul,.section ol{
  padding-left:22px;
  margin:10px 0;
}
.note{
  border-left:4px solid var(--brand);
  background:#f0f6ff;
  padding:12px 14px;
  margin:14px 0;
  border-radius:4px 10px 10px 4px;
}
.contact-tip{
  border-left-color:var(--teal);
  background:#ecfdf5;
  color:#134e4a;
}
.contact-tip strong{
  color:#0f766e;
}
.warn{
  border-left-color:var(--amber);
  background:#fff8ef;
}
.ok{
  border-left-color:var(--green);
  background:#ecfdf5;
}
.steps{counter-reset:step}
.step{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:13px;
  margin:15px 0;
}
.step:before{
  counter-increment:step;
  content:counter(step);
  width:34px;
  height:34px;
  border-radius:50%;
  background:var(--grad);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  box-shadow:0 8px 16px rgba(59,130,246,.28);
}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin:12px 0;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
}
.table th,.table td{
  border-bottom:1px solid var(--line);
  padding:11px 13px;
  text-align:left;
  vertical-align:top;
}
.table tr:last-child td{border-bottom:0}
.table th{
  background:#f2f6fc;
  font-weight:700;
}
.breadcrumbs{
  font-size:13px;
  color:var(--muted);
  margin:0 0 14px;
}
.breadcrumbs a{
  color:var(--brand);
  text-decoration:none;
}
.breadcrumbs a:hover{text-decoration:underline}
.page-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:18px 0;
}

/* ---------------------------------------------------------------- 按钮 */
.btn{
  display:inline-block;
  background:var(--grad);
  color:#fff;
  text-decoration:none;
  padding:10px 18px;
  border-radius:9px;
  margin:0;
  font-weight:700;
  border:0;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(59,130,246,.25);
  transition:transform .15s ease,box-shadow .15s ease,filter .15s ease,background .15s ease;
}
.btn:hover{
  filter:brightness(1.06);
  box-shadow:0 10px 22px rgba(59,130,246,.34);
  transform:translateY(-1px);
}
.btn.secondary{
  background:#fff;
  color:var(--brand);
  border:1px solid #c7d7f5;
  box-shadow:var(--shadow-sm);
}
.btn.secondary:hover{
  background:#f2f7ff;
  border-color:#9ec5ff;
  filter:none;
  box-shadow:0 6px 14px rgba(59,130,246,.12);
}
.button-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin:14px 0;
}
.hash-value{
  display:block;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#f8fafc;
  color:#334155;
  font-family:Consolas,Monaco,monospace;
  font-size:12px;
  line-height:1.55;
  overflow-wrap:anywhere;
}
.fact-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:14px 0;
}
.fact-list div{
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--soft);
  padding:12px 14px;
}
.fact-list strong,.fact-list span{display:block}
.fact-list span{color:var(--muted);font-size:13px;margin-top:2px}
.footer{
  color:var(--muted);
  font-size:13px;
  margin-top:32px;
  border-top:1px solid var(--line);
  padding-top:18px;
}

/* ---------------------------------------------------------------- 示意图 */
.visual{
  display:grid;
  grid-template-columns:minmax(220px,340px) 1fr;
  gap:22px;
  align-items:start;
  margin:22px 0;
}
.mock{
  background:#111827;
  border-radius:18px;
  padding:14px;
  box-shadow:0 18px 36px rgba(15,23,42,.18);
}
.phone{
  max-width:290px;
  margin:auto;
  background:#0b1220;
  border-radius:28px;
  padding:14px;
  border:6px solid #1f2937;
}
.screen{
  background:#f8fafc;
  border-radius:20px;
  min-height:420px;
  padding:14px;
  color:#111827;
}
.desktop{
  background:#0f172a;
  border-radius:12px;
  padding:10px;
}
.desktop .screen{
  border-radius:6px;
  min-height:300px;
}
.bar{
  height:10px;
  background:#dbe3ef;
  border-radius:999px;
  margin:8px 0;
}
.bar.short{width:58%}
.bar.mid{width:76%}
.pill{
  display:inline-block;
  background:#e0edff;
  color:#1d4ed8;
  border-radius:999px;
  padding:6px 10px;
  font-size:13px;
  margin:4px;
}
.primary-ui{
  background:var(--grad);
  color:#fff;
  border-radius:8px;
  padding:10px 12px;
  text-align:center;
  margin:10px 0;
  font-weight:800;
}
.danger-ui{
  background:#fff7ed;
  color:#b45309;
  border:1px solid #fed7aa;
  border-radius:8px;
  padding:10px;
  margin:10px 0;
}
.list-ui{
  border:1px solid #d9dee8;
  border-radius:10px;
  background:#fff;
  margin:10px 0;
  overflow:hidden;
}
.list-ui div{
  padding:10px 12px;
  border-bottom:1px solid #eef2f7;
}
.list-ui div:last-child{border-bottom:0}
.node{
  display:flex;
  justify-content:space-between;
  gap:8px;
}
.node b{color:#111827}
.switch{
  width:54px;
  height:28px;
  background:#22c55e;
  border-radius:999px;
  position:relative;
}
.switch:after{
  content:"";
  position:absolute;
  right:4px;
  top:4px;
  width:20px;
  height:20px;
  background:#fff;
  border-radius:50%;
}
.callout{
  border:2px solid var(--brand);
  background:#eff6ff;
  border-radius:10px;
  padding:10px 12px;
  margin:10px 0;
  font-weight:800;
  color:#1d4ed8;
}
.caption{
  font-size:13px;
  color:var(--muted);
  text-align:center;
  margin-top:9px;
}
.toc{
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:14px 16px;
  margin:14px 0;
}
.toc a{
  display:inline-block;
  margin:4px 10px 4px 0;
  color:var(--brand);
  font-weight:700;
  text-decoration:none;
}
.toc a:hover{text-decoration:underline}
.next-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
}
.mini-card{
  display:block;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:14px 16px;
  text-decoration:none;
  color:inherit;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.mini-card:hover{
  border-color:#9ec5ff;
  box-shadow:0 10px 22px rgba(15,23,42,.10);
  transform:translateY(-2px);
}
.mini-card strong{
  display:block;
  margin-bottom:4px;
}
.mini-card span{
  font-size:13px;
  color:var(--muted);
}

/* ---------------------------------------------------------------- 空状态 / 回到顶部 */
.empty-state{
  display:none;
  border:1px dashed #cdd6e6;
  background:#f8fafc;
  border-radius:12px;
  padding:26px;
  text-align:center;
  color:var(--muted);
  font-size:14px;
}
.to-top{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:60;
  width:46px;
  height:46px;
  border-radius:50%;
  border:0;
  background:var(--grad);
  color:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 12px 26px rgba(37,99,235,.38);
  opacity:0;
  pointer-events:none;
  transform:translateY(10px);
  transition:opacity .25s ease,transform .25s ease;
}
.to-top.show{
  opacity:1;
  pointer-events:auto;
  transform:none;
}
.to-top:hover{filter:brightness(1.08)}

/* ---------------------------------------------------------------- 移动端 */
@media(max-width:760px){
  .fact-list{grid-template-columns:1fr}
  .top-inner{
    align-items:center;
    flex-direction:column;
    gap:10px;
    padding:12px 16px;
  }
  .nav{
    width:100%;
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding-bottom:2px;
  }
  .nav::-webkit-scrollbar{display:none}
  .nav a{
    flex:0 0 auto;
    white-space:nowrap;
    background:rgba(255,255,255,.06);
  }
  .wrap{padding:20px 16px 44px}
  .hero h1{font-size:30px}
  .home-hero{
    grid-template-columns:1fr;
    gap:16px;
    padding:24px 0 14px;
  }
  .hero-panel a{
    grid-template-columns:44px 1fr;
    padding:12px 14px;
  }
  .hp-icon{width:44px;height:44px;border-radius:12px}
  .search-row{grid-template-columns:1fr}
  .button-row .btn,
  .page-actions .btn,
  .download-actions .btn,
  .search-row .btn{width:100%;text-align:center}
  .download-grid{grid-template-columns:1fr}
  .download-card{
    grid-template-columns:1fr;
    min-height:0;
    padding:18px;
  }
  .download-actions{
    width:100%;
    min-width:0;
  }
  .grid{grid-template-columns:1fr}
  .path-grid{grid-template-columns:1fr}
  .category-title{
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
    margin-bottom:10px;
  }
  .section{padding:18px}
  .card{
    min-height:0;
  }
  .card-link{
    padding-top:12px;
  }
  .visual{grid-template-columns:1fr}
  .mock{max-width:360px;margin:auto}
  .step{grid-template-columns:36px 1fr}
  .to-top{right:16px;bottom:16px}
}

/* ---------------------------------------------------------------- 阅读进度条 */
.read-progress{
  position:fixed;
  top:0;left:0;right:0;
  height:3px;
  z-index:50;
  background:var(--grad);
  transform-origin:0 50%;
  transform:scaleX(0);
  pointer-events:none;
}

/* ---------------------------------------------------------------- 章节锚点 / 目录 */
.section[id],.toc,.hero{scroll-margin-top:76px}
h2[id]{scroll-margin-top:76px}
.anchor-link{
  display:inline-block;
  margin-left:8px;
  color:#9aa8c2;
  text-decoration:none;
  font-weight:700;
  opacity:0;
  transition:opacity .15s ease,color .15s ease;
}
h2[id]:hover .anchor-link,.anchor-link:focus-visible{opacity:1;color:var(--brand)}
.toc-title{
  display:block;
  font-size:13px;
  font-weight:800;
  color:var(--text);
  margin-bottom:6px;
}
.toc a{
  display:inline-block;
  margin:4px 12px 4px 0;
  color:var(--brand);
  font-weight:700;
  text-decoration:none;
  border-bottom:2px solid transparent;
}
.toc a:hover{text-decoration:underline}
.toc a.active{
  color:var(--brand-dark);
  border-bottom-color:var(--brand);
}
.toc-auto{
  margin-top:0;
}

/* ---------------------------------------------------------------- 代码块复制 */
.copy-field{position:relative}
.copy-field .hash-value{padding-right:66px}
.copy-btn{
  position:absolute;
  top:8px;
  right:8px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--brand);
  border-radius:7px;
  font-size:12px;
  font-weight:700;
  padding:4px 12px;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease;
}
.copy-btn:hover{background:#f2f7ff;border-color:#9ec5ff}
.copy-btn.done{background:var(--green);border-color:var(--green);color:#fff}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .card,.path,.hero-panel a,.mini-card,.download-card,.btn,.to-top,.read-progress,.site-toast,.skip-link{transition:none}
  .card:hover,.path:hover,.hero-panel a:hover,.mini-card:hover,.download-card:hover{transform:none}
}

/* ================================================================
   第三轮：Toast / skip-link / 搜索键帽 / 外链标记 / 选中与滚动条 / 打印
   ================================================================ */

/* 全局 Toast 轻提示 */
.site-toast{
  position:fixed;
  left:50%;
  bottom:34px;
  transform:translate(-50%,16px);
  background:rgba(13,23,48,.94);
  color:#fff;
  font-size:13.5px;
  font-weight:600;
  letter-spacing:.2px;
  padding:10px 22px;
  border-radius:999px;
  box-shadow:0 12px 30px rgba(13,23,48,.28);
  opacity:0;
  pointer-events:none;
  z-index:80;
  max-width:calc(100vw - 40px);
  white-space:nowrap;
  transition:opacity .2s ease,transform .2s ease;
}
.site-toast.show{opacity:1;transform:translate(-50%,0)}

/* 键盘无障碍：跳到主要内容 */
.skip-link{
  position:fixed;
  top:-64px;
  left:50%;
  transform:translateX(-50%);
  z-index:90;
  background:var(--grad);
  color:#fff;
  font-weight:700;
  font-size:14px;
  padding:10px 24px;
  border-radius:0 0 12px 12px;
  text-decoration:none;
  box-shadow:var(--shadow);
  transition:top .18s ease;
}
.skip-link:focus-visible{top:0;color:#fff;outline:none}

/* 搜索框「/」快捷键键帽 */
.search-kbd{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:12px;
  font-weight:700;
  color:var(--muted);
  background:#eef2f9;
  border:1px solid var(--line);
  border-bottom-width:2px;
  border-radius:6px;
  padding:1px 8px;
  line-height:1.5;
  pointer-events:none;
  transition:opacity .15s ease;
}
.search-field:focus-within .search-kbd,
.search-clear.show ~ .search-kbd{opacity:0}

/* 正文区站外链接标记 */
.section a[href^="http"]:not(.btn)::after,
.footer a[href^="http"]:not(.btn)::after{
  content:"\2197";
  font-size:11px;
  margin-left:3px;
  opacity:.55;
}

/* 选中文字使用品牌色 */
::selection{background:rgba(59,130,246,.20)}

/* 滚动条细化 */
html{scrollbar-width:thin;scrollbar-color:#c3cde0 transparent}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#c3cde0;border-radius:8px;border:2px solid var(--bg)}
::-webkit-scrollbar-thumb:hover{background:#a8b6d0}

/* 打印 / 存档：隐藏交互元素，正文全宽去阴影 */
@media print{
  .top,.to-top,.read-progress,.search-panel,.page-actions,.toc,.anchor-link,
  .copy-btn,.skip-link,.site-toast,.region-filters,.card-actions,.search-kbd{display:none !important}
  body{background:#fff;color:#000}
  .home-hero h1{-webkit-text-fill-color:#000;color:#000;background:none}
  .wrap{max-width:none;padding:0}
  .section,.card,.account-card,.note,.download-card,.path,.mini-card{
    box-shadow:none !important;
    break-inside:avoid;
  }
  a{color:#000;text-decoration:underline}
  .footer{margin-top:24px;color:#333}
}
