﻿/* ========================================
   一节一龙 — 国风祥云纹风格
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', sans-serif;
  background: #F9F4EB;
  color: #4A3E36;
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(200,70,70,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(212,160,72,0.04) 0%, transparent 50%);
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ===== 祥云纹装饰 ===== */
.cloud-border {
  position: relative;
  padding: 40px 30px;
  border: 2px solid #C84646;
  border-radius: 4px;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 0 4px #F9F4EB, 0 0 0 6px #C84646, 0 4px 20px rgba(200,70,70,0.1);
}
.cloud-border::before {
  content: '☁ ～ ☁ ～ ☁ ～ ☁';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: #F9F4EB;
  padding: 0 16px;
  font-size: 14px;
  color: #C84646;
  letter-spacing: 6px;
  white-space: nowrap;
}
.cloud-border::after {
  content: '☁ ～ ☁ ～ ☁ ～ ☁';
  position: absolute;
  bottom: -12px; left: 50%;
  transform: translateX(-50%);
  background: #F9F4EB;
  padding: 0 16px;
  font-size: 14px;
  color: #C84646;
  letter-spacing: 6px;
  white-space: nowrap;
}

/* ===== 云纹角花 ===== */
.corner-deco {
  position: relative;
}
.corner-deco::before {
  content: '❀';
  position: absolute;
  top: -8px; left: -8px;
  font-size: 20px;
  color: #C84646;
  opacity: 0.6;
}
.corner-deco::after {
  content: '❀';
  position: absolute;
  bottom: -8px; right: -8px;
  font-size: 20px;
  color: #C84646;
  opacity: 0.6;
}

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
[class^=col-] { padding: 0 10px; }
.col-1 { width:8.33% } .col-2 { width:16.67% } .col-3 { width:25% }
.col-4 { width:33.33% } .col-5 { width:41.67% } .col-6 { width:50% }
.col-7 { width:58.33% } .col-8 { width:66.67% } .col-9 { width:75% }
.col-10 { width:83.33% } .col-11 { width:91.67% } .col-12 { width:100% }

/* ===== 导航 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(249,244,235,0.95);
  border-bottom: 2px solid #C84646;
  height: 64px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px; font-weight: 900; color: #C84646;
  letter-spacing: 4px;
  text-shadow: 1px 1px 0 rgba(212,160,72,0.3);
}
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  display: block; padding: 8px 20px;
  color: #70645C; font-size: 15px;
  border-radius: 3px; transition: all 0.3s;
  position: relative;
}
.nav-links a:hover { color: #C84646; background: rgba(200,70,70,0.06); }
.nav-links a.active {
  color: #C84646; font-weight: 700;
  background: rgba(200,70,70,0.08);
}
.nav-links a.active::after {
  content: '';
  position: absolute; bottom: 0; left: 20%; right: 20%;
  height: 2px; background: #C84646;
}

/* ===== 页面 ===== */
.page-main { padding-top: 84px; min-height: 100vh; }
.page-header { text-align: center; margin-bottom: 40px; }
.page-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 36px; color: #C84646; margin-bottom: 8px;
  font-weight: 900; letter-spacing: 6px;
}
.page-subtitle { font-size: 15px; color: #70645C; letter-spacing: 2px; }

/* ===== 装饰分隔线 ===== */
.deco-line {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin: 30px 0;
}
.deco-line::before, .deco-line::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, #C84646, transparent);
}
.deco-line span { color: #C84646; font-size: 18px; }

/* ===== Section ===== */
.section { margin-bottom: 48px; }
.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 26px; color: #C84646; margin-bottom: 20px;
  font-weight: 700; letter-spacing: 4px;
  text-align: center;
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: '～ ❀ ～';
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  font-size: 14px; color: #D4A048;
  letter-spacing: 6px;
}

/* ===== 祥云面板（替代 card）===== */
.panel {
  background: rgba(255,255,255,0.88);
  border: 1.5px solid rgba(200,70,70,0.25);
  border-radius: 4px;
  padding: 28px;
  position: relative;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(200,70,70,0.06);
}
.panel:hover {
  border-color: #C84646;
  box-shadow: 0 4px 16px rgba(200,70,70,0.1);
  transform: translateY(-2px);
}

/* ===== 卡片（保留原有）===== */
.card {
  background: rgba(255,255,255,0.88);
  border: 1.5px solid rgba(200,70,70,0.2);
  border-radius: 4px;
  overflow: hidden; transition: all 0.3s; cursor: pointer;
}
.card:hover {
  border-color: #C84646;
  box-shadow: 0 4px 16px rgba(200,70,70,0.1);
  transform: translateY(-3px);
}
.card-img { width: 100%; height: 180px; object-fit: cover; border-bottom: 1px solid rgba(200,70,70,0.1); }
.card-body { padding: 20px; }
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #C84646; }
.card-text { font-size: 14px; color: #70645C; line-height: 1.8; }

/* ===== Banner ===== */
.banner {
  height: 380px; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #f0e0d0 0%, #f5ede2 40%, #F9F4EB 100%);
  border-bottom: 3px solid #C84646;
  cursor: pointer;
}
.banner::before {
  content: '☁ ～ ☁ ～ ☁ ～ ☁ ～ ☁ ～ ☁ ～ ☁';
  position: absolute; top: 8px; left: 0; right: 0;
  text-align: center; font-size: 16px; color: rgba(200,70,70,0.2);
  letter-spacing: 10px;
  pointer-events: none;
}
.banner::after {
  content: '☁ ～ ☁ ～ ☁ ～ ☁ ～ ☁ ～ ☁ ～ ☁';
  position: absolute; bottom: 8px; left: 0; right: 0;
  text-align: center; font-size: 16px; color: rgba(200,70,70,0.2);
  letter-spacing: 10px;
  pointer-events: none;
}
.banner-content {
  position: relative; z-index: 2; padding: 0 20px;
}
.banner-title {
  font-family: 'Ma Shan Zheng', 'KaiTi', cursive;
  font-size: 72px; font-weight: 400; color: #C84646;
  margin-bottom: 8px; letter-spacing: 16px;
  text-shadow:
    0 2px 4px rgba(0,0,0,0.4),
    0 0 20px rgba(200,70,70,0.3),
    0 0 60px rgba(200,70,70,0.15);
}
.banner-subtitle {
  font-family: 'Ma Shan Zheng', 'KaiTi', cursive;
  font-size: 26px; color: #C84646; margin-bottom: 20px;
  letter-spacing: 8px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}
.banner-desc {
  font-size: 15px; color: #70645C; max-width: 600px;
  margin: 0 auto; line-height: 2;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block; padding: 10px 28px;
  font-size: 15px; font-weight: 500;
  border: 1.5px solid #C84646;
  cursor: pointer; transition: all 0.3s;
  font-family: inherit; text-align: center;
  background: transparent; color: #C84646;
  letter-spacing: 2px;
}
.btn:hover { background: #C84646; color: #fff; }
.btn-primary { background: #C84646; color: #FFF; border-color: #C84646; }
.btn-primary:hover { background: #b33a3a; border-color: #b33a3a; }
.btn-gold { background: #D4A048; color: #4A3E36; border-color: #D4A048; }
.btn-gold:hover { background: #c49030; color: #fff; border-color: #c49030; }
.btn-sm { padding: 6px 18px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 17px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== 标签 ===== */
.tag {
  display: inline-block; padding: 3px 14px;
  font-size: 12px; font-weight: 500; letter-spacing: 1px;
  border: 1px solid;
}
.tag-gold { border-color: #D4A048; color: #D4A048; background: rgba(212,160,72,0.06); }
.tag-red { border-color: #C84646; color: #C84646; background: rgba(200,70,70,0.06); }
.tag-blue { border-color: #6293B8; color: #6293B8; background: rgba(98,147,184,0.06); }
.tag-green { border-color: #84B899; color: #84B899; background: rgba(132,184,153,0.06); }

/* ===== 入口卡片 ===== */
/* 入口卡片图片 */
.entry-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 12px;
}

.entry-card {
  background: rgba(255,255,255,0.88);
  border: 1.5px solid rgba(200,70,70,0.2);
  padding: 32px 24px;
  text-align: center; cursor: pointer;
  transition: all 0.3s;
  min-height: 220px;
  position: relative;
}
.entry-card:hover {
  border-color: #C84646;
  box-shadow: 0 4px 16px rgba(200,70,70,0.1);
  transform: translateY(-3px);
}
.entry-card .card-title { font-size: 20px; margin-bottom: 10px; }
.entry-card .card-text { font-size: 13px; color: #70645C; line-height: 1.8; }

/* ===== 数据面板 ===== */
.data-panel {
  background: rgba(255,255,255,0.88);
  border: 1.5px solid rgba(200,70,70,0.2);
  padding: 24px;
}
.data-number { font-size: 36px; font-weight: 700; color: #C84646; }
.data-label { font-size: 14px; color: #70645C; }
.data-row {
  display: flex; align-items: center; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid rgba(200,70,70,0.08);
}
.data-row:last-child { border-bottom: none; }

/* ===== 进度条 ===== */
.progress-bar {
  height: 8px; background: rgba(200,70,70,0.1);
  position: relative; border: 1px solid rgba(200,70,70,0.15);
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #C84646, #D4A048);
  transition: width 0.5s;
}
.progress-text { font-size: 13px; color: #70645C; margin-top: 4px; }

/* ===== Tab ===== */
.tabs {
  display: flex; margin-bottom: 24px; gap: 2px;
  justify-content: center;
  border-bottom: 2px solid #C84646;
}
.tab-item {
  padding: 10px 22px; cursor: pointer; color: #70645C;
  font-size: 15px; font-weight: 500;
  border: 1px solid transparent;
  border-bottom: none;
  transition: all 0.3s;
  margin-bottom: -2px;
  position: relative;
}
.tab-item:hover { color: #C84646; background: rgba(200,70,70,0.04); }
.tab-item.active {
  color: #C84646; font-weight: 700;
  border-color: #C84646;
  border-bottom-color: #F9F4EB;
  background: #F9F4EB;
}
.tab-panel { display: none; animation: fadeIn 0.4s; }
.tab-panel.active { display: block; }

/* ===== 时间轴 ===== */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ''; position: absolute; left: 10px; top: 0; bottom: 0;
  width: 2px; background: #C84646;
}
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-dot {
  position: absolute; left: -24px; top: 4px;
  width: 16px; height: 16px;
  background: #C84646;
  border: 3px solid #F9F4EB;
}
.timeline-content {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(200,70,70,0.15);
  padding: 20px;
}
.timeline-content h4 { font-size: 17px; color: #C84646; margin-bottom: 6px; }
.timeline-content .time-tag {
  font-size: 13px; color: #D4A048; margin-bottom: 8px; display: block;
}
.timeline-content p { font-size: 14px; color: #70645C; line-height: 1.8; }

/* ===== 翻转卡片 ===== */
.flip-card {
  perspective: 1000px; height: 280px; cursor: pointer;
}
.flip-card-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  padding: 24px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  border: 1.5px solid rgba(200,70,70,0.2);
  background: rgba(255,255,255,0.9);
}
.flip-card-back {
  background: linear-gradient(135deg, rgba(249,244,235,0.95), rgba(240,224,208,0.9));
  transform: rotateY(180deg);
  border-color: #C84646;
}
.flip-card-front .flip-icon { font-size: 48px; margin-bottom: 12px; }
.flip-card-front h4 { font-size: 20px; color: #C84646; margin-bottom: 8px; }
.flip-card-back h4 { font-size: 18px; color: #C84646; margin-bottom: 12px; }
.flip-card-back p { font-size: 14px; color: #4A3E36; line-height: 1.8; }

/* ===== 图鉴网格 ===== */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.gallery-item {
  background: rgba(255,255,255,0.88);
  border: 1.5px solid rgba(200,70,70,0.15);
  text-align: center; padding: 20px 14px; cursor: pointer;
  transition: all 0.3s;
}
.gallery-item:hover {
  border-color: #C84646;
  box-shadow: 0 4px 12px rgba(200,70,70,0.08);
  transform: translateY(-2px);
}
.gallery-item.locked { opacity: 0.45; filter: grayscale(1); cursor: not-allowed; }
.gallery-item.locked:hover { transform: none; border-color: rgba(200,70,70,0.15); box-shadow: none; }
.gallery-item .item-icon { font-size: 48px; margin-bottom: 10px; }
.gallery-item .item-name { font-size: 14px; font-weight: 600; color: #4A3E36; }
.gallery-item .item-region { font-size: 12px; color: #70645C; margin-top: 4px; }

.gallery-item .item-icon { font-size: 48px; margin-bottom: 10px; min-height: 60px; display: flex; align-items: center; justify-content: center; }
.ill-img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1.5px solid rgba(200,70,70,0.15); }
.gallery-item .item-badge {
  display: inline-block; border: 1px solid rgba(200,70,70,0.3);
  color: #C84646; font-size: 11px; padding: 2px 10px;
  margin-top: 8px;
}

/* ===== 流程步骤 ===== */
.steps-flow { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.step-item {
  padding: 10px 20px; cursor: pointer;
  color: #70645C; font-size: 14px; font-weight: 500;
  border: 1.5px solid rgba(200,70,70,0.2);
  transition: all 0.3s;
}
.step-item:hover { border-color: #C84646; color: #C84646; }
.step-item.active { background: #C84646; color: #FFF; border-color: #C84646; }
.step-number {
  display: inline-block; width: 22px; height: 22px; line-height: 22px;
  text-align: center; font-size: 12px; margin-right: 6px;
  border: 1px solid currentColor;
}
.step-item.active .step-number { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); }
.step-item:not(.active) .step-number { border-color: rgba(200,70,70,0.3); color: #C84646; }

/* ===== 热点 ===== */
.hotspot {
  position: absolute; width: 56px; height: 56px;
  background: rgba(200,70,70,0.15); display: flex; align-items: center;
  justify-content: center; cursor: pointer; color: #fff;
  font-weight: 700; font-size: 14px; z-index: 5;
  transition: all 0.3s;
  border-radius: 50%;
  border: 2px solid #C84646;
  box-shadow: 0 0 0 4px rgba(200,70,70,0.1);
}
.hotspot-img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}
.hotspot:hover .hotspot-img {
  transform: scale(1.15);
}
.hotspot:hover { transform: scale(1.2); }


  50% { transform: scale(1.3); opacity: 0.15; }
  100% { transform: scale(1); opacity: 0.5; }
}
.hotspot-tooltip {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background: #4A3E36; color: #fff; padding: 6px 12px;
  font-size: 12px; white-space: nowrap; margin-bottom: 8px;
  display: none; z-index: 10;
}
.hotspot:hover .hotspot-tooltip { display: block; }




/* ===== 拼图游戏 ===== */
.jigsaw-selector { gap: 8px; }
.jigsaw-ref { align-items: center; max-width: 400px; margin: 0 auto 16px; }
.jigsaw-grid { margin: 0 auto; position: relative; }
.jigsaw-slot { transition: all 0.2s; }
.jigsaw-slot.placed { opacity: 1 !important; border-color: #D4A048 !important; border-style: solid !important; }
.jigsaw-piece {
  transition: all 0.2s; user-select: none;
  background-color: #FFF7ED;
}
.jigsaw-piece:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(212,160,72,0.25) !important; }
.jigsaw-piece:active { cursor: grabbing; }
.jigsaw-info { gap: 16px; }
.game-complete {
  background: rgba(255,247,237,0.95); padding: 24px; border-radius: 12px;
  border: 1.5px solid rgba(212,160,72,0.3); max-width: 400px; margin: 0 auto;
}
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
/* ===== 游戏区 ===== */
.game-layout { text-align: center; }
.drop-zone-wrapper { position: relative; margin: 0 auto; }
.drop-puzzle-zone { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; }
.game-info { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.game-part {
  cursor: grab; user-select: none; padding: 8px 14px;
  background: #fff; display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid rgba(212,160,72,0.3); border-radius: 10px;
  font-size: 13px; transition: all 0.2s; box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.game-part:hover { border-color: #D4A048; box-shadow: 0 4px 12px rgba(212,160,72,0.15); transform: translateY(-1px); }
.game-part:active { cursor: grabbing; }
.game-part-icon { font-size: 22px; line-height: 1; }
.game-part-name { color: #4A3E36; font-weight: 500; }
.game-part.placed { cursor: default; animation: popIn 0.3s ease; }
.game-score { font-size: 28px; margin-bottom: 8px; }

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.game-complete {
  background: rgba(255,247,237,0.95); padding: 24px; border-radius: 12px;
  border: 1.5px solid rgba(212,160,72,0.3); max-width: 400px; margin: 0 auto;
}
.game-controls { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
.btn-outline.btn-sm { padding: 6px 14px; font-size: 13px; }
.flex-center { display: flex; align-items: center; justify-content: center; }

.game-area {
  position: relative; background: rgba(255,255,255,0.85);
  min-height: 500px; padding: 20px;
  border: 1.5px solid rgba(200,70,70,0.2);
}
.game-part {
  cursor: grab; user-select: none; padding: 10px 16px;
  background: #fff; display: inline-block;
  border: 1.5px solid rgba(200,70,70,0.2);
  font-size: 14px;
}
.game-part:active { cursor: grabbing; }
.game-controls { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }

/* ===== 答题 ===== */
.quiz-area { max-width: 700px; margin: 0 auto; }
.quiz-question {
  font-size: 18px; font-weight: 600; margin-bottom: 20px; color: #4A3E36;
  line-height: 1.8;
}
.quiz-option {
  background: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(200,70,70,0.15);
  padding: 14px 20px; margin-bottom: 10px;
  cursor: pointer; transition: all 0.3s; font-size: 15px;
}
.quiz-option:hover { border-color: #C84646; }
.quiz-option.correct {
  border-color: #84B899; background: rgba(132,184,153,0.1);
}
.quiz-option.wrong {
  border-color: #C84646; background: rgba(200,70,70,0.08);
  color: #C84646;
}
.quiz-option.disabled { cursor: not-allowed; }
.quiz-explanation {
  background: rgba(249,244,235,0.9);
  border-left: 3px solid #C84646;
  padding: 16px; margin-top: 16px; font-size: 14px; line-height: 1.8;
}

/* ===== 徽章墙 ===== */
.badge-wall {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 20px;
}
.badge-item { text-align: center; cursor: pointer; }
.badge-icon {
  width: 80px; height: 80px; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center; font-size: 36px;
  transition: all 0.3s;
  border: 2px solid rgba(200,70,70,0.2);
  background: rgba(255,255,255,0.85);
}
.badge-item.unlocked .badge-icon {
  border-color: #C84646;
  background: linear-gradient(135deg, rgba(200,70,70,0.08), rgba(212,160,72,0.08));
}
.badge-item.locked .badge-icon {
  opacity: 0.4; filter: grayscale(1); border-color: rgba(200,70,70,0.08);
}
.badge-name { font-size: 14px; font-weight: 600; color: #4A3E36; }
.badge-desc { font-size: 12px; color: #70645C; margin-top: 4px; }

/* ===== 彩蛋册 ===== */
.egg-wall {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.egg-item {
  background: rgba(255,255,255,0.88);
  border: 1.5px solid rgba(200,70,70,0.15);
  padding: 24px; text-align: center; transition: all 0.3s;
}
.egg-item.unlocked { border-color: #C84646; }
.egg-item.locked { opacity: 0.45; filter: grayscale(1); }
.egg-icon { font-size: 40px; margin-bottom: 10px; }
.egg-item h4 { font-size: 16px; color: #4A3E36; margin-bottom: 8px; }
.egg-item p { font-size: 13px; color: #70645C; line-height: 1.7; }

/* ===== 知识卡片区 ===== */
.knowledge-section {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

/* ===== 匹配区 ===== */
.match-area {
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: center;
}
.match-item {
  background: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(200,70,70,0.15);
  padding: 12px 20px; cursor: grab;
  font-size: 14px; transition: all 0.3s; user-select: none;
}
.match-item:hover { border-color: #C84646; }
.match-item:active { cursor: grabbing; }
.match-target {
  background: rgba(240,235,227,0.8);
  border: 2px dashed rgba(200,70,70,0.2);
  padding: 20px; min-height: 60px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #70645C;
}

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 2000; display: none; align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: #F9F4EB; max-width: 560px;
  width: 90%; padding: 36px; position: relative;
  border: 2px solid #C84646;
  box-shadow: 0 0 0 4px #F9F4EB, 0 0 0 6px #C84646, 0 8px 32px rgba(0,0,0,0.2);
  animation: modalIn 0.3s; max-height: 80vh; overflow-y: auto;
}
@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-close {
  position: absolute; top: 12px; right: 16px;
  cursor: pointer; font-size: 22px; color: #70645C;
  background: none; border: none;
}
.modal-close:hover { color: #C84646; }
.modal-icon { font-size: 48px; margin-bottom: 12px; text-align: center; }
.modal-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px; font-weight: 700; margin-bottom: 12px; color: #C84646;
  text-align: center;
}
.modal-body p { font-size: 15px; color: #4A3E36; line-height: 1.9; margin-bottom: 12px; }
.modal-footer { margin-top: 20px; text-align: center; }

/* ===== Toast ===== */
.toast-container {
  position: fixed; bottom: 30px; left: 50%;
  transform: translateX(-50%); z-index: 3000;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.toast {
  padding: 10px 24px; color: #fff;
  font-size: 14px; font-weight: 500;
  animation: slideUp 0.3s;
  border: 1px solid;
}
.toast.success { background: #C84646; border-color: #b33a3a; }
.toast.info { background: #6293B8; border-color: #5283a8; }
.toast.error { background: #4A3E36; border-color: #3a2e26; }
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== 收藏按钮 ===== */
.fav-btn { cursor: pointer; font-size: 20px; color: #DCD2C8; transition: all 0.3s; }
.fav-btn.active { color: #C84646; }
.fav-btn:hover { transform: scale(1.2); }

/* ===== 筛选栏 ===== */
.filter-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer {
  margin-top: 60px;
  background: linear-gradient(180deg, #F9F4EB, #f0e0d0);
  color: #70645C;
  text-align: center; padding: 40px 20px;
  font-size: 14px; line-height: 2;
  border-top: 2px solid #C84646;
  position: relative;
}
.site-footer::before {
  content: '☁ ～ ☁ ～ ☁ ～ ☁ ～ ☁ ～ ☁ ～ ☁';
  position: absolute; top: -12px; left: 0; right: 0;
  text-align: center; font-size: 14px; color: rgba(200,70,70,0.2);
  letter-spacing: 8px;
  background: #F9F4EB;
  padding: 0 20px;
  width: fit-content;
  margin: 0 auto;
}
.site-footer .footer-logo {
  font-family: 'Noto Serif SC', serif; font-size: 18px;
  color: #C84646; margin-bottom: 8px; letter-spacing: 4px;
}

/* ===== 工具类 ===== */
.text-center { text-align: center; }
.text-gold { color: #D4A048; }
.text-red { color: #C84646; }
.text-brown { color: #4A3E36; }
.text-gray { color: #70645C; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }

/* ===== 淡入 ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; animation: fadeIn 0.5s forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ===== 关键词 ===== */
.keywords-wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.keyword {
  padding: 6px 16px; border: 1px solid rgba(200,70,70,0.2);
  color: #C84646; font-size: 13px; cursor: pointer;
  transition: all 0.3s;
}
.keyword:hover { background: #C84646; color: #fff; }

/* ===== 详情行 ===== */
.detail-row { display: flex; gap: 8px; margin-bottom: 8px; }
.detail-label { font-weight: 600; color: #4A3E36; min-width: 80px; font-size: 14px; }
.detail-value { color: #70645C; font-size: 14px; }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F9F4EB; }
::-webkit-scrollbar-thumb { background: #C84646; border-radius: 0; }

/* ===== 空状态 ===== */
.empty-state { text-align: center; padding: 60px 20px; color: #70645C; }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }

/* ===== 答题结果 ===== */
.result-score { font-size: 48px; font-weight: 700; color: #C84646; }
.result-detail { font-size: 16px; color: #70645C; margin-top: 8px; }

/* ===== 装饰分隔 ===== */
.separator {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin: 40px 0;
}
.separator::before, .separator::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, #C84646, transparent);
}
.separator span { color: #C84646; font-size: 16px; }

/* ===== 印章风格图标 ===== */
.stamp-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border: 2px solid #C84646;
  color: #C84646;
  font-family: 'Noto Serif SC', serif;
  font-size: 22px; font-weight: 700;
  background: rgba(255,248,240,0.9);
  position: relative;
  flex-shrink: 0;
}
.stamp-icon.sm { width: 36px; height: 36px; font-size: 16px; }
.stamp-icon.lg { width: 64px; height: 64px; font-size: 28px; }
.stamp-icon.xl { width: 80px; height: 80px; font-size: 36px; }
.stamp-seal {
  transform: rotate(-2deg);
  box-shadow: 1px 1px 4px rgba(200,70,70,0.12);
}
.stamp-round {
  border-radius: 50%;
}
.stamp-icon.gold {
  border-color: #D4A048;
  color: #D4A048;
  background: rgba(255,248,240,0.85);
}
.stamp-icon.filled {
  background: #C84646;
  color: #FFF;
}
.stamp-icon.filled.gold {
  background: #D4A048;
  color: #4A3E36;
}






/* ===== 点击提示图标 ===== */
.click-tip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #D4A048;
  background: rgba(212,160,72,0.10);
  border: 1px solid rgba(212,160,72,0.35);
  border-radius: 20px;
  padding: 2px 12px;
  margin-top: 10px;
  letter-spacing: 1px;
  transition: all 0.3s;
}
.entry-card:hover .click-tip { background: #D4A048; color: #fff; }
.card:hover .click-tip { background: rgba(212,160,72,0.18); }

/* 翻转卡片提示 */
.flip-hint {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 16px;
  color: #D4A048;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  z-index: 2;
  pointer-events: none;
}

/* 步骤切换图标 */
.step-icon { font-size: 18px; margin-right: 6px; }

/* 热点放大提示 */
.hotspot-zoom {
  position: absolute;
  bottom: 4px; right: 4px;
  font-size: 11px;
  color: #fff;
  background: rgba(200,70,70,0.85);
  border-radius: 10px;
  padding: 1px 6px;
  pointer-events: none;
  white-space: nowrap;
}

/* Banner 彩蛋提示 */
.banner-egg-hint {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 16px;
  font-size: 13px;
  color: #C84646;
  background: rgba(249,244,235,0.75);
  border: 1px dashed rgba(200,70,70,0.4);
  border-radius: 20px;
  letter-spacing: 2px;
}
.banner-egg-hint:hover { background: rgba(200,70,70,0.9); color: #fff; }

/* 图鉴卡片查看提示 */
.gallery-item .view-tip {
  position: absolute;
  bottom: 8px; right: 8px;
  font-size: 12px;
  color: #fff;
  background: rgba(200,70,70,0.8);
  border-radius: 12px;
  padding: 2px 10px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.gallery-item:hover .view-tip { opacity: 1; }
.gallery-item { position: relative; }

/* 答题选项图标 */
.quiz-option { display: flex; align-items: center; gap: 8px; }
.quiz-option::before { content: "👆"; font-size: 14px; opacity: 0.6; }

/* 关键词图标 */
.keyword { display: inline-flex; align-items: center; gap: 6px; }

/* ===== Logo 图片 ===== */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo-img {
  height: 36px;
  width: 36px;
  object-fit: contain;
  display: block;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.footer-logo-img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  display: block;
  opacity: 0.85;
}

/* ===== 导航链接图标 ===== */
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-right: 5px;
  vertical-align: -2px;
}
.nav-links a {
  display: flex;
  align-items: center;
}

/* ===== 页面标题图标 ===== */
.page-title {
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-title-icon {
  font-size: 30px;
  margin-right: 10px;
  display: inline-block;
}

/* ===== 板块标题图标 ===== */
.section-icon {
  font-size: 22px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: -3px;
}
/* ===== 扫码访问悬浮组件 ===== */
.qr-fab{position:fixed;right:24px;bottom:24px;z-index:9999;display:flex;align-items:center;gap:7px;padding:10px 18px;background:linear-gradient(135deg,#FFF7ED,#F9F4EB);border:1.5px solid #D4A048;border-radius:999px;box-shadow:0 4px 14px rgba(74,62,54,.18);color:#C84646;font-size:14px;font-family:inherit;cursor:pointer;transition:transform .2s,box-shadow .2s,border-color .2s;user-select:none}
.qr-fab:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(212,160,72,.35);border-color:#C84646}
.qr-fab-icon{font-size:18px}
.qr-overlay{position:fixed;inset:0;z-index:10000;background:rgba(74,62,54,.45);display:flex;align-items:center;justify-content:center;animation:qrFade .2s ease}
.qr-modal{position:relative;width:330px;background:#FFF7ED;border:2px solid #D4A048;border-radius:16px;padding:24px 20px 20px;text-align:center;box-shadow:0 12px 40px rgba(74,62,54,.3)}
.qr-close{position:absolute;top:8px;right:12px;border:none;background:none;font-size:24px;color:#70645C;cursor:pointer;line-height:1}
.qr-close:hover{color:#C84646}
.qr-modal-title{font-size:18px;font-weight:700;color:#C84646;margin-bottom:14px;font-family:"Noto Serif SC","Source Han Serif SC","SimSun",serif}
.qr-box{width:250px;height:250px;margin:0 auto 12px;background:#fff;border:1px solid #DCD2C8;border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.qr-box img,.qr-box canvas{max-width:100%;max-height:100%}
.qr-url{font-size:13px;color:#4A3E36;word-break:break-all;margin-bottom:10px;font-family:Consolas,Menlo,monospace}
.qr-tip{font-size:12px;color:#70645C;line-height:1.8}
@keyframes qrFade{from{opacity:0}to{opacity:1}}
