/* YundyOra · Apple 学院派极简（方案约束 11：禁 emoji、禁装饰图标，CSS 变量 + 留白） */

:root {
  --reader-font-size: 17px;
  --bg: #fafafa;
  --surface: #ffffff;
  --fg: #1d1d1f;
  --fg-soft: #6e6e73;
  --fg-faint: #8e8e93;
  --accent: #0071e3;
  --rule: #d2d2d7;
  --rule-soft: #e8e8ed;
  --reader-max-width: 720px;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    "PingFang SC", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

/* ── 鉴权页 ───────────────────────────────────────────── */
.page-auth { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 24px; }
.auth-card { text-align: center; }
.brand { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.brand-sub { color: var(--fg-soft); margin-top: 6px; font-size: 14px; letter-spacing: 0.02em; }
.auth-form { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.auth-form input {
  font-size: 20px; padding: 12px 16px; text-align: center; letter-spacing: 0.5em;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface);
  width: 240px; color: var(--fg);
}
.auth-form input:focus { outline: none; border-color: var(--accent); }
.auth-form button {
  font-size: 16px; padding: 10px 32px; border: none; border-radius: 980px;
  background: var(--fg); color: var(--surface); cursor: pointer; transition: opacity 0.2s;
}
.auth-form button:disabled { opacity: 0.4; }
.auth-error { color: #ff3b30; font-size: 14px; }

/* ── 顶栏 ─────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 250, 250, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule-soft);
}
.topbar-inner {
  max-width: var(--reader-max-width); margin: 0 auto; padding: 12px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.topbar-title { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.topbar-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; color: var(--fg-soft); }
.topbar-nav a:hover { color: var(--fg); }
.font-controls { display: inline-flex; gap: 4px; }
.font-controls button {
  border: 1px solid var(--rule); background: var(--surface); color: var(--fg-soft);
  border-radius: 7px; width: 32px; height: 28px; font-size: 12px; cursor: pointer;
}
.font-controls button:hover { color: var(--fg); }
.logout-link { color: var(--fg-faint); }

/* ── 阅读区 ───────────────────────────────────────────── */
.reader { max-width: var(--reader-max-width); margin: 0 auto; padding: 28px 20px 96px; font-size: var(--reader-font-size); }
.issue-date { color: var(--fg-faint); font-size: 13px; letter-spacing: 0.04em; margin-bottom: 8px; }
.page-heading { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 28px; }

.notice {
  background: #fff8e1; color: #6b4e00; border: 1px solid #ffe082;
  border-radius: var(--radius); padding: 12px 16px; font-size: 14px; margin-bottom: 32px;
}

.placeholder { color: var(--fg-soft); font-size: 18px; text-align: center; padding: 80px 0; }

/* ── 板块 ─────────────────────────────────────────────── */
.intel-section { margin-bottom: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--fg); padding-bottom: 8px; margin-bottom: 20px; }
.section-title { font-size: 1.35em; font-weight: 700; letter-spacing: -0.01em; }
.tts-btn {
  border: 1px solid var(--rule); background: var(--surface); color: var(--fg-soft);
  border-radius: 980px; padding: 4px 16px; font-size: 13px; cursor: pointer; flex-shrink: 0;
}
.tts-btn:hover { color: var(--fg); border-color: var(--fg-soft); }
.tts-btn.loading { opacity: 0.5; }
.tts-btn.playing { background: var(--fg); color: var(--surface); border-color: var(--fg); }

.intel-item { margin-bottom: 28px; }
.item-title { font-size: 1.05em; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.005em; }
.item-body { color: var(--fg); }
.key-data { list-style: none; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.key-data li { font-size: 0.85em; color: var(--fg-soft); background: var(--rule-soft); border-radius: 7px; padding: 3px 10px; }
.source-link { display: inline-block; margin-top: 8px; font-size: 0.8em; color: var(--accent); }
.source-link:hover { text-decoration: underline; }

/* ── 往期快捷卡片 ─────────────────────────────────────── */
.recent-strip { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule-soft); }
.recent-label { font-size: 0.8em; color: var(--fg-faint); margin-right: 4px; }
.recent-card { display: flex; flex-direction: column; align-items: center; border: 1px solid var(--rule); border-radius: 10px; padding: 8px 14px; min-width: 64px; transition: border-color 0.2s; }
.recent-card:hover { border-color: var(--fg-soft); }
.recent-card.current { background: var(--fg); color: var(--surface); border-color: var(--fg); }
.recent-date { font-size: 14px; font-weight: 600; }
.recent-meta { font-size: 11px; opacity: 0.7; }

/* ── 往期列表页 ───────────────────────────────────────── */
.history-list { list-style: none; }
.history-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
.history-item:hover { background: var(--rule-soft); }
.history-date { font-weight: 600; }
.history-meta { font-size: 14px; color: var(--fg-soft); display: flex; align-items: center; gap: 8px; }
.tag-placeholder { font-size: 11px; border: 1px solid var(--rule); border-radius: 5px; padding: 1px 6px; color: var(--fg-faint); }

@media (max-width: 600px) {
  .topbar-nav { gap: 12px; }
  .section-head { flex-wrap: wrap; gap: 8px; }
}
