/* HNC PWA v0.1 — style.css */
:root {
  --primary: #4a90d9;
  --primary-dark: #3a7bc8;
  --bg: #f5f5f5;
  --card-bg: #fff;
  --text: #333;
  --text-secondary: #666;
  --border: #e0e0e0;
  --accent: #ff6b6b;
  --success: #51cf66;
  --warning: #ffd43b;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
.container { max-width: 700px; margin: 0 auto; padding: 12px 16px 80px; }

/* Header */
.app-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--primary);
  color: #fff; padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.app-header h1 { font-size: 17px; font-weight: 600; flex: 1; min-width: 40px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back-btn {
  background: rgba(255,255,255,.2); border: none;
  color: #fff; font-size: 20px; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer;
}

/* User area in header */
.user-btn-wrap {
  position: relative; display: flex; align-items: center; gap: 2px;
  flex-shrink: 0;
}
.user-email {
  font-size: 13px; color: rgba(255,255,255,.9);
  white-space: nowrap; margin-right: 4px;
  max-width: 45vw; overflow: hidden; text-overflow: ellipsis;
  display: inline-block; vertical-align: middle;
}
.user-arrow {
  background: none; border: none; color: rgba(255,255,255,.6);
  font-size: 13px; cursor: pointer; padding: 2px 4px;
}
.user-btn-login {
  background: rgba(255,255,255,.2); border: none;
  color: #fff; font-size: 13px; padding: 5px 12px;
  border-radius: 14px; cursor: pointer; white-space: nowrap;
}
.user-menu {
  display: none; position: absolute; top: 100%; right: 0;
  margin-top: 6px; background: #fff; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15); min-width: 140px;
  overflow: hidden; z-index: 150;
}
.user-menu.show { display: block; }
.user-menu-name {
  padding: 10px 14px; font-size: 13px; color: var(--text);
  font-weight: 600; border-bottom: 1px solid var(--border);
}
.user-menu-item {
  display: block; width: 100%; padding: 10px 14px;
  border: none; background: none; text-align: left;
  font-size: 13px; color: var(--text); cursor: pointer;
}
.user-menu-item:last-child { color: var(--accent); }
.user-menu-item:active { background: rgba(0,0,0,.04); }

/* Nav tabs */
.nav-tabs {
  display: flex; gap: 0; background: #fff;
  border-bottom: 2px solid var(--border);
}
.nav-tab {
  flex: 1; padding: 12px; border: none; background: none;
  font-size: 15px; cursor: pointer; color: var(--text-secondary);
  border-bottom: 3px solid transparent;
}
.nav-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* Cards */
.card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform .1s;
}
.card:active { transform: scale(.98); }
.card h3 { font-size: 15px; margin-bottom: 6px; line-height: 1.4; }
.card p { font-size: 13px; color: var(--text-secondary); }

/* Meta & Badges */
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--text-secondary); }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 500;
  background: rgba(74,144,217,.12); color: var(--primary);
}
.badge.cloze_test { background: rgba(255,107,107,.12); color: var(--accent); }
.badge.translation { background: rgba(81,207,102,.12); color: #2b8a3e; }
.badge.vocabulary { background: rgba(255,212,59,.12); color: #e67700; }
.badge.listening_practice { background: rgba(121,82,179,.12); color: #6741d9; }
.badge.interactive_text { background: rgba(74,144,217,.12); color: var(--primary); }

/* Section titles */
.section-title {
  font-size: 15px; font-weight: 600; margin: 18px 0 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
}

/* Paragraph blocks */
.para-block {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.para-block .en { font-size: 15px; line-height: 1.8; margin-bottom: 8px; }
.para-block .zh { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* Translation toggle for news paragraphs */
.zh-toggle { margin-top: 6px; cursor: pointer; }
.zh-toggle-label { font-size: 12px; color: var(--primary); }
.zh-toggle .zh { display: none; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border); }
.zh-toggle.show .zh { display: block; }
.zh-toggle.show .zh-toggle-label { color: var(--accent); }

/* News title */
.news-title {
  font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.4;
}

/* Sentence notes */
.sentence-note {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow);
  border-left: 3px solid var(--primary);
}
.sn-en { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.sn-cn { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.sn-structure { font-size: 12px; color: var(--primary); margin-bottom: 4px; }
.sn-note { font-size: 13px; line-height: 1.5; }
.sn-highlight { font-size: 12px; color: #e67700; margin-top: 4px; }
.sn-template { font-size: 12px; color: var(--text-secondary); margin-top: 4px; font-style: italic; }

/* Vocabulary list (news) */
.vocab-list { display: flex; flex-direction: column; gap: 8px; }
.vocab-item {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 10px 14px; box-shadow: var(--shadow);
}
.v-term { font-weight: 600; font-size: 15px; color: var(--primary); }
.v-ipa { font-size: 12px; color: var(--text-secondary); margin-left: 8px; }
.v-def { font-size: 13px; margin-top: 4px; }
.v-example { font-size: 13px; color: var(--text-secondary); margin-top: 4px; font-style: italic; }
.v-example-cn { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* Q&A */
.qna-item {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow);
}
.q-prompt { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.qna-answer {
  display: none; font-size: 13px; color: var(--text-secondary);
  padding: 8px; background: rgba(74,144,217,.06); border-radius: 6px;
  margin-top: 8px; line-height: 1.5;
}
.qna-answer.show { display: block; }
.show-answer-btn {
  background: none; border: 1px solid var(--primary); color: var(--primary);
  padding: 4px 12px; border-radius: 14px; font-size: 12px; cursor: pointer;
  margin-top: 6px;
}

/* Keyword popup */
.keyword {
  color: var(--primary); font-weight: 600; cursor: pointer;
  border-bottom: 1px dashed var(--primary);
  transition: background .2s;
}
.keyword:hover { background: rgba(74,144,217,.1); }

.kw-popup {
  position: fixed; bottom: -100%; left: 0; right: 0;
  background: var(--card-bg); border-radius: 16px 16px 0 0;
  padding: 20px 16px 30px; box-shadow: 0 -4px 20px rgba(0,0,0,.15);
  transition: bottom .3s ease; z-index: 200;
  max-height: 60vh; overflow-y: auto;
}
.kw-popup.show { bottom: 0; }
.kw-popup .close-btn {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-secondary);
}
.kw-word { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.kw-def { font-size: 14px; line-height: 1.5; }
.kw-example { font-size: 13px; color: var(--text-secondary); margin-top: 8px; font-style: italic; }
.kw-example-cn { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* Play button (legacy, kept for vocab inline) */
.play-btn {
  background: var(--primary); color: #fff; border: none;
  padding: 4px 10px; border-radius: 14px; font-size: 12px;
  cursor: pointer; margin: 4px 2px;
}
.play-btn:active { background: var(--primary-dark); }

/* Mini player */
.mini-player {
  background: rgba(74,144,217,.06); border-radius: 8px;
  padding: 8px 10px; margin: 8px 0;
}
.mp-controls {
  display: flex; align-items: center; gap: 8px;
}
.mp-play {
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 14px;
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.mp-play:active { background: var(--primary-dark); }
.mp-bar {
  flex: 1; height: 4px; background: var(--border);
  border-radius: 2px; cursor: pointer; position: relative;
}
.mp-bar-fill {
  height: 100%; background: var(--primary); border-radius: 2px;
  width: 0%; transition: width .1s linear;
}
.mp-time {
  font-size: 11px; color: var(--text-secondary); min-width: 70px;
  text-align: right; flex-shrink: 0;
}
.mp-speeds {
  display: flex; gap: 4px; margin-top: 6px; justify-content: center;
}
.mp-speed {
  padding: 2px 8px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--card-bg); font-size: 11px; cursor: pointer;
  color: var(--text-secondary); transition: all .15s;
}
.mp-speed:hover { border-color: var(--primary); }
.mp-speed.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* Audio player */
.audio-player {
  width: 100%; margin: 10px 0; border-radius: 8px; height: 36px;
}

/* Listening practice */
.question-card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow);
}
.q-text { font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.option-btn {
  display: block; width: 100%; text-align: left;
  padding: 10px 14px; margin-bottom: 6px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--card-bg); font-size: 14px; cursor: pointer;
  transition: all .2s;
}
.option-btn:active { background: rgba(74,144,217,.08); }
.option-btn.correct { border-color: var(--success); background: rgba(81,207,102,.1); }
.option-btn.wrong { border-color: var(--accent); background: rgba(255,107,107,.1); }
.option-btn.selected { font-weight: 600; }

/* Cloze test (15选10) */
.cloze-title {
  font-size: 16px; font-weight: 600; margin-bottom: 12px; color: var(--text);
}
.cloze-bank {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px;
}
.bank-word {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--card-bg); cursor: pointer; font-size: 13px;
  transition: all .2s;
}
.bank-word:hover { border-color: var(--primary); background: rgba(74,144,217,.06); }
.bank-word.selected { border-color: var(--primary); background: rgba(74,144,217,.15); }
.bank-word.used { opacity: .35; text-decoration: line-through; pointer-events: none; }
.bw-label { font-weight: 700; color: var(--primary); margin-right: 2px; }
.bw-word { font-weight: 500; }
.bw-pos { font-size: 11px; color: var(--text-secondary); }

.cloze-passage {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 14px 16px; line-height: 1.8; font-size: 15px;
  box-shadow: var(--shadow);
}
.cloze-blank {
  display: inline-block; min-width: 60px; text-align: center;
  padding: 2px 6px; border-bottom: 2px solid var(--primary);
  color: var(--primary); font-weight: 600; cursor: pointer;
  margin: 0 2px; transition: all .2s;
}
.cloze-blank:hover { background: rgba(74,144,217,.1); }
.cloze-blank.correct { border-color: var(--success); color: var(--success); background: rgba(81,207,102,.1); }
.cloze-blank.wrong { border-color: var(--accent); color: var(--accent); background: rgba(255,107,107,.1); }

.blank-hint {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(74,144,217,.12); color: var(--primary);
  font-size: 9px; font-weight: 700; cursor: pointer;
  margin-left: 1px; vertical-align: super;
  user-select: none; line-height: 1;
  transition: background .15s;
}
.blank-hint:hover { background: rgba(74,144,217,.28); }
.hint-tooltip {
  position: fixed; z-index: 9999;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  font-size: 13px; min-width: 130px;
  pointer-events: none;
}
.ht-row { display: flex; gap: 10px; align-items: center; margin-bottom: 3px; }
.ht-row:last-child { margin-bottom: 0; }
.ht-label { color: var(--text-secondary); font-size: 11px; white-space: nowrap; }
.ht-val { color: var(--text); font-weight: 500; }

.cloze-actions {
  display: flex; gap: 10px; margin-top: 16px;
}
.btn-primary {
  flex: 1; padding: 10px; border: none; border-radius: 8px;
  background: var(--primary); color: #fff; font-size: 15px;
  font-weight: 600; cursor: pointer;
}
.btn-primary:active { background: var(--primary-dark); }
.btn-secondary {
  flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--card-bg); font-size: 15px; cursor: pointer;
}

/* Translation (汉译英) */
.translation-card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.tr-chinese { font-size: 15px; font-weight: 500; margin-bottom: 10px; line-height: 1.5; }
.tr-input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; line-height: 1.5;
  resize: vertical; min-height: 60px; font-family: inherit;
}
.tr-input:focus { outline: none; border-color: var(--primary); }
.tr-actions { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }

.tr-reference {
  display: none; margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.tr-reference.show { display: block; }
.tr-ref-item { margin-bottom: 10px; }
.tr-ref-label {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px;
  background: rgba(74,144,217,.12); color: var(--primary);
  margin-bottom: 4px;
}
.tr-ref-text { font-size: 14px; line-height: 1.5; color: var(--text); }

.tr-scaffold { margin-top: 10px; padding: 10px; background: rgba(255,212,59,.08); border-radius: 8px; }
.scaffold-title { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.scaffold-cn { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.scaffold-en { font-size: 12px; color: var(--primary); margin-bottom: 6px; }
.scaffold-steps { display: flex; flex-direction: column; gap: 3px; }
.step { font-size: 12px; line-height: 1.4; padding-left: 8px; border-left: 2px solid var(--warning); }

/* Vocabulary cards */
.vocab-card {
  background: var(--card-bg); border-radius: var(--radius);
  margin-bottom: 6px; box-shadow: var(--shadow); overflow: hidden;
}
.vc-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; cursor: pointer;
}
.vc-word { font-size: 15px; font-weight: 600; color: var(--text); }
.vc-ipa { font-size: 12px; color: var(--text-secondary); }
.vc-pos { font-size: 11px; color: var(--primary); }
.vc-group { font-size: 10px; padding: 1px 6px; border-radius: 8px; background: rgba(255,212,59,.15); color: #e67700; margin-left: auto; }
.vc-body {
  display: none; padding: 0 14px 12px;
}
.vc-body.show { display: block; }
.vc-english { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.vc-chinese { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.vc-example { font-size: 13px; font-style: italic; color: var(--text-secondary); }
.vc-example-cn { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* Commentary */
.commentary {
  background: rgba(74,144,217,.06); border-radius: var(--radius);
  padding: 14px 16px; margin-top: 14px;
}
.commentary h4 { font-size: 14px; margin-bottom: 6px; }
.commentary p { font-size: 13px; line-height: 1.5; }

/* Misc */
.loading { text-align: center; padding: 40px; color: var(--text-secondary); font-size: 14px; }
.empty { text-align: center; padding: 40px; color: var(--text-secondary); font-size: 14px; }

/* Listening question stem (CET-4 exam mode) */
.question-stem.hidden { display: none; }
.show-stem-btn {
  background: #e8e8e8; color: #666; border: none;
  padding: 6px 12px; border-radius: 4px; font-size: 13px;
  cursor: pointer; margin-bottom: 8px;
}

/* Listening option selection (pre-submit) */
.option-btn.selected:not(.correct):not(.wrong) {
  border-color: var(--primary); background: rgba(74,144,217,.1); font-weight: 600;
}

/* Listening submit button (hidden until option selected) */
.btn-submit-q {
  display: none; margin-top: 10px;
  padding: 6px 16px; border: none; border-radius: 6px;
  background: var(--primary); color: #fff; font-size: 13px;
  cursor: pointer; font-weight: 500;
}
.btn-submit-q:active { background: var(--primary-dark); }

/* Transcript toggle */
.transcript-toggle { margin: 8px 0 14px; }
.transcript-btn {
  background: rgba(74,144,217,.08); color: var(--primary);
  border: 1px solid rgba(74,144,217,.2); padding: 6px 14px;
  border-radius: 6px; font-size: 13px; cursor: pointer;
}
.transcript-btn:hover { background: rgba(74,144,217,.15); }
.transcript-content.hidden { display: none; }
.transcript-content p {
  font-size: 14px; line-height: 1.7; margin-bottom: 6px; color: var(--text);
}

/* Ext link card (unused now, all inline) */
.ext-link-card {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card-bg); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 8px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--text);
}
.ext-arrow { font-size: 18px; color: var(--primary); }

/* News Carousel */
.carousel-section { margin-bottom: 4px; }
.carousel { position: relative; }
.carousel-track {
  position: relative;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}
.carousel-track:active { cursor: grabbing; }
.carousel-slide {
  display: none;
}
.carousel-slide.active {
  display: block;
}
.carousel-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 8px;
}
.carousel-arrow {
  width: 32px; height: 32px; border: 1px solid var(--border);
  border-radius: 50%; background: var(--card-bg);
  font-size: 18px; cursor: pointer; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.carousel-arrow:active { background: var(--border); }
.carousel-counter {
  font-size: 13px; color: var(--text-secondary); min-width: 50px; text-align: center;
}
.carousel-dots {
  display: flex; justify-content: center; gap: 6px; margin-top: 6px;
  flex-wrap: wrap;
}
.carousel-dots .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); cursor: pointer;
  transition: background .2s;
}
.carousel-dots .dot.active {
  background: var(--primary);
}
/* Limit dots to max 10 visible + ellipsis for many items */
@media (min-width: 400px) {
  .carousel-dots .dot { width: 8px; height: 8px; }
}

/* CET-4 Exam Papers */
.cet4-header { text-align: center; margin-bottom: 16px; }
.cet4-stat { font-size: 14px; font-weight: 600; color: var(--text); }
.cet4-hint { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.cet4-exam {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow);
}
.cet4-exam-title {
  font-size: 15px; font-weight: 700; margin-bottom: 8px;
  color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 6px;
}
.cet4-dl-group { display: flex; flex-wrap: wrap; gap: 6px; }
.cet4-dl-btn {
  display: inline-block; padding: 5px 10px; border-radius: 6px;
  font-size: 12px; text-decoration: none; font-weight: 500;
  background: rgba(74,144,217,.1); color: var(--primary);
  transition: all .15s;
}
.cet4-dl-btn:active { background: rgba(74,144,217,.25); }
.cet4-dl-analysis { background: rgba(81,207,102,.1); color: #2b8a3e; }
.cet4-dl-analysis:active { background: rgba(81,207,102,.25); }
.cet4-dl-locked { cursor: pointer; }
.cet4-login-banner {
  text-align: center; padding: 14px 16px; margin-bottom: 16px;
  background: rgba(74,144,217,.08); border-radius: var(--radius);
  font-size: 14px; color: var(--text-primary);
}
.cet4-login-link {
  display: inline-block; margin-left: 8px; padding: 4px 14px;
  background: #4a90d9; color: #fff; border-radius: 6px;
  text-decoration: none; font-weight: 500; font-size: 13px;
}
.cet4-login-link:active { background: #3a7fbf; }
.cet4-footer-note {
  text-align: center; margin-top: 20px; padding: 16px;
  background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow);
}
.cet4-footer-note p { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.cet4-qr { width: 120px; height: 120px; border-radius: 8px; }

/* Footer */
.app-footer {
  background: #fff; border-top: 1px solid var(--border);
  padding: 20px 16px; text-align: center; margin-top: 20px;
}
.footer-inner { max-width: 700px; margin: 0 auto; }
.footer-links {
  display: flex; justify-content: center; gap: 20px; margin-bottom: 10px;
}
.footer-links a {
  font-size: 13px; color: var(--primary); text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.footer-icp { font-size: 11px; color: var(--text-secondary); margin-bottom: 4px; }
.footer-copy { font-size: 11px; color: var(--text-secondary); }

/* About */
.about-card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 24px 20px; box-shadow: var(--shadow); text-align: center;
  margin-bottom: 16px;
}
.about-card-mini { cursor: pointer; padding: 14px 16px; }
.about-card-mini:active { transform: scale(.98); }
.about-name { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.about-card-mini .about-name { font-size: 16px; }
.about-bio { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.about-card-mini .about-bio { margin-bottom: 0; font-size: 13px; }
.about-contact { text-align: left; }
.about-contact-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.about-contact-item a { color: var(--primary); text-decoration: none; }
.about-label {
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  min-width: 48px;
}
.about-qr {
  text-align: center; padding: 16px 0 0;
}
.about-qr img {
  width: 160px; height: 160px; border-radius: 8px;
  box-shadow: var(--shadow);
}
.about-qr-hint { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }

/* Changelog */
.changelog-entry {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.changelog-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.changelog-ver {
  font-size: 15px; font-weight: 700; color: var(--primary);
}
.changelog-date { font-size: 12px; color: var(--text-secondary); }
.changelog-list {
  margin: 0; padding-left: 18px;
}
.changelog-list li {
  font-size: 13px; line-height: 1.6; color: var(--text);
}

/* ─── Game Center ───────────────────────────────── */
.game-entry-card h3::before { content: '\1F3AE '; }
.game-card { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.game-card-icon { font-size: 32px; flex-shrink: 0; width: 42px; text-align: center; }
.game-card-info { flex: 1; }
.game-card-info h3 { font-size: 16px; margin-bottom: 2px; }
.game-card-info p { font-size: 13px; color: var(--text-secondary); }
.game-card-best {
  font-size: 11px; padding: 3px 10px; border-radius: 12px;
  background: rgba(81,207,102,.12); color: #2b8a3e; font-weight: 600;
  white-space: nowrap;
}

/* Game shared */
.game-hud {
  display: flex; justify-content: space-between; align-items: center; padding: 8px 0;
  font-size: 15px; font-weight: 600;
}
.game-hud span {
  background: var(--card-bg); padding: 4px 12px; border-radius: 8px;
  box-shadow: var(--shadow);
}
.game-hint {
  text-align: center; font-size: 13px; color: var(--text-secondary);
  padding: 8px 0;
}
.game-canvas-wrap { position: relative; width: 100%; margin: 6px 0; }
.game-canvas-wrap canvas {
  display: block; margin: 0 auto; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.game-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.55); z-index: 300;
  display: flex; align-items: center; justify-content: center;
}
.game-over-card {
  background: var(--card-bg); border-radius: 14px;
  padding: 28px 24px; text-align: center; max-width: 280px; width: 88%;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.game-over-card h3 { font-size: 20px; margin-bottom: 8px; }
.score-big {
  font-size: 40px; font-weight: 700; color: var(--primary); margin: 6px 0;
}
.score-best {
  font-size: 13px; color: var(--success); margin-bottom: 18px; font-weight: 500;
}
.btn-game-primary {
  display: block; width: 100%; padding: 11px; margin-bottom: 8px;
  border: none; border-radius: 8px; background: var(--primary);
  color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn-game-primary:active { background: var(--primary-dark); }
.btn-game-secondary {
  display: block; width: 100%; padding: 10px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--card-bg);
  color: var(--text-secondary); font-size: 14px; cursor: pointer;
}
.game-controls {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  margin-top: 6px;
}
.game-controls button {
  width: 52px; height: 52px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card-bg); font-size: 18px; cursor: pointer;
  box-shadow: var(--shadow); color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.game-controls button:active { background: #eee; transform: scale(.95); }
.game-controls div { display: flex; gap: 4px; }

/* Snake */
.game-word-target {
  text-align: center; font-size: 18px; padding: 8px 12px; letter-spacing: 4px;
  background: rgba(255,212,59,.12); border-radius: 8px; margin-bottom: 6px;
  font-weight: 600;
}

/* Leaderboard */
.game-leaderboard {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 10px 14px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.game-lb-row {
  display: flex; align-items: center; padding: 8px 0;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.game-lb-row:last-child { border-bottom: none; }
.game-lb-rank {
  width: 32px; text-align: center; font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.game-lb-name { flex: 1; color: var(--text); }
.game-lb-score {
  font-weight: 700; color: var(--primary); min-width: 50px; text-align: right;
}
.game-lb-empty {
  text-align: center; color: var(--text-secondary); font-size: 13px; padding: 12px 0;
}

/* 2048 */
.g2048-board {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 10px; background: #bbada0; border-radius: var(--radius);
  max-width: 400px; margin: 0 auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.g2048-cell {
  display: flex; align-items: center; justify-content: center;
  background: rgba(238,228,218,.35); border-radius: 6px;
  font-weight: 700; color: #776e65;
  aspect-ratio: 1;
  font-size: 28px;
  transition: all .08s;
}
.g2048-cell[data-val="0"] { background: rgba(238,228,218,.35); }
.g2048-cell[data-val="2"] { background: #eee4da; }
.g2048-cell[data-val="4"] { background: #ede0c8; }
.g2048-cell[data-val="8"] { background: #f2b179; color: #f9f6f2; }
.g2048-cell[data-val="16"] { background: #f59563; color: #f9f6f2; }
.g2048-cell[data-val="32"] { background: #f67c5f; color: #f9f6f2; }
.g2048-cell[data-val="64"] { background: #f65e3b; color: #f9f6f2; }
.g2048-cell[data-val="128"] { background: #edcf72; color: #f9f6f2; font-size: 22px; }
.g2048-cell[data-val="256"] { background: #edcc61; color: #f9f6f2; font-size: 22px; }
.g2048-cell[data-val="512"] { background: #edc850; color: #f9f6f2; font-size: 22px; }
.g2048-cell[data-val="1024"] { background: #edc53f; color: #f9f6f2; font-size: 18px; }
.g2048-cell[data-val="2048"] { background: #edc22e; color: #f9f6f2; font-size: 18px; }

/* Flappy Bird */
.game-tap-hint {
  text-align: center; font-size: 14px; color: var(--text-secondary);
  padding: 10px; animation: flappyPulse 1.5s infinite;
}
@keyframes flappyPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.game-vocab-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.7); z-index: 310;
  display: flex; align-items: center; justify-content: center;
}
.game-vocab-card {
  background: var(--card-bg); border-radius: 14px;
  padding: 24px 20px; max-width: 300px; width: 88%; text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.game-vocab-card h4 {
  font-size: 24px; color: var(--primary); margin-bottom: 4px;
}
.vocab-option-btn {
  display: block; width: 100%; padding: 11px; margin-bottom: 8px;
  border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--card-bg); font-size: 15px; cursor: pointer;
  transition: all .15s;
}
.vocab-option-btn:active { transform: scale(.97); }
.vocab-option-btn.correct {
  border-color: var(--success); background: rgba(81,207,102,.1);
  color: #2b8a3e; font-weight: 600;
}
.vocab-option-btn.wrong {
  border-color: var(--accent); background: rgba(255,107,107,.1);
  color: #c92a2a;
}

/* Flappy sentence progress */
.flappy-progress {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  padding: 6px 8px; min-height: 28px;
}
.fp-part {
  font-size: 12px; padding: 3px 8px; border-radius: 6px;
  display: inline-block;
}
.fp-collected {
  background: rgba(81,207,102,.15); color: #2b8a3e; font-weight: 600;
  border: 1px solid rgba(81,207,102,.3);
}
.fp-empty {
  background: rgba(0,0,0,.05); color: var(--text-secondary);
  border: 1px dashed var(--border);
}
/* Flappy assembly */
.fa-result {
  min-height: 44px; padding: 10px 12px; margin-bottom: 12px;
  border: 1.5px dashed var(--border); border-radius: 8px;
  font-size: 15px; line-height: 1.6; text-align: left;
}
.fa-placeholder { color: var(--text-secondary); font-size: 13px; }
.fa-word-ok { color: var(--success); font-weight: 600; }
.fa-cursor { color: var(--primary); animation: flappyPulse 0.8s infinite; }
.fa-parts { display: flex; flex-direction: column; gap: 8px; }
.fa-part-btn {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--card-bg); font-size: 15px; cursor: pointer;
  text-align: left; transition: all .15s;
}
.fa-part-btn:active { transform: scale(.97); }
.fa-part-btn.fa-correct {
  border-color: var(--success); background: rgba(81,207,102,.1);
  color: #2b8a3e; font-weight: 600;
}
.fa-part-btn.fa-wrong {
  border-color: var(--accent); background: rgba(255,107,107,.1);
  animation: faShake 0.3s;
}
@keyframes faShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
#flappy-mission-badge {
  font-size: 12px; background: rgba(74,144,217,.12); color: var(--primary);
  padding: 2px 8px; border-radius: 10px; font-weight: 600;
}

/* Pilot Game */
.pilot-instruments {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-bottom: 6px;
}
.pilot-inst {
  background: #1a237e; border-radius: 8px; padding: 8px 4px;
  text-align: center; color: #fff;
}
.pilot-inst-val { font-size: 18px; font-weight: 700; font-family: monospace; }
.pilot-inst-label { font-size: 10px; opacity: .7; margin-top: 2px; }

.pilot-alert {
  background: rgba(198,40,40,.12); border: 1.5px solid var(--accent);
  border-radius: var(--radius); padding: 12px 14px; margin-top: 8px;
  animation: pilotAlertPulse 0.8s infinite;
}
.pilot-alert-title {
  font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 4px;
}
.pilot-alert-arrow {
  font-size: 28px; font-weight: 900; text-align: center; margin-bottom: 4px;
  letter-spacing: 2px; animation: pilotArrowPulse 0.6s infinite;
}
.pilot-arrow-up { color: #51cf66; }
.pilot-arrow-down { color: #ff6b6b; }
.pilot-arrow-hold { color: #ffd43b; }
@keyframes pilotArrowPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}
.pilot-alert-hint {
  font-size: 14px; color: var(--primary); font-weight: 700;
  background: rgba(74,144,217,.12); padding: 8px 10px; border-radius: 6px;
  text-align: center;
}
@keyframes pilotAlertPulse {
  0%, 100% { border-color: var(--accent); }
  50% { border-color: rgba(255,107,107,.3); }
}

.pilot-controls {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 8px;
}
.pilot-btn {
  padding: 14px 6px; border: 1.5px solid var(--border); border-radius: 10px;
  background: var(--card-bg); font-size: 14px; font-weight: 600;
  cursor: pointer; box-shadow: var(--shadow); color: var(--text);
  transition: all .1s; user-select: none; -webkit-user-select: none;
}
.pilot-btn:active { transform: scale(.95); background: #eee; }
.pilot-btn-pulse {
  border-color: #ff6b6b !important; background: rgba(255,107,107,.1) !important;
  animation: pilotBtnPulse 0.6s infinite;
}
@keyframes pilotBtnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,107,.4); }
  50% { box-shadow: 0 0 0 6px rgba(255,107,107,0); }
}

/* Login page */
.login-page { display: flex; align-items: flex-start; justify-content: center; min-height: 60vh; padding-top: 40px; }
.login-card {
  background: var(--card-bg); border-radius: var(--radius); padding: 24px 20px;
  box-shadow: var(--shadow); width: 100%; max-width: 380px;
}
.login-tabs {
  display: flex; gap: 0; margin-bottom: 16px; border-bottom: 2px solid var(--border);
}
.login-tab {
  flex: 1; padding: 10px 8px; border: none; background: none;
  font-size: 14px; cursor: pointer; color: var(--text-secondary);
  border-bottom: 3px solid transparent; font-weight: 500; transition: all .15s;
}
.login-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.login-input {
  display: block; width: 100%; padding: 12px 14px; margin-bottom: 10px;
  border: 1.5px solid var(--border); border-radius: 8px; font-size: 15px;
  outline: none; transition: border-color .15s; background: #fafafa;
}
.login-input:focus { border-color: var(--primary); background: #fff; }
.login-btn {
  display: block; width: 100%; padding: 12px; border: none;
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 600;
  border-radius: 8px; cursor: pointer; transition: background .15s;
}
.login-btn:active { background: var(--primary-dark); }
.login-btn:disabled { background: #aaa; cursor: default; }
.login-error { color: var(--accent); font-size: 13px; margin-top: 6px; min-height: 20px; }
.login-hint { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.login-link {
  display: block; background: none; border: none; color: var(--primary);
  font-size: 13px; cursor: pointer; margin-top: 10px; padding: 0;
}
.login-why { margin-bottom: 14px; }
.login-why summary { font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.login-why p { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* Set password modal */
.set-pwd-modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.45); display: flex;
  align-items: center; justify-content: center; padding: 20px;
}
.set-pwd-modal {
  background: var(--card-bg); border-radius: var(--radius); padding: 24px 20px;
  width: 100%; max-width: 340px; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.set-pwd-modal h3 { margin-bottom: 8px; font-size: 17px; }

/* Snake inline start button (inside canvas area, not full-page overlay) */
.snake-start-inline {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.snake-start-btn {
  pointer-events: auto;
  padding: 12px 32px; border: none; border-radius: 8px;
  background: var(--primary); color: #fff;
  font-size: 16px; font-weight: 600; cursor: pointer;
}
.snake-start-btn:active { background: var(--primary-dark); }

/* Fishing game */
.fish-target {
  text-align: center; padding: 8px 12px; margin-bottom: 8px;
  background: #fff3cd; border-radius: 8px; font-size: 15px;
  color: #856404; font-weight: 500;
}
#fish-canvas { border-radius: 10px; display: block; touch-action: none; }
@keyframes fish-timer-flash { 0%,100%{transform:scale(1)} 50%{transform:scale(1.3)} }

/* Wait Game (等) */
.wait-page {
  min-height: 100vh; background: #fff;
  padding: 40px 20px 30px; text-align: center;
}
.wait-score-wrap { margin-bottom: 4px; }
.wait-score {
  font-size: 48px; font-weight: 200; color: #333;
  letter-spacing: -1px; font-family: system-ui, sans-serif;
}
.wait-label { font-size: 13px; color: #bbb; letter-spacing: 4px; text-transform: uppercase; }
.wait-timer { font-size: 14px; color: #aaa; margin-bottom: 16px; }
.wait-canvas-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
#wait-canvas { display: block; }
.wait-start-area, .wait-stop-area { margin-bottom: 12px; }
.wait-start-btn {
  padding: 12px 36px; border: 1.5px solid #ddd; border-radius: 24px;
  background: #fff; font-size: 15px; color: #666; cursor: pointer;
  transition: all .2s; letter-spacing: 1px;
}
.wait-start-btn:hover { border-color: #bbb; color: #333; }
.wait-stop-btn {
  padding: 10px 28px; border: 1px solid #eee; border-radius: 20px;
  background: #fff; font-size: 13px; color: #ccc; cursor: pointer;
  transition: all .2s;
}
.wait-stop-btn:hover { color: #999; border-color: #ddd; }
.wait-best { font-size: 13px; color: #ccc; margin-bottom: 4px; }
.wait-footer {
  margin-top: 20px; font-size: 12px; color: #ddd;
  letter-spacing: 1px;
}

/* Nuke Bomb Game (核弹爆炸) */
.nuke-page { padding-bottom: 20px; }

.nuke-stage {
  position: relative;
  height: 160px;
  margin: 8px 0 4px;
  background: linear-gradient(180deg, #fdfdfd 0%, #f1f5f9 100%);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.nuke-stage-idle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 56px;
  opacity: .25;
}
.nuke-bomb-container {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}
.nuke-parachute { font-size: 28px; line-height: 1; }
.nuke-bomb-icon { font-size: 32px; line-height: 1; margin-top: -4px; }
.nuke-cloud {
  position: absolute;
  bottom: -8px;
  left: 50%;
  font-size: 96px;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 -2px 8px rgba(0,0,0,.08));
}

@keyframes nukeBombFall {
  0%   { transform: translateX(-50%) translateY(0)    rotate(-3deg); opacity: 1; }
  50%  { transform: translateX(-50%) translateY(70px) rotate(3deg); }
  85%  { transform: translateX(-50%) translateY(125px) rotate(-2deg); opacity: 1; }
  100% { transform: translateX(-50%) translateY(145px) rotate(0);    opacity: 0; }
}
@keyframes nukeCloudPuff {
  0%   { transform: translateX(-50%) scale(.2); opacity: 0; }
  60%  { transform: translateX(-50%) scale(1.25); opacity: 1; }
  100% { transform: translateX(-50%) scale(1.0); opacity: 1; }
}

.nuke-slots {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 14px;
}
.nuke-slot {
  min-height: 44px;
  padding: 10px 14px;
  background: var(--card-bg);
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  transition: background .2s, border-color .2s;
}
.nuke-slot-num {
  display: inline-block;
  width: 22px; height: 22px; line-height: 22px;
  text-align: center;
  background: #e2e8f0;
  border-radius: 50%;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 700;
  flex-shrink: 0;
}
.nuke-slot-text { font-weight: 600; }
.nuke-slot-locked {
  border: 2px solid #51cf66;
  background: rgba(81,207,102,.12);
  color: #2b8a3e;
}
.nuke-slot-wrong {
  border: 2px solid #ff6b6b;
  background: rgba(255,107,107,.12);
  color: #c92a2a;
  animation: nukeShake .4s;
}
@keyframes nukeShake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.nuke-slots-win .nuke-slot-locked {
  animation: nukePulse .7s ease-out;
}
@keyframes nukePulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); background: rgba(81,207,102,.25); }
  100% { transform: scale(1); }
}

.nuke-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
  min-height: 80px;
}
.nuke-chip {
  display: inline-block;
  padding: 9px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s, background .15s, color .15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.nuke-chip:active {
  transform: scale(.95);
  background: var(--primary);
  color: #fff;
}
.nuke-chip-used {
  opacity: .25;
  pointer-events: none;
  background: #f1f5f9;
  box-shadow: none;
}
.nuke-chip-burst {
  animation: nukeChipBurst .5s ease-out backwards;
}
@keyframes nukeChipBurst {
  0%   { transform: translateY(-30px) scale(.3); opacity: 0; }
  60%  { transform: translateY(4px) scale(1.05); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.nuke-hint {
  background: rgba(255,107,107,.1);
  border: 1px solid rgba(255,107,107,.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #c92a2a;
  margin: 8px 0;
  text-align: center;
  line-height: 1.5;
}
.nuke-hint-meta {
  color: #94a3b8;
  font-size: 12px;
  margin-left: 4px;
}

.nuke-start-overlay { text-align: center; margin: 16px 0; }
.nuke-start-tip {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.6;
}

.nuke-final-answer {
  background: rgba(81,207,102,.12);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 12px;
  text-align: left;
  line-height: 1.6;
}

/* ─── Quote Cards Gallery (v0.3.1) ──────────────── */
.quotes-intro {
  padding: 14px 16px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.quotes-intro p {
  margin: 0;
  color: var(--text, #333);
  font-size: 14px;
  line-height: 1.6;
}
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 4px 20px;
}
.quote-thumb {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
  aspect-ratio: 1 / 1;
  background: #f2f2f2;
}
.quote-thumb:active {
  transform: scale(.98);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.quote-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* 详情页 */
.quote-detail {
  padding: 12px 12px 32px;
}
.quote-big {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 14px;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
.quote-hint {
  text-align: center;
  color: var(--text-secondary, #666);
  font-size: 13px;
  margin: 8px 0 18px;
  padding: 8px 12px;
  background: #fff8e0;
  border-radius: 8px;
}
.quote-meta {
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.quote-en-txt {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--text, #333);
  line-height: 1.5;
  margin-bottom: 8px;
}
.quote-zh-txt {
  font-size: 15px;
  color: var(--text, #333);
  line-height: 1.6;
  margin-bottom: 10px;
}
.quote-author-txt {
  font-size: 13px;
  color: var(--text-secondary, #888);
  text-align: right;
}
.quote-nav {
  margin-top: 18px;
  text-align: center;
}
.quote-nav-btn {
  display: inline-block;
  padding: 10px 22px;
  background: #fff;
  border-radius: 20px;
  color: var(--text, #333);
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* 首页入口卡片 */
.quote-entry-card {
  background: linear-gradient(135deg, #ff9e6a 0%, #f05f4a 100%);
  color: #fff;
  padding: 18px 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  display: block;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(240,95,74,.22);
  transition: transform .15s ease;
}
.quote-entry-card:active { transform: scale(.98); }
.quote-entry-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  color: #fff;
}
.quote-entry-card p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.88);
  line-height: 1.55;
}

.loading { text-align: center; padding: 40px 20px; color: var(--text-secondary, #888); font-size: 14px; }
.error-msg { text-align: center; padding: 40px 20px; color: #c33; font-size: 14px; }
