/* ============================================================
   随手记TODO · ONELEDGER —— 「双人引力」
   暖米白 / 暖炭黑 + 唯一强调色浅橙 · 浅色 / 深色双主题
   ============================================================ */

:root {
  --accent: #ee6f1d;            /* 暖橙 */
  --accent-ink: #ffffff;        /* 蓝底上的字 */

  --f-display: "Space Grotesk", "Noto Sans SC", sans-serif;
  --f-body: "Noto Sans SC", "PingFang SC", sans-serif;
  --f-mono: "JetBrains Mono", "SF Mono", monospace;

  --w: min(1160px, calc(100vw - 48px));
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 18px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #faf6f0;
  --bg-2: #ffffff;
  --text: #211711;
  --text-dim: #6f6153;
  --line: rgba(33, 23, 17, .1);
  --line-strong: rgba(33, 23, 17, .16);
  --particle-dim: #837567;
  --glass: rgba(255, 253, 250, .72);
  --shadow: 0 24px 60px -28px rgba(33, 23, 17, .25);
  --accent-soft: rgba(238, 111, 29, .09);
  --accent-line: rgba(238, 111, 29, .36);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14100b;
  --bg-2: #1d1712;
  --text: #f6efe6;
  --text-dim: #a3988a;
  --line: rgba(246, 239, 230, .09);
  --line-strong: rgba(246, 239, 230, .16);
  --accent: #ff9d4f;            /* 深色下提亮一档，保证对比度 */
  --accent-ink: #241304;        /* 亮橙底上用深字更清晰 */
  --particle-dim: #b5a896;
  --glass: rgba(29, 23, 18, .66);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .8);
  --accent-soft: rgba(255, 157, 79, .1);
  --accent-line: rgba(255, 157, 79, .4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease, color .35s ease;
}
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.container { width: var(--w); margin: 0 auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ============ 导航 ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  width: var(--w); margin: 0 auto; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 900; font-size: 17px; border-radius: 10px;
}
.brand__text { font-weight: 700; font-size: 15.5px; letter-spacing: .03em; }
.brand__en { font-family: var(--f-display); font-size: 10px; letter-spacing: .26em; color: var(--text-dim); }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; font-size: 14px; color: var(--text-dim); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line-strong); border-radius: 50%;
  cursor: pointer; color: var(--text);
  transition: transform .3s var(--ease), border-color .2s;
}
.theme-toggle:hover { transform: rotate(40deg); border-color: var(--accent); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
html[data-theme="light"] .i-sun { display: none; }
html[data-theme="dark"] .i-moon { display: none; }
html[data-theme="dark"] .i-sun { fill: none; }
.nav__cta {
  text-decoration: none; font-size: 13.5px; font-weight: 500;
  background: var(--accent); color: var(--accent-ink);
  padding: 9px 20px; border-radius: 999px;
  transition: transform .2s var(--ease), opacity .2s;
}
.nav__cta:hover { transform: translateY(-1px); opacity: .92; }
.nav__burger { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; display: block; }
.hero__inner { position: relative; width: var(--w); margin: 0 auto; pointer-events: none; }
.hero__copy { max-width: 560px; pointer-events: none; }
.hero__copy a, .hero__copy .btn { pointer-events: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .12em; color: var(--text-dim);
}
.eyebrow__pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none;
  box-shadow: 0 0 0 0 var(--accent-line);
  animation: pulse-ring 2.2s ease-out infinite;
}
@keyframes pulse-ring { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(44px, 6.4vw, 82px);
  line-height: 1.16; letter-spacing: .01em;
  margin: 22px 0 24px;
}
.hero__row { display: block; overflow: hidden; }
.hero__row em { display: block; font-style: normal; font-weight: 900; }
.hero__row--accent em { color: var(--accent); }
.hero__sub { font-size: 17px; color: var(--text-dim); max-width: 42ch; }
.hero__cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .2s, background .2s;
  will-change: transform;
}
.btn--primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px var(--accent-line);
}
.btn--primary:hover { box-shadow: 0 16px 38px -12px var(--accent-line); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* 形态字幕：右下角，随 ✓/¥/∞ 切换 */
.hero__caption {
  position: absolute; right: max(24px, calc((100vw - var(--w)) / 2)); bottom: 92px;
  display: grid; gap: 2px; text-align: right;
  transition: opacity .26s ease, transform .26s ease;
}
.hero__caption.is-swap { opacity: 0; transform: translateY(8px); }
.hero__caption-index { font-size: 11px; color: var(--accent); letter-spacing: .2em; }
.hero__caption-text { font-size: 13px; color: var(--text-dim); letter-spacing: .08em; }

.hero__hint {
  position: absolute; left: max(24px, calc((100vw - var(--w)) / 2)); bottom: 34px;
  font-size: 11px; color: var(--text-dim); letter-spacing: .18em; opacity: .7;
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
}
.hero__scroll i {
  display: block; width: 1px; height: 40px;
  background: linear-gradient(var(--accent), transparent);
  animation: drip 2s ease infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  60% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ============ 大字跑马灯：描边空心字 ============ */
.marquee {
  overflow: hidden; padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee__track span {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(40px, 6vw, 76px); line-height: 1;
  letter-spacing: .04em; white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-dim);
  opacity: .5;
}
.marquee__track span i { font-style: normal; color: var(--accent); -webkit-text-stroke: 0; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ 分节通用 ============ */
.section { padding: 120px 0; }
.section__head { max-width: 640px; margin-bottom: 60px; }
.section__title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(30px, 4.2vw, 50px); line-height: 1.24;
  margin: 16px 0 14px; letter-spacing: .01em;
}
.section__lede { font-size: 16px; color: var(--text-dim); }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============ 功能：聚光灯卡片 ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
/* 跟随鼠标的聚光灯 */
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 0%), var(--accent-soft), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.card:hover::before { opacity: 1; }
.card--accent { border-color: var(--accent-line); }
.card__icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  font-size: 21px; font-weight: 600; color: var(--accent);
  border: 1px solid var(--accent-line); border-radius: 12px;
  background: var(--accent-soft);
  margin-bottom: 20px;
}
.card__title { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.card__desc { font-size: 14px; color: var(--text-dim); min-height: 3.4em; }
.card__demo {
  list-style: none; margin: 20px 0 18px;
  border-top: 1px solid var(--line);
}
.card__demo li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}
.card__demo--todo i {
  width: 16px; height: 16px; flex: none; border-radius: 5px;
  border: 1.5px solid var(--line-strong);
}
.card__demo--todo .is-done i {
  background: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5 7 11.5 12.5 5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.card__demo--todo .is-done { color: var(--text-dim); text-decoration: line-through; }
.card__demo--ledger li { justify-content: space-between; }
.card__demo--ledger span { color: var(--text-dim); font-size: 12.5px; }
.card__demo--ledger b { font-weight: 600; }
.card__demo--bind b { margin-left: auto; font-weight: 600; }
.dot {
  width: 22px; height: 22px; flex: none;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; border-radius: 50%;
}
.dot--me { background: var(--accent); color: var(--accent-ink); }
.dot--ta { border: 1.5px solid var(--accent); color: var(--accent); }
.card__tag { font-size: 10.5px; color: var(--accent); letter-spacing: .18em; }

/* ============ 两个人 ============ */
.section--duo { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.duo__points { list-style: none; margin-top: 30px; display: grid; gap: 18px; }
.duo__points li { display: grid; gap: 2px; padding-left: 18px; border-left: 2px solid var(--accent); }
.duo__points b { font-size: 15px; }
.duo__points span { font-size: 14px; color: var(--text-dim); }

.panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.panel__title { font-family: var(--f-display); font-weight: 900; font-size: 19px; }
.panel__badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--accent);
  border: 1px solid var(--accent-line);
  padding: 4px 12px; border-radius: 999px;
}
.panel__badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.8s ease infinite; }
@keyframes blink { 50% { opacity: .25; } }
.panel__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.panel__total-label { font-size: 13px; color: var(--text-dim); }
.panel__total-num { font-size: clamp(30px, 3vw, 40px); font-weight: 600; }
.panel__bar {
  display: flex; gap: 3px; height: 12px;
  margin: 18px 0 22px; border-radius: 999px; overflow: hidden;
}
.panel__bar i { display: block; height: 100%; border-radius: 999px; width: 0; transition: width 1.2s var(--ease) .3s; }
.panel__bar-me { background: var(--accent); }
.panel__bar-ta { background: var(--accent-soft); border: 1px solid var(--accent-line); }
.panel.is-in .panel__bar i { width: var(--seg); }
.panel__rows { display: grid; gap: 4px; }
.panel__row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line);
  font-size: 14px;
}
.panel__row-name { color: var(--text-dim); }
.panel__row b { margin-left: auto; font-weight: 600; font-size: 15px; }
.panel__row-pct { width: 42px; text-align: right; color: var(--accent); font-size: 12px; }
.panel__foot {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  font-size: 11.5px; color: var(--text-dim); letter-spacing: .06em;
}

/* ============ 数据 ============ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--bg); padding: 40px 28px; display: grid; gap: 6px; }
.stat b { font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--text-dim); }

/* ============ 下载 ============ */
.section--dl { background: var(--bg-2); border-top: 1px solid var(--line); }
.dl { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.dl__steps {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 28px; font-size: 13px; letter-spacing: .14em;
}
.dl__steps span {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 18px;
}
.dl__steps span:last-child { border-color: var(--accent); color: var(--accent); }
.dl__steps i { font-style: normal; color: var(--text-dim); }
.dl__qr { justify-self: center; text-align: center; }
.qr {
  display: inline-grid; gap: 12px; justify-items: center;
  background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 18px;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease);
}
.qr:hover { transform: rotate(-1.5deg) scale(1.02); }
.qr__img { display: block; width: 196px; height: 196px; border-radius: 10px; object-fit: contain; background: #fff; }
.qr__tag { font-size: 11px; color: var(--text-dim); letter-spacing: .16em; }
.dl__hint { margin-top: 18px; font-size: 12px; color: var(--text-dim); letter-spacing: .1em; }

/* ============ 页脚 ============ */
.footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer__inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__name { font-weight: 700; font-size: 15px; }
.footer__name .mono { font-size: 10px; color: var(--text-dim); letter-spacing: .2em; }
.footer__slogan { font-size: 12.5px; color: var(--text-dim); }
.footer__links { display: flex; gap: 22px; margin-left: auto; }
.footer__links a { font-size: 13px; color: var(--text-dim); text-decoration: none; }
.footer__links a:hover { color: var(--text); }
.footer__copy { width: 100%; font-size: 11px; color: var(--text-dim); }
.footer__copy a { color: inherit; text-decoration: none; }
.footer__copy a:hover { color: var(--accent); }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .duo, .dl { grid-template-columns: 1fr; gap: 48px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { align-items: flex-start; }
  .hero__inner { padding-top: 120px; }
  .hero__copy { max-width: 100%; }
  .hero__caption { bottom: 64px; }
  .hero__hint { display: none; }
  .nav__links {
    position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; display: none;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .nav__burger {
    display: grid; gap: 5px; place-content: center;
    width: 38px; height: 38px; cursor: pointer;
    background: none; border: 1px solid var(--line-strong); border-radius: 10px;
  }
  .nav__burger span { display: block; width: 16px; height: 1.5px; background: var(--text); }
  .brand__en, .nav__cta { display: none; }
}

/* ============ 无障碍：减弱动效 ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .eyebrow__pulse, .panel__badge i, .hero__scroll i { animation: none; }
  .panel__bar i { transition: none; width: var(--seg); }
  .card, .btn, .qr, .theme-toggle { transition: none; }
}
