/* ============================================================
   待办贴 DeskTodo · 下载官网
   Warm, minimal desktop-tool aesthetic
   ============================================================ */

:root {
  --bg: #f7f4ee;
  --bg-2: #efeadf;
  --surface: #ffffff;
  --ink: #212730;
  --ink-2: #3f3a32;
  --muted: #5c6a80;
  --primary: #e8734a;
  --primary-dark: #c45a32;
  --primary-soft: rgba(232, 115, 74, 0.12);
  --desk-2: #232b20;
  --line: #e4dccb;
  --radius: 18px;
  --shadow-sm: 0 6px 18px rgba(40, 34, 20, 0.08);
  --shadow-md: 0 14px 34px rgba(40, 34, 20, 0.12);
  --shadow-lg: 0 30px 70px rgba(40, 34, 20, 0.18);
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; }
p { margin: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 650; border: 0; cursor: pointer; border-radius: 999px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: 0 0 auto; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }

.btn-primary {
  background: linear-gradient(135deg, #ee8a5e, var(--primary) 55%, var(--primary-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(200, 90, 50, 0.34), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(200, 90, 50, 0.42); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: #fff; color: var(--primary-dark); box-shadow: inset 0 0 0 1px var(--primary-soft); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; }
.brand img { border-radius: 9px; }
.brand-name { font-size: 18px; letter-spacing: .02em; }
.brand-name small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 5px; }
.nav-links { display: flex; gap: 28px; margin-left: 8px; }
.nav-links a { font-size: 15px; color: var(--ink-2); font-weight: 550; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
  background: var(--primary); border-radius: 2px; transition: right .22s ease;
}
.nav-links a:hover { color: var(--primary-dark); }
.nav-links a:hover::after { right: 0; }
.nav-cta { margin-left: auto; }
.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px; border: 0; cursor: pointer;
  background: transparent; border-radius: 10px; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(750px 460px at 12% 6%, rgba(232, 115, 74, 0.14), transparent 58%),
    radial-gradient(820px 560px at 96% 16%, rgba(196, 165, 116, 0.18), transparent 60%),
    radial-gradient(560px 420px at 70% 96%, rgba(91, 140, 90, 0.16), transparent 60%);
  filter: blur(2px);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  gap: 56px; padding-top: 72px; padding-bottom: 56px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 650; color: var(--primary-dark);
  background: var(--primary-soft); border: 1px solid rgba(232,115,74,.22);
  padding: 6px 13px; border-radius: 999px; letter-spacing: .01em;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px rgba(232,115,74,.18); }

.hero-copy h1 { font-size: clamp(38px, 5vw, 58px); letter-spacing: .01em; margin: 22px 0 20px; }
.hero-copy h1 .accent { color: var(--primary); }
.hero-copy .lead { font-size: 17.5px; color: var(--ink-2); max-width: 34ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; font-size: 14px; color: var(--muted); }
.hero-meta b { color: var(--ink); font-weight: 650; }
.hero-meta .sep { width: 1px; height: 16px; background: var(--line); }

/* Hero shot frame */
.hero-shot { position: relative; }
.shot-frame { position: relative; }
.shot-window {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.shot-titlebar {
  display: flex; align-items: center; gap: 10px; padding: 11px 15px;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.traffic { display: inline-flex; gap: 6px; }
.traffic i { width: 11px; height: 11px; border-radius: 50%; }
.traffic i:nth-child(1) { background: #ec6a5e; }
.traffic i:nth-child(2) { background: #f4bf4f; }
.traffic i:nth-child(3) { background: #61c554; }
.shot-title { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.shot-window img { width: 100%; }
.shot-caption {
  display: block; text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted);
}
.shot-frame::before {
  content: ""; position: absolute; inset: -46px -30px; z-index: -1; border-radius: 40px;
  background: radial-gradient(60% 60% at 50% 40%, rgba(232,115,74,.22), transparent 70%);
  filter: blur(14px);
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: linear-gradient(180deg, #f1ebdf, #eee7d8); }
.section-head { max-width: 560px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 16px 0 12px; letter-spacing: .01em; }
.section-head p { font-size: 16.5px; color: var(--muted); }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(232,115,74,.35); }
.feature-card .icon {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 13px; background: var(--primary-soft); color: var(--primary-dark); margin-bottom: 18px;
}
.feature-card .icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 18.5px; margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; color: var(--muted); }

/* ---------- Preview ---------- */
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.shot-card { margin: 0; }
.shot-card .shot-window { border-radius: 18px; box-shadow: var(--shadow-md); transition: transform .25s ease, box-shadow .25s ease; }
.shot-card:hover .shot-window { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.shot-card figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--desk-2); color: rgba(244,239,230,.86); padding: 42px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer .brand { color: #f4efe6; }
.footer p { font-size: 14px; color: rgba(244,239,230,.6); }
.footer .copyright { color: rgba(244,239,230,.42); }

/* ---------- Reveal (only hide when JS enabled) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 42px; padding-top: 48px; }
  .hero-copy h1 { margin-top: 18px; }
  .preview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .features-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px 24px 18px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 10px 0; font-size: 16px; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-actions .btn-lg { width: 100%; }
}
