/* ============================================================
   下一站 · THE NEXT STOP
   纸质月刊风格：暖白纸张 / 衬线标题 / 印章红 / 编辑式分隔线
   ============================================================ */

:root {
  --paper: #f6f2e8;
  --paper-deep: #eee7d8;
  --card: #fffdf7;
  --ink: #211e18;
  --ink-2: #403a30;
  --muted: #857c6c;
  --faint: #b0a796;
  --rule: #ded6c5;
  --rule-soft: #ebe4d6;
  --rule-dark: #2a261f;
  --red: #a13c28;
  --red-deep: #7f2e1d;
  --red-soft: #f3e5dc;
  --green: #6d7d55;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shadow: 0 1px 0 rgba(43, 36, 24, 0.05), 0 18px 38px -32px rgba(43, 36, 24, 0.55);
  /* 站台告示（提醒模块）专用色，与正文纸张色区分 */
  --notice-bg: #efe8da;
  --notice-panel: #fbf7ef;
  --notice-ink: #2d261e;
  --notice-line: #d8cdb8;
  --notice-deep: #5b4a37;
  --notice-accent: #a13c28;
  --notice-muted: #85775f;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 10% 4%, rgba(255, 255, 255, 0.75), transparent 38%),
    radial-gradient(circle at 92% 18%, rgba(176, 151, 108, 0.10), transparent 34%),
    repeating-linear-gradient(0deg, rgba(117, 101, 74, 0.028) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(117, 101, 74, 0.028) 0 1px, transparent 1px 26px);
}

.app {
  width: min(calc(100% - 44px), 680px);
  margin: 0 auto;
  padding: 40px 0 72px;
}

@keyframes paperIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.stage:not([hidden]) { animation: paperIn 360ms ease both; }

/* ---------- 报头 ---------- */
.masthead { position: relative; }
.masthead-top {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.masthead-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-width: 0; }
.issue, .status {
  font-family: var(--serif);
  font-size: 11px; letter-spacing: 0.14em; color: var(--muted);
}
.status { display: inline-flex; align-items: center; gap: 7px; letter-spacing: 0.03em; }
.status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 3px rgba(109, 125, 85, 0.12);
}
.today-badge {
  font-family: Georgia, var(--serif);
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  color: #fff; background: var(--red);
  padding: 3px 9px 2px; box-shadow: 2px 2px 0 rgba(161, 60, 40, 0.18);
}
.wordmark { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.wordmark-cn {
  font-family: var(--serif); font-size: clamp(2.7rem, 9vw, 3.8rem);
  font-weight: 700; letter-spacing: 0.15em; line-height: 1; color: var(--ink);
}
.wordmark-en {
  font-family: var(--serif); font-size: 11px; letter-spacing: 0.12em;
  color: var(--muted); padding-bottom: 3px;
}
/* 顶部醒目入口：与标题同行、右对齐，独立于页内目录；高对比红底 + 边框 + 留白 */
.help-cta {
  display: inline-flex; align-items: center; gap: 8px;
  flex: none; margin-left: auto;
  padding: 10px 16px;
  background: var(--red);
  border: 2px solid var(--red-deep);
  border-radius: 2px;
  box-shadow: 4px 4px 0 rgba(127, 46, 29, 0.22);
  color: #fff;
  font-family: var(--serif); font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  line-height: 1.3; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.help-cta-mark {
  width: 22px; height: 22px; flex: none;
  display: grid; place-items: center;
  border: 2px solid #fff; border-radius: 50%;
  font-family: Georgia, var(--serif); font-size: 14px; font-weight: 700; line-height: 1;
}
.help-cta-label { white-space: nowrap; }
.help-cta-arrow { font-size: 16px; line-height: 1; }
.help-cta:hover, .help-cta:focus {
  background: var(--red-deep); border-color: #5e2013;
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(127, 46, 29, 0.28);
  outline: none;
}
.help-cta:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(127, 46, 29, 0.22); }

.masthead-rule {
  position: relative; height: 5px; margin: 16px 0 0;
  border-top: 2px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}
.masthead-rule::after {
  content: ""; position: absolute; right: 0; top: 1px;
  width: 64px; height: 1px; background: var(--rule-dark);
}

/* ---------- 入场封面：强制填名字才能进入 ---------- */
body.gate-locked { overflow: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.85), transparent 42%),
    radial-gradient(circle at 85% 88%, rgba(161, 60, 40, 0.08), transparent 46%),
    var(--paper-deep);
  animation: gateIn 0.4s ease both;
}
@keyframes gateIn { from { opacity: 0; } to { opacity: 1; } }
.gate-paper {
  position: relative; width: min(100%, 480px);
  padding: 46px 42px 40px; text-align: center;
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: 0 26px 70px -28px rgba(43, 36, 24, 0.55), 0 2px 0 rgba(255, 255, 255, 0.8) inset;
  animation: paperIn 0.55s ease both;
}
.gate-paper::before {
  content: ""; position: absolute; left: 15px; right: 15px; top: 15px;
  height: 1px; background: var(--rule-dark);
}
.gate-issue {
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em; color: var(--muted);
}
.gate-wordmark { margin: 20px 0 6px; }
.gate-cn {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.6rem, 12vw, 3.6rem); line-height: 1.1; letter-spacing: 0.12em; color: var(--ink);
}
.gate-en {
  display: block; margin-top: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.34em; color: var(--red);
}
.gate-rule {
  position: relative; height: 3px; margin: 24px 0 26px;
  border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule);
}
.gate-rule span {
  position: absolute; left: 0; top: 0; width: 84px; height: 3px; background: var(--red);
}
.gate-kicker {
  margin: 0 0 6px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; color: var(--red);
}
.gate-title {
  margin: 0 0 10px; font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.6rem, 7vw, 2.1rem); color: var(--ink);
}
.gate-desc { margin: 0 0 22px; font-size: 13px; line-height: 1.8; color: var(--ink-2); opacity: 0.8; }
.gate-form { display: flex; gap: 8px; }
.gate-form input { flex: 1 1 auto; min-width: 0; font-family: var(--serif); font-size: 17px; }
.gate-form button { flex: none; min-height: 46px; padding: 8px 20px; white-space: nowrap; }
.gate-err { min-height: 18px; margin: 8px 0 0; font-size: 12px; color: var(--red); }
.gate-note { margin: 6px 0 0; font-size: 11px; color: var(--muted); opacity: 0.8; }
@media (max-width: 560px) {
  .gate { padding: 16px; }
  .gate-paper { padding: 40px 24px 30px; }
  .gate-form { flex-direction: column; }
  .gate-form button { width: 100%; }
}

/* ---------- 问候语：按时段 + 姓名 ---------- */
.greeting {
  margin: 18px 0 6px;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--rule);
  animation: paperIn 0.55s ease both;
}
.greeting-label {
  display: block; margin-bottom: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--red);
}
.greeting-form { display: flex; gap: 10px; align-items: stretch; max-width: 520px; }
.greeting-form input {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--serif); font-size: 18px;
}
.greeting-form button { flex: none; }
.greeting-note { margin: 10px 0 0; font-size: 12px; color: var(--ink-2); opacity: 0.75; }
.greeting-show { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.greeting-line {
  margin: 0;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.7rem, 6vw, 2.5rem); line-height: 1.2; letter-spacing: 0.02em;
  color: var(--ink);
}
.greeting-line::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 8px; background: var(--red); border-radius: 50%; vertical-align: baseline; }
.greeting-edit {
  padding: 4px 0; border: 0; border-bottom: 1px solid var(--red);
  background: none; color: var(--red); font-size: 12px; font-weight: 600;
  box-shadow: none;
}
.greeting-edit:hover { background: var(--red-soft); transform: none; box-shadow: none; }
@media (max-width: 560px) {
  .greeting-form { flex-direction: column; }
  .greeting-form button { width: 100%; }
  .greeting-show { gap: 10px; }
}

/* ---------- 栏目标签 / 标题 ---------- */
.kicker {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--red);
}
.kicker-mark { width: 22px; height: 2px; background: var(--red); flex: none; }
h1 {
  margin: 0 0 16px;
  font-family: var(--serif); font-size: clamp(2.4rem, 8vw, 3.5rem);
  font-weight: 700; line-height: 1.22; letter-spacing: 0.02em;
}
.accent-text { position: relative; z-index: 0; color: var(--red); white-space: nowrap; }
.accent-text::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px;
  height: 6px; background: var(--red-soft); z-index: -1;
}
.lede {
  margin: 0; padding: 2px 0 2px 18px;
  border-left: 2px solid var(--rule);
  color: var(--ink-2); font-size: 14px; line-height: 1.95;
}
.hero { margin: 42px 0 44px; }

.section-title {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px; padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.section-no {
  width: 25px; height: 25px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--red); border-radius: 50%;
  color: var(--red); font-family: Georgia, serif;
  font-size: 11px; font-style: normal; line-height: 1;
}
.section-title span:last-child {
  font-family: var(--serif); font-size: 15px; font-weight: 700; letter-spacing: 0.09em;
}

/* ---------- 通用卡片 / 控件 ---------- */
.card {
  background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow);
}
input, button { font: inherit; }
input {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--rule); border-radius: 0;
  background: #fff; color: var(--ink); outline: none;
  font-size: 14px; transition: border-color 150ms ease, box-shadow 150ms ease;
}
input::placeholder { color: var(--faint); }
input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(161, 60, 40, 0.10); }
button {
  min-height: 44px; padding: 10px 20px;
  border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease,
    box-shadow 150ms ease, transform 150ms ease;
}
button:hover:not(:disabled) {
  background: var(--red); border-color: var(--red);
  transform: translateY(-1px); box-shadow: 0 3px 0 rgba(161, 60, 40, 0.16);
}
button:active:not(:disabled) { transform: none; box-shadow: none; }
button:disabled { opacity: 0.5; cursor: wait; }
button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.link, .clear, .reset {
  min-height: 0; padding: 0;
  background: none; border: 0; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px;
}
.link { font-size: 12px; font-weight: 600; color: var(--red); }
.link:hover, .clear:hover, .reset:hover { background: none; color: var(--red); box-shadow: none; transform: none; }

/* ---------- 首屏：上传课程表 ---------- */
.input-section {
  background: var(--card); border: 1px solid var(--rule);
  padding: 28px 28px 24px; box-shadow: var(--shadow);
  display: grid; gap: 18px;
}
.drop {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 186px; padding: 28px 20px 22px;
  border: 1px dashed #cfc5b1; background: #fdfbf5;
  cursor: pointer; text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.drop:hover, .drop.active {
  border-color: var(--red); background: var(--red-soft);
  box-shadow: inset 0 0 0 3px rgba(255, 253, 247, 0.8);
}
.drop-corner {
  position: absolute; top: 11px; left: 13px;
  font-family: var(--serif); font-size: 9px; letter-spacing: 0.14em; color: var(--faint);
}
.drop-text { display: flex; flex-direction: column; align-items: center; }
.drop-icon {
  width: 48px; height: 48px; margin-bottom: 13px;
  display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: 50%;
  color: var(--red); background: var(--card);
}
.drop-icon svg { width: 23px; height: 23px; }
.drop-title { font-family: var(--serif); font-size: 16px; font-weight: 700; }
.drop-sub { margin-top: 3px; font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.preview {
  max-width: 100%; max-height: 168px; object-fit: contain;
  border: 1px solid var(--rule); padding: 4px; background: #fff;
}
.sample-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sample-note { font-size: 11px; color: var(--faint); }
.retry-link { color: var(--ink); border-bottom: 1px solid var(--ink); }
.retry-link:hover { color: var(--red); border-bottom-color: var(--red); }
.hint { margin: 0; min-height: 18px; font-size: 12px; color: var(--muted); }
.hint:not(:empty) { color: var(--red); }

.colophon {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif); font-size: 10px; letter-spacing: 0.14em; color: var(--faint);
}

/* ---------- 结果页 ---------- */
.result > .kicker { margin-top: 24px; }
.week-head { margin: 0 0 16px; }
.memo-title {
  margin: 0 0 6px;
  font-family: var(--serif); font-size: clamp(2.2rem, 8vw, 3rem);
  font-weight: 700; line-height: 1.2; letter-spacing: 0.02em;
}
.title-dot { color: var(--red); }
.memo-sub { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: 0.03em; }

/* 页内目录：把长页入口摆到一处，一眼看清有几块、点一下直达 */
.page-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0;
  margin: 0 0 30px; padding: 10px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.page-nav-title {
  margin-right: 14px; font-family: var(--serif); font-size: 11px;
  font-weight: 700; letter-spacing: 0.12em; color: var(--ink);
}
.page-nav a {
  padding: 3px 10px; font-size: 11px; letter-spacing: 0.03em;
  color: var(--muted); text-decoration: none; border-right: 1px solid var(--rule);
}
.page-nav a:last-child { border-right: 0; }
.page-nav a:hover, .page-nav a:focus { color: var(--red); text-decoration: underline; }

/* 区域说明：讲清这一块放什么、怎么用，避免功能藏在名字后面 */
.zone-hint {
  margin: 0 0 10px; font-size: 11px; line-height: 1.7; color: var(--faint);
}
.manage-summary-hint {
  margin-left: 10px; font-family: var(--sans); font-size: 10px;
  font-weight: 400; letter-spacing: 0.02em; color: var(--faint);
}

/* ---------- 任务查询 ---------- */
.query {
  background: var(--card); border: 1px solid var(--rule);
  padding: 24px 26px 26px; margin: 0 0 38px; box-shadow: var(--shadow);
  position: relative;
}
.query::before {
  content: ""; position: absolute; left: -1px; top: 24px; bottom: 24px;
  width: 3px; background: var(--ink);
}
.query-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 14px;
}
.query-head .kicker { margin-bottom: 4px; }
.query-title { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 700; letter-spacing: 0.03em; }
.query-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.base-field {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--muted); white-space: nowrap;
}
.base-field input {
  width: auto; min-height: 0; padding: 5px 8px;
  font-family: Georgia, var(--serif); font-size: 11px; color: var(--ink);
  border: 1px solid var(--rule); background: #fff;
}
.query-date { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.query-btn {
  min-height: 0; padding: 6px 13px; font-size: 11px;
  background: transparent; color: var(--red); border: 1px solid var(--red);
}
.query-btn:hover:not(:disabled) { background: var(--red); color: #fff; }

.next-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--red); border-left: 5px solid var(--red);
  background: linear-gradient(135deg, var(--red-soft) 0%, #fcf5ef 100%);
  padding: 17px 20px; margin-bottom: 22px;
}
.next-card::after {
  content: "NEXT"; position: absolute; right: 14px; top: 6px;
  font-family: Georgia, serif; font-size: 42px; font-weight: 700;
  letter-spacing: 0.02em; color: rgba(161, 60, 40, 0.075); pointer-events: none;
}
.next-kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; color: var(--red); }
.next-daybadge {
  padding: 2px 8px; border: 1px solid var(--red); border-radius: 2px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--red); background: #fff;
}
.next-live {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px;
  background: var(--green); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
}
.next-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.next-time {
  font-family: Georgia, var(--serif); font-size: 32px; font-weight: 700;
  line-height: 1.1; color: var(--red); font-variant-numeric: tabular-nums;
}
.next-title { margin-top: 4px; font-family: var(--serif); font-size: 18px; font-weight: 700; }
.next-meta { margin-top: 3px; font-size: 12px; color: var(--ink-2); }
.next-empty {
  padding: 18px; text-align: center;
  border: 1px dashed var(--rule); background: var(--paper);
  font-family: var(--serif); font-size: 14px; color: var(--muted);
}

/* ---------- 接下来：只看现在能做的事 ---------- */
.ready-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; padding: 0 2px 7px;
  border-bottom: 2px solid var(--rule-dark);
  font-family: var(--serif); font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
}
.ready-toggle {
  min-height: 0; padding: 2px 8px; font-size: 10px; font-weight: 400;
  background: transparent; color: var(--red); border: 1px solid var(--rule);
}
.ready-toggle:hover:not(:disabled) { border-color: var(--red); background: var(--red-soft); box-shadow: none; transform: none; }
.ready-list { display: grid; border-bottom: 1px solid var(--rule); }
.ready-item {
  display: grid; grid-template-columns: 58px 1fr auto;
  align-items: center; gap: 12px; padding: 10px 2px;
  border-bottom: 1px solid var(--rule-soft);
}
.ready-item:last-child { border-bottom: 0; }
.ready-item > time {
  font-family: Georgia, var(--serif); font-size: 15px; font-weight: 700;
  color: var(--red); font-variant-numeric: tabular-nums;
}
.ready-main { min-width: 0; }
.ready-main strong { font-family: var(--serif); font-size: 14px; }
.ready-main small { display: block; margin-top: 2px; font-size: 10px; color: var(--muted); }
.ready-item.is-doing > time { color: var(--green); }
.ready-item.is-wait { opacity: 0.62; }
.ready-item.is-wait > time { color: var(--muted); font-weight: 400; }
.ready-item.is-wait .ready-main strong { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.ready-wait-tag { font-size: 10px; color: var(--faint); white-space: nowrap; }
.ready-wait-head {
  padding: 7px 2px 4px; font-family: var(--serif);
  font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em;
}
.ready-empty {
  padding: 14px 2px; font-family: var(--serif); font-size: 12px; color: var(--muted);
}

.task-list-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; padding-bottom: 8px;
  border-bottom: 2px solid var(--rule-dark);
  font-family: var(--serif); font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
}
.task-legend { font-family: var(--sans); font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.task-list { display: grid; }
.task {
  display: grid; grid-template-columns: 58px 1fr auto auto;
  align-items: center; gap: 12px; padding: 11px 2px;
  border-bottom: 1px solid var(--rule);
}
.task time { font-family: Georgia, var(--serif); font-size: 16px; font-variant-numeric: tabular-nums; }
.task-main { min-width: 0; }
.task-main strong { font-size: 14px; }
.task-main small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.task-state { font-size: 10px; color: var(--muted); white-space: nowrap; }
.task-todo { border-left: 3px solid var(--red); padding-left: 10px; }
.task-doing { border-left: 3px solid var(--green); padding-left: 10px; background: rgba(109, 125, 85, 0.07); }
.task-todo time, .task-todo .task-main strong,
.task-doing time, .task-doing .task-main strong { font-weight: 700; color: var(--ink); }
.task-done { border-bottom-style: dashed; opacity: 0.72; }
.task-done time, .task-done .task-main strong { font-weight: 400; color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.task-done .task-main small, .task-done .task-state { color: var(--faint); text-decoration: line-through; }
.task-doing .task-state { color: var(--green); font-weight: 700; }
.task-wait { border-left: 3px solid var(--rule); padding-left: 10px; opacity: 0.66; }
.task-wait time, .task-wait .task-main strong { color: var(--muted); font-weight: 400; }
.task-wait .task-state { color: var(--muted); font-weight: 700; }
.task-empty {
  margin-top: 10px; padding: 18px; text-align: center;
  border: 1px dashed var(--rule); font-family: var(--serif); font-size: 13px; color: var(--muted);
}
.done-toggle {
  min-height: 0; padding: 3px 9px; font-size: 10px; font-weight: 400;
  background: transparent; color: var(--muted); border: 1px solid var(--rule);
}
.done-toggle:hover:not(:disabled) { background: var(--red-soft); color: var(--red); border-color: var(--red); box-shadow: none; transform: none; }

/* ---------- 月历 ---------- */
.calendar {
  background: var(--card); border: 1px solid var(--rule);
  padding: 20px 20px 16px; margin-bottom: 26px; box-shadow: var(--shadow);
}
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 0;
  border-bottom: 2px solid var(--rule-dark);
}
.cal-title {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
}
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-nav button {
  min-height: 0; padding: 5px 12px; font-size: 12px;
  background: transparent; color: var(--ink); border: 1px solid var(--rule);
}
.cal-nav button:hover:not(:disabled) { background: var(--red-soft); color: var(--red); border-color: var(--red); box-shadow: none; transform: none; }
.cal-nav button[aria-label="上个月"], .cal-nav button[aria-label="下个月"] {
  font-size: 19px; line-height: 1; padding: 2px 12px 5px;
}
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--rule); }
.cal-weekdays span {
  padding: 8px 0; text-align: center;
  font-family: var(--serif); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; color: var(--muted);
}
.cal-weekdays span:nth-child(6), .cal-weekdays span:nth-child(7) { color: var(--red); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-blank {
  min-height: 56px; border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft);
  background: rgba(117, 101, 74, 0.018);
}
.cal-cell {
  min-height: 56px; padding: 6px 3px 5px; position: relative;
  border: 0; border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft);
  border-radius: 0; background: transparent; color: var(--ink-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-variant-numeric: tabular-nums;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.cal-cell:nth-child(7n), .cal-cell:nth-child(7n + 6) { background: rgba(161, 60, 40, 0.022); }
.cal-cell:nth-child(7n), .cal-blank:nth-child(7n) { border-right: 0; }
.cal-cell:hover:not(:disabled) {
  background: var(--red-soft); color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red); transform: none;
}
.cal-num { font-family: Georgia, var(--serif); font-size: 15px; line-height: 1; }
.cal-cell.has-items .cal-num { font-weight: 700; color: var(--ink); }
.cal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.cal-cell.is-today .cal-num {
  position: relative; color: var(--red); font-weight: 700;
}
.cal-cell.is-today .cal-num::after {
  content: ""; position: absolute; left: 50%; bottom: -5px;
  width: 17px; height: 17px; transform: translateX(-50%);
  border: 1px solid var(--red); border-radius: 50%;
}
.cal-cell.is-selected {
  background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1px var(--ink);
}
.cal-cell.is-selected .cal-num { color: #fff; }
.cal-cell.is-selected .cal-num::after { border-color: rgba(255, 255, 255, 0.7); }
.cal-cell.is-selected .cal-dot { background: var(--card); }
.cal-cell.is-selected:hover:not(:disabled) { background: var(--ink); color: #fff; }
.cal-legend {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin: 13px 0 0; font-size: 10px; color: var(--muted);
}
.cal-key { width: 9px; height: 9px; display: inline-block; border: 1px solid var(--rule); margin-left: 8px; }
.cal-key:first-child { margin-left: 0; }
.cal-key.today { border-color: var(--red); border-radius: 50%; }
.cal-key.has { background: var(--red); border-color: var(--red); border-radius: 50%; }
.cal-key.sel { background: var(--ink); border-color: var(--ink); }

/* ---------- 当天时间线 ---------- */
.day-panel-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; border-bottom: 2px solid var(--rule-dark);
}
.day-panel-head h2 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: 0.04em; }
.day-count { font-size: 11px; color: var(--muted); }
.timeline { position: relative; padding: 4px 0; }
.timeline::before {
  content: ""; position: absolute; left: 74px; top: 10px; bottom: 10px;
  width: 1px; background: var(--rule);
}
.entry { position: relative; display: grid; grid-template-columns: 62px 1fr; column-gap: 30px; padding: 13px 0; }
.entry-time {
  font-family: Georgia, var(--serif); font-size: 19px; font-weight: 700;
  color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.5; text-align: right;
}
.entry-dot {
  position: absolute; left: 70px; top: 22px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--muted);
}
.entry-body {
  background: var(--card); border: 1px solid var(--rule);
  padding: 12px 16px; box-shadow: 0 1px 0 rgba(43, 36, 24, 0.05);
  transition: box-shadow 150ms ease, border-color 150ms ease;
}
.entry-body:hover { box-shadow: var(--shadow); }
.entry-title {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--serif); font-size: 16px; font-weight: 700; line-height: 1.5;
}
.entry-sub { margin-top: 2px; font-size: 12px; color: var(--muted); }
.entry-tag {
  padding: 1px 7px; border: 1px solid var(--red);
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--red); white-space: nowrap;
}
.entry.is-now .entry-dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.entry.is-now .entry-time { color: var(--red); }
.entry.is-now .entry-body { border-color: var(--red); box-shadow: 0 2px 0 rgba(161, 60, 40, 0.12); }
.entry.is-todo .entry-title { font-weight: 700; }
.entry.is-doing .entry-dot { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 4px rgba(109, 125, 85, 0.14); }
.entry.is-doing .entry-body { border-left: 3px solid var(--green); background: rgba(109, 125, 85, 0.07); }
.entry.is-doing .entry-tag { border-color: var(--green); color: #fff; background: var(--green); }
.entry.is-wait .entry-dot { background: var(--paper); border-color: var(--faint); box-shadow: none; }
.entry.is-wait .entry-title { color: var(--muted); }
.entry.is-wait .entry-tag { border-color: var(--rule); color: var(--muted); background: var(--paper); }
.entry.is-done .entry-time, .entry.is-done .entry-title { color: var(--faint); font-weight: 400; }
.entry.is-done .entry-body { background: transparent; border-style: dashed; box-shadow: none; }
.entry.is-done .entry-dot { border-color: var(--faint); background: transparent; }
.entry.is-done .entry-title, .entry.is-done .entry-time { text-decoration: line-through; }
.entry.is-event .entry-body { border-left: 3px solid var(--red); }
.entry.is-event .entry-dot { background: var(--red-soft); border-color: var(--red); }
.timeline-empty {
  padding: 30px; text-align: center;
  border: 1px dashed var(--rule); background: var(--card);
  font-family: var(--serif); font-size: 14px; color: var(--muted);
}
/* 今日任务全部完成 */
.timeline-done {
  padding: 34px 24px; text-align: center;
  border: 1px solid var(--rule); background: var(--card);
  box-shadow: var(--shadow);
  animation: paperIn 0.5s ease both;
}
.timeline-done .done-seal {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 0 auto 14px;
  border: 2px solid var(--green); border-radius: 50%;
  color: var(--green); font-size: 24px; font-weight: 700; line-height: 1;
}
.timeline-done strong {
  display: block; font-family: var(--serif); font-size: clamp(1.1rem, 4vw, 1.4rem);
  color: var(--ink); letter-spacing: 0.02em;
}
.timeline-done > span:last-child {
  display: block; margin-top: 6px; font-size: 12px; color: var(--muted);
}
.next-finished {
  padding: 22px; text-align: center; border: 1px solid var(--green);
  background: #f0f2e9; color: var(--green);
  font-family: var(--serif); font-size: 15px; font-weight: 700;
}
.task-all-done { color: var(--green); font-weight: 700; letter-spacing: 0.03em; }

/* ---------- 添加任务 ---------- */
.add-title { margin-top: 44px; }
.add-hint { margin: -8px 0 14px; font-size: 12px; color: var(--muted); }
.event-add { display: flex; align-items: center; gap: 9px; }
.event-add input { flex: 1; min-width: 0; min-height: 44px; font-size: 13px; }
.event-add button { min-height: 44px; padding: 8px 18px; font-size: 13px; }
.event-status { margin: 9px 0 0; min-height: 16px; font-size: 11px; color: var(--muted); }
.event-status.ok { color: var(--green); }
.event-status.err { color: var(--red); }

/* ---------- 管理区 ---------- */
.manage { margin-top: 34px; border-top: 1px solid var(--rule); padding-top: 8px; }
.manage summary {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--ink-2);
}
.manage summary::-webkit-details-marker { display: none; }
.manage summary::before {
  content: "+"; width: 12px; color: var(--red); font-family: Georgia, serif; font-size: 16px;
}
.manage[open] summary::before { content: "–"; }
.count-pill {
  padding: 0 7px; border: 1px solid var(--red);
  font-family: Georgia, serif; font-size: 11px; color: var(--red);
}
.my-list { display: grid; margin: 4px 0 0; }
.my-item {
  padding: 9px 0; border-top: 1px solid var(--rule); font-size: 13px;
}
.my-main {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.my-item button {
  min-height: 0; padding: 3px 10px; font-size: 11px; font-weight: 400;
  background: transparent; color: var(--muted); border: 1px solid var(--rule);
}
.my-item button:hover:not(:disabled) { color: var(--red); border-color: var(--red); background: var(--red-soft); box-shadow: none; transform: none; }
.empty { margin: 8px 0; font-size: 12px; color: var(--faint); }
.manage-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.undo, .clear { min-height: 0; padding: 0; margin: 14px 0 4px; font-size: 11px; }
.undo { color: var(--green); border-bottom: 1px solid var(--green); }
.undo:hover:not(:disabled) { color: #fff; background: var(--green); border-color: var(--green); box-shadow: none; transform: none; }
.reset { min-height: 0; padding: 0; margin-top: 26px; font-family: var(--serif); font-size: 12px; }

/* ---------- 先后关系编辑器 / AI 整理 ---------- */
.dep-chain { margin-top: 3px; font-size: 10px; color: var(--muted); }
.dep-editor { margin-top: 5px; }
.dep-editor summary {
  cursor: pointer; list-style: none; font-size: 10px; color: var(--red);
  font-family: var(--serif); letter-spacing: 0.06em;
}
.dep-editor summary::-webkit-details-marker { display: none; }
.dep-editor summary::before { content: "↳ "; font-family: Georgia, serif; }
.dep-options {
  display: grid; gap: 4px; margin: 7px 0 4px; padding: 9px 11px;
  background: var(--paper); border: 1px dashed var(--rule);
}
.dep-option { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ink-2); cursor: pointer; }
.dep-option input { width: auto; min-height: 0; margin: 0; accent-color: var(--red); }
.dep-option.is-blocked { opacity: 0.42; cursor: not-allowed; }
.dep-none { font-size: 10px; color: var(--faint); }
.organize {
  margin: 0 0 18px; padding: 14px 16px 12px;
  background: var(--paper); border: 1px dashed var(--rule);
}
.organize summary {
  cursor: pointer; list-style: none; font-family: var(--serif);
  font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: 0.05em;
}
.organize summary::-webkit-details-marker { display: none; }
.organize summary::before { content: "＋"; margin-right: 8px; color: var(--red); font-family: Georgia, serif; }
.organize[open] summary::before { content: "－"; }
.organize-hint { margin: 10px 0 8px; font-size: 11px; line-height: 1.7; color: var(--muted); }
.organize textarea {
  width: 100%; min-height: 74px; padding: 10px 11px; resize: vertical;
  font-family: var(--sans); font-size: 13px; line-height: 1.6;
  color: var(--ink); border: 1px solid var(--rule); border-radius: 0; background: #fff;
}
.organize textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 2px var(--red-soft); }
.organize-btn {
  min-height: 0; margin-top: 8px; padding: 7px 14px;
  font-size: 11px; color: var(--red); border: 1px solid var(--red); background: transparent;
}
.organize-btn:hover:not(:disabled) { background: var(--red); color: #fff; box-shadow: none; transform: none; }

/* 通知要点卡：从长群聊/通知里提炼出的结构化结果 */
.notice-digest {
  margin-top: 14px; padding: 13px 14px 11px;
  background: #fffdf8; border: 1px solid var(--rule);
  border-top: 3px solid var(--red);
}
.digest-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--rule);
}
.digest-head strong {
  font-family: var(--serif); font-size: 14px; letter-spacing: 0.08em; color: var(--ink);
}
.digest-head span { font-size: 10px; color: var(--faint); }
.digest-topic { margin: 2px 0 8px; font-family: var(--serif); font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.digest-row {
  display: grid; grid-template-columns: 76px 1fr; gap: 10px;
  padding: 5px 0; border-bottom: 1px dotted var(--rule); font-size: 12px; line-height: 1.65;
}
.digest-row:last-of-type { border-bottom: 0; }
.digest-row dt { margin: 0; font-weight: 700; color: var(--red); letter-spacing: 0.04em; }
.digest-row dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.digest-row ul { margin: 0; padding-left: 16px; }
.digest-row li { margin: 1px 0; }
.digest-row.is-warn dd { color: var(--red); font-weight: 700; }
.digest-sub { display: grid; gap: 3px; }
.digest-sub b { color: var(--ink); }
.digest-raw { margin-top: 9px; border-top: 1px solid var(--rule); padding-top: 7px; }
.digest-raw summary { cursor: pointer; font-size: 11px; color: var(--muted); list-style: none; }
.digest-raw summary::-webkit-details-marker { display: none; }
.digest-raw summary::before { content: "＋"; margin-right: 6px; color: var(--red); }
.digest-raw[open] summary::before { content: "－"; }
.digest-raw p {
  margin: 7px 0 0; padding: 8px 9px; white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--paper); border: 1px solid var(--rule); font-size: 11px; line-height: 1.65; color: var(--muted);
}
@media (max-width: 640px) {
  .digest-row { grid-template-columns: 64px 1fr; gap: 8px; }
}

/* ---------- 站台告示：提醒协议（冷灰绿告示板，区别于正文暖白纸） ---------- */
.reminder-module {
  position: relative; margin: 56px 0 0;
  background: var(--notice-bg); border: 1px solid var(--notice-deep);
  box-shadow: 5px 5px 0 rgba(91, 74, 55, 0.14), var(--shadow);
  animation: paperIn 0.55s ease both;
}
.rem-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px; background: var(--notice-deep); color: #fbf7ef;
  border-bottom: 1px solid #463826;
}
.rem-banner-mark {
  width: 18px; height: 18px; flex: none; display: grid; place-items: center;
  border: 1px solid #fbf7ef; border-radius: 50%;
  font-family: Georgia, serif; font-size: 12px; font-weight: 700; line-height: 1;
}
.rem-banner-title { font-family: var(--serif); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }
.rem-banner-no { margin-left: auto; font-family: Georgia, var(--serif); font-size: 10px; letter-spacing: 0.12em; opacity: 0.75; }
.rem-body { padding: 24px 28px 28px; }
.rem-head { border-bottom: 1px solid var(--notice-line); padding-bottom: 15px; margin-bottom: 17px; }
.rem-kicker { margin: 0 0 7px; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; color: var(--notice-deep); }
.rem-title {
  margin: 0 0 8px; font-family: var(--serif); font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 700; letter-spacing: 0.06em; color: var(--notice-ink);
}
.rem-desc { margin: 0; font-family: var(--serif); font-size: 14px; line-height: 1.85; color: var(--notice-ink); }
.rem-fine { margin: 9px 0 0; font-size: 10px; line-height: 1.7; color: var(--notice-muted); }
/* 勾选行：整行可点，勾选后盖一枚红章 */
.rem-check {
  position: relative; display: flex; align-items: center; gap: 11px;
  min-height: 50px; margin: 0 0 16px; padding: 9px 14px;
  background: var(--notice-panel); border: 1px solid var(--notice-deep);
  cursor: pointer; transition: background-color 150ms ease, box-shadow 150ms ease;
}
.rem-check:hover { background: #f7efe0; box-shadow: 2px 2px 0 rgba(91, 74, 55, 0.14); }
.rem-check input {
  position: absolute; width: 1px; height: 1px; min-height: 0;
  padding: 0; border: 0; opacity: 0; pointer-events: none;
}
.rem-check-box {
  flex: none; width: 19px; height: 19px; display: grid; place-items: center;
  border: 1px solid var(--notice-deep); background: #fff;
  color: transparent; font-size: 14px; font-weight: 700; line-height: 1;
  transition: background-color 150ms ease, color 150ms ease;
}
.rem-check input:checked + .rem-check-box { background: var(--notice-accent); border-color: var(--notice-accent); color: #fff; }
.rem-check input:focus-visible + .rem-check-box { outline: 2px solid var(--notice-deep); outline-offset: 2px; }
.rem-check-text { font-family: var(--serif); font-size: 14px; font-weight: 700; color: var(--notice-ink); }
.rem-check-stamp {
  margin-left: auto; flex: none; padding: 2px 8px;
  border: 2px solid var(--notice-accent); color: var(--notice-accent);
  font-family: var(--serif); font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  transform: rotate(-6deg); opacity: 0; transition: opacity 150ms ease;
}
.rem-check input:checked ~ .rem-check-stamp { opacity: 0.85; }
.rem-settings { border-top: 1px dashed var(--notice-line); padding-top: 15px; }
.rem-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rem-field { font-family: var(--serif); font-size: 13px; font-weight: 700; color: var(--notice-ink); }
.rem-select {
  min-height: 38px; padding: 6px 12px; border: 1px solid var(--notice-line); border-radius: 0;
  background: #fff; color: var(--notice-ink); font-size: 13px; cursor: pointer;
}
.rem-select:focus { border-color: var(--notice-deep); outline: none; }
.rem-select:disabled, .rem-btn:disabled, .rem-mini-check input:disabled { opacity: 0.45; cursor: not-allowed; }
.rem-btn {
  min-height: 38px; padding: 7px 18px; border: 1px solid var(--notice-deep); border-radius: 0;
  background: var(--notice-deep); color: #fff; font-family: var(--serif); font-size: 13px; font-weight: 700;
}
.rem-btn:hover:not(:disabled) {
  background: #463826; border-color: #463826; color: #fff;
  transform: none; box-shadow: 2px 2px 0 rgba(91, 74, 55, 0.18);
}
.rem-note { margin: 10px 0 0; font-size: 11px; line-height: 1.7; color: var(--notice-muted); }

/* 任务分级：每项任务手动勾选信息提醒 / 电话提醒，另有全选框 */
.rem-tasks {
  margin-top: 18px; padding: 16px 18px;
  background: var(--notice-panel); border: 1px solid var(--notice-line);
}
.rem-tasks-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--notice-line);
}
.rem-tasks-kicker { margin: 0; font-family: var(--serif); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--notice-ink); }
.rem-tasks-head span { font-size: 10px; color: var(--notice-muted); }
.rem-select-all {
  display: flex; gap: 18px; flex-wrap: wrap;
  padding: 8px 0 10px; border-bottom: 1px dashed var(--notice-line);
}
.rem-mini-check {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; font-size: 11px; color: var(--notice-ink);
}
.rem-mini-check input {
  flex: none; width: 15px; height: 15px; min-height: 0; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: #fff;
  accent-color: var(--notice-deep); cursor: pointer;
}
.rem-task-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--notice-line);
}
.rem-task-row:last-child { border-bottom: 0; }
.rem-task-label { min-width: 0; font-size: 12px; color: var(--notice-ink); word-break: break-word; }
.rem-task-row.is-urgent .rem-task-label { font-weight: 700; }
.rem-task-flags { flex: none; display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.rem-task-row.is-urgent .rem-task-flags .rem-mini-check:last-child span {
  color: var(--notice-accent); font-weight: 700;
}
.rem-task-empty { margin: 10px 0 0; font-size: 11px; color: var(--notice-muted); }
/* 按日期分组：今天/明天默认展开，其余点开才列 */
.rem-task-group { border-bottom: 1px solid var(--notice-line); }
.rem-task-group:last-child { border-bottom: 0; }
.rem-task-group > summary {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 12px; font-weight: 700; color: var(--notice-ink);
}
.rem-task-group > summary::-webkit-details-marker { display: none; }
.rem-task-group > summary::before {
  content: "+"; width: 12px; flex: none;
  color: var(--notice-deep); font-family: Georgia, serif; font-size: 14px;
}
.rem-task-group[open] > summary::before { content: "–"; }
.rem-group-label { flex: 1 1 auto; }
.rem-group-count { flex: none; font-family: var(--sans); font-size: 10px; font-weight: 400; color: var(--notice-muted); }
.rem-group-body { padding: 0 0 8px 20px; }

/* 附加条款：级联子模块 */
.rem-focus {
  margin-top: 18px; padding: 16px 18px 18px;
  background: #f6efe1; border: 1px solid var(--notice-line); border-left: 3px solid var(--notice-deep);
}
.rem-focus-head { border-bottom: 1px solid var(--notice-line); padding-bottom: 8px; margin-bottom: 10px; }
.rem-focus-kicker { margin: 0 0 3px; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; color: var(--notice-deep); }
.rem-focus-title { margin: 0; font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--notice-ink); }
.rem-focus-desc { margin: 0 0 14px; font-size: 12px; line-height: 1.85; color: var(--notice-muted); }
.rem-check-focus { min-height: 44px; margin-bottom: 10px; background: var(--notice-panel); border-color: var(--notice-line); }
.rem-check-focus:hover { border-color: var(--notice-deep); }
.rem-focus-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rem-focus-actions .rem-btn { flex: 1 1 160px; }
.rem-btn-ghost { background: #fff; color: var(--notice-deep); border-color: var(--notice-deep); }
.rem-btn-ghost:hover:not(:disabled) { background: var(--notice-deep); color: #fff; border-color: var(--notice-deep); }

/* 紧要星标：时间线与管理列表共用 */
.entry-actions, .my-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.entry-body .done-toggle { margin-top: 0; }
.urgent-star {
  min-height: 0; padding: 2px 8px; font-size: 15px; line-height: 1.2;
  background: transparent; color: var(--muted); border: 1px solid var(--rule);
}
.urgent-star:hover:not(:disabled) { color: #b8860b; border-color: #b8860b; background: #fbf3dd; box-shadow: none; transform: none; }
.urgent-star.is-on { color: #b8860b; border-color: #b8860b; background: #fbf3dd; }
.my-item .urgent-star, .my-item .my-actions { margin-top: 0; }

/* 页面内提醒浮层（保底通道，保证演示一定可见） */
.rem-toast-wrap {
  position: fixed; right: 18px; top: 18px; z-index: 1100;
  width: min(390px, calc(100vw - 36px)); display: grid; gap: 10px; pointer-events: none;
}
.rem-toast {
  pointer-events: auto; overflow: hidden;
  background: var(--notice-panel); border: 1px solid var(--notice-deep); border-left: 5px solid var(--notice-accent);
  box-shadow: 5px 5px 0 rgba(91, 74, 55, 0.16), 0 18px 42px -18px rgba(45, 38, 30, 0.5);
  animation: remToastIn 260ms ease both;
}
.rem-toast.is-focus { border-left-color: var(--notice-deep); }
.rem-toast.is-out { opacity: 0; transform: translateX(14px); transition: opacity 240ms ease, transform 240ms ease; }
@keyframes remToastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.rem-toast-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; background: var(--notice-deep); color: #fff;
  font-family: var(--serif); font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
}
.rem-toast.is-focus .rem-toast-head { background: var(--notice-accent); }
.rem-toast-close { min-height: 0; padding: 0 4px; border: 0; background: transparent; color: #fff; font-size: 20px; line-height: 1; }
.rem-toast-close:hover:not(:disabled) { background: transparent; color: #fff; box-shadow: none; transform: none; }
.rem-toast-body { padding: 11px 13px; }
.rem-toast-line { font-size: 12px; line-height: 1.75; color: var(--notice-ink); word-break: break-word; }
.rem-toast-line:first-child { font-weight: 700; color: var(--notice-ink); }

/* 深夜催睡模态（必须点击按钮才能关闭） */
.rem-modal {
  position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto; background: rgba(45, 38, 30, 0.72);
  animation: gateIn 0.3s ease both;
}
.rem-modal-card {
  width: min(100%, 480px); padding: 34px 30px 30px; text-align: center;
  background: var(--notice-panel); border: 2px solid var(--notice-deep);
  box-shadow: 7px 7px 0 rgba(91, 74, 55, 0.18);
  color: var(--notice-ink); animation: paperIn 0.35s ease both;
}
.rem-modal-kicker { margin: 0 0 10px; font-size: 10px; font-weight: 700; letter-spacing: 0.18em; color: var(--notice-deep); }
.rem-modal-title { margin: 0 0 8px; font-family: var(--serif); font-size: clamp(1.5rem, 6vw, 2rem); color: var(--notice-ink); }
.rem-modal-lead { margin: 0 0 18px; font-size: 14px; font-weight: 700; color: var(--notice-accent); }
.rem-modal-list { padding: 14px 16px; border: 1px dashed var(--notice-deep); text-align: left; margin-bottom: 22px; background: #fff; }
.rem-modal-list-title { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--notice-deep); }
.rem-modal-line { padding: 3px 0; font-size: 13px; line-height: 1.6; color: var(--notice-ink); }
.rem-modal-btn { width: 100%; background: var(--notice-deep); border-color: var(--notice-deep); }

/* 虚拟来电：仿手机来电界面（全屏，非真实通话） */
.rem-call { position: fixed; inset: 0; z-index: 1400; display: flex; align-items: center; justify-content: center; padding: 20px; }
.rem-call-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(120, 152, 176, 0.55), transparent 46%),
    linear-gradient(170deg, #3f4f62 0%, #1e2836 52%, #0d131c 100%);
}
.rem-call-card {
  position: relative; width: min(100%, 400px); text-align: center; padding: 30px 24px 26px;
  color: #fff;
}
.rem-call-kicker {
  margin: 0 0 34px; font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.72);
}
.rem-call-avatar {
  width: 104px; height: 104px; margin: 0 auto 20px; display: grid; place-items: center;
  border-radius: 50%; background: linear-gradient(145deg, #7d96ad, #45586c);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  font-family: var(--serif); font-size: 32px; font-weight: 700; color: #fff;
  animation: remPulse 1.5s ease-in-out infinite;
}
@keyframes remPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.16), 0 10px 30px rgba(0, 0, 0, 0.28); }
  50% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.02), 0 10px 30px rgba(0, 0, 0, 0.28); }
}
.rem-call-name { font-size: 26px; font-weight: 500; letter-spacing: 0.04em; color: #fff; }
.rem-call-number { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, 0.62); letter-spacing: 0.08em; }
.rem-call-task {
  margin-top: 26px; padding: 12px 14px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 17px; font-weight: 600; color: #fff; word-break: break-word;
}
.rem-call-meta { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.rem-call-message {
  margin: 24px 0 0; padding: 16px 18px; text-align: left;
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px; font-size: 15px; font-weight: 500;
  line-height: 1.75; color: #fff;
}
.rem-call-actions { display: flex; gap: 56px; justify-content: center; margin-top: 52px; }
.rem-call-btn {
  width: 72px; height: 72px; padding: 0; border-radius: 50%; border: 0;
  font-size: 15px; font-weight: 600; color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.rem-call-btn.is-answer { background: #34a853; }
.rem-call-btn.is-hang { background: #e53935; }
.rem-call-btn.is-answer:hover:not(:disabled) { background: #2f9c4b; }
.rem-call-btn.is-hang:hover:not(:disabled) { background: #cf302d; }
.rem-call-btn:hover:not(:disabled) { transform: translateY(-2px); }
.rem-call-hint { margin: 26px 0 0; font-size: 11px; color: rgba(255, 255, 255, 0.5); }

/* 全屏视频播放器：覆盖整页、层级高于所有浮层（含来电 1400 / 催睡 1300） */
.video-overlay {
  position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 64px 20px 46px;
  background: rgba(20, 17, 13, 0.94); animation: gateIn 0.28s ease both;
}
.video-overlay[hidden] { display: none !important; }
.video-stage {
  width: min(100%, 1180px); display: flex; align-items: center; justify-content: center;
}
.video-player {
  width: 100%; max-height: calc(100dvh - 150px); display: block;
  background: #000; box-shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.8);
}
.video-exit {
  position: absolute; top: 18px; right: 20px; z-index: 2001;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 2px solid #fff; background: var(--red); color: #fff;
  font-family: var(--serif); font-size: 15px; font-weight: 700; letter-spacing: 0.06em;
  cursor: pointer; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}
.video-exit span { font-size: 17px; line-height: 1; }
.video-exit:hover, .video-exit:focus { background: #fff; color: var(--red-deep); border-color: #fff; transform: none; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5); }
.video-tip {
  margin: 16px 0 0; font-size: 12px; letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6); text-align: center;
}
body.video-open { overflow: hidden; }

/* ---------- 响应式 ---------- */
@media (max-width: 600px) {
  .app { width: min(calc(100% - 28px), 680px); padding: 40px 0 62px; }
  .masthead-top { font-size: 10px; gap: 10px; }
  .masthead-meta { gap: 10px; }
  /* 顶部醒目入口移动端：换行到信息行下方、右对齐，点击区域足够 */
  .help-cta { padding: 9px 13px; gap: 7px; font-size: 12px; box-shadow: 3px 3px 0 rgba(127, 46, 29, 0.22); }
  .help-cta-mark { width: 19px; height: 19px; font-size: 12px; border-width: 1.5px; }
  .help-cta-arrow { font-size: 13px; }
  .today-badge { font-size: 9px; padding: 2px 6px; }
  .wordmark-en { font-size: 10px; }
  .hero { margin: 34px 0 36px; }
  .input-section { padding: 20px 18px; }
  .page-nav { margin-bottom: 24px; }
  .page-nav-title { width: 100%; margin: 0 0 6px; }
  .page-nav a { padding: 3px 8px 3px 0; margin-right: 8px; }
  .query { padding: 20px 16px; }
  .query-head { align-items: flex-start; }
  .calendar { padding: 16px 10px 12px; }
  .cal-title { font-size: 18px; }
  .cal-cell, .cal-blank { min-height: 48px; }
  .cal-num { font-size: 14px; }
  .timeline::before { left: 54px; }
  .entry { grid-template-columns: 46px 1fr; column-gap: 20px; }
  .entry-dot { left: 50px; }
  .entry-time { font-size: 16px; }
  .entry-body { padding: 11px 13px; }
  .task { grid-template-columns: 48px 1fr auto; }
  .task .task-state { grid-column: 2; }
  .task .done-toggle { grid-column: 3; grid-row: 1; }
  .event-add { flex-direction: column; align-items: stretch; }
  .event-add button { width: 100%; }
  .colophon { font-size: 9px; }
  /* 站台告示移动端 */
  .reminder-module { margin-top: 44px; box-shadow: 4px 4px 0 rgba(91, 74, 55, 0.14); }
  .rem-banner { padding: 8px 14px; }
  .rem-banner-title { font-size: 11px; }
  .rem-body { padding: 20px 16px 22px; }
  .rem-check { padding: 9px 11px; }
  .rem-check-stamp { display: none; }
  .rem-row { flex-direction: column; align-items: stretch; }
  .rem-select, .rem-btn { width: 100%; }
  .rem-tasks { padding: 14px 12px; }
  .rem-task-row { align-items: flex-start; flex-direction: column; gap: 6px; }
  .rem-task-flags { align-self: flex-end; justify-content: flex-end; }
  .rem-focus { padding: 16px 14px; }
  .rem-focus-actions .rem-btn { flex: 1 1 100%; }
  .rem-toast-wrap { right: 12px; top: 12px; width: calc(100vw - 24px); }
  .rem-modal-card { padding: 28px 20px 24px; }
  .rem-call-actions { gap: 14px; }
  .rem-call-btn { width: 66px; height: 66px; }
  /* 全屏视频移动端 */
  .video-overlay { padding: 60px 8px 40px; }
  .video-exit { top: 12px; right: 12px; padding: 8px 14px; font-size: 14px; }
  .video-player { max-height: calc(100dvh - 130px); }
  .video-tip { font-size: 11px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
