/* ============================================================
   DeshabOS — Fluent / 微软风格 微站共享样式
   浅色 · Segoe UI · 微软蓝 #0078d4
   ============================================================ */

:root {
  --accent: #0078d4;
  --accent-hover: #0067b8;
  --accent-soft: #e8f3fc;
  --accent-line: #c9e2f7;

  --bg: #ffffff;
  --bg-soft: #f5f6f7;
  --bg-card: #ffffff;
  --text: #1b1b1b;
  --text-secondary: #44474b;
  --text-muted: #767676;
  --line: #e0e0e0;
  --line-strong: #c8c8c8;

  --ok: #0e7a32;
  --ok-bg: #e6f4ea;
  --wip: #9a6700;
  --wip-bg: #fdf3d7;
  --plan: #6b6b6b;
  --plan-bg: #f0f0f0;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.08), 0 12px 32px rgba(0,0,0,.10);

  --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, figure, pre { margin: 0; }
ul, ol { padding-left: 1.4em; }
code { font-family: var(--mono); font-size: .9em; background: var(--bg-soft); padding: 1px 5px; border-radius: 4px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* ============ 顶部导航 ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 20px; height: 60px; }
.back {
  font-size: 13px; color: var(--text-muted); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px;
}
.back:hover { color: var(--accent); text-decoration: none; }
.brand {
  font-size: 17px; font-weight: 600; color: var(--text); letter-spacing: -.01em;
  white-space: nowrap;
}
.brand span { color: var(--accent); }
.subnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.subnav a {
  font-size: 14px; color: var(--text-secondary); padding: 7px 13px; border-radius: 6px;
  white-space: nowrap; position: relative;
}
.subnav a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.subnav a.is-active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.subnav a.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: -13px; height: 3px;
  background: var(--accent); border-radius: 3px 3px 0 0;
}

/* ============ Hero ============ */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(1200px 500px at 15% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 420px at 90% -20%, #f0f7ff, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: clamp(40px, 6vw, 64px); line-height: 1.06; letter-spacing: -.02em; font-weight: 600;
}
.hero h1 .accent { color: var(--accent); }
.hero__lead { font-size: 18px; color: var(--text-secondary); max-width: 44em; margin-top: 20px; }
.hero__meta { font-size: 13px; color: var(--text-muted); margin-top: 18px; font-family: var(--mono); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__hint { font-size: 13px; color: var(--text-muted); margin-top: 16px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px;
  font-size: 15px; font-weight: 600; border-radius: 6px; cursor: pointer;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  transition: background-color .15s, transform .05s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: #fff; color: var(--accent); border-color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-hover); }

/* ============ 通用区块 ============ */
.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; }
.section__head h2 { font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.section__head .num { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 600; }
.section__sub { color: var(--text-muted); font-size: 15px; max-width: 52em; margin-top: 6px; }

/* ============ 卡片网格 ============ */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 22px 20px; box-shadow: var(--shadow);
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: var(--accent-line); transform: translateY(-2px); }
.card .k { font-family: var(--mono); font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: .03em; display: block; margin-bottom: 9px; }
.card h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-top: 9px; }
.card--icon { font-size: 24px; line-height: 1; margin-bottom: 12px; }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table thead th {
  text-align: left; background: var(--bg-soft); color: var(--text-secondary);
  font-weight: 600; font-size: 13px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg-soft); }
.table code { white-space: nowrap; }

/* ============ 代码块 / 架构图 ============ */
.code {
  font-family: var(--mono); font-size: 13px; line-height: 1.85;
  background: #f6f8fa; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 20px; overflow-x: auto; white-space: pre; color: var(--text-secondary);
}
.code .hl { color: var(--accent); }
.code .dim { color: var(--text-muted); }

/* ============ 状态徽章 ============ */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { color: var(--ok); background: var(--ok-bg); }
.pill.wip { color: var(--wip); background: var(--wip-bg); }
.pill.plan { color: var(--plan); background: var(--plan-bg); }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; font-size: 13px; color: var(--text-muted); }

/* ============ 引文 / 箴言 ============ */
.blockquote {
  border-left: 4px solid var(--accent); background: var(--accent-soft);
  padding: 18px 22px; border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin: 18px 0;
}
.blockquote strong { color: var(--text); }

/* ============ 下载区 ============ */
.download-panel {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: stretch;
  margin-top: 8px;
}
.download-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow);
}
.download-card h3 { font-size: 18px; font-weight: 600; }
.download-card p { font-size: 14px; color: var(--text-secondary); margin-top: 8px; }
.download-card .btn { margin-top: 18px; }

/* ============ 页脚 ============ */
.footer {
  border-top: 1px solid var(--line); background: var(--bg-soft);
  padding: 44px 0 36px; margin-top: 8px;
}
.footer__in { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer__brand { font-weight: 600; font-size: 15px; }
.footer__brand span { color: var(--accent); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; }
.footer__nav a { color: var(--text-secondary); }
.footer__nav a:hover { color: var(--accent); text-decoration: none; }
.footer__bottom { font-size: 13px; color: var(--text-muted); margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ============ 响应式 ============ */
@media (max-width: 860px) {
  .topbar__in { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .subnav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .subnav a.is-active::after { bottom: -6px; }
  .hero { padding: 48px 0 40px; }
  .download-panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .btn { height: 42px; padding: 0 18px; }
}
