/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", sans-serif;
  background: #f0f4f8;
  color: #2d3748;
  min-height: 100vh;
}

/* ── App shell: center on desktop, full-width on mobile ── */
.app-shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* ════════════════════════════
   HOME PAGE
════════════════════════════ */
.home-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 24px 36px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-top: 40px;
}

.home-icon {
  font-size: 56px;
  margin-bottom: 12px;
}

.home-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: 2px;
}

.home-subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: #718096;
}

.task-box {
  background: #edf2ff;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 28px 0 32px;
  text-align: left;
}

.task-label {
  font-size: 11px;
  font-weight: 600;
  color: #667eea;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.task-poem {
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
}

.task-meta {
  margin-top: 4px;
  font-size: 13px;
  color: #718096;
}

/* ── Primary button ── */
.btn-start {
  display: block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-start:active { opacity: 0.85; }

/* ════════════════════════════
   QUIZ PAGE
════════════════════════════ */
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 18px;
}

.quiz-poem-name {
  font-size: 17px;
  font-weight: 700;
  color: #2d3748;
}

.quiz-count {
  font-size: 13px;
  color: #718096;
  background: #e2e8f0;
  border-radius: 20px;
  padding: 3px 10px;
}

.question-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.question-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.q-num {
  background: #667eea;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
}

.q-poem {
  font-size: 14px;
  color: #a0aec0;
}

.q-source {
  font-size: 11px;
  color: #cbd5e0;
}

.question-text {
  font-size: 17px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 16px;
  line-height: 1.5;
  letter-spacing: 1px;
}

/* ── Option cards ── */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.option-label:active {
  background: #f7fafc;
}

.option-label.selected {
  border-color: #667eea;
  background: #ebf4ff;
}

.option-label input[type="radio"] {
  /* visually hidden but accessible */
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-key {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #4a5568;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.option-label.selected .option-key {
  background: #667eea;
  color: #fff;
}

.option-text {
  font-size: 15px;
  color: #2d3748;
  line-height: 1.4;
}

/* ── Submit bar ── */
.submit-bar {
  padding: 8px 0 16px;
  text-align: center;
}

.btn-submit {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-submit:active { opacity: 0.85; }

/* ════════════════════════════
   RESULT PAGE
════════════════════════════ */
.result-score-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 6px 24px rgba(102, 126, 234, 0.35);
}

.score-emoji {
  font-size: 52px;
  margin-bottom: 10px;
}

.score-number {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 2px;
}

.score-label {
  margin-top: 8px;
  font-size: 16px;
  opacity: 0.9;
}

/* ── Result list ── */
.result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.result-item {
  background: #fff;
  border-radius: 14px;
  padding: 16px 16px 14px;
  border-left: 4px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.result-item.correct { border-left-color: #48bb78; }
.result-item.wrong   { border-left-color: #fc8181; }

.result-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.r-num {
  background: #667eea;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
}

.r-type {
  font-size: 12px;
  color: #a0aec0;
  flex: 1;
}

.r-mark {
  font-size: 18px;
  font-weight: 800;
}

.result-item.correct .r-mark { color: #48bb78; }
.result-item.wrong   .r-mark { color: #fc8181; }

.r-question {
  font-size: 15px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.r-detail {
  font-size: 14px;
  color: #4a5568;
  margin-top: 4px;
  display: flex;
  gap: 4px;
}

.r-label { color: #a0aec0; }

.ans-correct { color: #2f855a; font-weight: 600; }
.ans-wrong   { color: #c53030; font-weight: 600; }

/* ════════════════════════════
   HOME v0.2 — POEM SELECTION
════════════════════════════ */
.home-header {
  text-align: center;
  padding: 32px 0 24px;
}

.poem-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.poem-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px 18px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #667eea;
  transition: box-shadow 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.poem-card:active {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transform: scale(0.98);
}

.poem-card-body {
  flex: 1;
}

.poem-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: 1px;
}

.poem-card-author {
  font-size: 12px;
  color: #a0aec0;
  margin-top: 2px;
}

.poem-card-preview {
  font-size: 13px;
  color: #718096;
  margin-top: 6px;
  letter-spacing: 1px;
}

.poem-card-arrow {
  font-size: 18px;
  color: #667eea;
  margin-left: 12px;
  font-weight: 700;
}

/* ── Level buttons inside poem card ── */
.poem-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 12px;
  flex-shrink: 0;
}

.btn-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  padding: 7px 14px;
  text-align: center;
  transition: opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn-level-main {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.btn-level-sub {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.65;
  margin-top: 2px;
  line-height: 1.2;
}

.btn-level:active { opacity: 0.8; }

.btn-junior {
  background: #ebf8ff;
  color: #2b6cb0;
  border: 1.5px solid #bee3f8;
}

.btn-senior {
  background: #faf5ff;
  color: #6b46c1;
  border: 1.5px solid #e9d8fd;
}

.btn-advanced {
  background: #fffbeb;
  color: #b45309;
  border: 1.5px solid #fde68a;
}

/* ── Level badge in quiz header ── */
.quiz-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.level-tag {
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  padding: 3px 10px;
}

.level-tag.level-junior {
  background: #ebf8ff;
  color: #2b6cb0;
}

.level-tag.level-senior {
  background: #faf5ff;
  color: #6b46c1;
}

/* ── Daily card on home page ── */
.daily-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.daily-card-title {
  font-size: 16px;
  font-weight: 700;
}

.daily-card-sub {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 3px;
}

.daily-card-btn {
  display: inline-block;
  width: auto;
  background: white;
  color: #667eea;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 12px;
}

.entry-challenge {
  background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.entry-card-title {
  font-size: 16px;
  font-weight: 700;
}

.entry-card-sub {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 3px;
}

.entry-challenge-btn {
  background: white;
  color: #2193b0;
}

/* ── Challenge page back link ── */
.challenge-back {
  display: inline-block;
  font-size: 13px;
  color: #667eea;
  text-decoration: none;
  margin-bottom: 6px;
}

/* ════════════════════════════
   COMPETITION ENTRY CARD
════════════════════════════ */
.entry-competition {
  background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.entry-competition-btn {
  background: white;
  color: #b7530a;
}

/* ════════════════════════════
   COMPETITION LANDING PAGE
════════════════════════════ */
.comp-intro-card {
  background: white;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comp-intro-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #4a5568;
}

/* ════════════════════════════
   COMPETITION RESULT PAGE
════════════════════════════ */
.comp-result-banner {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.comp-result-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.comp-result-text {
  font-size: 16px;
  color: #2d3748;
  line-height: 1.7;
}

.r-explanation {
  font-size: 12px;
  color: #718096;
  background: #f7fafc;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 8px;
  line-height: 1.6;
}

/* ── Secondary button (less prominent) ── */
.btn-submit.btn-secondary {
  background: #e2e8f0;
  color: #4a5568;
}

/* ── Button hint text (below mode-select buttons) ── */
.btn-hint {
  text-align: center;
  font-size: 11px;
  color: #a0aec0;
  margin-top: 4px;
  margin-bottom: 12px;
}

/* ── Wrong-character reinforcement hint ── */
.cuozi-hint {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ── Topic specialty section divider ── */
.comp-divider {
  text-align: center;
  font-size: 11px;
  color: #a0aec0;
  margin: 16px 0 12px;
  letter-spacing: 1px;
}

/* ── Topic specialty button ── */
.btn-topic {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* ── Competition mode card (landing page) ── */
.comp-mode-card {
  background: white;
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.comp-mode-label {
  font-size: 13px;
  font-weight: 600;
  color: #a0aec0;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.comp-mode-desc {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ── Coming soon hints ── */
.comp-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.comp-coming-soon span {
  font-size: 11px;
  color: #cbd5e0;
}

/* ── Text-only link (lightest action) ── */
.btn-text-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #a0aec0;
  padding: 8px 0;
  text-decoration: none;
}

/* ── Bank select page (大会题库 选库页) ── */
.bank-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.bank-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: white;
  border-radius: 16px;
  padding: 18px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.bank-card-active {
  border: 2px solid #667eea;
}

.bank-card-soon {
  opacity: 0.6;
  cursor: not-allowed;
}

.bank-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 4px;
}

.bank-card-sub {
  font-size: 13px;
  color: #718096;
  line-height: 1.5;
}

.bank-card-arrow {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: #667eea;
}

.bank-card-badge {
  flex-shrink: 0;
  font-size: 12px;
  color: #a0aec0;
  background: #edf2f7;
  border-radius: 10px;
  padding: 4px 10px;
}

/* ── Home "coming soon" entry (模拟考试) — same big card as 大会题库, greyed ── */
.entry-soon {
  background: linear-gradient(135deg, #b8c0cc 0%, #d6dce5 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.entry-soon-badge {
  flex-shrink: 0;
  font-size: 12px;
  color: #a0aec0;
  background: #edf2f7;
  border-radius: 10px;
  padding: 6px 12px;
}

/* coming-soon button (same shape as 大会题库 button, greyed) */
.entry-soon-btn {
  background: white;
  color: #8a94a6;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── Outlined button (secondary action, e.g. 完成本次刷题) ── */
.btn-outline {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: #fff;
  color: #667eea;
  border: 2px solid #c3cfe2;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.btn-outline:active {
  background: #f7fafc;
  border-color: #667eea;
}

/* ── Brush mode (一页一题) ── */
.brush-stat {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #718096;
}

.brush-stat-item strong {
  color: #2d3748;
}

.brush-stat-item.ok strong {
  color: #38a169;
}

.brush-stat-item.no strong {
  color: #e53e3e;
}

/* brush options are <button> elements; reset native styles */
.options-list .option-label {
  width: 100%;
  text-align: left;
  background: white;
  font-family: inherit;
}

.option-label.locked {
  cursor: default;
}

.option-label.opt-correct {
  border-color: #38a169;
  background: #f0fff4;
}

.option-label.opt-correct .option-key {
  background: #38a169;
  color: #fff;
}

.option-label.opt-wrong {
  border-color: #e53e3e;
  background: #fff5f5;
}

.option-label.opt-wrong .option-key {
  background: #e53e3e;
  color: #fff;
}

.brush-explain {
  font-size: 13px;
  color: #4a5568;
  background: #f7fafc;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 12px;
  line-height: 1.6;
}

/* ── 加入错题本 按钮（刷题页） ── */
.btn-fav {
  display: inline-block;
  margin-top: 12px;
  background: #fff;
  color: #d69e2e;
  border: 2px solid #f6e05e;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-fav:active {
  background: #fffbeb;
}

.btn-fav.faved {
  background: #fffbeb;
  color: #b7791f;
  border-color: #d69e2e;
}

/* ── 刷题页操作按钮行（错题本 + 已掌握） ── */
.brush-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.brush-actions .btn-fav,
.brush-actions .btn-master {
  flex: 1;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  text-align: center;
}

.brush-actions .btn-main {
  font-size: 13px;
  line-height: 1.3;
}

.brush-actions .btn-hint {
  font-size: 11px;
  font-weight: 400;
  color: #a0aec0;
  line-height: 1.3;
}

/* ── 已掌握 按钮（刷题页） ── */
.btn-master {
  display: inline-block;
  background: #fff;
  color: #38a169;
  border: 2px solid #9ae6b4;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-master:active {
  background: #f0fff4;
}

.btn-master.mastered {
  background: #f0fff4;
  color: #2f855a;
  border-color: #38a169;
}

/* ── 错题本入口（选库页） ── */
.wb-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 2px solid #f6e05e;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
  text-decoration: none;
}

.wb-entry-text {
  font-size: 16px;
  font-weight: 700;
  color: #b7791f;
}

.wb-entry-arrow {
  font-size: 13px;
  font-weight: 700;
  color: #d69e2e;
}

/* ── 已掌握题 入口（绿色变体） ── */
.mk-entry {
  border-color: #9ae6b4;
}

.mk-entry .wb-entry-text {
  color: #2f855a;
}

.mk-entry .wb-entry-arrow {
  color: #38a169;
}

/* ── 刷题记录 入口（蓝色变体） ── */
.rec-entry {
  border-color: #90cdf4;
}

.rec-entry .wb-entry-text {
  color: #2b6cb0;
}

.rec-entry .wb-entry-arrow {
  color: #3182ce;
}

/* ── 刷题记录 工具栏与条目 ── */
.rec-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.rec-clear {
  background: #fff5f5;
  color: #e53e3e;
  border: 1px solid #feb2b2;
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.rec-clear:active {
  background: #fed7d7;
}

.rec-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.rec-bank {
  font-size: 14px;
  font-weight: 700;
  color: #2b6cb0;
}

.rec-stat {
  font-size: 14px;
  color: #4a5568;
}

.rec-stat strong {
  color: #2d3748;
}

.rec-stat.ok strong {
  color: #38a169;
}

.rec-stat.no strong {
  color: #e53e3e;
}

/* ── 已掌握题 恢复按钮 ── */
.mk-restore {
  background: #f0fff4;
  color: #2f855a;
  border: 1px solid #9ae6b4;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.mk-restore:active {
  background: #c6f6d5;
}

/* ── 错题本页面 ── */
.wb-empty {
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 36px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wb-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.wb-empty-text {
  font-size: 14px;
  color: #718096;
  line-height: 1.8;
  margin-bottom: 18px;
}

.wb-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}

.wb-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
}

.wb-opt-correct {
  border-color: #38a169;
  background: #f0fff4;
}

.wb-opt-correct .option-key {
  background: #38a169;
  color: #fff;
}

.wb-remove {
  background: #fff5f5;
  color: #e53e3e;
  border: 1px solid #feb2b2;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.wb-remove:active {
  background: #fed7d7;
}

/* ── 错题本单项操作（我会了 + 移除）── */
.wb-item-actions {
  display: flex;
  gap: 6px;
}

.wb-master {
  background: #f0fff4;
  color: #2f855a;
  border: 1px solid #9ae6b4;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.wb-master:active {
  background: #c6f6d5;
}

/* ════════════════════════════
   账号：登录 / 注册 / 登录状态条
════════════════════════════ */
.auth-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.auth-user {
  font-size: 14px;
  font-weight: 700;
  color: #2d3748;
}

.auth-user-guest {
  color: #a0aec0;
  font-weight: 600;
}

.auth-links {
  display: flex;
  gap: 12px;
}

.auth-link {
  font-size: 14px;
  font-weight: 600;
  color: #667eea;
  text-decoration: none;
}

.auth-logout-form {
  margin: 0;
}

.auth-logout-btn {
  background: #fff5f5;
  color: #e53e3e;
  border: 1px solid #feb2b2;
  border-radius: 8px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.auth-logout-btn:active {
  background: #fed7d7;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border-radius: 16px;
  padding: 22px 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
}

.auth-input {
  font-family: inherit;
  font-size: 16px;
  color: #2d3748;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}

.auth-input:focus {
  border-color: #667eea;
}

.auth-error {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 14px;
}

