/* ============================================================
   胖香蕉番茄钟 — 样式表
   主题：暖琥珀（香蕉）+ 宁静绿；玻璃拟态；明/暗双主题
   ============================================================ */

:root {
  --bg: #fbfaf7;
  --bg-soft: #f3f1ea;
  --surface: #ffffff;
  --surface-2: #fbfaf6;
  --text: #1f2430;
  --text-soft: #4a5160;
  --muted: #8a8f9c;
  --border: #ece8df;
  --border-strong: #ddd7c9;

  --accent: #f5b301;
  --accent-soft: #f6c453;
  --accent-deep: #e0a82e;
  --accent-contrast: #3a2c00;

  --green: #5b8c5a;
  --blue: #4a90d9;
  --violet: #8b7fd6;

  --ring-track: rgba(31, 36, 48, 0.08);
  --shadow-sm: 0 2px 8px rgba(31, 36, 48, 0.06);
  --shadow-md: 0 12px 40px rgba(31, 36, 48, 0.10);
  --shadow-lg: 0 24px 70px rgba(31, 36, 48, 0.16);

  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 10px;

  --maxw: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --bg: #14130f;
  --bg-soft: #1a1813;
  --surface: #1f1d17;
  --surface-2: #24211a;
  --text: #f3f0e8;
  --text-soft: #c9c4b6;
  --muted: #938d7d;
  --border: #2e2b22;
  --border-strong: #3a362c;

  --accent: #f6c453;
  --accent-soft: #f8d479;
  --accent-deep: #e0a82e;
  --accent-contrast: #2a2000;

  --ring-track: rgba(243, 240, 232, 0.10);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 44px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 26px 80px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

/* 背景柔光 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px 480px at 12% -5%, rgba(245, 179, 1, 0.12), transparent 60%),
    radial-gradient(620px 520px at 92% 8%, rgba(91, 140, 90, 0.12), transparent 60%);
  pointer-events: none;
}

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

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }
.muted.small { font-size: 0.8rem; }
.center { text-align: center; }

/* ---------- 玻璃卡片 ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px) saturate(140%);
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { flex: none; }
.brand-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-dot { color: var(--accent); }

.nav-links { display: flex; gap: 26px; margin-left: 14px; }
.nav-links a { color: var(--text-soft); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent-deep); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-download { font-size: 0.85rem; padding: 8px 16px; text-decoration: none; white-space: nowrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 0.95rem;
  padding: 11px 20px; border-radius: 999px; transition: transform 0.18s var(--ease), box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--accent-soft), var(--accent)); color: var(--accent-contrast); box-shadow: 0 8px 22px rgba(245, 179, 1, 0.38); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(245, 179, 1, 0.5); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn-soft { background: var(--bg-soft); color: var(--text); }
.btn-soft:hover { background: var(--accent-soft); color: var(--accent-contrast); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-soft);
  transition: transform 0.18s var(--ease), color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn:hover { color: var(--accent-deep); border-color: var(--accent); transform: translateY(-1px); }
.icon-btn:active { transform: scale(0.94); }

.link-btn { background: none; border: none; cursor: pointer; color: var(--muted); font-family: inherit; font-size: 0.88rem; margin-top: 14px; transition: color 0.2s; }
.link-btn:hover { color: var(--accent-deep); }

/* 主题切换图标 */
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 14px; }
.hero-title { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
.hero-sub { margin-top: 18px; font-size: 1.08rem; color: var(--text-soft); max-width: 42ch; }
.hero-meta { display: flex; gap: 28px; margin-top: 28px; }
.meta-item { display: flex; flex-direction: column; }
.meta-item strong { font-size: 1.7rem; font-weight: 800; color: var(--accent-deep); }
.meta-item span { font-size: 0.85rem; color: var(--muted); }
.hero-download { margin-top: 12px; display: inline-flex; text-decoration: none; font-size: 0.9rem; }

/* ---------- 计时器卡片 ---------- */
.timer-card { padding: 30px 30px 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mode-tabs { display: flex; gap: 6px; background: var(--bg-soft); padding: 5px; border-radius: 999px; margin-bottom: 18px; }
.mode-tab { border: none; background: transparent; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 0.9rem; color: var(--text-soft); padding: 9px 18px; border-radius: 999px; transition: all 0.25s var(--ease); }
.mode-tab.is-active { background: var(--surface); color: var(--accent-deep); box-shadow: var(--shadow-sm); }

.dial { position: relative; width: 240px; height: 240px; display: grid; place-items: center; }
.ring { transform: rotate(-90deg); width: 240px; height: 240px; }
.ring-track { fill: none; stroke: var(--ring-track); stroke-width: 14; }
.ring-progress { fill: none; stroke: var(--accent); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 691.15; stroke-dashoffset: 0; transition: stroke-dashoffset 0.4s linear, stroke 0.3s; }
.dial-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.time-display { font-size: 3.1rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.mode-label { font-size: 0.95rem; color: var(--text-soft); font-weight: 600; }
.round-counter { font-size: 0.78rem; color: var(--muted); }

.timer-controls { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.btn-start { min-width: 132px; padding: 14px 24px; font-size: 1.02rem; }
.btn-start .ic-pause { display: none; }
.btn-start.is-running .ic-play { display: none; }
.btn-start.is-running .ic-pause { display: block; }
.ctrl-reset, .ctrl-skip { width: 50px; height: 50px; }

/* ---------- 面板区 ---------- */
.panel-section { padding: 30px 0 50px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.card { padding: 26px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.card-head h2 { font-size: 1.3rem; font-weight: 800; }

/* 任务清单 */
.task-form { display: flex; gap: 10px; margin-bottom: 16px; }
.task-input { flex: 1; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); border-radius: var(--radius-xs); padding: 12px 14px; font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s; }
.task-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.18); }
.task-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.task-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-xs); animation: pop 0.3s var(--ease); }
.task-item.done .task-text { text-decoration: line-through; color: var(--muted); }
.task-check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--border-strong); cursor: pointer; flex: none; display: grid; place-items: center; background: transparent; transition: all 0.2s; }
.task-check svg { opacity: 0; transform: scale(0.5); transition: all 0.2s var(--ease); }
.task-item.done .task-check { background: var(--green); border-color: var(--green); }
.task-item.done .task-check svg { opacity: 1; transform: scale(1); color: #fff; }
.task-text { flex: 1; font-size: 0.96rem; word-break: break-word; }
.task-del { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 1.1rem; padding: 4px 6px; border-radius: 6px; transition: color 0.2s, background 0.2s; }
.task-del:hover { color: #d9534f; background: rgba(217, 83, 79, 0.1); }
.empty-hint { color: var(--muted); font-size: 0.9rem; text-align: center; padding: 18px 0; }
.empty-hint.hidden { display: none; }

/* 统计 */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.stat-box strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--accent-deep); }
.stat-box span { font-size: 0.82rem; color: var(--muted); }
.stat-bar { height: 10px; background: var(--bg-soft); border-radius: 999px; margin: 18px 0 12px; overflow: hidden; }
.stat-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-soft), var(--accent)); border-radius: 999px; transition: width 0.5s var(--ease); }

/* ---------- 功能特色 Bento ---------- */
.features, .guide { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; margin-top: 6px; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento-card { padding: 28px; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.bento-card.span-2 { grid-column: span 2; }
.bento-card h3 { font-size: 1.2rem; font-weight: 800; margin: 16px 0 8px; }
.bento-card p { color: var(--text-soft); font-size: 0.96rem; }
.bento-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; }
.ic-amber { background: rgba(245, 179, 1, 0.16); color: var(--accent-deep); }
.ic-green { background: rgba(91, 140, 90, 0.16); color: var(--green); }
.ic-blue { background: rgba(74, 144, 217, 0.16); color: var(--blue); }
.ic-violet { background: rgba(139, 127, 214, 0.16); color: var(--violet); }

/* ---------- 使用说明 ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 28px; position: relative; }
.step-no { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-contrast); font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }
.step h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- 关于 ---------- */
.about { padding: 24px 0 64px; }
.about-inner { padding: 44px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 6px 0 16px; }
.about-text p { color: var(--text-soft); margin-bottom: 14px; }
.about-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.about-list li { position: relative; padding-left: 26px; color: var(--text-soft); }
.about-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.about-side .side-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px; }
.about-side h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.contact-line { display: flex; align-items: center; gap: 8px; color: var(--text-soft); margin-top: 10px; }
.contact-line a { color: var(--accent-deep); font-weight: 600; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 30px; background: var(--bg-soft); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.footer-brand .brand-name { font-size: 1.1rem; }
.footer-brand p { margin-top: 4px; font-size: 0.88rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-soft); font-size: 0.9rem; font-weight: 600; }
.footer-links a:hover { color: var(--accent-deep); }
.footer-beian { text-align: right; }
.beian-line { font-size: 0.82rem; color: var(--muted); }
.copyright { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

/* ---------- 设置面板 ---------- */
.sheet-mask { position: fixed; inset: 0; background: rgba(20, 19, 15, 0.5); z-index: 90; backdrop-filter: blur(2px); animation: fade 0.25s var(--ease); }
.sheet { position: fixed; top: 0; right: 0; height: 100dvh; width: min(380px, 92vw); background: var(--surface); z-index: 100; box-shadow: var(--shadow-lg); padding: 22px 24px; transform: translateX(100%); transition: transform 0.35s var(--ease); overflow-y: auto; }
.sheet.open { transform: translateX(0); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sheet-head h2 { font-size: 1.25rem; font-weight: 800; }
.sheet-body { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 0.92rem; font-weight: 600; color: var(--text-soft); }
.field input[type="number"] { border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); border-radius: var(--radius-xs); padding: 11px 13px; font-family: inherit; font-size: 1rem; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.18); }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.switch-field { display: flex; align-items: center; gap: 9px; font-size: 0.9rem; font-weight: 600; color: var(--text-soft); cursor: pointer; }
.switch-field input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg); padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; box-shadow: var(--shadow-md); z-index: 120; opacity: 0; transition: all 0.35s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 动画 ---------- */
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
.timer-card.running .dial { animation: breathe 4s ease-in-out infinite; }

/* ---------- 全屏专注覆盖层 ---------- */
.lock-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; background: radial-gradient(680px 520px at 50% 28%, rgba(245, 179, 1, 0.14), transparent 60%), linear-gradient(160deg, var(--bg) 0%, var(--bg-soft) 100%); opacity: 0; transition: opacity 0.35s var(--ease); }
.lock-overlay.show { opacity: 1; }
.lock-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 420px; width: 100%; }
.lock-badge { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.1em; color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 16%, transparent); padding: 7px 16px; border-radius: 999px; }
.lock-time { font-size: clamp(4rem, 18vw, 8rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: 0.02em; }
.lock-label { font-size: 1.05rem; color: var(--text-soft); font-weight: 600; }
.lock-exit { position: relative; overflow: hidden; margin-top: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-soft); font-family: inherit; font-weight: 700; font-size: 0.95rem; padding: 14px 26px; border-radius: 999px; cursor: pointer; user-select: none; touch-action: none; }
.lock-exit.pressing { border-color: var(--accent); color: var(--accent-deep); }
.lock-exit-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: linear-gradient(90deg, rgba(245, 179, 1, 0.30), rgba(245, 179, 1, 0.16)); }
.lock-exit-text { position: relative; z-index: 1; }
.lock-tip { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
body.locking .site-header, body.locking .sheet, body.locking .toast, body.locking .sheet-mask { display: none !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .timer-card { order: -1; }
  .two-col { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.span-2 { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 26px; padding: 30px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  .footer-beian { text-align: center; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  #navToggle { display: inline-flex !important; }
  .nav-download { display: none; }

  /* 移动端遮罩导航 */
  .mobile-nav {
    position: fixed;
    inset: 0;
    top: 66px;
    background: var(--surface);
    z-index: 49;
    padding: 20px 24px 40px;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: fade 0.2s ease;
  }
  .mobile-nav[hidden] { display: none; }
  .m-nav-link {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-soft);
    border-bottom: 1px solid var(--border);
    transition: color 0.15s;
  }
  .m-nav-link:active { color: var(--accent-deep); }
  .m-nav-download { color: var(--accent-deep); }

  .hero { padding: 40px 0 36px; }
  .container { padding: 0 18px; }
  .hero-meta { gap: 20px; }
  .time-display { font-size: 2.6rem; }

  /* 移动端触控优化 */
  .btn { min-height: 48px; padding: 13px 22px; }
  .btn-start { min-width: 140px; padding: 16px 28px; font-size: 1.05rem; }
  .icon-btn { width: 48px; height: 48px; }
  .ctrl-reset, .ctrl-skip { width: 52px; height: 52px; }
  .mode-tab { padding: 11px 20px; font-size: 0.95rem; }
  .dur-chip { padding: 10px 20px; font-size: 0.95rem; min-height: 44px; }
  .dial { width: 210px; height: 210px; }
  .ring { width: 210px; height: 210px; }
  .timer-card { padding: 24px 18px 22px; }
  .timer-controls { gap: 22px; margin-top: 22px; }

  /* 确保按钮可点击（无遮挡） */
  .timer-card, .card, .glass {
    -webkit-tap-highlight-color: transparent;
  }
}

/* 尊重减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   会员 / 变现 相关样式
   ============================================================ */

/* PRO 角标 */
.pro-card { position: relative; overflow: hidden; }
.pro-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em;
  color: var(--accent-contrast);
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  padding: 4px 9px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(245, 179, 1, 0.4);
}
.pro-card:hover .pro-badge { transform: translateY(-1px); }

/* Pro 付费墙 */
.pro-gate { position: relative; }
.pro-gate.is-locked > *:not(.pro-lock) { filter: blur(7px); pointer-events: none; user-select: none; }
.pro-lock {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: color-mix(in srgb, var(--surface) 35%, transparent);
  border-radius: var(--radius);
  text-align: center; padding: 20px;
}
.pro-lock .lock-emoji { font-size: 2rem; }
.pro-lock .lock-title { font-weight: 800; font-size: 1.05rem; }
.pro-lock .lock-sub { font-size: 0.85rem; color: var(--muted); max-width: 32ch; }

/* 数据看板 */
.insights, .ambient { padding: 56px 0; }
.insights-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.insight-card { padding: 26px; }
.insight-card h3 { font-size: 1.15rem; font-weight: 800; }
.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; margin-top: 8px; padding-top: 10px; }
.chart-bars .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart-bars .bar { width: 100%; max-width: 34px; background: linear-gradient(180deg, var(--accent-soft), var(--accent)); border-radius: 8px 8px 4px 4px; transition: height 0.6s var(--ease); min-height: 4px; }
.chart-bars .bar-val { font-size: 0.72rem; font-weight: 700; color: var(--accent-deep); }
.chart-bars .bar-day { font-size: 0.72rem; color: var(--muted); }
.heatmap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; margin-top: 10px; }
.heat-cell { aspect-ratio: 1; border-radius: 5px; background: var(--bg-soft); border: 1px solid var(--border); }
.heat-cell.h1 { background: rgba(91, 140, 90, 0.25); }
.heat-cell.h2 { background: rgba(91, 140, 90, 0.45); }
.heat-cell.h3 { background: rgba(91, 140, 90, 0.68); }
.heat-cell.h4 { background: rgba(91, 140, 90, 0.92); }
.badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; text-align: center; padding: 14px 8px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.badge .b-ic { font-size: 1.8rem; }
.badge .b-name { font-size: 0.78rem; font-weight: 700; }
.badge.locked { opacity: 0.45; filter: grayscale(1); }
.badge.locked .b-ic { filter: grayscale(1); }

/* 氛围音 */
.ambient-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 22px; justify-content: center; }
.sound-chip { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-soft); font-family: inherit; font-weight: 700; font-size: 0.92rem; padding: 11px 18px; border-radius: 999px; cursor: pointer; transition: all 0.2s var(--ease); }
.sound-chip:hover { border-color: var(--accent); color: var(--accent-deep); }
.sound-chip.is-active { background: linear-gradient(135deg, var(--accent-soft), var(--accent)); color: var(--accent-contrast); border-color: transparent; box-shadow: 0 6px 18px rgba(245, 179, 1, 0.36); }
.ambient-vol { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.ambient-vol input { accent-color: var(--accent); }

/* 专注时长选择（1 小时 / 2 小时 / 自定义） */
.duration-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 4px 0 18px;
  flex-wrap: wrap;
}
.dur-chip {
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: all .18s ease;
}
.dur-chip:hover { border-color: var(--accent); }
.dur-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1408;
  font-weight: 600;
}
.duration-custom {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 4px 0 18px;
}
.duration-custom input {
  width: 120px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.95rem;
}
.duration-custom input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.18);
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* 定价 */
.pricing { padding: 56px 0; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.price-card { padding: 28px 24px; display: flex; flex-direction: column; position: relative; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 18px 50px rgba(245, 179, 1, 0.22); transform: translateY(-6px); }
.price-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--accent-soft), var(--accent)); color: var(--accent-contrast); font-size: 0.74rem; font-weight: 800; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.price-name { font-size: 1.15rem; font-weight: 800; }
.price-amount { font-size: 2.6rem; font-weight: 800; color: var(--accent-deep); margin: 10px 0 2px; line-height: 1; }
.price-amount .cur { font-size: 1.3rem; vertical-align: super; margin-right: 2px; }
.price-amount .per { font-size: 0.95rem; color: var(--muted); font-weight: 700; margin-left: 4px; }
.price-tag { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.price-feats { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-feats li { position: relative; padding-left: 24px; font-size: 0.9rem; color: var(--text-soft); }
.price-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.price-feats strong { color: var(--text); }
.price-cta { width: 100%; }
.price-note { margin-top: 26px; font-size: 0.85rem; }

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(460px, 94vw); max-height: 90dvh; overflow-y: auto; padding: 30px; animation: pop 0.3s var(--ease); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 1rem; }
.modal-close:hover { color: var(--text); border-color: var(--border-strong); }
.member-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.member-tier { font-size: 0.8rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-deep); }
.member-tier.pro { background: linear-gradient(135deg, var(--accent-soft), var(--accent)); color: var(--accent-contrast); }
#memberTitle { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.member-benefits { list-style: none; padding: 0; margin: 16px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.member-benefits li { font-size: 0.92rem; color: var(--text-soft); }
.modal-cta { width: 100%; }

.checkout-plan { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; margin: 14px 0 18px; }
.checkout-plan .cp-name { font-weight: 800; font-size: 1.05rem; }
.checkout-plan .cp-price { color: var(--accent-deep); font-weight: 800; font-size: 1.3rem; margin-top: 2px; }
.checkout-plan .cp-desc { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.pay-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-btn { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-family: inherit; font-weight: 700; font-size: 0.98rem; padding: 14px; border-radius: var(--radius-xs); cursor: pointer; transition: all 0.2s var(--ease); }
.pay-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pay-btn.wechat:hover { border-color: #2aae67; color: #2aae67; }
.pay-btn.alipay:hover { border-color: #1677ff; color: #1677ff; }
.pay-ic { font-size: 1.2rem; }
.checkout-qr { margin-top: 18px; text-align: center; }
.qr-box { width: 180px; height: 180px; margin: 0 auto 10px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--muted); font-weight: 700; background: var(--surface-2); }
.checkout-demo { margin-top: 18px; padding: 14px; border-radius: var(--radius-sm); background: var(--bg-soft); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.checkout-demo code { background: var(--surface); padding: 1px 6px; border-radius: 5px; font-size: 0.82em; }

/* 响应式补充 */
@media (max-width: 1000px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .insights-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
}
@media (max-width: 640px) {
  .price-grid { grid-template-columns: 1fr; }
  .pay-channels { grid-template-columns: 1fr; }
  .heatmap { grid-template-columns: repeat(8, 1fr); }
}
