/* LetOut —— 夜色街头（与 SoloSpeak 的京都白日形成反差）
   SoloSpeak: 浅暖灰 / 明朝衬线 / 圆角卡片 / 安静
   LetOut  : 暖黑夜色 / 无衬线重字 / 锐角直边 / 热烈 */

:root {
  --bg: #17120f;          /* 暖黑 */
  --bg-2: #201814;        /* 抬起层 */
  --text: #f6ece4;
  --muted: #9b8375;
  --line: #33251e;
  --accent: #e07850;      /* 活力橙 */
  --accent-hot: #ff8b5e;
  --accent-deep: #c45c3e;
  --rest: #3a2b23;
  --r: 4px;               /* 锐角：与 SoloSpeak 的 14px 圆角拉开 */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont,
               "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* 系列切换条：回转 Hub + 兄弟站 */
.series-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: .1em;
}
.series-bar a { color: var(--muted); text-decoration: none; }
.series-bar a:hover { color: var(--accent-hot); }
.series-bar .series-name { color: #6b574c; }

/* 顶栏：左对齐、无 sticky（SoloSpeak 是 sticky 居中气质） */
.topbar {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 20px 18px 14px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 800; font-size: 19px; letter-spacing: -.02em;
  color: var(--text); text-transform: uppercase;
}
.brand-sub {
  display: block; font-weight: 400; font-size: 11px;
  color: var(--accent); letter-spacing: .3em; text-transform: none;
}
.nav { display: flex; gap: 2px; }
.nav-btn {
  border: none; background: transparent; color: var(--muted);
  font-size: 13px; padding: 5px 9px; cursor: pointer;
  border-bottom: 2px solid transparent; transition: .15s;
}
.nav-btn:hover { color: var(--text); }
.nav-btn.active { color: var(--accent-hot); border-bottom-color: var(--accent); }

.view { flex: 1; padding: 22px 18px 28px; }

/* ===== 首页：模式网格即主角（无标题块，打开即选） ===== */

/* 情绪出口：轻量提示行，放在最上面 */
.mood-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 18px; }
.mood-label { font-size: 12px; color: var(--muted); margin-right: 2px; }
.mood-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border: 1px solid var(--line); background: var(--bg-2);
  border-radius: 999px; cursor: pointer; color: var(--muted);
  transition: .15s; font-size: 12.5px;
}
.mood-chip:hover { border-color: #5a3d2e; color: var(--text); }
.mood-chip .m-emoji { font-size: 14px; line-height: 1; }
.mood-chip.active {
  border-color: var(--accent); color: var(--text);
  background: linear-gradient(180deg, rgba(224,120,80,.2), rgba(224,120,80,.05));
}

/* 模式网格：LetOut 视觉核心——大 emoji + 粗标签 + 可砸感 */
.mode-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 6px; margin-bottom: 20px;
}
.mode-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 4px 12px;
  border: 1px solid var(--line); background: var(--bg-2);
  border-radius: var(--r); cursor: pointer; transition: .15s;
  color: var(--muted);
}
.mode-tile:hover { border-color: #5a3d2e; color: var(--text); transform: translateY(-1px); }
.mt-emoji { font-size: 22px; line-height: 1; filter: grayscale(.5); }
.mt-label { font-size: 11.5px; letter-spacing: .02em; white-space: nowrap; font-weight: 500; }
.mode-tile.active {
  border-color: var(--accent); color: var(--text);
  background: linear-gradient(180deg, rgba(224,120,80,.18), rgba(224,120,80,.04));
  box-shadow: 0 2px 12px rgba(224,120,80,.12);
}
.mode-tile.active .mt-emoji { filter: none; }

/* 释放区：全幅、无卡片包裹 */
.release-zone { text-align: center; padding: 4px 0 2px; position: relative; }
.wave-canvas { width: 100%; height: 84px; display: block; margin-bottom: 10px; }
.rec-timer {
  font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums;
  letter-spacing: .04em; color: var(--text);
}
.rec-btn {
  width: 84px; height: 84px; border-radius: 50%;
  border: 2px solid var(--accent); cursor: pointer; margin: 16px auto 14px;
  background: var(--accent); color: #17120f; font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px rgba(224,120,80,.10);
  transition: transform .12s, box-shadow .2s, background .2s;
}
.rec-btn:hover { transform: scale(1.03); }
.rec-btn:active { transform: scale(.96); }
.rec-btn.recording {
  background: transparent; color: var(--accent-hot);
  animation: pulse 1.25s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224,120,80,.45); }
  50%      { box-shadow: 0 0 0 18px rgba(224,120,80,0); }
}
.rec-hint {
  color: var(--muted); font-size: 13px; line-height: 1.75;
  max-width: 300px; margin: 0 auto;
}

.keep-toggle {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 12px; color: var(--muted);
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid var(--line); cursor: pointer;
}
.keep-toggle input { width: 15px; height: 15px; accent-color: var(--accent); }

/* 库房 */
.section-title {
  font-size: 11px; font-weight: 700; letter-spacing: .28em;
  text-transform: uppercase; color: var(--accent);
  margin: 2px 0 16px;
}
.empty {
  text-align: center; color: var(--muted); padding: 64px 20px;
  font-size: 14px; line-height: 1.9;
}
.log-item {
  background: var(--bg-2); border: 1px solid var(--line);
  border-left: 2px solid var(--accent-deep);
  border-radius: var(--r); padding: 13px 14px; margin-bottom: 10px;
}
.log-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.log-mode {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  padding: 3px 8px; border-radius: 2px;
  background: var(--rest); color: var(--accent-hot);
}
.log-meta { font-size: 11px; color: var(--muted); }
.player { margin: 2px 0 8px; }
.player-note { font-size: 11px; color: var(--muted); padding: 5px 0; }
.player-bar { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.play-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #17120f; font-size: 13px; flex-shrink: 0;
}
.player-time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.log-controls { display: flex; gap: 8px; }
.mini-btn {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font-size: 11px; padding: 5px 10px; border-radius: 2px; cursor: pointer;
  letter-spacing: .04em;
}
.mini-btn:hover { border-color: var(--accent-deep); color: var(--accent-hot); }

/* 关于 */
.about-hero { padding: 6px 0 4px; }
.about-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.about-sub { color: var(--muted); font-size: 12px; margin-top: 4px; letter-spacing: .05em; }
.promise { margin: 26px 0; padding-left: 14px; border-left: 2px solid var(--accent); }
.promise-line { font-size: 19px; font-weight: 700; margin: 4px 0; letter-spacing: -.01em; }
.promise-leave { font-size: 13px; color: var(--muted); margin-top: 12px; }
.story { color: #cdbcb0; font-size: 14px; line-height: 1.95; }
.story p { margin-bottom: 12px; }
.about-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.about-foot-note { color: var(--muted); font-size: 11px; letter-spacing: .04em; }

/* 页脚：最多 2 个出站链接 */
.site-footer {
  padding: 16px 18px 26px; border-top: 1px solid var(--line); margin-top: auto;
}
.foot-links { display: flex; gap: 18px; margin-bottom: 6px; }
.foot-links a {
  color: var(--muted); text-decoration: none; font-size: 12px; letter-spacing: .04em;
}
.foot-links a:hover { color: var(--accent-hot); }
.foot-copy { color: #6b574c; font-size: 10px; letter-spacing: .06em; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(10px);
  background: var(--accent); color: #17120f; padding: 9px 18px; border-radius: 2px;
  font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: .2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 380px) {
  .mode-grid { grid-template-columns: repeat(3, 1fr); }
  .mood-chip { padding: 6px 10px; font-size: 11.5px; }
}
