:root {
  --bg: #f7f9fc;
  --panel: #ffffff;
  --ink: #1a2b45;
  --ink-2: #3a4b66;
  --muted: #6b7a90;
  --line: #e8eef7;
  --line-2: #f1f5fb;
  --brand: #1b74e4;
  --brand-2: #1359c4;
  --brand-soft: #eaf2ff;
  --ok: #0e9f6e;
  --warn: #d9480f;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(27, 62, 120, .08);
  --maxw: 1200px;
  --nav-h: 72px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; color: var(--brand-2); }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; border-radius: 6px; z-index: 40; box-shadow: var(--shadow); }
.muted { color: var(--muted); font-size: 13px; }

/* ---------- header ---------- */
.site-head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.head-in { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 9px; flex: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(140deg, #2b82f0, #1259c6);
  color: #fff; font: 700 14px/36px -apple-system, "Segoe UI", sans-serif; text-align: center; letter-spacing: .3px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 17px; letter-spacing: .5px; color: var(--ink); }
.brand-text em { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav-link {
  position: relative; padding: 0 14px; height: var(--nav-h); display: inline-flex; align-items: center;
  font-size: 15px; color: var(--ink-2); white-space: nowrap;
}
.nav-link:hover { color: var(--brand); }
.nav-link.is-active { color: var(--brand); font-weight: 600; }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand);
}
.head-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.head-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: 0 6px 0 12px; height: 36px; background: #f8fafd; }
.head-search input { border: 0; background: none; outline: none; width: 132px; font-size: 13px; color: var(--ink); }
.head-search button {
  border: 0; background: var(--brand); color: #fff; width: 26px; height: 26px; border-radius: 50%;
  cursor: pointer; font-size: 13px; line-height: 1;
}
.head-cta { padding: 0 18px; height: 38px; display: inline-flex; align-items: center; border-radius: 6px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; }
.head-cta:hover { background: var(--brand-2); color: #fff; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, #eef7ff 0%, #e4f1fe 55%, #f7fbff 100%);
  padding: 54px 0 58px;
  border-bottom: 1px solid var(--line);
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero-badge {
  display: inline-block; padding: 4px 12px; border-radius: 4px; background: #fff; border: 1px solid #bcd7fb;
  color: var(--brand); font-size: 12.5px; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: 44px; line-height: 1.22; margin: 0 0 22px; letter-spacing: -1px; color: #12263f; font-weight: 800; }
.hero-points { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.hero-points li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink-2); }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 7px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); border-radius: 1px;
}
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn-hero {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 208px; height: 52px; padding: 0 26px; border-radius: 6px;
  background: var(--brand); color: #fff; font-size: 16px; font-weight: 700; border: 0; cursor: pointer;
  box-shadow: 0 10px 24px rgba(27, 116, 228, .28);
}
.btn-hero:hover { background: var(--brand-2); color: #fff; }
.badge-new {
  position: absolute; top: -10px; right: -12px; font-style: normal; font-size: 10px; font-weight: 700;
  background: #ff3b30; color: #fff; padding: 2px 6px; border-radius: 3px; letter-spacing: .5px;
}
.hero-link { font-size: 14px; color: var(--warn); font-weight: 600; }
.hero-note { margin: 18px 0 0; font-size: 13px; color: #4a5a72; }
.hero-note b { color: var(--warn); }

/* 设备示意图（纯 CSS，不用参考站素材） */
.hero-right { display: flex; justify-content: flex-end; }
.mock { width: 100%; max-width: 520px; filter: drop-shadow(0 24px 40px rgba(23, 68, 138, .18)); }
.mock-bar { height: 30px; background: #dfe9f7; border-radius: 8px 8px 0 0; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: #c3d4ea; }
.mock-body { background: #fff; border: 1px solid #d9e6f7; border-top: 0; display: grid; grid-template-columns: 92px 1fr; min-height: 236px; }
.mock-side { background: #f2f7fe; border-right: 1px solid #e4eefa; }
.mock-main { padding: 16px; display: grid; gap: 9px; align-content: start; }
.mock-row { display: grid; grid-template-columns: 1fr 72px; gap: 10px; }
.mock-row span { height: 9px; border-radius: 5px; background: #e8f0fb; }
.mock-row span:last-child { background: #f2f6fc; }
.mock-tags { display: flex; gap: 6px; margin-top: 4px; }
.mock-tags b { font-size: 10px; font-weight: 600; color: #4b6b96; background: #eaf2ff; border-radius: 3px; padding: 3px 6px; }
.mock-progress { margin-top: 6px; height: 12px; border-radius: 6px; background: #eef4fc; overflow: hidden; }
.mock-progress i { display: block; width: 62%; height: 100%; background: linear-gradient(90deg, #4a9bf0, #1b74e4); }
.mock-base { height: 12px; background: linear-gradient(180deg, #e6eef9, #cfdcee); border-radius: 0 0 10px 10px; }

/* ---------- bands ---------- */
.band { padding: 46px 0; }
.band + .band { border-top: 1px solid var(--line-2); }
.band-latest { background: #fff; }
.band-adv { background: #fbfcfe; }
.band-tut { background: #fff; }
.band-about { background: #f7f9fc; border-top: 1px solid var(--line); }
.band-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.band-title {
  display: flex; align-items: center; gap: 14px; justify-content: center; flex: 1;
  font-size: 26px; font-weight: 700; letter-spacing: .5px; margin: 0; color: #16263d;
}
.band-title .dot { width: 9px; height: 9px; border-radius: 50%; background: #cfe2fb; display: inline-block; }
.band-title .dot:last-child { background: #9cc4f6; }
.band-more { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.band-more:hover { color: var(--brand); }

/* 四列卡片 */
.card-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card-item { min-width: 0; }
.card-thumb {
  position: relative; display: block; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background: #f4f8fd; aspect-ratio: 252 / 175;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb:hover { box-shadow: var(--shadow); border-color: #c6dbf7; transform: translateY(-2px); }
.badge-top {
  position: absolute; left: 0; top: 0; font-style: normal; font-size: 11px; color: #fff;
  background: rgba(217, 72, 15, .92); padding: 3px 8px; border-radius: 0 0 6px 0; letter-spacing: .5px;
}
.card-title { font-size: 14.5px; line-height: 1.5; margin: 12px 0 6px; font-weight: 600; min-height: 44px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--brand); }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.meta-tag { color: var(--brand); background: var(--brand-soft); padding: 2px 7px; border-radius: 3px; font-size: 11.5px; }

/* 优势 + 统计 */
.adv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.adv { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; }
.adv b { display: block; font-size: 15.5px; margin-bottom: 6px; color: #16263d; }
.adv p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.stat-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 26px 0 0; padding: 18px 0 0;
  border-top: 1px dashed var(--line); text-align: center;
}
.stat-strip div { display: flex; flex-direction: column-reverse; gap: 2px; }
.stat-strip dt { font-size: 12.5px; color: var(--muted); }
.stat-strip dd { margin: 0; font-size: 26px; font-weight: 700; color: var(--brand); }

/* 教程组 */
.tut-grid { display: grid; gap: 18px; }
.tut-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.tut-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tut-ico { width: 26px; height: 26px; border-radius: 6px; background: var(--brand-soft); position: relative; flex: none; }
.tut-ico::after { content: ""; position: absolute; inset: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.tut-head h3 { font-size: 17px; margin: 0; }
.tut-more { margin-left: auto; font-size: 13px; color: var(--muted); }
.tut-body { display: grid; grid-template-columns: 220px repeat(3, minmax(0, 1fr)); gap: 16px; }
.tut-big { display: block; color: var(--ink); }
.tut-big img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.tut-big b { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.5; font-weight: 600; }
.tut-list { list-style: none; margin: 0; padding: 0; display: contents; }
.tut-list li { min-width: 0; }
.tut-list a { display: flex; gap: 10px; color: var(--ink); }
.tut-list img { width: 96px; height: 62px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); flex: none; }
.tut-list span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tut-list b { font-size: 13px; line-height: 1.45; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tut-list em { font-style: normal; font-size: 12px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 关于 / 友链 */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.about-col h3 { font-size: 15px; margin: 0 0 12px; color: #16263d; }
.about-col p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.8; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13px; }
.link-list a { color: var(--ink-2); }
.link-list a:hover { color: var(--brand); }

/* ---------- 子页 ---------- */
.sub-hero { background: linear-gradient(180deg, #f1f8ff, #fff); border-bottom: 1px solid var(--line); padding: 26px 0 30px; }
.sub-hero h1 { font-size: 30px; margin: 8px 0 8px; letter-spacing: -.5px; color: #12263f; }
.sub-hero p { margin: 0; color: var(--muted); font-size: 14px; max-width: 760px; }
.crumbs { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; color: #c3d2e6; margin-right: 6px; }
.crumbs a { color: var(--muted); }
.tab-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab { padding: 7px 14px; border: 1px solid var(--line); border-radius: 18px; font-size: 13px; color: var(--ink-2); background: #fff; }
.tab.is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px; }
.section-title h2 { font-size: 18px; margin: 0; }
.section-title span { font-size: 12.5px; color: var(--muted); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: 28px; align-items: start; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.side-card h3 { font-size: 15px; margin: 0 0 12px; }
.side-card dl { margin: 0; display: grid; gap: 9px; }
.side-card dl div { display: flex; gap: 10px; font-size: 13px; }
.side-card dt { width: 78px; color: var(--muted); flex: none; }
.side-card dd { margin: 0; }
.side-note { margin: 12px 0; font-size: 12px; color: var(--muted); }
.side-link { font-size: 13px; font-weight: 600; }

.detail-top { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 14px; }
.detail-cover img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.detail-head h1 { font-size: 27px; margin: 0 0 6px; }
.detail-sub { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.detail-kv { display: flex; gap: 30px; margin: 0 0 18px; }
.detail-kv dt { font-size: 12px; color: var(--muted); }
.detail-kv dd { margin: 2px 0 0; font-size: 17px; font-weight: 700; }
.btn-detail { min-width: 240px; height: 48px; font-size: 15px; }
.detail-tip { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); max-width: 620px; }
.detail-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.detail-block h2 { font-size: 17px; margin: 0 0 14px; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 22px; margin: 0; }
.kv-grid dt { font-size: 12px; color: var(--muted); }
.kv-grid dd { margin: 2px 0 0; font-size: 14px; }
.hash { display: block; padding: 9px 11px; background: #f5f8fd; border: 1px solid var(--line); border-radius: 6px; font-size: 12.5px; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.code { background: #0d1b2e; color: #d8e6f8; padding: 14px 16px; border-radius: 8px; overflow: auto; font-size: 13px; margin: 0 0 12px; }
.code code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.faq { margin: 0; }
.faq > div { padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.faq > div:last-child { border-bottom: 0; padding-bottom: 0; }
.faq dt { font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.faq dd { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mini-list a { display: flex; gap: 10px; color: var(--ink); align-items: center; }
.mini-list img { width: 96px; height: 62px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); flex: none; }
.mini-list span { display: flex; flex-direction: column; }
.mini-list b { font-size: 13px; font-weight: 600; }
.mini-list em { font-style: normal; font-size: 12px; color: var(--muted); }

.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.article-cover { width: 100%; max-width: 400px; border-radius: 8px; margin-bottom: 18px; border: 1px solid var(--line); }
.prose { font-size: 15px; color: var(--ink-2); }
.prose h2 { font-size: 18px; color: var(--ink); margin: 26px 0 10px; }
.prose h3 { font-size: 16px; color: var(--ink); margin: 20px 0 8px; }
.prose p { margin: 10px 0; }
.prose ul, .prose ol { margin: 10px 0; padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose pre { background: #0d1b2e; color: #d8e6f8; padding: 14px 16px; border-radius: 8px; overflow: auto; font-size: 13px; line-height: 1.6; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.prose p code, .prose li code { background: #eef3fb; padding: 1px 5px; border-radius: 4px; color: #12459c; }

.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tool-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.tool-card h3 { margin: 0 0 4px; font-size: 16px; }
.tool-sub { margin: 0 0 10px; font-size: 12.5px; color: var(--brand); font-weight: 600; }
.tool-card p { font-size: 13px; color: var(--ink-2); margin: 0 0 12px; }
.tool-link { font-size: 13px; font-weight: 600; }
.search-form { display: flex; gap: 10px; margin-top: 14px; max-width: 560px; }
.search-form input { flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; outline: none; }
.search-form input:focus { border-color: #9dc4f2; box-shadow: 0 0 0 3px rgba(27,116,228,.12); }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- footer ---------- */
.site-foot { background: #f7f9fc; border-top: 1px solid var(--line); padding: 0 0 18px; }
.foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; padding: 34px 20px 24px; }
.foot-col b { display: block; font-size: 14px; margin-bottom: 10px; color: #16263d; }
.foot-col { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.foot-col a { color: var(--muted); }
.foot-col a:hover { color: var(--brand); }
.foot-note p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.foot-bottom {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 14px 20px 0;
  border-top: 1px solid var(--line); max-width: var(--maxw); margin: 0 auto; font-size: 12.5px; color: var(--muted);
}
.foot-bottom a { color: var(--muted); }

@media (max-width: 1080px) {
  .card-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tut-body { grid-template-columns: 200px repeat(3, minmax(0, 1fr)); }
  .detail-top { grid-template-columns: 340px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .head-in { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 10px; }
  .site-nav { order: 3; flex: 1 0 100%; width: 100%; overflow-x: auto; gap: 0; -webkit-overflow-scrolling: touch; }
  .nav-link { padding: 0 11px; height: 40px; font-size: 14px; }
  .nav-link.is-active::after { bottom: 2px; }
  .head-tools { margin-left: auto; }
  .head-search { display: none; }
  .hero { padding: 32px 0 36px; }
  .hero-in { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: 30px; }
  .hero-right { justify-content: center; }
  .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .tut-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tut-big { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .detail-top { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 25px; }
  .hero-points { grid-template-columns: 1fr; gap: 8px; }
  .band { padding: 32px 0; }
  .band-title { font-size: 20px; }
  .card-grid-4 { gap: 12px; }
  .card-title { font-size: 13px; min-height: 40px; }
  .tut-body { grid-template-columns: 1fr; }
  .tut-list img { width: 84px; height: 56px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .sub-hero h1 { font-size: 23px; }
  .about-grid, .foot-in { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
}