/* 小敏桌面工具 · 官网样式
   约定：
   1. 不引用外部字体与图标资源，字体走系统字体栈，图标为内联 SVG。
      原因见《软著商标与知识产权准备》字体与素材版权一节。
   2. 三种目标宽度（1920 / 1440 / 375）下不得出现横向滚动 —— 上线检查项 SITE-01。
      实现手段：容器限宽 + 弹性栅格 + 宽表格自身滚动，不使用固定大宽度。
   3. 颜色集中于变量，便于后续与软件内配色保持一致。 */

:root {
  --brand: #4c8dff;
  --brand-dark: #2f6fe0;
  --brand-soft: #eaf1ff;
  --ink: #161b26;
  --ink-2: #3c4557;
  --ink-3: #6b7688;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-dark: #12161f;
  --ok: #17a673;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(18, 24, 38, .05), 0 8px 24px rgba(18, 24, 38, .06);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
          system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", "Courier New", monospace;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(28px, 4.2vw, 44px); letter-spacing: -.02em; }
h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.01em; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; height: auto; }
code { font-family: var(--mono); font-size: .88em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-3); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- 顶栏 */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, var(--brand), #7db0ff);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
}
.brand-name { font-size: 17px; letter-spacing: -.01em; }
.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--ink-2); font-size: 15px; }
.site-nav a:hover { color: var(--brand-dark); text-decoration: none; }
.site-nav a.on { color: var(--brand-dark); font-weight: 600; }
.nav-toggle {
  display: none; margin-left: auto; padding: 7px 14px; font: inherit; font-size: 14px;
  color: var(--ink-2); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer;
}

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; font-size: 15px; font-weight: 600; line-height: 1;
  color: var(--ink); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: background .16s, border-color .16s, transform .16s, box-shadow .16s;
}
.btn:hover { text-decoration: none; border-color: #cfd8e6; transform: translateY(-1px); }
.btn.primary {
  color: #fff; background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  border-color: var(--brand-dark);
  box-shadow: 0 2px 8px rgba(76, 141, 255, .28);
}
.btn.primary:hover { box-shadow: 0 6px 18px rgba(76, 141, 255, .34); }
.btn.sm { padding: 8px 15px; font-size: 14px; }
.btn.lg { padding: 14px 28px; font-size: 16px; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }

/* ---------------------------------------------------------------- 区块 */
main > section { padding: 68px 0; }
main > section.tight { padding: 46px 0; }
.sec-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: 34px; }
.sec-head p { color: var(--ink-3); margin: 0; }

/* ---------------------------------------------------------------- 首屏 */
.hero { padding: 76px 0 64px; background:
  radial-gradient(1000px 420px at 12% -8%, #eef4ff 0%, rgba(255,255,255,0) 62%),
  radial-gradient(760px 380px at 100% 0%, #f0f6ff 0%, rgba(255,255,255,0) 58%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-block; margin-bottom: 16px; padding: 5px 12px; font-size: 13px;
  color: var(--brand-dark); background: var(--brand-soft);
  border-radius: 999px; font-weight: 600;
}
.hero p.lead { font-size: 17px; color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-note { font-size: 13.5px; color: var(--ink-3); }
.hero-visual {
  border: 1px solid var(--line); border-radius: 18px; background: #fff;
  box-shadow: var(--shadow); padding: 18px; position: relative; overflow: hidden;
}
.mock {
  position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, #1b2233 0%, #2a3550 52%, #1a2030 100%);
}
.mock-item {
  position: absolute; background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px;
  backdrop-filter: blur(2px);
}
.mock-clock { left: 7%; top: 9%; width: 31%; aspect-ratio: 1; border-radius: 50%; }
.mock-clock::after {
  content: ""; position: absolute; inset: 27%; border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}
.mock-note { right: 7%; top: 11%; width: 38%; height: 26%; }
.mock-note::after {
  content: ""; position: absolute; left: 12%; right: 30%; top: 30%; height: 2px;
  background: rgba(255, 255, 255, .3);
  box-shadow: 0 7px 0 rgba(255, 255, 255, .22), 0 14px 0 rgba(255, 255, 255, .14);
}
.mock-sensor { left: 7%; bottom: 10%; width: 44%; height: 32%; }
.mock-sensor::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 22%; height: 34%;
  background: linear-gradient(90deg, #6fb1ff 0 22%, rgba(255,255,255,.14) 22% 40%,
              #8fd0b0 40% 62%, rgba(255,255,255,.14) 62% 74%, #ffc98a 74% 100%);
  border-radius: 3px;
}
.mock-weather { right: 7%; bottom: 12%; width: 34%; height: 20%; }
.mock-weather::after {
  content: ""; position: absolute; left: 14%; top: 34%; width: 22%; aspect-ratio: 1;
  border-radius: 50%; background: rgba(255, 214, 138, .8);
}
.mock-caption { margin-top: 14px; font-size: 13px; color: var(--ink-3); text-align: center; }

/* ---------------------------------------------------------------- 卖点 */
.hl-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.hl {
  padding: 22px 22px 8px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.hl h3 { margin-bottom: 8px; }
.hl p { color: var(--ink-3); font-size: 14.6px; margin: 0; }

/* ---------------------------------------------------------------- 插件宫格 */
.plugin-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.plugin {
  position: relative; padding: 22px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.plugin:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d7e0ee; }
.plugin-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 14px; color: var(--brand-dark);
  background: var(--brand-soft); border-radius: 12px;
}
.plugin-name { margin-bottom: 6px; }
.plugin-desc { font-size: 14.4px; color: var(--ink-3); margin: 0 0 14px; }
.plugin-tier {
  display: inline-block; padding: 3px 10px; font-size: 12.5px; font-weight: 600;
  color: var(--ink-3); background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px;
}
.plugin.quota .plugin-icon { color: #b8791a; background: #fff6e6; }
.plugin.quota .plugin-tier { color: #9a6410; background: #fff6e6; border-color: #f6e2c0; }

/* ---------------------------------------------------------------- 信任区 */
.trust-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center;
}
.trust-list li {
  padding: 22px 12px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
}
.trust-list strong { display: block; font-size: 26px; color: var(--ink); letter-spacing: -.02em; }
.trust-list span { font-size: 13.6px; color: var(--ink-3); }

/* ---------------------------------------------------------------- 定价 */
.plan-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px; max-width: 760px;
}
.plan {
  position: relative; padding: 30px 26px 26px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; text-align: center;
}
.plan.featured {
  border-color: var(--brand); box-shadow: 0 10px 30px rgba(76, 141, 255, .14);
}
.plan .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px; font-size: 12.5px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  border-radius: 999px; white-space: nowrap;
}
.plan-name { font-size: 16px; color: var(--ink-3); font-weight: 600; margin-bottom: 6px; }
.plan-price { font-size: 40px; font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 10px; }
.plan-price .unit { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan-note { font-size: 14px; color: var(--ink-3); min-height: 44px; margin-bottom: 18px; }
.plan .btn { width: 100%; }
.renew {
  margin-top: 22px; padding: 16px 20px; font-size: 14.4px; color: var(--ink-2);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare {
  width: 100%; min-width: 520px; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  font-size: 15px;
}
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--bg-soft); font-size: 14px; color: var(--ink); }
table.compare tbody th { font-weight: 500; color: var(--ink-2); }
table.compare td { color: var(--ink-3); text-align: center; }
table.compare .col-pro { background: #f7faff; color: var(--brand-dark); font-weight: 600; }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }

.faq-list { max-width: 780px; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 16px 0; font-weight: 600; color: var(--ink); cursor: pointer;
  list-style: none; position: relative; padding-right: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px; font-size: 19px;
  color: var(--ink-3); font-weight: 400;
}
.faq[open] summary::after { content: "−"; }
.faq-body { padding: 0 0 18px; }
.faq-body p { margin: 0; color: var(--ink-3); font-size: 15px; }

/* ---------------------------------------------------------------- 下载 */
.dl-card {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px;
  padding: 32px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow);
}
.dl-ver { font-size: 17px; margin-bottom: 4px; }
.dl-meta { color: var(--ink-3); font-size: 14.4px; margin-bottom: 20px; }
.hash {
  margin: 18px 0 0; font-size: 12.6px; color: var(--ink-3);
  word-break: break-all; line-height: 1.6;
}
.hash code { color: var(--ink-2); }
.dl-side { border-left: 1px solid var(--line); padding-left: 28px; }
.dl-side h3 { font-size: 15px; margin-bottom: 12px; }
.req li { position: relative; padding-left: 18px; font-size: 14.4px; color: var(--ink-3); margin-bottom: 8px; }
.req li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--brand);
}
.ver { padding: 20px 0; border-bottom: 1px solid var(--line); }
.ver h3 { margin-bottom: 10px; font-size: 16px; }
.ver h3 .muted { font-size: 13.5px; font-weight: 400; margin-left: 6px; }
.ver ul li { position: relative; padding-left: 18px; font-size: 14.6px; color: var(--ink-3); margin-bottom: 6px; }
.ver ul li::before { content: "·"; position: absolute; left: 4px; color: var(--brand); font-weight: 700; }

/* ---------------------------------------------------------------- 文档页 */
.doc { max-width: 800px; }
.doc h1 { margin-bottom: 8px; }
.doc .doc-meta { color: var(--ink-3); font-size: 14px; margin-bottom: 34px; }
.doc h2 {
  margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 21px;
}
.doc h2:first-of-type { border-top: 0; padding-top: 0; }
.doc h3 { margin-top: 24px; font-size: 16.5px; }
.doc p, .doc li { color: var(--ink-2); font-size: 15.2px; }
.doc ul, .doc ol { margin: 0 0 1em; }
.doc ul li { position: relative; padding-left: 20px; margin-bottom: 7px; }
.doc ul li::before { content: ""; position: absolute; left: 5px; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.doc ol { counter-reset: li; }
.doc ol li { position: relative; padding-left: 26px; margin-bottom: 7px; counter-increment: li; }
.doc ol li::before {
  content: counter(li) "."; position: absolute; left: 0; color: var(--ink-3); font-weight: 600;
}
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 14.6px; }
.doc th, .doc td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { background: var(--bg-soft); color: var(--ink); font-weight: 600; }
.doc td { color: var(--ink-3); }
.doc .note {
  padding: 16px 20px; font-size: 14.6px; color: var(--ink-2);
  background: var(--bg-soft); border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------------------------------------------------------------- 页脚 */
.site-footer { background: var(--bg-dark); color: #9aa5b8; padding: 52px 0 30px; margin-top: 20px; }
.site-footer a { color: #c7d1e2; }
.site-footer a:hover { color: #fff; }
.foot-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot-brand { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.foot-about .muted { color: #8b96aa; font-size: 14px; max-width: 30em; }
.site-footer h3 { color: #fff; font-size: 14px; margin-bottom: 12px; font-weight: 600; }
.site-footer ul li { margin-bottom: 8px; font-size: 14px; }
.site-footer .muted { color: #8b96aa; }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between;
  margin-top: 38px; padding-top: 20px; border-top: 1px solid #232a38;
  font-size: 13.4px;
}
.foot-bottom p { margin: 0; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .plugin-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 768px) {
  main > section { padding: 52px 0; }
  .hero { padding: 52px 0 44px; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 64px; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 24px 18px;
    background: #fff; border-bottom: 1px solid var(--line); display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 14px; border-bottom: 0; }
  .nav-toggle { display: block; }
  .dl-card { grid-template-columns: 1fr; padding: 24px; }
  .dl-side { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .hl-list { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .plan-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 15.4px; }
  .wrap { padding: 0 18px; }
  .plugin-grid { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { grid-template-columns: 1fr; }
  .plan-price { font-size: 34px; }

  /* 权益对比表在窄屏改为卡片堆叠。
     若沿用横向滚动，「专业版」列默认不可见，而它正是要传达的信息。 */
  .table-wrap { overflow-x: visible; }
  table.compare { min-width: 0; border: 0; background: transparent; font-size: 14.8px; }
  table.compare thead { display: none; }
  table.compare tbody, table.compare tr, table.compare th, table.compare td { display: block; }
  table.compare tr {
    margin-bottom: 10px; padding: 14px 16px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
  }
  table.compare tbody th {
    padding: 0 0 9px; border: 0; font-weight: 600; color: var(--ink); font-size: 15px;
  }
  table.compare td {
    display: flex; justify-content: space-between; gap: 14px;
    padding: 4px 0; border: 0; text-align: left; background: transparent;
  }
  table.compare td::before {
    content: attr(data-label); color: var(--ink-3); font-weight: 400; flex: none;
  }
  table.compare .col-pro { color: var(--brand-dark); font-weight: 600; }

  /* 说明性表格保持表格形态，仅允许长串折行，避免窄屏撑破容器 */
  .doc table { table-layout: fixed; }
  .doc th, .doc td { word-break: break-word; }
}

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