/* Turbodownload 官网样式
   设计取向:干净工具风——浅色底、单一蓝色强调、系统字体、充足留白。
   零外部依赖:不引任何 CDN/字体/图标,保证离线打开与任意静态托管都一致。 */

:root {
  /* 唯一强调色:全站交互元素(链接/按钮/勾选)都用它,避免花哨 */
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --text: #1f2937;
  --text-dim: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --border: #e5e7eb;
  --radius: 10px;
  /* 中文优先的系统字体栈:不下载网络字体,各平台渲染即开即用 */
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h2 {
  font-size: 1.6rem;
  margin: 0 0 8px;
}

code {
  background: #eef2f7;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.92em;
}

/* ---------- 页头 ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  /* 粘性页头:长页面里锚点导航随时可用,成本极低 */
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }

.tagline {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.nav {
  /* 导航推到右侧,窄屏时自动换行 */
  margin-left: auto;
  display: flex;
  gap: 20px;
}

.nav a {
  color: var(--text);
  font-size: 0.95rem;
}
.nav a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 88px 0 72px;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero-note {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  border-radius: var(--radius);
  padding: 12px 28px;
  font-size: 1rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-small {
  padding: 7px 18px;
  font-size: 0.9rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: #fff;
  white-space: nowrap;
}
.btn-small:hover { background: var(--accent); color: #fff; }

/* ---------- 区块 ---------- */
.section { padding: 64px 0; }
/* 交替浅灰底:视觉上分隔相邻区块,不靠分割线 */
.section-alt { background: var(--bg-alt); }

.section-lead {
  color: var(--text-dim);
  margin: 0 0 32px;
}

/* ---------- 功能网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
}

.icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ---------- 表格(对照表 + 下载表共用) ---------- */
.table-wrap {
  /* 窄屏允许横向滚动,表格不挤压变形 */
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare th,
.compare td {
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.compare thead th {
  background: var(--bg-alt);
  font-weight: 600;
  white-space: nowrap;
}

.compare tbody tr:last-child td { border-bottom: none; }

/* 免费/Pro 列居中,区分"有/无"的视觉权重 */
.compare td:not(:first-child),
.compare th:not(:first-child) {
  text-align: center;
  white-space: nowrap;
}
.compare td:first-child { min-width: 260px; }

td.yes { color: var(--accent); font-weight: 600; }
td.no { color: var(--text-dim); }

/* 下载表(.compare.downloads)作用域覆写:对照表的两条规则(首列 min-width:260px、
   非首列居中+nowrap)是为免费/Pro 表写的,直接套到下载表会把档位列撑宽、长说明撑爆行。
   注意:rowspan 合并后同一列在两类行里的 nth-child 序号不同(次行少一个档位格),
   一律用 nth-last-child 从末尾定位才同时命中:说明=倒数第 2、体积=倒数第 3、类型=倒数第 4。 */
.compare.downloads td:first-child { min-width: 0; }
.compare.downloads td:nth-last-child(4),
.compare.downloads td:nth-last-child(3) {
  /* 类型/体积列左对齐,与说明列形成统一左边缘(居中在字数不一时两侧参差) */
  text-align: left;
}
.compare.downloads td:nth-last-child(2) {
  text-align: left;
  white-space: normal;
  color: var(--text-dim);
}

/* ---------- 价格区 ---------- */
.price-box {
  text-align: center;
  margin-top: 40px;
}

.trial {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.price {
  margin: 8px 0 4px;
}

.price-current {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
}
.price-current small {
  font-size: 0.9rem;
  font-weight: 400;
}

.price-regular {
  color: var(--text-dim);
  text-decoration: line-through;
  margin-left: 10px;
  font-size: 1.1rem;
}

.price-note {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0 0 20px;
}

.fine-print {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-top: 16px;
}

/* ---------- 下载区补充说明 ---------- */
.note {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-top: 20px;
}

/* ---------- 插件安装步骤 ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px 20px 16px 56px;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-list details p {
  margin: 10px 0 2px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 40px 0;
  text-align: center;
}

.disclaimer {
  color: var(--text-dim);
  font-size: 0.85rem;
  max-width: 720px;
  margin: 0 auto 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.copyright {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
}

/* ---------- 窄屏:单列堆叠即可,不做复杂断点 ---------- */
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 1.8rem; }
  /* 页头竖排,避免导航挤压产品名 */
  .header-inner { flex-wrap: wrap; }
  .tagline { order: 3; width: 100%; }
  .nav { margin-left: 0; }
}
