/* 青花配色 —— 与客户端同一套五行角色
   重色 #1B3550 / 主色 #2E5C85 / 辅助 #6E96B8 / 淡色 #C8D9E4 / 纸色 #F4F6F8
   对比度校验：正文/纸色 11.60:1 AAA · 主色/纸色 6.49:1 AA · 白字/主色 7.03:1 AAA
*/
:root {
  --heavy: #1B3550;
  --main: #2E5C85;
  --main-hover: #26496B;
  --sub: #6E96B8;
  --light: #C8D9E4;
  --paper: #F4F6F8;
  --card: #FFFFFF;
  --border: #D5E0E9;
  --muted: #4E6E88;
  --success: #3F7A5E;
  --warning: #8A5D12;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 53, 80, .06), 0 12px 32px -12px rgba(27, 53, 80, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--heavy);
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--main); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- 顶栏 */
header.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 246, 248, .86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--heavy); color: #fff;
  display: grid; place-items: center; font-size: 14px; letter-spacing: .5px;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--main); text-decoration: none; }

/* ---------------------------------------------------------------- 首屏 */
.hero { padding: 64px 0 32px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 40px;
  align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--light); color: var(--heavy);
  border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 600;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
h1 { font-size: 44px; line-height: 1.25; margin: 18px 0 14px; letter-spacing: -.5px; }
h1 em { font-style: normal; color: var(--main); }
.lede { font-size: 17px; color: var(--muted); margin: 0 0 26px; max-width: min(30em, 100%); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 10px; padding: 12px 22px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .15s;
}
.btn-primary { background: var(--main); color: #fff; }
.btn-primary:hover { background: var(--main-hover); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--main); border-color: var(--sub); }
.btn-ghost:hover { background: #E7EFF5; text-decoration: none; }
.btn .meta { font-weight: 400; font-size: 13px; opacity: .8; }

.hero-figure {
  position: relative;
  min-width: 0;
  background: linear-gradient(158deg, #E8EFF5 0%, #F4F6F8 62%, #EDF2F6 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px 22px 16px;
  box-shadow: var(--shadow);
}
.hero-figure img {
  max-width: 100%; height: auto; display: block; border-radius: 12px;
  border: 1px solid var(--border); background: #fff;
  box-shadow: 0 18px 40px -22px rgba(27, 53, 80, .45);
}
.hero-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }

/* 更新记录 */
.changelog { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 24px; }
.changelog .rel { padding: 18px 0; border-bottom: 1px dashed var(--border); }
.changelog .rel:last-child { border-bottom: 0; }
.changelog h3 { margin: 0 0 6px; font-size: 16px; display: flex; align-items: baseline; gap: 10px; }
.changelog h3 span { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.changelog ul { margin: 6px 0 0; padding-left: 20px; font-size: 14.5px; color: var(--muted); }
.changelog li { margin: 3px 0; }

/* ---------------------------------------------------------------- 通栏小节 */
section { padding: 56px 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: 27px; margin: 0 0 8px; letter-spacing: -.3px; }
.section-head p { margin: 0; color: var(--muted); }

/* 三列特性 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.card h3 { font-size: 17px; margin: 0 0 8px; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.card .ico {
  width: 36px; height: 36px; border-radius: 10px; background: var(--light);
  display: grid; place-items: center; margin-bottom: 14px; font-size: 17px;
}

/* 能力表 */
table.cap { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
table.cap caption { text-align: left; font-size: 13px; color: var(--muted); padding-bottom: 10px; }
table.cap th, table.cap td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); }
table.cap th { font-weight: 600; color: var(--heavy); background: #EDF2F6; font-size: 13.5px; }
table.cap th:first-child { border-top-left-radius: 10px; }
table.cap th:last-child { border-top-right-radius: 10px; }
table.cap td:first-child { font-weight: 600; }
.ok { color: var(--success); font-weight: 600; }
.warn { color: var(--warning); font-weight: 600; }
.note { color: var(--muted); }

/* 两种模式 */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mode { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.mode h3 { margin: 0 0 4px; font-size: 17px; }
.mode .tag { font-size: 12.5px; color: var(--main); font-weight: 600; }
.mode ul { margin: 12px 0 0; padding-left: 20px; font-size: 14.5px; color: var(--muted); }
.mode li { margin: 4px 0; }

/* ---------------------------------------------------------------- 下载 */
.download { background: var(--heavy); color: #EAF1F6; border-radius: 20px; padding: 40px; }
.download h2 { color: #fff; margin: 0 0 6px; font-size: 26px; }
.download .subline { color: #B7C9D8; margin: 0 0 26px; font-size: 14.5px; }
.dl-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.dl-card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius); padding: 22px;
}
.dl-card h3 { margin: 0 0 2px; color: #fff; font-size: 18px; }
.dl-card .ver { color: #9FC0D8; font-size: 13px; margin-bottom: 16px; }
.dl-card .btn-primary { background: #fff; color: var(--heavy); width: 100%; justify-content: center; }
.dl-card .btn-primary:hover { background: var(--light); }
.dl-card .alt { display: block; text-align: center; font-size: 13px; color: #9FC0D8; margin-top: 10px; }
.dl-card .alt:hover { color: #fff; }
.facts { font-size: 13.5px; color: #C6D7E3; }
.facts dt { color: #8FB0C8; font-size: 12.5px; margin-top: 12px; }
.facts dd { margin: 2px 0 0; word-break: break-all; }
.hash { font-family: ui-monospace, Consolas, monospace; font-size: 12px; line-height: 1.6; }

/* 诚实清单 */
.limits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.limit { background: #FBF7EC; border: 1px solid #EADFC2; border-radius: var(--radius); padding: 18px 20px; }
.limit h3 { margin: 0 0 6px; font-size: 15px; color: #6B4E12; }
.limit p { margin: 0; font-size: 14px; color: #7A6231; }

/* FAQ */
details.faq {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 12px;
}
details.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; }
details.faq p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }

/* 关于主体 */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.about-grid p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.kv { font-size: 14px; }
.kv div { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.kv dt { color: var(--muted); min-width: 8.5em; }
.kv dd { margin: 0; }

/* 页脚 */
footer {
  border-top: 1px solid var(--border); margin-top: 40px; padding: 32px 0 44px;
  font-size: 13px; color: var(--muted);
}
.foot-grid { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: flex-start; }
footer .fnote { max-width: min(46em, 100%); line-height: 1.7; }
footer a { color: var(--muted); }
footer a:hover { color: var(--main); }

/* 隐私页 */
.doc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; margin: 40px 0; }
.doc h1 { font-size: 28px; margin-top: 0; }
.doc h2 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--muted); font-size: 15px; }
.doc code { background: var(--paper); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; font-size: 13px; }

@media (max-width: 900px) {
  .hero-grid, .features, .modes, .dl-grid, .limits, .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  h1 { font-size: 32px; }
  .hero { padding: 44px 0 20px; }
  section { padding: 40px 0; }
  .download { padding: 26px; }
  .nav-links { display: none; }
  .doc { padding: 24px; }
  .hero-figure { padding: 14px 14px 10px; }
}

/* 安全网：任何元素都不许把页面撑出横向滚动 */
img, svg, video { max-width: 100%; height: auto; }
body { overflow-x: hidden; }

/* 宽表在窄屏横向滚动，而不是撑破布局 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table.cap { min-width: 560px; }

/* 宽屏下让截图略微出血，读得清一点 */
@media (min-width: 1100px) {
  .hero-figure { margin-right: -36px; }
}

/* 分卷下载说明 */
.dl-note {
  margin: 12px 0 0; font-size: 12.5px; line-height: 1.65;
  color: #A9C2D4; border-top: 1px dashed rgba(255,255,255,.18); padding-top: 10px;
}
