/* 驻匣宣传页样式：单文件、无外部依赖、无 CDN 字体 */

:root {
  --bg: #0b0d10;
  --bg-2: #0f1216;
  --panel: rgba(255, 255, 255, 0.032);
  --panel-2: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eceef2;
  --dim: #9aa3b0;
  --faint: #6b7480;
  --accent: #2e90fa;
  --accent-2: #a855f7;
  --green: #22c55e;
  --amber: #ffa940;
  --radius: 16px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB",
    "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景：顶部两团色光 + 网格，纯 CSS，不加载图片 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(760px 420px at 12% -8%, rgba(46, 144, 250, 0.22), transparent 70%),
    radial-gradient(680px 400px at 92% 4%, rgba(168, 85, 247, 0.16), transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(1000px 620px at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(1000px 620px at 50% 0%, #000 30%, transparent 78%);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------- 导航 */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 13, 16, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand svg { width: 28px; height: 28px; }

/* 站点图标直接用软件图标（assets/icons/png/zhuxia-64.png） */
.brand .mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 3px 10px -3px rgba(0, 0, 0, 0.75);
}
.brand .en { color: var(--faint); font-weight: 500; font-size: 13px; letter-spacing: 0.12em; }

.nav nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav nav a {
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--dim);
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}

.nav nav a:hover { color: var(--text); background: var(--panel-2); }
.nav nav a.gh { border: 1px solid var(--border); color: var(--text); }

/* ---------------------------------------------------------------- 首屏 */

.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--panel);
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 20px;
}

.badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 169, 64, 0.18);
}

.badge.stable i { background: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }

h1 {
  margin: 0 0 18px;
  /* 窄屏折行时尽量把三行拉齐，避免最后一行只剩「工具」两个字 */
  text-wrap: balance;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  margin: 0 0 26px;
  color: var(--dim);
  font-size: clamp(14px, 1.2vw, 16.5px);
  max-width: 46ch;
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.16s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:active { transform: translateY(1px); }

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #1f6feb);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(46, 144, 250, 0.85);
}

.btn.primary:hover { box-shadow: 0 16px 38px -12px rgba(46, 144, 250, 0.95); }

.btn.ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--panel);
}

.btn.ghost:hover { background: var(--panel-2); border-color: rgba(255, 255, 255, 0.26); }

.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.4);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats li { display: flex; flex-direction: column; gap: 2px; }
.stats b { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.stats span { font-size: 12.5px; color: var(--faint); }

/* 首屏是真机截图：窗口 + 叠在左下角的任务栏监视条 */
.hero-art { position: relative; }

.hero-art .win {
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #f7f7f7;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.4);
}

/* ---------------------------------------------------------------- 通用区块 */

.section { padding: clamp(44px, 6vw, 76px) 0; }

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.01em;
}

.section .lead {
  margin: 0 0 32px;
  color: var(--dim);
  max-width: 62ch;
  font-size: 15px;
}

.grid { display: grid; gap: 16px; }

/* ---------------------------------------------------------------- 功能卡 */

.features { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }

.card {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px 160px at 20% 0%, rgba(46, 144, 250, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card:hover::after { opacity: 1; }

.card .ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(46, 144, 250, 0.22), rgba(168, 85, 247, 0.14));
  border: 1px solid rgba(46, 144, 250, 0.28);
  margin-bottom: 14px;
}

.card .ico svg { width: 19px; height: 19px; stroke: #9ecbff; fill: none; stroke-width: 1.7; }

.card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.card p { margin: 0; color: var(--dim); font-size: 13.5px; line-height: 1.72; }

/* ---------------------------------------------------------------- 界面截图 */

.shots { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }

/* 任务栏条带：真实截图常驻在浅色底上，和深色页面对比出来才看得清 */
.tkbar {
  padding: 22px 16px;
  text-align: center;
  border-radius: 10px;
  background: #f3f3f3;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  line-height: 0;
}

.tkbar img { display: block; margin: 0 auto; width: 100%; max-width: 300px; height: auto; }

.shot {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.shot:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.shot a { display: block; border-radius: 10px; overflow: hidden; line-height: 0; }
.shot img { width: 100%; height: auto; }
.shot figcaption { padding: 12px 6px 4px; }
.shot strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.shot span { color: var(--faint); font-size: 13px; }

/* ---------------------------------------------------------------- 亮点 */

.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

.hl {
  padding: 24px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
}

.hl h3 { margin: 0 0 8px; font-size: 15.5px; }
.hl p { margin: 0; color: var(--dim); font-size: 13.5px; }

/* ---------------------------------------------------------------- 常见问题 */

.faq { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.qa {
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}

.qa h3 { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.qa p { margin: 0; color: var(--dim); font-size: 13.5px; }

/* ---------------------------------------------------------------- 下载 */

.downloads { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.dl {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dl.stable {
  border-color: rgba(34, 197, 94, 0.32);
  background: linear-gradient(170deg, rgba(34, 197, 94, 0.09), rgba(255, 255, 255, 0.012));
}

.dl.preview {
  border-color: rgba(255, 169, 64, 0.32);
  background: linear-gradient(170deg, rgba(255, 169, 64, 0.09), rgba(255, 255, 255, 0.012));
}

.dl header { display: flex; align-items: center; gap: 10px; }
.dl h3 { margin: 0; font-size: 17px; }

.tag {
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--dim);
}

.dl.stable .tag { color: #7ee2a3; border-color: rgba(34, 197, 94, 0.4); }
.dl.preview .tag { color: #ffc978; border-color: rgba(255, 169, 64, 0.4); }

.dl .ver { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.dl .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--faint); font-size: 12.5px; }
.dl .meta code { font-family: ui-monospace, "Cascadia Mono", monospace; color: var(--dim); }
.dl .btn { align-self: flex-start; margin-top: 2px; }
.dl .note { color: var(--faint); font-size: 12px; margin: 0; }

.fineprint { color: var(--faint); font-size: 12.5px; margin: 18px 0 0; }
.fineprint a { color: var(--dim); border-bottom: 1px dotted var(--border-strong); }

/* ---------------------------------------------------------------- 更新日志 */

.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--border-strong), transparent);
}

.timeline > li { position: relative; padding: 0 0 30px 4px; }

.timeline > li::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--border-strong);
}

.timeline > li.new::before { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46, 144, 250, 0.16); }

.rel-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }

.rel-head h3 { margin: 0; font-size: 16px; font-family: ui-monospace, "Cascadia Mono", monospace; }
.rel-head time { color: var(--faint); font-size: 12.5px; }
.rel-head .link { color: var(--dim); font-size: 12.5px; border-bottom: 1px dotted var(--border-strong); }

.rel ul { margin: 0; padding-left: 18px; color: var(--dim); font-size: 13.5px; }
.rel ul li { margin: 3px 0; }
.rel ul li::marker { color: var(--faint); }

.empty { color: var(--faint); font-size: 14px; }

/* ---------------------------------------------------------------- 页脚 */

footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 44px;
  color: var(--faint);
  font-size: 13px;
}

footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer .links { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
footer a { color: var(--dim); }
footer a:hover { color: var(--text); }

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .nav nav a:not(.gh) { display: none; }
  .nav nav { gap: 4px; }
}

@media (max-width: 640px) {
  /* 标题里的硬换行在窄屏会把「高频」劈成两半，交给浏览器自然折行 */
  h1 br { display: none; }
  body { font-size: 15px; }
  .wrap { padding: 0 18px; }
  .nav .wrap { height: 56px; gap: 12px; }
  .brand .en { display: none; }
  .stats { gap: 18px; }
  .stats b { font-size: 20px; }
  .card, .dl, .hl { padding: 20px 18px; }
  .section { padding: 40px 0; }
  .timeline { padding-left: 18px; }
  footer .links { margin-left: 0; }
}

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

/* 打印/无 JS 时也完整可读 */
@media print {
  body::before, body::after { display: none; }
  body { background: #fff; color: #111; }
  .nav { position: static; }
}
