/* 参考 pre.jingsizen.com 的中性编辑风格：白底、灰色主色、宋体细字标题、直角按钮、细线图标 */
:root {
  --primary: #a8a8a8;
  --primary-dark: #898989;
  --ink: #414141;
  --text: #666;
  --muted: #888;
  --soft: #999;
  --line: #e5e5e5;
  --paper: #fff;
  --panel: #f5f5f5;
  --footer: #f4f4f4;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --max: 1280px;
  --gutter: 5%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
p { font-size: 15px; line-height: 2; color: var(--text); margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #777; outline-offset: 4px; }
.icon, .feature-icon { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon { width: 20px; height: 20px; }
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 0; left: 0; z-index: 100; background: #fff; padding: 12px; }
.eyebrow { display: block; font-size: 12px; letter-spacing: 3px; color: var(--muted); }

/* 顶部导航 */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 34px;
  padding: 22px var(--gutter);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: padding .25s, box-shadow .25s;
}
.site-header.scrolled { padding-top: 13px; padding-bottom: 13px; box-shadow: 0 2px 20px rgba(0, 0, 0, .04); }
.logo { display: flex; align-items: center; gap: 12px; font: 400 24px var(--serif); letter-spacing: 4px; color: #555; white-space: nowrap; }
.logo span { display: block; font: 11px var(--sans); letter-spacing: 2px; color: var(--primary); margin-top: 6px; }
.logo-icon { border-radius: 8px; }
.site-header nav { flex: 1; display: flex; justify-content: flex-end; gap: 36px; font-size: 14px; }
.site-header nav a { position: relative; padding: 8px 0; color: var(--text); transition: color .2s; }
.site-header nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--primary); transition: width .25s; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: #333; }
.site-header nav a:hover::after, .site-header nav a[aria-current]::after { width: 100%; }
.icon-button {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: transparent; color: #707070; cursor: pointer; transition: background .2s, color .2s;
}
.icon-button:hover { background: #eee; color: #333; }
.menu-button { display: none; margin-left: auto; }

/* 首屏 */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 24px;
  min-height: 600px; padding: 70px var(--gutter) 130px;
  background: linear-gradient(100deg, #f3f3f3 0%, #f7f7f7 45%, #ececec 100%);
}
.hero-copy { position: relative; z-index: 1; max-width: 560px; }
.hero h1 { font-size: 50px; line-height: 1.55; letter-spacing: 7px; color: #555; margin: 22px 0 24px; }
.hero p { color: #777; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 34px; margin-top: 34px; }
.button {
  display: inline-flex; align-items: center; gap: 28px; padding: 16px 24px;
  background: var(--primary); border: 1px solid var(--primary); color: #fff; font-size: 14px; letter-spacing: 1px;
  transition: background .2s, border-color .2s;
}
.button:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.button .icon, .text-link .icon { transition: transform .2s; }
.button:hover .icon, .text-link:hover .icon { transform: translateX(4px); }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--primary); color: #777; font-size: 14px; }
.hero-visual img { width: 100%; }
.download-meta { margin-top: 16px; font-size: 13px; color: var(--soft); letter-spacing: 1px; }
.hero-explore {
  position: absolute; z-index: 2; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 26px; min-height: 58px; padding: 8px 9px 8px 28px;
  border: 1px solid rgba(255, 255, 255, .8); border-radius: 99px; background: rgba(255, 255, 255, .87);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: #555; box-shadow: 0 8px 28px rgba(0, 0, 0, .07); white-space: nowrap; transition: background .3s, box-shadow .3s;
}
.hero-explore > span:first-child { font-size: 13px; letter-spacing: 3px; }
.hero-explore-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; transition: background .3s; }
.hero-explore-icon .icon { transform: rotate(90deg); transition: transform .3s; }
.hero-explore:hover { background: #fff; box-shadow: 0 12px 35px rgba(0, 0, 0, .12); }
.hero-explore:hover .hero-explore-icon { background: var(--primary-dark); }
.hero-explore:hover .icon { transform: translateY(4px) rotate(90deg); }

/* 数据条（参考站“三个愿望”的居中排版与短分隔线） */
.numbers {
  max-width: var(--max); margin: 0 auto; padding: 80px var(--gutter) 30px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
.numbers::after { content: ""; grid-column: 1 / -1; justify-self: center; width: 42px; height: 1px; background: var(--primary); margin-top: 40px; }
.numbers strong { display: block; font: 400 36px var(--serif); color: #646464; letter-spacing: 2px; }
.numbers span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); letter-spacing: 1px; }

/* 通用区块 */
section[id], #top { scroll-margin-top: 80px; }
.section { max-width: var(--max); margin: 0 auto; padding: 90px var(--gutter) 0; }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: 30px; line-height: 1.6; color: #666; margin-top: 12px; }
.group-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ddd; padding-bottom: 12px; margin-bottom: 22px; }
.group-head h3 { font-size: 20px; color: #5d5d5d; }

/* 功能 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 40px; }
.features article { border-top: 1px solid var(--line); padding-top: 28px; }
.feature-icon { width: 34px; height: 34px; color: var(--muted); }
.features h3 { font-size: 20px; color: #5d5d5d; margin: 20px 0 12px; transition: color .2s; }
.features article:hover h3 { color: #222; }

/* 界面一览 */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chips button {
  font: inherit; font-size: 13px; color: var(--text); cursor: pointer;
  background: #f3f3f3; border: 1px solid #e8e8e8; border-radius: 25px; padding: 10px 18px;
  transition: background .2s, color .2s, border-color .2s;
}
.chips button:hover { background: #e2e2e2; }
.chips button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.screen-frame { margin: 0; background: var(--panel); padding: 28px; }
.screen-frame img { width: 100%; background: #111; box-shadow: 0 18px 40px rgba(0, 0, 0, .14); transition: opacity .25s; }
.screen-frame figcaption { margin-top: 22px; font-size: 14px; line-height: 1.9; color: var(--muted); text-align: center; min-height: 1.9em; }

/* 安装 */
.feature { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--panel); margin-bottom: 40px; }
.feature-media { display: flex; align-items: center; padding: 30px; }
.feature-copy { padding: 50px; align-self: center; }
.feature h3, .install-grid h3 { font-size: 26px; line-height: 1.6; color: #666; margin: 12px 0 14px; }
.install-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.install-grid article { border-top: 1px solid var(--line); padding-top: 28px; min-width: 0; }
.dash-list { list-style: none; padding: 0; margin: 16px 0 22px; }
.dash-list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 2.1; color: var(--text); }
.dash-list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 10px; height: 1px; background: var(--primary); }
.dash-list b { color: #444; font-weight: 600; }
pre { margin: 0; padding: 18px 20px; overflow-x: auto; background: var(--panel); border-left: 2px solid var(--primary); font-size: 13px; line-height: 1.9; color: #555; }
.brands { margin-top: 70px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
th, td { padding: 15px 16px; text-align: left; border-bottom: 1px solid #eee; color: var(--text); }
th { font-weight: 400; color: var(--muted); background: #fafafa; letter-spacing: 1px; }
.state { display: inline-block; padding: 2px 12px; font-size: 12px; border: 1px solid; white-space: nowrap; }
.state.yes { color: #5b7f63; border-color: #c9d8cc; background: #f3f8f4; }
.state.part { color: #8a7650; border-color: #e3d9c4; background: #faf7f1; }
.state.no { color: #9a6a62; border-color: #e5cfca; background: #fbf4f3; }
.note { font-size: 12px; color: var(--soft); margin-top: 14px; }

.card-links { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 24px; }

/* 常见问题 */
.faq { max-width: 960px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 4px; cursor: pointer; list-style: none; font: 400 18px var(--serif); color: #555;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex-shrink: 0; width: 12px; height: 12px; background: linear-gradient(var(--primary), var(--primary)) center / 12px 1px no-repeat, linear-gradient(var(--primary), var(--primary)) center / 1px 12px no-repeat; transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 4px 24px; }

/* 页脚 */
.site-footer {
  margin-top: 110px; padding: 60px 8%; background: var(--footer); border-top: 1px solid #e9e9e9;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px;
}
.site-footer .logo { font-size: 21px; }
.footer-brand p { margin-top: 14px; font-size: 13px; color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12px; color: var(--soft); }
.footer-legal a:hover { color: #666; }
.back-top { position: fixed; right: 25px; bottom: 25px; z-index: 15; border-radius: 0; background: var(--primary); color: #fff; box-shadow: 0 3px 15px rgba(0, 0, 0, .1); }
.back-top:hover { background: var(--primary-dark); color: #fff; }

/* 教程页 */
.doc-hero { max-width: var(--max); margin: 0 auto; padding: 50px var(--gutter) 46px; border-bottom: 1px solid var(--line); }
.doc-hero h1 { font-size: 38px; line-height: 1.5; letter-spacing: 3px; color: #555; margin: 14px 0 16px; }
.doc-hero p { max-width: 760px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--soft); margin-bottom: 26px; }
.breadcrumb a:hover { color: #555; }
.doc-layout { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 60px; }
.toc { position: sticky; top: 90px; align-self: start; padding-top: 50px; }
.toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 16px 0 0; border-left: 1px solid var(--line); }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14px; color: var(--muted); transition: color .2s, border-color .2s; }
.toc a:hover, .toc a[aria-current] { color: #333; border-left-color: var(--primary); }
.doc-body { min-width: 0; padding-top: 30px; }
.doc-section { padding: 26px 0 30px; border-bottom: 1px solid #f0f0f0; scroll-margin-top: 90px; }
.doc-section h2 { display: flex; align-items: center; gap: 14px; font-size: 26px; color: #555; margin-bottom: 20px; }
.doc-section h2 i { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--primary); border-radius: 50%; font: 400 16px var(--serif); font-style: normal; color: var(--muted); flex-shrink: 0; }
.doc-section p { margin-bottom: 12px; }
.doc-section pre { margin: 14px 0 16px; }
.steps { padding-left: 1.4em; margin: 0 0 14px; }
.steps li { font-size: 15px; line-height: 2.1; color: var(--text); padding-left: 4px; }
.steps li::marker { color: var(--soft); }
.steps b, .doc-section p b { color: #444; font-weight: 600; }
.path { display: inline-block; padding: 0 9px; margin: 0 2px; background: #f3f3f3; border: 1px solid #e8e8e8; font-size: 14px; line-height: 1.75; color: #555; white-space: nowrap; }
code { font-family: Menlo, Consolas, "Courier New", monospace; font-size: .92em; }
:not(pre) > code { padding: 1px 6px; background: #f5f5f5; color: #555; word-break: break-all; }
kbd { display: inline-block; padding: 0 7px; border: 1px solid #d5d5d5; border-bottom-width: 2px; font: 13px var(--sans); color: #555; background: #fff; }
.hint { font-size: 14px; color: var(--muted); }
.callout { margin: 18px 0 6px; padding: 18px 20px; background: var(--panel); border-left: 2px solid var(--primary); font-size: 14px; line-height: 2; color: var(--text); }
.callout b { color: #444; margin-right: 4px; }
.callout.warn { background: #faf7f1; border-left-color: #c9a96b; }
.os-tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.os-tabs button { font: inherit; font-size: 13px; color: var(--text); cursor: pointer; background: #f3f3f3; border: 1px solid #e8e8e8; border-radius: 25px; padding: 9px 22px; }
.os-tabs button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.method { padding: 22px 0 6px; }
.method + .method { border-top: 1px dashed var(--line); margin-top: 10px; }
.method .tag { display: inline-block; font-size: 12px; letter-spacing: 2px; color: var(--muted); border: 1px solid var(--line); padding: 3px 12px; margin-bottom: 10px; }
.method.recommended .tag { color: #fff; background: var(--primary); border-color: var(--primary); }
.inline-link { color: #555; border-bottom: 1px solid var(--primary); word-break: break-all; }
.inline-link:hover { color: #222; }
.doc-body .faq-list summary { font-size: 17px; }
.doc-body .faq-list details:first-of-type { border-top: 1px solid var(--line); }
.doc-back { margin: 44px 0 10px; }

/* 进入视口时的轻微上浮；脚本未运行时内容照常显示 */
.reveal.is-visible { animation: appear .6s ease both; }
@keyframes appear { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 平板 */
@media (max-width: 1100px) {
  .site-header { padding: 16px var(--gutter); }
  .menu-button { display: inline-flex; }
  .site-header nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    padding: 18px var(--gutter) 22px; background: #fff; box-shadow: 0 10px 15px rgba(0, 0, 0, .06);
  }
  .site-header nav.is-open { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 25px; }
  .site-header nav a { padding: 14px 4px; font-size: 15px; border-bottom: 1px solid #f0f0f0; }
  .site-header nav a::after { display: none; }
  .hero { min-height: 0; padding-top: 60px; }
  .hero h1 { font-size: 40px; letter-spacing: 5px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature-copy { padding: 36px; }
}

@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; padding-top: 30px; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 8px; border-left: 0; }
  .toc a { padding: 6px 14px; margin: 0; border: 1px solid var(--line); border-radius: 20px; font-size: 13px; }
  .toc a:hover { border-color: var(--primary); }
  .hero { grid-template-columns: 1fr; text-align: center; padding-bottom: 120px; }
  .hero-copy { max-width: 620px; margin: 0 auto; }
  .actions { justify-content: center; }
  .hero-visual { max-width: 680px; margin: 10px auto 0; }
  .numbers { grid-template-columns: repeat(2, 1fr); row-gap: 40px; padding-top: 60px; }
  .feature { grid-template-columns: 1fr; }
  .feature-media { padding: 24px 24px 0; }
  .install-grid { grid-template-columns: 1fr; gap: 50px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

/* 手机 */
@media (max-width: 560px) {
  :root { --gutter: 6%; }
  .logo { font-size: 20px; letter-spacing: 3px; }
  .logo span { font-size: 10px; }
  .logo-icon { width: 34px; height: 34px; }
  .hero { padding-top: 44px; padding-bottom: 110px; }
  .hero h1 { font-size: 32px; letter-spacing: 3px; margin: 16px 0 18px; }
  .hero p { font-size: 14px; }
  .actions { gap: 18px 26px; }
  .button { gap: 20px; padding: 14px 20px; }
  .hero-explore { bottom: 26px; min-height: 52px; padding-left: 22px; gap: 20px; }
  .hero-explore-icon { width: 36px; height: 36px; }
  .numbers strong { font-size: 30px; }
  .section { padding-top: 70px; }
  .section-head { margin-bottom: 30px; }
  .section-head h2 { font-size: 23px; }
  .features { grid-template-columns: 1fr; gap: 34px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 22px; padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex-shrink: 0; }
  .screen-frame { padding: 12px; margin: 0 calc(var(--gutter) * -1); }
  .feature-copy { padding: 26px 24px 30px; }
  .feature h3, .install-grid h3 { font-size: 22px; }
  pre { font-size: 12px; }
  .faq-list summary { font-size: 16px; padding: 20px 2px; }
  .site-footer { margin-top: 80px; padding: 44px 6%; }
  .back-top { right: 15px; bottom: 15px; }
  .doc-hero { padding-top: 34px; }
  .doc-hero h1 { font-size: 26px; letter-spacing: 1px; }
  .doc-section h2 { font-size: 21px; gap: 12px; }
  .doc-section h2 i { width: 30px; height: 30px; font-size: 14px; }
  .steps li { font-size: 14px; }
  .path { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
