/* ============================================================
   Smartmontools 中文站 - 全站样式
   品牌色: #0000FF (S.M.A.R.T. logo 蓝)
   风格: 扁平 / 现代 / 专业, 无 emoji, 浅色主题
   ============================================================ */

:root {
  --brand: #0000FF;
  --brand-dark: #0000C8;
  --brand-darker: #00008F;
  --brand-light: #E5E6FF;
  --brand-lighter: #F2F3FF;
  --brand-soft: #FAFAFF;
  --ink: #16162E;
  --text: #2B2B45;
  --muted: #5A5A75;
  --line: #E3E4EE;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FC;
  --ok: #0E7D3C;
  --warn: #B36200;
  --danger: #C01818;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 0, 80, 0.08);
  --shadow-lg: 0 12px 36px rgba(0, 0, 90, 0.14);
  --mono: Consolas, "SF Mono", "Cascadia Code", Menlo, Monaco, "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

/* ---------- 布局容器 ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }

/* ---------- 排版 ---------- */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -0.5px; }
h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
h3 { font-size: 19px; margin-bottom: 10px; }
p { margin-bottom: 12px; }
a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-dark); }
.lead { font-size: 17px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
strong { color: var(--ink); }
code {
  font-family: var(--mono);
  background: var(--brand-light);
  color: var(--brand-darker);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.92em;
  word-break: break-all;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  text-decoration: none;
  line-height: 1.3;
}
.btn:focus-visible { outline: 3px solid rgba(0, 0, 255, 0.35); outline-offset: 2px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-lighter); color: var(--brand-dark); }
.btn-lg { padding: 16px 40px; font-size: 17px; }
.btn-sm { padding: 9px 20px; font-size: 14.5px; }

/* 按钮内联 SVG 图标 */
.btn .icon { width: 18px; height: 18px; flex: none; }
.btn-primary .icon { fill: #fff; }
.btn-ghost .icon { fill: var(--brand); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo {
  width: 36px; height: 36px; flex: none;
  border-radius: 9px;
  background: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-logo svg { width: 20px; height: 20px; fill: #fff; }
.brand-name { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; }
.brand-name span { color: var(--brand); }
.brand-tag { font-size: 11px; color: var(--muted); display: block; margin-top: -3px; letter-spacing: 0.5px; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a.nav-link {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a.nav-link:hover { color: var(--brand); }
.main-nav a.nav-link[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-download {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 14.5px;
  padding: 9px 20px; border-radius: 8px;
}
.nav-download:hover { background: var(--brand-dark); color: #fff; }
.nav-download .icon { width: 15px; height: 15px; fill: currentColor; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; fill: var(--ink); display: block; }
.nav-toggle:focus-visible { outline: 3px solid rgba(0,0,255,.35); outline-offset: 2px; }

/* ---------- 面包屑 ---------- */
.breadcrumb { padding: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current] { color: var(--ink); }

/* ---------- Hero 英雄区 ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 85% -60px, var(--brand-light), transparent 65%),
    radial-gradient(700px 380px at -8% 110%, var(--brand-lighter), transparent 60%),
    var(--bg);
  padding: 84px 0 76px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; color: var(--muted); margin-bottom: 20px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
.hero h1 .accent { color: var(--brand); }
.hero .lead { margin: 18px 0 30px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13.5px; color: var(--muted); }
.hero-meta li { list-style: none; display: flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; fill: var(--ok); flex: none; }
.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* ---------- 统计条 ---------- */
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 26px 18px; text-align: center; border-left: 1px solid var(--line); }
.stat-cell:first-child { border-left: none; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--brand); letter-spacing: -0.5px; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- 卡片网格 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.card .icon-tile {
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--brand-light);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .icon-tile svg { width: 24px; height: 24px; fill: var(--brand); }
.card p { color: var(--muted); font-size: 14.5px; margin-bottom: 0; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--brand); }

/* ---------- 使用场景 (首页) ---------- */
.scene-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.scene-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.scene-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.scene-card .icon-tile {
  width: 50px; height: 50px; border-radius: 12px; flex: none;
  background: var(--brand-light);
  display: inline-flex; align-items: center; justify-content: center;
}
.scene-card .icon-tile svg { width: 26px; height: 26px; fill: var(--brand); }
.scene-card h3 { margin-bottom: 6px; }
.scene-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
thead th {
  background: var(--bg-soft); color: var(--ink);
  text-align: left; font-weight: 600;
  padding: 13px 18px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--brand-soft); }
td code, th code { white-space: nowrap; }

/* ---------- 命令代码块 ---------- */
.cmd-block {
  background: var(--ink);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #262648;
  margin: 16px 0 22px;
}
.cmd-head {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #A8A8C8; font-size: 12.5px; font-family: var(--mono);
}
.cmd-head .dot { width: 8px; height: 8px; border-radius: 50%; background: #3B3B66; }
.cmd-body {
  padding: 14px 18px;
  color: #E8E8F5;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.8;
  overflow-x: auto;
  white-space: pre;
}
.cmd-body .cmt { color: #7E7EA8; }
.cmd-body .flag { color: #8CB4FF; }
.cmd-body .out { color: #B9E6C8; }

/* ---------- 下载区 (首页 CTA) ---------- */
.dl-band { background: var(--brand); color: #fff; }
.dl-band h2 { color: #fff; }
.dl-band p { color: rgba(255, 255, 255, 0.85); }
.dl-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.dl-band .dl-text { max-width: 640px; }
.dl-band .btn-white { background: #fff; color: var(--brand); }
.dl-band .btn-white:hover { background: var(--brand-light); transform: translateY(-1px); }
.dl-band .btn-outline-w { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.dl-band .btn-outline-w:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- 下载中心 ---------- */
.dl-hero { background: var(--brand-lighter); border-bottom: 1px solid var(--line); padding: 56px 0 50px; }
.dl-hero h1 { margin-bottom: 12px; }
.dl-main { padding: 60px 0 72px; }
.dl-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dl-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.dl-card-head {
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
}
.dl-card-head .icon-tile {
  width: 46px; height: 46px; border-radius: 11px; flex: none;
  background: var(--brand-light);
  display: inline-flex; align-items: center; justify-content: center;
}
.dl-card-head .icon-tile svg { width: 24px; height: 24px; fill: var(--brand); }
.dl-card-head h2 { font-size: 20px; margin: 0; }
.dl-card-head .sub { font-size: 13px; color: var(--muted); }
.dl-card-body { padding: 22px 26px; flex: 1; }
.dl-card-body p { color: var(--muted); font-size: 14.5px; }
.dl-specs { list-style: none; margin: 12px 0 0; }
.dl-specs li { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); padding: 3px 0; align-items: flex-start; }
.dl-specs svg { width: 14px; height: 14px; fill: var(--ok); flex: none; margin-top: 5px; }
.dl-card-foot { padding: 18px 26px 24px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.dl-card-foot .btn { width: 100%; }
.tag {
  display: inline-block; font-size: 11.5px; font-weight: 600;
  padding: 2px 9px; border-radius: 999px; letter-spacing: 0.3px;
}
.tag-hot { background: var(--brand); color: #fff; }
.tag-plain { background: var(--brand-light); color: var(--brand-darker); }

/* ---------- 步骤条 ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  counter-increment: step;
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--brand); color: #fff;
  font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
details.faq {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0 22px;
  transition: border-color 0.2s;
}
details.faq[open] { border-color: var(--brand); }
details.faq summary {
  cursor: pointer; list-style: none;
  font-weight: 600; color: var(--ink);
  padding: 17px 0;
  font-size: 15.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-size: 22px; color: var(--brand); font-weight: 400; flex: none;
  transition: transform 0.2s;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-a { padding: 0 0 18px; color: var(--muted); font-size: 14.5px; border-top: 1px dashed var(--line); padding-top: 14px; }
details.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- 版本时间线 ---------- */
.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line);
}
.tl-item { position: relative; padding: 0 0 30px 24px; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
}
.tl-item.major::before { background: var(--brand); }
.tl-date { font-size: 12.5px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.3px; }
.tl-item h3 { font-size: 16.5px; margin: 2px 0 6px; }
.tl-item p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- 提示框 ---------- */
.note {
  border: 1px solid var(--line); border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--muted);
  margin: 18px 0;
}
.note strong { color: var(--ink); }

/* ---------- 页脚 ---------- */
.site-footer { background: #101024; color: #9A9AB8; padding: 56px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-logo { background: #fff; }
.footer-brand .brand-logo svg { fill: var(--brand); }
.footer-brand p { font-size: 13.5px; margin-top: 14px; color: #7A7AA0; }
.site-footer h4 { color: #fff; font-size: 14.5px; margin-bottom: 14px; letter-spacing: 0.5px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #9A9AB8; font-size: 13.5px; }
.footer-links a:hover { color: #fff; }
.footer-note { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 0 22px; font-size: 12.5px; color: #6E6E90; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- 下载弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 10, 30, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.modal-overlay.open { opacity: 1; visibility: visible;  left: 0;
  right: 0;
  top: 0;
  bottom: 0;}
  button { outline: none } 
.modal {
  background: #fff;
  border-radius: 16px;
  width: 100%; max-width: 620px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s;
}
.modal-overlay.open .modal { transform: none; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 19px; margin: 0; }
.modal-close {
  background: none; border: none; cursor: pointer; padding: 6px;
  border-radius: 8px; line-height: 0;
}
.modal-close:hover { background: var(--bg-soft); }
.modal-close svg { width: 20px; height: 20px; fill: var(--muted); }
.modal-close:focus-visible { outline: 3px solid rgba(0,0,255,.35); outline-offset: 2px; }
.modal-body { padding: 24px 26px 28px; }
.modal-ver {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  font-size: 13.5px; color: var(--muted); margin-bottom: 22px;
}
.modal-ver .v { color: var(--brand); font-weight: 700; font-family: var(--mono); }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 66px; }
.qr-item {
  border: 1px solid var(--line); border-radius: 13px;
  padding: 20px 16px 18px; text-align: center;
  background: var(--bg-soft);
}
.qr-box {
  width: 100%; aspect-ratio: 1 / 1;
  background: #fff;
  border: 2px dashed #C9CBE4;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 13px;
  overflow: hidden;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-box .qr-holder {
  color: #A6A8C4; font-size: 12.5px; text-align: center; padding: 10px; line-height: 1.6;
}
.qr-item h3 { font-size: 15px; margin-bottom: 3px; }
.qr-item .hint { font-size: 12.5px; color: var(--muted); }
.modal-tips {
  margin-top: 20px; font-size: 12.5px; color: var(--muted);
  border-top: 1px dashed var(--line); padding-top: 14px;
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--brand-dark); }
.back-top svg { width: 20px; height: 20px; fill: #fff; }
.back-top:focus-visible { outline: 3px solid rgba(0,0,255,.35); outline-offset: 2px; }

/* ---------- 页面内导航锚点偏移 ---------- */
[id] { scroll-margin-top: 86px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(3) { border-left: none; }
  .stat-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero { padding: 56px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-2, .grid-3, .scene-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .main-nav {
    position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 14px;
    display: none;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a.nav-link { padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
  .main-nav a.nav-link:last-of-type { border-bottom: none; }
  .nav-toggle { display: block; }
  .nav-download { display: none; }
  .dl-band .container { flex-direction: column; align-items: flex-start; }
  .qr-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-cell { border-left: none; border-top: 1px solid var(--line); }
  .stat-cell:first-child { border-top: none; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .container { padding: 0 18px; }
}
