/* 急救日签 · 视觉系统：撕页日历（米色纸面 + 纯红印记 + 大字号日期） */
:root {
  --paper: #f2f0ea;
  --paper-deep: #e8e4d8;
  --red: #c8261a;
  --ink: #1c1a16;
  --grey: #7a756a;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "SimSun", serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font); color: var(--ink); background: var(--paper);
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.014) 0 1px, transparent 1px 3px);
}
.wrap { width: 100%; max-width: 460px; padding: 0 18px 40px; }

/* 常驻 120 条（两模块统一，救命优先于产品） */
.bar120 {
  width: 100%; background: var(--red); color: #fff; text-align: center;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; padding: 8px 10px;
}
.bar120 b { font-size: 15px; }

/* ---------- 撕页日历头 ---------- */
.calendar {
  margin-top: 22px; background: #faf8f2; border: 1px solid #d8d2c2;
  border-radius: 4px; box-shadow: 0 2px 0 #d8d2c2, 0 8px 24px rgba(60,50,30,.12);
  overflow: hidden; position: relative;
}
.cal-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 18px 20px 12px; border-bottom: 1px dashed #c9c2ae;
}
.cal-date { display: flex; align-items: baseline; gap: 8px; }
.cal-date .mm { font-size: 20px; font-weight: 800; }
.cal-date .dd {
  font-family: var(--serif); font-size: 64px; font-weight: 900; line-height: .9; color: var(--red);
  font-variant-numeric: tabular-nums;
}
.cal-right { text-align: right; }
.cal-right .week { font-size: 13px; color: var(--grey); }
.cal-right .tag {
  display: inline-block; margin-top: 6px; font-size: 11px; color: var(--red);
  border: 1px solid var(--red); border-radius: 2px; padding: 2px 8px; letter-spacing: .1em;
}
.perforation {
  height: 0; border-top: 2px dashed #c9c2ae; margin: 0 8px; position: relative;
}
.perforation::before, .perforation::after {
  content: ''; position: absolute; top: -7px; width: 14px; height: 14px;
  background: var(--paper); border-radius: 50%; border: 1px solid #d8d2c2;
}
.perforation::before { left: -16px; }
.perforation::after { right: -16px; }

/* ---------- 题面 ---------- */
.quiz { padding: 20px; }
.quiz .q-label { font-size: 11px; letter-spacing: .2em; color: var(--grey); margin-bottom: 8px; }
.quiz .question { font-size: 21px; font-weight: 800; line-height: 1.5; margin-bottom: 18px; }
.option {
  display: block; width: 100%; text-align: left; margin-bottom: 10px;
  background: #fff; border: 1.5px solid #cfc8b6; border-radius: 10px;
  padding: 15px 16px; font-size: 16px; font-weight: 600; cursor: pointer;
  font-family: var(--font); color: var(--ink); transition: border-color .15s, background .15s;
}
.option:active { transform: scale(.99); }
.option.picked-correct { border-color: var(--red); background: #fdf1ef; color: var(--red); }
.option.picked-wrong { border-color: #999; background: #f0eee7; color: #999; text-decoration: line-through; }
.option.reveal-answer { border-color: var(--red); color: var(--red); }
.option:disabled { cursor: default; }

/* ---------- 解析与全国正确率 ---------- */
.result { display: none; padding: 4px 20px 20px; }
.result.show { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.verdict { font-size: 26px; font-weight: 900; margin-bottom: 4px; }
.verdict.right { color: var(--red); }
.verdict.wrong { color: var(--ink); }
.detail-text { font-size: 14px; line-height: 1.9; margin: 12px 0; }
.stats-box { border-top: 1px dashed #c9c2ae; padding-top: 14px; margin-top: 6px; }
.stats-box .lbl { font-size: 12px; color: var(--grey); letter-spacing: .1em; margin-bottom: 8px; }
.ratio-bar { height: 12px; border-radius: 6px; background: #e2ddcf; overflow: hidden; }
.ratio-bar i {
  display: block; height: 100%; background: var(--red); width: 0;
  transition: width .8s cubic-bezier(.2,.8,.2,1);
}
.ratio-num { font-family: var(--serif); font-size: 34px; font-weight: 900; color: var(--red); margin-top: 8px; }
.ratio-num small { font-size: 13px; color: var(--grey); font-family: var(--font); font-weight: 400; margin-left: 8px; }

/* ---------- 行动区 ---------- */
.actions { padding: 0 20px 20px; }
.btn {
  display: block; width: 100%; padding: 15px; border-radius: 999px; text-align: center;
  font-size: 16px; font-weight: 800; cursor: pointer; margin-top: 10px;
  border: 2px solid var(--ink); background: #fff; color: var(--ink); text-decoration: none;
}
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.dark { background: var(--ink); color: #fff; }
.btn:disabled { opacity: .45; }

/* ---------- 成绩卡（分享） ---------- */
.result-card {
  display: none; margin: 14px 18px 0; border: 2px solid var(--ink); border-radius: 14px;
  background: #faf8f2; overflow: hidden;
}
.result-card.show { display: block; }
.result-card .hd { background: var(--red); color: #fff; padding: 12px 16px; font-size: 12px; letter-spacing: .15em; }
.result-card .bd { padding: 16px; }
.result-card .big { font-family: var(--serif); font-size: 40px; font-weight: 900; color: var(--red); line-height: 1.1; }
.result-card .q { font-size: 13px; color: var(--grey); margin-top: 6px; line-height: 1.6; }
.result-card .ft { padding: 10px 16px; border-top: 1px dashed #c9c2ae; font-size: 11px; color: var(--grey); }

/* ---------- 历史题 ---------- */
.history { margin-top: 26px; }
.history .h-title { font-size: 12px; letter-spacing: .2em; color: var(--grey); margin-bottom: 10px; }
.history .h-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: #faf8f2; border: 1px solid #d8d2c2; border-radius: 10px; margin-bottom: 8px;
  cursor: pointer;
}
.history .h-row .d { font-family: var(--serif); font-size: 20px; font-weight: 900; color: var(--red); min-width: 44px; }
.history .h-row .t { flex: 1; font-size: 13px; font-weight: 600; line-height: 1.4; }
.history .h-row .st { font-size: 11px; color: var(--grey); }
.history .h-row.locked { opacity: .45; cursor: not-allowed; }
.history .h-row.answered .st { color: var(--red); }

/* ---------- 倒计时态 ---------- */
.countdown { text-align: center; padding: 40px 20px; }
.countdown .big { font-family: var(--serif); font-size: 44px; font-weight: 900; color: var(--red); }
.countdown .small { font-size: 14px; color: var(--grey); margin-top: 10px; line-height: 1.8; }

.topbar {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px 0;
}
.brand { font-size: 15px; font-weight: 800; }
.brand span { color: var(--red); }
.pill {
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font-size: 12px; padding: 6px 12px; border-radius: 999px; cursor: pointer; font-weight: 700;
}
.foot { margin-top: 30px; font-size: 10px; color: #a39d8d; text-align: center; line-height: 1.8; }
