/* ============================================================================
   TaskHub 托盘使用说明站 · 深色科技风
   色板与 ardot 设计稿「托盘使用说明网站 · Web」一致：
   深底 #0A0A12 + 霓虹紫 #7C5CFF / 青 #22D3EE
   ========================================================================== */

:root {
  --bg: #0a0a12;
  --bg-alt: #0b0b14;
  --bg-card: #12121e;
  --bg-card-2: #0f0f1a;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --purple: #7c5cff;
  --purple-soft: #a98cff;
  --cyan: #22d3ee;
  --green: #5fd98a;
  --amber: #febc2e;
  --red: #ff5f57;
  --text: #f4f5fa;
  --text-2: #a9aec4;
  --text-3: #8e93ad;
  --text-4: #6b7089;
  --text-5: #5e6379;
  --grad-logo: linear-gradient(135deg, #7d5cff, #21d3ee);
  --grad-cta: linear-gradient(120deg, #8c5cff, #21b8e6);
  --radius: 18px;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;
  --sans: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad-logo);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: #06060c;
  font-family: var(--mono);
  box-shadow: 0 4px 18px rgba(124, 92, 255, 0.4);
}
.brand-name { font-weight: 600; font-size: 17px; letter-spacing: 0.2px; }
.brand-name small { color: var(--text-4); font-weight: 400; margin-left: 8px; font-size: 12px; }

.nav { display: flex; gap: 30px; }
.nav a {
  color: var(--text-2); text-decoration: none; font-size: 15px;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav a:hover, .nav a.active { color: var(--text); border-bottom-color: var(--purple); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px; border: none;
  font-size: 15px; font-weight: 600; font-family: var(--sans);
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad-cta); color: #0a0a12;
  box-shadow: 0 6px 24px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(124, 92, 255, 0.55); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04); color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 64px;
  background:
    radial-gradient(900px 420px at 20% -10%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(700px 380px at 85% 10%, rgba(34, 211, 238, 0.09), transparent 60%),
    linear-gradient(180deg, #0a0a12 0%, #141026 55%, #0f111f 100%);
}
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.45);
  color: #c9beff; font-size: 13px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 5.2vw, 62px); line-height: 1.22; font-weight: 700;
  max-width: 900px;
}
.hero h1 .accent {
  background: var(--grad-logo);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 20px; font-size: 18px; line-height: 1.8; color: var(--text-2); max-width: 780px; }
.hero-ctas { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-trust { margin-top: 22px; font-size: 13px; color: var(--text-4); }

/* ---------- Hero 产品 mock ---------- */
.mock {
  margin-top: 56px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px; overflow: hidden;
  background: #0e0e19;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}
.mock-titlebar {
  display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px; background: #12121e;
}
.mock-titlebar .td { width: 10px; height: 10px; border-radius: 50%; }
.mock-titlebar .path {
  margin-left: 14px; color: #7a7e94; font-size: 12.5px; font-family: var(--mono);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-body { display: flex; gap: 22px; padding: 26px; background: #0b0b14; }
.tray-menu {
  flex: 0 0 270px;
  background: #1b1b2e; border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px; padding: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.tray-menu .menu-title {
  font-size: 11.5px; color: #7a7e94; padding: 2px 10px 8px;
  font-family: var(--mono);
}
.tray-menu .mi {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; font-size: 14px; color: #e4e6f2;
}
.tray-menu .mi .ico { width: 6px; height: 15px; border-radius: 3px; background: rgba(255,255,255,.2); }
.tray-menu .mi.hot { background: rgba(124, 92, 255, 0.18); color: #cfc2ff; font-weight: 500; }
.tray-menu .mi.hot .ico { background: var(--purple-soft); }
.tray-menu .mi .tag {
  margin-left: auto; font-size: 10.5px; color: #7fe7f6;
  background: rgba(34, 211, 238, 0.13); padding: 2px 7px; border-radius: 5px;
}
.prompt-card {
  flex: 1; min-width: 0;
  background: #0a0a12; border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px; padding: 20px; font-family: var(--mono); font-size: 13px;
}
.prompt-card .phead {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.prompt-card .pname { color: #e4e6f2; font-weight: 600; }
.prompt-card .ptag {
  color: #7fe7f6; font-size: 11px; background: rgba(34, 211, 238, 0.13);
  padding: 3px 10px; border-radius: 6px; font-family: var(--sans);
}
.prompt-card .ln { color: #8e93ad; line-height: 1.85; white-space: pre-wrap; }
.prompt-card .ln.k { color: var(--purple-soft); }
.prompt-card .phint {
  margin-top: 12px; color: #5e6379; font-family: var(--sans); font-size: 12px; line-height: 1.7;
}
.mock-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  height: 42px; padding: 0 20px; background: #12121e;
  font-size: 12px;
}
.mock-statusbar .ok { color: var(--green); }
.mock-statusbar .dim { color: #7a7e94; }

/* ---------- Sections ---------- */
section.block { padding: 84px 0 92px; }
section.block.alt { background: var(--bg-alt); }
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 2px;
  color: var(--cyan);
}
h2.section-title {
  margin-top: 12px;
  font-size: clamp(30px, 3.6vw, 40px); font-weight: 700; line-height: 1.35;
}
.section-desc { margin-top: 14px; color: var(--text-2); font-size: 16px; line-height: 1.75; max-width: 780px; }
.section-head { margin-bottom: 44px; }

/* 步骤卡 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px;
}
.step .num { font-family: var(--mono); font-size: 32px; font-weight: 700; color: var(--purple); }
.step:nth-child(2) .num { color: var(--cyan); }
.step:nth-child(3) .num { color: var(--green); }
.step h3 { font-size: 19px; font-weight: 600; }
.step p { font-size: 14px; line-height: 1.8; color: var(--text-2); }
.step .meta { margin-top: auto; font-size: 12px; color: var(--text-5); }

/* 功能列表 + 状态卡 */
.features-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.feature-list { display: flex; flex-direction: column; gap: 12px; }
.feature {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px;
}
.feature .bar { flex: 0 0 3px; height: 36px; border-radius: 2px; background: var(--purple); margin-top: 3px; }
.feature:nth-child(2) .bar { background: var(--cyan); }
.feature:nth-child(3) .bar { background: var(--purple-soft); }
.feature:nth-child(4) .bar { background: var(--cyan); }
.feature:nth-child(5) .bar { background: var(--green); }
.feature:nth-child(6) .bar { background: var(--amber); }
.feature:nth-child(7) .bar { background: var(--red); }
.feature h3 { font-size: 16px; font-weight: 600; }
.feature p { margin-top: 4px; font-size: 13.5px; line-height: 1.7; color: var(--text-3); }

.state-card {
  background: var(--bg-card-2); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  position: sticky; top: 96px;
}
.state-card h3 { font-size: 15px; font-weight: 600; }
.state-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 10px; padding: 12px 14px; font-size: 13.5px; color: #c6cade;
}
.state-row .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.state-card .hint {
  margin-top: 4px; padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px; line-height: 1.7; color: var(--text-5);
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.faq {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
}
.faq h3 { font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.faq p { margin-top: 9px; font-size: 13.5px; line-height: 1.8; color: var(--text-3); }
.faq code {
  font-family: var(--mono); font-size: 12.5px; color: #c9beff;
  background: rgba(124, 92, 255, 0.12); padding: 1px 6px; border-radius: 4px;
}

/* 更新记录 */
.changelog { display: flex; flex-direction: column; gap: 12px; }
.release {
  display: flex; gap: 28px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
}
.release.latest { border-color: rgba(124, 92, 255, 0.45); }
.release .left { flex: 0 0 200px; display: flex; flex-direction: column; gap: 6px; }
.release .ver { font-family: var(--mono); font-size: 21px; font-weight: 700; color: #7a7e94; }
.release.latest .ver { color: var(--purple-soft); }
.release .date { font-size: 12.5px; color: var(--text-4); }
.release h3 { font-size: 17px; font-weight: 600; }
.release p { margin-top: 8px; font-size: 13.5px; line-height: 1.8; color: var(--text-3); }
.release .pill {
  display: inline-block; margin-top: 10px; font-size: 11px;
  color: #cfc2ff; background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.4);
  padding: 3px 10px; border-radius: 999px;
}

/* 下载 CTA */
.download {
  text-align: center;
  padding: 88px 0;
  background:
    radial-gradient(700px 320px at 50% 120%, rgba(124, 92, 255, 0.22), transparent 65%),
    linear-gradient(180deg, #0b0b14, #191334 60%, #0f131f);
}
.download h2 { font-size: clamp(30px, 3.6vw, 38px); font-weight: 700; }
.download .sub { margin-top: 14px; color: var(--text-2); font-size: 15px; line-height: 1.8; }
.download .btn { margin-top: 30px; padding: 16px 34px; font-size: 16px; }
.download .sha {
  margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--text-4);
  word-break: break-all;
}
.download .alt-link { margin-top: 10px; font-size: 13px; color: var(--text-5); }
.download .alt-link a { color: var(--text-4); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); background: #08080f;
  padding: 52px 0 32px;
}
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.brand-col { max-width: 340px; display: flex; flex-direction: column; gap: 10px; }
.brand-col .tagline { font-size: 13px; line-height: 1.8; color: var(--text-4); }
.footer-links { display: flex; gap: 72px; }
.footer-links .col { display: flex; flex-direction: column; gap: 10px; }
.footer-links .col-title { font-size: 12px; color: var(--text-5); }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: 13.5px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: var(--text-5);
}
.footer-bottom .mono { font-family: var(--mono); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .steps { grid-template-columns: 1fr; }
  .features-wrap { grid-template-columns: 1fr; }
  .state-card { position: static; }
  .faq-grid { grid-template-columns: 1fr; }
  .mock-body { flex-direction: column; }
  .tray-menu { flex: none; }
  .release { flex-direction: column; gap: 10px; }
  .release .left { flex: none; flex-direction: row; align-items: baseline; gap: 12px; }
  .footer-links { gap: 40px; }
}
