:root {
  --pink-soft: #ffe4ec;
  --pink-light: #ffc2d4;
  --pink: #ff8fab;
  --pink-deep: #ff5d8f;
  --lavender: #e0c3fc;
  --lavender-deep: #b388ff;
  --peach: #ffd6a5;
  --mint: #caffbf;
  --sky: #bde0fe;
  --cream: #fff8f0;
  --text-dark: #5a3d5c;
  --text-medium: #8b6b8d;
  --shadow-pink: 0 10px 30px rgba(255, 143, 171, 0.25);
  --shadow-soft: 0 8px 24px rgba(179, 136, 255, 0.18);

  /* ---------- 字体规范 ----------
     教学文字（汉字）→ 楷书
     其他文字（界面/标题/按钮）→ 微软雅黑
     拼音 → 西文字体，声调符号显示更准确
     全部用系统字体，不依赖网络；非 Windows 设备自动回退到同风格的本地字体 */
  --font-teach: 'KaiTi', 'Kaiti SC', 'STKaiti', 'BiauKai', '楷体', 'DFKai-SB', 'TW-Kai',
                'AR PL UKai CN', 'Noto Serif CJK SC', serif;
  --font-ui: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Hiragino Sans GB',
             'Noto Sans SC', 'Source Han Sans SC', 'WenQuanYi Micro Hei', sans-serif;
  --font-pinyin: 'Nunito', 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

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

body {
  font-family: var(--font-ui);
  background: linear-gradient(135deg, #ffe4ec 0%, #e0c3fc 50%, #caffbf 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-dark);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 192, 203, 0.3) 0%, transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(224, 195, 252, 0.3) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(202, 255, 191, 0.15) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* ===== Floating decorations ===== */
.float-deco {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  animation: floatUp 8s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

/* ===== Navigation ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid rgba(255, 143, 171, 0.3);
  padding: 14px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(255, 143, 171, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pink-deep);
  text-decoration: none;
}

.logo-icon {
  font-size: 1.8rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.nav-links {
  display: flex;
  gap: 10px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-medium);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--pink);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-pink);
}

/* ===== Hero / Welcome ===== */
.hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px 40px;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink), var(--lavender-deep));
  color: white;
  padding: 6px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: var(--shadow-pink);
}

.hero h1 {
  font-family: var(--font-ui);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(135deg, var(--pink-deep), var(--lavender-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.hero-emojis {
  font-size: 2.5rem;
  margin: 20px 0;
  letter-spacing: 8px;
}

.hero-emojis span {
  display: inline-block;
  animation: wave 2s ease-in-out infinite;
}

.hero-emojis span:nth-child(2) { animation-delay: 0.2s; }
.hero-emojis span:nth-child(3) { animation-delay: 0.4s; }
.hero-emojis span:nth-child(4) { animation-delay: 0.6s; }

@keyframes wave {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(15deg); }
}

/* ===== Container ===== */
.container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ===== Section title ===== */
.section-title {
  font-family: var(--font-ui);
  font-size: 2rem;
  color: var(--pink-deep);
  text-align: center;
  margin: 40px 0 25px;
  position: relative;
}

.section-title::after {
  content: '✿';
  display: block;
  font-size: 1.2rem;
  color: var(--lavender-deep);
  margin-top: 6px;
}

/* ===== Lesson cards grid (homepage) ===== */
.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.lesson-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 28px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(255, 255, 255, 0.6);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.lesson-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 143, 171, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.lesson-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 93, 143, 0.25);
  border-color: var(--pink);
}

.lesson-card:hover::before {
  opacity: 1;
}

.lesson-card-pinyin {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--pink-deep);
  text-align: center;
  margin-bottom: 8px;
  font-family: var(--font-pinyin);
}

.lesson-card-label {
  text-align: center;
  color: var(--text-medium);
  font-size: 0.9rem;
  font-weight: 600;
}

.lesson-card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--mint);
  color: #2d6a4f;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
}

.lesson-card-tag.coming {
  background: var(--peach);
  color: #b5651d;
}

/* ===== Lesson page header ===== */
.lesson-header {
  text-align: center;
  padding: 40px 20px 20px;
  position: relative;
  z-index: 2;
}

.lesson-day {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--pink), var(--lavender-deep));
  color: white;
  padding: 8px 22px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: var(--shadow-pink);
  margin-bottom: 18px;
}

.lesson-main-pinyin {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink-deep), var(--lavender-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  font-family: var(--font-pinyin);
}

.lesson-desc {
  color: var(--text-medium);
  font-size: 1.05rem;
  margin-top: 10px;
}

/* ===== Tone cards ===== */
.tones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin: 30px 0;
}

.tone-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 3px solid transparent;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  cursor: pointer;
}

.tone-card:hover {
  transform: translateY(-6px);
}

.tone-card.tone-1 { border-color: var(--pink-light); }
.tone-card.tone-2 { border-color: var(--lavender); }
.tone-card.tone-3 { border-color: var(--mint); }
.tone-card.tone-4 { border-color: var(--peach); }

.tone-mark {
  font-size: 1rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 14px;
  display: inline-block;
  margin-bottom: 14px;
  color: white;
}

.tone-1 .tone-mark { background: var(--pink); }
.tone-2 .tone-mark { background: var(--lavender-deep); }
.tone-3 .tone-mark { background: #7cc77c; }
.tone-4 .tone-mark { background: #ff9a3c; }

.tone-pinyin {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-family: var(--font-pinyin);
}

.tone-char {
  font-family: var(--font-teach);
  font-size: 5rem;
  color: var(--pink-deep);
  line-height: 1.1;
  margin: 10px 0;
  transition: transform 0.3s;
  font-weight: normal;
}

.tone-card:hover .tone-char {
  transform: scale(1.1);
}

.tone-word {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 14px;
  font-weight: 600;
}

.tone-word span {
  color: var(--pink-deep);
  font-weight: 800;
}

.tone-meaning {
  background: rgba(255, 228, 236, 0.5);
  border-radius: 12px;
  padding: 8px 10px;
  margin: 8px 0;
  font-size: 0.82rem;
  color: var(--text-medium);
  line-height: 1.5;
  text-align: left;
}

.tone-meaning .label {
  color: var(--lavender-deep);
  font-weight: 800;
  font-size: 0.78rem;
}

.tone-meaning .word-label {
  color: var(--pink-deep);
  font-weight: 800;
  font-size: 0.78rem;
}

.tone-meaning div {
  margin-top: 4px;
}

.speak-btn {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(255, 93, 143, 0.3);
}

.speak-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(255, 93, 143, 0.45);
}

.speak-btn:active {
  transform: scale(0.95);
}

.speak-btn.speaking {
  background: linear-gradient(135deg, var(--lavender-deep), var(--pink-deep));
  animation: pulse 0.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(255, 93, 143, 0.3); }
  50% { box-shadow: 0 0 0 10px rgba(255, 93, 143, 0.15); }
}

/* ===== Tip box ===== */
.tip-box {
  background: linear-gradient(135deg, rgba(255, 228, 236, 0.8), rgba(224, 195, 252, 0.8));
  border-radius: 20px;
  padding: 20px 24px;
  margin: 25px 0;
  border-left: 5px solid var(--pink-deep);
  box-shadow: var(--shadow-soft);
}

.tip-box h4 {
  color: var(--pink-deep);
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tip-box p {
  color: var(--text-medium);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ===== Quiz section ===== */
.quiz-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  margin: 30px 0;
}

.quiz-question {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 20px;
}

.quiz-char-display {
  font-family: var(--font-teach);
  font-size: 5rem;
  text-align: center;
  color: var(--pink-deep);
  margin: 10px 0;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 500px;
  margin: 0 auto;
}

.quiz-option {
  background: white;
  border: 2.5px solid var(--pink-light);
  border-radius: 16px;
  padding: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-pinyin);
}

.quiz-option:hover {
  background: var(--pink-soft);
  transform: translateY(-2px);
}

.quiz-option.correct {
  background: var(--mint);
  border-color: #7cc77c;
  color: #2d6a4f;
  animation: celebrate 0.5s ease;
}

.quiz-option.wrong {
  background: #ffd6d6;
  border-color: #ff6b6b;
  color: #c92a2a;
  animation: shake 0.4s ease;
}

/* 看字写拼音输入框 */
.quiz-input-wrap {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}

.quiz-pinyin-input {
  flex: 1;
  min-width: 160px;
  padding: 14px 18px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  background: white;
  border: 2.5px solid var(--pink-light);
  border-radius: 16px;
  outline: none;
  transition: all 0.3s;
  font-family: var(--font-pinyin);
  text-align: center;
}

.quiz-pinyin-input:focus {
  border-color: var(--pink-deep);
  box-shadow: 0 0 0 4px rgba(255, 93, 143, 0.15);
}

.quiz-submit-btn {
  padding: 12px 26px;
  font-size: 1rem;
}

@keyframes celebrate {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.quiz-feedback {
  text-align: center;
  margin-top: 18px;
  font-size: 1.1rem;
  font-weight: 700;
  min-height: 30px;
}

.quiz-feedback.correct { color: #2d6a4f; }
.quiz-feedback.wrong { color: #c92a2a; }

.quiz-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.quiz-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  transition: all 0.3s;
}

.quiz-dot.done { background: var(--mint); }
.quiz-dot.current { background: var(--pink-deep); transform: scale(1.3); }

.quiz-score {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--pink-deep);
  margin-top: 15px;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 30px 20px;
  color: var(--text-medium);
  font-size: 0.9rem;
}

.footer span {
  color: var(--pink-deep);
  font-weight: 700;
}

/* ===== Back button ===== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.3s;
  margin-bottom: 10px;
}

.back-btn:hover {
  background: white;
  color: var(--pink-deep);
  transform: translateX(-3px);
}

/* ===== Pinyin table ===== */
.pinyin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin: 20px 0;
}

.pinyin-table th,
.pinyin-table td {
  padding: 14px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 192, 203, 0.3);
}

.pinyin-table th {
  background: linear-gradient(135deg, var(--pink), var(--lavender-deep));
  color: white;
  font-weight: 800;
}

.pinyin-table td {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.pinyin-table tr:last-child td {
  border-bottom: none;
}

.pinyin-table tr:hover td {
  background: rgba(255, 143, 171, 0.08);
}

/* ===== 上一页 / 下一页导航 ===== */
.lesson-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 30px 0 10px;
  flex-wrap: wrap;
}

.lesson-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 2px solid var(--pink-light);
  border-radius: 22px;
  text-decoration: none;
  color: var(--pink-deep);
  font-weight: 800;
  font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: var(--shadow-soft);
}

.lesson-nav a:hover {
  background: var(--pink);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-pink);
}

.lesson-nav a.placeholder {
  visibility: hidden;
}

/* ===== 今日句子板块 ===== */
.sentence-card {
  background: linear-gradient(135deg, rgba(255, 228, 236, 0.85), rgba(224, 195, 252, 0.85));
  border-radius: 24px;
  padding: 24px 28px;
  margin: 25px 0;
  border-left: 5px solid var(--lavender-deep);
  box-shadow: var(--shadow-soft);
}

.sentence-card h4 {
  color: var(--lavender-deep);
  font-size: 1.1rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sentence-item {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 14px 18px;
  margin: 10px 0;
  transition: all 0.3s;
}

.sentence-item:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(4px);
}

.sentence-text {
  font-family: var(--font-teach);
  font-size: 1.6rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 6px;
}

.sentence-text ruby rt {
  font-size: 0.55em;
  color: var(--pink-deep);
  font-family: var(--font-pinyin);
}

.sentence-pinyin {
  font-size: 0.85rem;
  color: var(--text-medium);
  font-family: var(--font-pinyin);
  letter-spacing: 1px;
}

.sentence-meaning {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-top: 4px;
}

.sentence-speak {
  margin-top: 8px;
  background: linear-gradient(135deg, var(--lavender-deep), var(--pink));
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.sentence-speak:hover {
  transform: scale(1.06);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .quiz-options { grid-template-columns: 1fr; }
  .navbar { padding: 12px 16px; }
}

/* ===== Confetti ===== */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 9999;
  animation: confettiFall 1.5s ease-out forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ===== Stroke order (笔顺) ===== */
.bihua-btn {
  background: linear-gradient(135deg, var(--lavender-deep), var(--pink));
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(179, 136, 255, 0.3);
  margin-top: 8px;
}

.bihua-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(179, 136, 255, 0.45);
}

.tone-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* 笔顺模态框 */
.bihua-modal {
  position: fixed;
  inset: 0;
  background: rgba(90, 61, 92, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.bihua-modal.show {
  opacity: 1;
  visibility: visible;
}

.bihua-modal-content {
  background: linear-gradient(160deg, #fff 0%, var(--pink-soft) 100%);
  border-radius: 28px;
  padding: 30px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(255, 93, 143, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.bihua-modal.show .bihua-modal-content {
  transform: scale(1);
}

.bihua-modal-title {
  font-family: var(--font-ui);
  font-size: 1.5rem;
  color: var(--pink-deep);
  margin-bottom: 6px;
}

.bihua-modal-sub {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

#bihua-char {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px auto 6px;
  background: white;
  border-radius: 16px;
  box-shadow: inset 0 2px 8px rgba(179, 136, 255, 0.1);
  width: 280px;
  height: 280px;
  position: relative;
}

/* 平板/手机上写字时，别把手指滑动当成页面滚动 */
#bihua-char svg,
#bihua-char svg * {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#bihua-char svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 书写提示行 */
.bihua-hint {
  min-height: 22px;
  margin: 4px 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-medium);
  line-height: 1.4;
  transition: color 0.2s;
}

.bihua-hint.ok { color: #2f9e44; }
.bihua-hint.warn { color: #e8590c; }

.bihua-modal-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.bihua-modal-btns button {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 18px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.bihua-modal-btns button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255, 93, 143, 0.35);
}

/* 书写模式下「下一笔」置灰 */
.bihua-modal-btns button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bihua-modal-btns button.secondary {
  background: linear-gradient(135deg, var(--lavender-deep), var(--pink));
}

/* 「我来写」主按钮：最醒目，孩子一眼看到 */
.bihua-modal-btns button.primary {
  background: linear-gradient(135deg, #ffd7a8, #ffab4a);
  color: #7a3e00;
  box-shadow: 0 4px 12px rgba(255, 171, 74, 0.45);
}

.bihua-modal-btns button.primary:hover {
  box-shadow: 0 8px 18px rgba(255, 171, 74, 0.55);
}

@media (max-width: 420px) {
  .bihua-modal-content { padding: 22px 18px; }
  #bihua-char { width: 240px; height: 240px; }
  .bihua-modal-btns button { padding: 9px 14px; font-size: 0.85rem; }
}

.bihua-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-medium);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.bihua-close:hover {
  background: var(--pink-soft);
  color: var(--pink-deep);
}

/* ============================================================
   随堂测验卷（quiz.html）
   按中国小学一年级语文试卷的版式做：白纸、卷头、大题、分值
   ============================================================ */

.exam-root {
  max-width: 820px;
  margin: 0 auto 30px;
  background: #fff;
  border-radius: 20px;
  padding: 40px 44px 32px;
  box-shadow: 0 10px 30px rgba(179, 136, 255, 0.16);
  border: 1px solid rgba(224, 195, 252, 0.6);
}

/* ---------- 卷头 ---------- */
.exam-head {
  text-align: center;
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 2px dashed #f0d9e6;
}

.exam-school {
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--text-medium);
  margin-bottom: 6px;
}

.exam-title {
  font-family: var(--font-ui);
  font-size: 1.9rem;
  color: var(--pink-deep);
  margin: 0 0 6px;
  letter-spacing: 1px;
}

.exam-sub {
  font-size: 0.92rem;
  color: var(--text-medium);
  margin-bottom: 18px;
}

.exam-meta {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--text-medium);
}

.exam-meta b {
  color: #5b3a63;
  font-weight: 700;
}

.exam-score-blank {
  letter-spacing: 2px;
  color: #c9b3d3 !important;
}

.exam-meta b.score-high { color: #2f9e44 !important; }
.exam-meta b.score-mid  { color: #f08c00 !important; }
.exam-meta b.score-low  { color: #e03131 !important; }

/* ---------- 成绩横幅 ---------- */
.exam-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
  border-radius: 16px;
  margin-bottom: 26px;
}

.banner-high { background: linear-gradient(135deg, #e7f9ec, #d3f9d8); }
.banner-mid  { background: linear-gradient(135deg, #fff4e6, #ffe8cc); }
.banner-low  { background: linear-gradient(135deg, #fff0f0, #ffe3e3); }

.banner-score {
  font-family: var(--font-ui);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--pink-deep);
  white-space: nowrap;
}

.banner-score small {
  font-size: 1rem;
  margin-left: 2px;
}

.banner-msg {
  font-size: 0.98rem;
  font-weight: 700;
  color: #5b3a63;
  line-height: 1.5;
}

/* ---------- 大题 ---------- */
.exam-section {
  margin-bottom: 32px;
}

.sec-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--pink-deep);
  margin: 0 0 6px;
  padding-left: 12px;
  border-left: 5px solid var(--pink-deep);
  line-height: 1.4;
}

.sec-score {
  font-size: 0.85rem;
  font-weight: 600;
  color: #a58bb3;
  margin-left: 4px;
}

.sec-desc {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin: 0 0 14px 17px;
}

/* ---------- 题目 ---------- */
.q-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.q-item {
  padding: 12px 14px;
  border-radius: 12px;
  border-bottom: 1px dashed #f3e6ef;
  transition: background 0.25s;
}

.q-item:last-child { border-bottom: none; }

.q-item.is-right { background: rgba(211, 249, 216, 0.35); }
.q-item.is-wrong { background: rgba(255, 227, 227, 0.5); }

.q-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.q-num {
  font-weight: 800;
  color: var(--lavender-deep);
  font-size: 1rem;
  min-width: 20px;
}

.q-stem {
  font-family: var(--font-pinyin);
  font-size: 1.45rem;
  color: #3d2a44;
  line-height: 1.5;
}

.q-stem-pinyin {
  font-family: var(--font-pinyin);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--lavender-deep);
  letter-spacing: 1px;
}

/* ---------- 选项 ---------- */
.q-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 28px;
}

.q-opt {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fdfaff;
  border: 2px solid #eee0f7;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 1.15rem;
  font-family: var(--font-ui);
  color: #4a3352;
  cursor: pointer;
  transition: all 0.2s;
}

.q-opt i {
  font-style: normal;
  font-size: 0.8rem;
  color: #a58bb3;
  font-weight: 700;
}

.q-opt:hover:not(:disabled) {
  border-color: var(--pink);
  background: #fff5f9;
  transform: translateY(-1px);
}

.q-opt.picked {
  border-color: var(--pink-deep);
  background: #ffe9f2;
  box-shadow: 0 3px 10px rgba(255, 93, 143, 0.2);
}

.q-opt.right-opt {
  border-color: #40c057;
  background: #ebfbee;
}

.q-opt:disabled { cursor: default; }

/* 判断题按钮 */
.q-options-judge { gap: 14px; }

.q-opt-judge {
  min-width: 90px;
  justify-content: center;
  font-size: 1.5rem;
  padding: 6px 18px;
}

.q-opt-judge span { font-weight: 900; }
.q-opt-judge i { font-size: 0.85rem; }

/* ---------- 填空题 ---------- */
.q-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 28px;
  flex-wrap: wrap;
}

.q-input {
  width: 110px;
  height: 46px;
  text-align: center;
  font-size: 1.5rem;
  font-family: var(--font-teach);
  color: #3d2a44;
  border: none;
  border-bottom: 2.5px solid #d9c2f5;
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
}

.q-input:focus { border-bottom-color: var(--pink-deep); }
.q-input:disabled { color: #6b4a72; }

.q-hint {
  font-size: 0.85rem;
  color: #a58bb3;
}

/* ---------- 批改结果 ---------- */
.q-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 28px;
  margin-top: 8px;
}

.mark {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.mark-right { color: #2f9e44; }
.mark-wrong { color: #e03131; }

.res-ans {
  font-size: 0.92rem;
  color: #7a5b85;
}

.res-ans b {
  color: #2f9e44;
  font-family: var(--font-teach);
  font-size: 1.1rem;
}

/* ---------- 底部按钮 ---------- */
.exam-foot {
  text-align: center;
  padding-top: 12px;
  border-top: 2px dashed #f0d9e6;
}

.exam-submit,
.exam-redo {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  letter-spacing: 3px;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 13px 54px;
  cursor: pointer;
  transition: all 0.25s;
}

.exam-submit {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  box-shadow: 0 8px 20px rgba(255, 93, 143, 0.35);
}

.exam-redo {
  background: linear-gradient(135deg, var(--lavender-deep), var(--pink));
  box-shadow: 0 8px 20px rgba(179, 136, 255, 0.35);
}

.exam-submit:hover,
.exam-redo:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 93, 143, 0.45);
}

/* ---------- 小屏适配 ---------- */
@media (max-width: 640px) {
  .exam-root {
    padding: 24px 16px 22px;
    border-radius: 14px;
  }
  .exam-title { font-size: 1.4rem; }
  .exam-meta { gap: 12px; font-size: 0.85rem; }
  .q-stem { font-size: 1.25rem; }
  .q-options, .q-input-row, .q-result { padding-left: 0; }
  .q-opt { font-size: 1.05rem; padding: 7px 12px; }
  .banner-score { font-size: 2.1rem; }
  .exam-submit, .exam-redo { font-size: 1.1rem; padding: 12px 40px; }
}

/* 卷子题干里的汉字 / 提示 / 题干文字 */
.q-char {
  font-family: var(--font-teach);
  font-size: 1.7rem;
  font-weight: 700;
  color: #3d2a44;
  padding: 0 4px;
  line-height: 1.2;
}

.q-word {
  font-size: 0.92rem;
  color: #a58bb3;
  font-family: var(--font-ui);
}

.q-question {
  font-size: 1rem;
  font-weight: 600;
  color: #6b4a72;
  margin-right: 6px;
}

/* 词语笔顺小按钮 */
.word-bihua-btn {
  background: #fff0f6;
  border: 1.5px solid #f7c8dd;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1;
  padding: 3px 7px;
  margin-left: 4px;
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.2s;
}

.word-bihua-btn:hover {
  background: #ffe0ee;
  border-color: var(--pink);
  transform: translateY(-1px);
}

/* 卷子顶部的提示条（比如"检测到离开页面，题目已重新生成"） */
.exam-notice {
  background: linear-gradient(135deg, #fff9db, #ffec99);
  border-left: 5px solid #f59f00;
  color: #7a4b00;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
}

/* ============================================================
   字体规范收尾：标题类改用雅黑后补足字重
   原来这些标题是"站酷快乐体"，自带视觉重量；换成雅黑要手动加粗，
   否则大字号会显得单薄。
   ============================================================ */
.hero h1,
.section-title,
.exam-title,
.banner-score,
.bihua-modal-title,
.lesson-day,
.lesson-card-tag {
  font-weight: 800;
}

/* 楷书在小字号下笔画细，教学用字统一给一点字重，保证清晰 */
.tone-char,
.quiz-char-display,
.q-char,
.q-input,
.sentence-text {
  font-weight: 600;
}

/* ============================================================
   学习记录面板
   ============================================================ */
.history-empty {
  color: var(--text-medium);
  font-size: 0.92rem;
  line-height: 1.7;
  padding: 16px 4px;
}

.hist-summary {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.hist-stat {
  flex: 1;
  min-width: 90px;
  background: linear-gradient(135deg, #fff5f9, #f6f0ff);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
}

.hist-stat b {
  display: block;
  font-size: 1.6rem;
  color: var(--pink-deep);
  font-weight: 800;
  line-height: 1.2;
}

.hist-stat span {
  font-size: 0.78rem;
  color: var(--text-medium);
}

.hist-wrong {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.hist-sub {
  font-size: 0.85rem;
  color: var(--text-medium);
  font-weight: 700;
}

.wrong-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fff0f0;
  border: 1px solid #ffc9c9;
  color: #c92a2a;
  border-radius: 8px;
  padding: 2px 8px;
  font-family: var(--font-teach);
  font-size: 1.05rem;
}

.wrong-chip i {
  font-style: normal;
  font-size: 0.68rem;
  background: #ffc9c9;
  border-radius: 20px;
  padding: 0 5px;
  font-family: var(--font-ui);
}

.hist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.hist-table th {
  text-align: left;
  font-size: 0.78rem;
  color: var(--text-medium);
  font-weight: 700;
  padding: 6px 8px;
  border-bottom: 2px solid #f0e2f5;
}

.hist-table td {
  padding: 8px;
  border-bottom: 1px dashed #f3e6ef;
  color: #5a3d5c;
}

.rate-good { color: #2f9e44; font-weight: 800; }
.rate-mid  { color: #f08c00; font-weight: 800; }
.rate-bad  { color: #e03131; font-weight: 800; }

.hist-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.hist-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: all 0.2s;
}

.hist-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(255, 93, 143, 0.3); }

.hist-danger {
  background: linear-gradient(135deg, #ff8787, #e03131);
}

.hist-note {
  font-size: 0.8rem;
  color: var(--text-medium);
  line-height: 1.6;
}

/* 交卷时无法保存的提示 */
.banner-save-warn {
  width: 100%;
  font-size: 0.82rem;
  color: #c92a2a;
  margin-top: 6px;
}

/* 学习记录容器 */
.history-root {
  background: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 6px 18px rgba(179, 136, 255, 0.12);
  border: 1px solid rgba(224, 195, 252, 0.5);
  margin-bottom: 26px;
}

@media (max-width: 640px) {
  .history-root { padding: 16px 14px; }
  .hist-table { font-size: 0.82rem; }
  .hist-table th, .hist-table td { padding: 6px 4px; }
}

/* 成绩表里的卷子类型标签 */
.hist-type {
  display: inline-block;
  font-size: 0.72rem;
  border-radius: 6px;
  padding: 1px 7px;
  font-weight: 700;
}
.type-review { background: #f3ebff; color: #7048b8; }
.type-today  { background: #fff0f6; color: #d6336c; }

/* ============================================================
   集换卡（按正确率发放）
   ============================================================ */
.tcard {
  width: 190px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(90, 61, 92, 0.25);
  flex: 0 0 auto;
}

.tcard-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-color: #f6eefc;
}

/* 具体卡面图片由 JS 按卡号内联设置（assets/cards/{id}.webp） */

/* 稀有度边框 */
.tcard::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  border: 4px solid transparent;
}
.tcard-bronze::after { border-color: rgba(201, 123, 61, 0.85); box-shadow: inset 0 0 22px rgba(201,123,61,.45); }
.tcard-silver::after { border-color: rgba(196, 205, 218, 0.95); box-shadow: inset 0 0 22px rgba(190,205,225,.55); }
.tcard-gold::after   { border-color: rgba(245, 179, 1, 0.95); box-shadow: inset 0 0 26px rgba(245,179,1,.5); }
.tcard-diamond::after {
  border-color: transparent;
  background: linear-gradient(135deg, #ff9ecb, #a78bfa, #6ee7f9, #ffe066, #ff9ecb) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  border-width: 4px;
  box-shadow: inset 0 0 30px rgba(167, 139, 250, 0.55);
  animation: diamondGlow 3s ease-in-out infinite;
}
@keyframes diamondGlow {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.35); }
}

.tcard-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  font-family: var(--font-ui);
  z-index: 2;
}

.tcard-tier {
  background: rgba(0, 0, 0, 0.28);
  border-radius: 8px;
  padding: 1px 8px;
}

.tcard-chars {
  position: absolute;
  top: 14%;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-teach);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55), 0 0 2px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

/* 未获得的卡：灰掉 */
.tcard-locked {
  filter: grayscale(1) brightness(0.92);
  opacity: 0.4;
}
.tcard-locked .tcard-chars { display: none; }

/* ---------- 获得新卡片的浮层 ---------- */
.card-reward-overlay {
  position: fixed;
  inset: 0;
  background: rgba(60, 40, 64, 0.62);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.25s ease;
  padding: 20px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.card-reward {
  background: linear-gradient(160deg, #fff, #fdf3ff);
  border-radius: 24px;
  padding: 26px 24px 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  animation: cardPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardPop {
  from { transform: scale(0.6) rotate(-8deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}

.cr-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--pink-deep);
  margin-bottom: 16px;
  font-family: var(--font-ui);
}

.card-reward .tcard { margin: 0 auto 20px; }

.cr-close {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 11px 40px;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 93, 143, 0.35);
}
.cr-close:hover { transform: translateY(-2px); }

/* ---------- 卡册 ---------- */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 8px 0 20px;
}

.card-slot {
  width: 150px;
  text-align: center;
}

.card-slot .tcard { width: 150px; }

.card-slot-label {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-medium);
  font-weight: 700;
}

.card-tier-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 22px;
}

.tier-stat {
  background: linear-gradient(135deg, #fff5f9, #f6f0ff);
  border-radius: 14px;
  padding: 12px 20px;
  text-align: center;
  min-width: 84px;
}

.tier-stat b {
  display: block;
  font-size: 1.4rem;
  color: var(--pink-deep);
  font-weight: 800;
}

.tier-stat span {
  font-size: 0.75rem;
  color: var(--text-medium);
}

/* 空卡册 */
.cards-empty {
  text-align: center;
  padding: 30px 10px 40px;
  color: var(--text-medium);
  line-height: 1.9;
}

.cards-empty-icon {
  font-size: 3.4rem;
  margin-bottom: 10px;
  opacity: 0.55;
}

.tier-rules {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #8b6b8d;
}

.tier-rules span {
  background: #fff5f9;
  border-radius: 10px;
  padding: 5px 12px;
}

/* 导航栏多一个链接后，小屏别挤爆 */
.nav-links {
  flex-wrap: wrap;
  row-gap: 4px;
}

@media (max-width: 520px) {
  .nav-links { gap: 10px; font-size: 0.85rem; }
}

/* 首页插画 */
.hero-illust {
  max-width: 540px;
  margin: 4px auto 14px;
  padding: 0 20px;
}

.hero-illust img {
  width: 100%;
  display: block;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(179, 136, 255, 0.28);
  border: 3px solid rgba(255, 255, 255, 0.85);
}

@media (max-width: 520px) {
  .hero-illust { padding: 0 12px; }
  .hero-illust img { border-radius: 16px; }
}

/* ============================================================
   卡面不放文字 —— 卡片下方显示课程编号，点卡片放大
   ============================================================ */

/* 卡册里的卡片放大一点，孩子看得清 */
.card-slot { width: 190px; }
.card-slot .tcard { width: 190px; }

.card-slot .tcard {
  cursor: zoom-in;
  transition: transform 0.22s, box-shadow 0.22s;
}
.card-slot .tcard:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 36px rgba(90, 61, 92, 0.32);
}

.card-slot-label {
  margin-top: 10px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #6b4a72;
  letter-spacing: 1px;
}

/* 奖励弹窗里卡片下方的课程编号 */
.cr-day {
  font-size: 1rem;
  font-weight: 800;
  color: #6b4a72;
  letter-spacing: 2px;
  margin: -4px 0 18px;
}

/* ---------- 放大查看 ---------- */
.card-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 26, 44, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
  cursor: zoom-out;
}

.card-zoom {
  text-align: center;
  animation: cardPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tcard.tcard-large {
  width: min(78vw, 460px);
  cursor: zoom-out;
}

.cz-day {
  margin-top: 16px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cz-hint {
  margin-top: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 520px) {
  .card-slot, .card-slot .tcard { width: 140px; }
  .tcard.tcard-large { width: 84vw; }
}

/* 卡册为空时的卡面预览 */
.tcard-preview {
  opacity: 0.92;
}

.card-slot-sub {
  margin-top: 3px;
  font-size: 0.72rem;
  color: #a58bb3;
  font-weight: 700;
}

/* 卡面图片缺失时的兜底显示（正常不会出现） */
.tcard-bg-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff0f0 !important;
  color: #c92a2a;
  font-size: 0.8rem;
  font-weight: 700;
}
