/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #2563eb;
  --primary-light: #38bdf8;
  --primary-dark: #1e40af;
  --accent: #6366f1;
  --accent-light: #e0e7ff;
  --accent2: #8b5cf6;
  --rose: #ec4899;
  --bg-light: #f0f9ff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-glass: rgba(255, 255, 255, 0.75);
  --text: #0f172a;
  --text-dim: #475569;
  --text-light: #94a3b8;
  --glow: rgba(56, 189, 248, 0.35);
  --shadow: rgba(37, 99, 235, 0.1);
  --gold: #c8862a;
  --cyan: #38bdf8;
  --sakura: #ec4899;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: 'Noto Sans SC', sans-serif;
  background: var(--bg-light);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

/* ===== Loader ===== */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe, #e0e7ff);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; }
.loader-ring {
  width: 60px; height: 60px; margin: 0 auto 20px;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}
.loader-text { font-size: 14px; letter-spacing: 4px; color: var(--primary); margin-bottom: 16px; }
.loader-bar { width: 120px; height: 3px; background: rgba(0,0,0,0.08); border-radius: 3px; overflow: hidden; }
.loader-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px; animation: loadBar 1.5s ease-out forwards;
}
@keyframes loadBar { to { width: 100%; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Particles Canvas ===== */
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ===== 樱花飘落 ===== */
.sakura-container {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; overflow: hidden;
}
.sakura-petal {
  position: absolute; top: -20px;
  width: 12px; height: 12px;
  background: var(--sakura);
  border-radius: 50% 0 50% 50%;
  opacity: 0.5;
  animation: sakuraFall linear infinite;
}
@keyframes sakuraFall {
  0% { transform: translateY(-20px) rotate(0deg) translateX(0); opacity: 0.6; }
  25% { transform: translateY(25vh) rotate(90deg) translateX(30px); }
  50% { transform: translateY(50vh) rotate(180deg) translateX(-20px); opacity: 0.4; }
  75% { transform: translateY(75vh) rotate(270deg) translateX(25px); }
  100% { transform: translateY(105vh) rotate(360deg) translateX(-10px); opacity: 0; }
}

/* ===== Navigation Dots ===== */
.nav-dots {
  position: fixed; right: 16px; top: 50%;
  transform: translateY(-50%); z-index: 100;
  display: flex; flex-direction: column; gap: 12px;
}
.dot {
  width: 10px; height: 10px; border-radius: 2px;
  background: rgba(56, 189, 248, 0.25);
  cursor: pointer; transition: all 0.4s;
  position: relative;
}
.dot.active {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.5);
  transform: scale(1.3) rotate(45deg);
}
.dot::after {
  content: ''; position: absolute; inset: -4px;
  border: 1px solid transparent; border-radius: 50%;
  transition: border-color 0.3s;
}
.dot.active::after { border-color: var(--accent); }

/* ===== Audio Button ===== */
.audio-btn {
  position: fixed; top: 16px; right: 16px; z-index: 100;
  width: 40px; height: 40px; cursor: pointer;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(192, 132, 252, 0.25);
  box-shadow: 0 2px 8px var(--shadow), 0 0 12px rgba(192, 132, 252, 0.08);
  transition: all 0.3s;
}
.audio-btn:hover { background: var(--primary); }
.audio-btn:hover .music-note { color: #fff; }
.music-note {
  font-size: 22px; color: var(--primary);
  line-height: 1; transition: color 0.3s;
  display: block;
}
.audio-btn:not(.paused) .music-note {
  animation: musicSpin 2.5s linear infinite;
}
.audio-btn.paused .music-note { opacity: 0.5; }
@keyframes musicSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===== Page Container ===== */
.page-container { position: relative; width: 100%; height: 100%; z-index: 1; }

/* ===== Sections ===== */
.section {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(40px);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.55s;
}
.section.active { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.section.exit-up { opacity: 0; transform: translateY(-40px); }

.section-inner {
  width: 100%; max-width: 480px;
  padding: 60px 20px 40px;
  overflow: hidden;
}

/* ===== Animation Items ===== */
.anim-item {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.section.active .anim-item { opacity: 1; transform: translateY(0); }
.section.active .anim-item[data-delay="100"] { transition-delay: 0.05s; }
.section.active .anim-item[data-delay="200"] { transition-delay: 0.1s; }
.section.active .anim-item[data-delay="300"] { transition-delay: 0.15s; }
.section.active .anim-item[data-delay="400"] { transition-delay: 0.2s; }
.section.active .anim-item[data-delay="500"] { transition-delay: 0.25s; }
.section.active .anim-item[data-delay="600"] { transition-delay: 0.3s; }
.section.active .anim-item[data-delay="800"] { transition-delay: 0.35s; }

/* ===== Section Title ===== */
.section-title {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 24px; position: relative;
}
.section-title::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 50px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.5;
}
.title-deco {
  font-size: 48px; font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; opacity: 0.4;
}
.title-text { font-size: 28px; font-weight: 700; color: var(--text); }

/* ===== Hero Section ===== */
.section-hero {
  flex-direction: column;
  background: linear-gradient(180deg, #f0f9ff 0%, #dbeafe 40%, #e0e7ff 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(56, 189, 248, 0.18), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(99, 102, 241, 0.12), transparent 50%);
}
/* 科技网格 + 扫描线 */
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, transparent 95%, rgba(56, 189, 248, 0.1) 100%),
    linear-gradient(90deg, transparent 95%, rgba(56, 189, 248, 0.1) 100%);
  background-size: 40px 40px;
  opacity: 0.6;
}
/* 漫画速度线装饰 */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(56,189,248,0.03) 1deg, transparent 2deg);
  opacity: 0.5;
}
/* 流光效果 */
.hero-flow-light {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
}
.hero-flow-light::before {
  content: '';
  position: absolute;
  width: 200%; height: 100%;
  top: 0; left: -50%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.05) 20%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0.05) 80%,
    transparent 100%
  );
  transform: skewX(-15deg);
  animation: flowLight 8s ease-in-out infinite;
}
@keyframes flowLight {
  0%, 100% { transform: translateX(-100%) skewX(-15deg); opacity: 0; }
  50% { transform: translateX(100%) skewX(-15deg); opacity: 1; }
}
.hero-content { position: relative; text-align: center; z-index: 2; }
.hero-badge {
  display: inline-block; padding: 6px 20px;
  border: 1.5px solid var(--primary);
  border-radius: 20px; font-size: 14px;
  letter-spacing: 2px; color: var(--primary);
  margin-bottom: 24px;
  animation: badgePulse 2s ease-in-out infinite;
  background: rgba(56, 189, 248, 0.1);
  position: relative;
}
.hero-badge::before, .hero-badge::after {
  content: ''; position: absolute; width: 6px; height: 6px;
  border: 1px solid var(--accent); opacity: 0.6;
}
.hero-badge::before { top: -3px; left: -3px; border-right: none; border-bottom: none; }
.hero-badge::after { bottom: -3px; right: -3px; border-left: none; border-top: none; }
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
}
.hero-title { font-size: 56px; line-height: 1.1; margin-bottom: 16px; color: var(--primary-dark); text-shadow: 0 2px 8px rgba(56, 189, 248, 0.3); }
.title-line { display: block; }
.title-line.accent {
  background: linear-gradient(90deg, var(--accent), var(--primary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { font-size: 14px; letter-spacing: 6px; color: var(--text-dim); margin-bottom: 32px; }
.hero-date {
  font-size: 18px; font-weight: 300;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.date-sep { color: var(--accent); }
.scroll-hint {
  margin-top: 48px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-dim); letter-spacing: 2px;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: 0.5; }
}

/* Floating Elements */
.floating-elements { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.float-star {
  position: absolute; font-size: 20px;
  color: var(--primary-light); opacity: 0.3;
  animation: floatStar 6s ease-in-out infinite;
}
.s1 { top: 15%; left: 10%; animation-delay: 0s; }
.s2 { top: 25%; right: 15%; animation-delay: 1s; font-size: 16px; }
.s3 { bottom: 30%; left: 20%; animation-delay: 2s; font-size: 24px; }
.s4 { top: 40%; right: 10%; animation-delay: 3s; }
.s5 { bottom: 20%; right: 25%; animation-delay: 4s; font-size: 14px; }
@keyframes floatStar {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}
.float-circle {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.c1 { width: 200px; height: 200px; top: -50px; left: -80px; animation: floatCircle 8s ease-in-out infinite; }
.c2 { width: 150px; height: 150px; bottom: -30px; right: -60px; animation: floatCircle 10s ease-in-out infinite reverse; }
@keyframes floatCircle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10px, -15px) scale(1.05); }
}

/* ===== About Section ===== */
.section-about { background: linear-gradient(180deg, #f0f9ff 0%, #dbeafe 100%); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-card {
  position: relative; padding: 20px 14px;
  background: var(--bg-card);
  border: 1px solid rgba(192, 132, 252, 0.1);
  border-radius: 16px; text-align: center;
  overflow: hidden; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  box-shadow: 0 2px 12px var(--shadow);
  backdrop-filter: blur(10px);
}
.about-card::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 40%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.about-card:hover::before { opacity: 1; }
.about-card:active { transform: scale(0.96); }
.about-card:hover { box-shadow: 0 4px 20px var(--shadow); transform: translateY(-2px); border-color: rgba(56, 189, 248, 0.25); }
.card-icon { font-size: 32px; margin-bottom: 10px; }
.about-card h3 { font-size: 14px; margin-bottom: 6px; }
.about-card p { font-size: 11px; color: var(--text-dim); line-height: 1.5; }
.card-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--glow), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.about-card:hover .card-glow { opacity: 1; }

/* ===== Schedule Section ===== */
.section-schedule { background: linear-gradient(180deg, #dbeafe 0%, #e0e7ff 100%); }
.schedule-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tab-btn {
  flex: 1; padding: 10px 8px;
  background: var(--bg-card);
  border: 1px solid rgba(192, 132, 252, 0.1);
  border-radius: 12px; color: var(--text-dim);
  font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.3s;
  font-family: inherit; box-shadow: 0 1px 4px var(--shadow);
}
.tab-btn small { font-size: 10px; font-weight: 400; display: block; margin-top: 2px; }
.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 12px rgba(192, 132, 252, 0.3), 0 0 20px rgba(192, 132, 252, 0.15);
}
.timeline { position: relative; padding-left: 60px; }
.timeline::before {
  content: ''; position: absolute; left: 50px; top: 0; bottom: 0;
  width: 2px; background: rgba(192, 132, 252, 0.15);
}
.timeline-item {
  position: relative; margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(192, 132, 252, 0.06);
  transition: all 0.3s; display: none;
  box-shadow: 0 2px 8px var(--shadow);
}
.timeline-item.visible { display: block; }
.timeline-item:active { transform: scale(0.98); }
.timeline-item .time {
  position: absolute; left: -60px; top: 12px;
  font-size: 12px; font-weight: 700;
  color: var(--primary); width: 44px; text-align: right;
}
.timeline-item::before {
  content: ''; position: absolute; left: -14px; top: 16px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 8px var(--glow);
}
.timeline-item h4 { font-size: 14px; margin-bottom: 4px; }
.timeline-item p { font-size: 12px; color: var(--text-dim); }

/* ===== Vote Section ===== */
.section-vote { background: linear-gradient(180deg, #e0e7ff 0%, #f0f9ff 100%); }
.vote-desc { text-align: center; color: var(--text-dim); margin-bottom: 20px; font-size: 14px; }
.vote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vote-card {
  text-align: center; cursor: pointer;
  padding: 14px 10px; border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(192, 132, 252, 0.1);
  transition: all 0.3s;
  box-shadow: 0 2px 12px var(--shadow);
}
.vote-card:active { transform: scale(0.95); }
.vote-card.voted { border-color: var(--accent); box-shadow: 0 0 20px rgba(192, 132, 252, 0.3); }
.vote-img {
  width: 72px; height: 72px; border-radius: 16px;
  margin: 0 auto 10px; overflow: hidden;
  transition: transform 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.vote-img img { width: 100%; height: 100%; object-fit: cover; }
.vote-card:hover .vote-img { transform: scale(1.08) rotate(2deg); }
.vote-card h4 { font-size: 13px; margin-bottom: 8px; }
.vote-bar { height: 4px; background: rgba(56, 189, 248,0.1); border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.vote-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.vote-count { font-size: 11px; color: var(--text-dim); }

/* ===== Anime Showcase - 沉浸式大图设计 ===== */
.section-showcase {
  overflow: hidden;
}
.section-showcase .section-inner {
  max-width: 100%; padding: 0;
  width: 100%; height: 100%;
  overflow: hidden;
}

.showcase-wrapper {
  position: relative; width: 100%; height: 100%;
  overflow: hidden;
}

/* 全屏背景图 */
.showcase-bg-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: background-image 0.6s ease;
  filter: brightness(0.95);
  transform: scale(1.02);
}
.showcase-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,248,240,0.25) 0%, rgba(255,248,240,0.7) 35%, rgba(255,248,240,0.95) 100%);
  z-index: 1;
}

/* 装饰粒子 */
.showcase-particles {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none; overflow: hidden;
}
.showcase-particle {
  position: absolute; border-radius: 50%;
  opacity: 0.12;
  animation: showcaseFloat 8s ease-in-out infinite;
}
@keyframes showcaseFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.1); }
}

/* 内容层 */
.showcase-content {
  position: relative; z-index: 3;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  padding: 44px 20px 24px;
}

.showcase-header { text-align: center; margin-bottom: 6px; }
.showcase-header .section-title { justify-content: center; margin-bottom: 0; }

/* 切换容器 */
.showcase-slider { flex: 1; position: relative; overflow: hidden; }

.showcase-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 0 12px;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.showcase-slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.showcase-slide.exit-left { opacity: 0; transform: translateX(-40px); }

/* 左侧信息 */
.showcase-info { flex: 1; min-width: 0; }
.showcase-anime-title {
  font-size: 26px; font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 2px;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(56, 189, 248,0.15);
}
.showcase-anime-en {
  font-size: 11px; letter-spacing: 3px;
  color: var(--text-dim);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.showcase-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.showcase-tag {
  padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600;
  background: rgba(56, 189, 248,0.1);
  color: var(--primary-dark);
  border: 1px solid rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(4px);
}
.showcase-story {
  font-size: 12.5px; line-height: 1.85;
  color: var(--text);
  opacity: 0.9;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.showcase-chars { display: flex; gap: 6px; flex-wrap: wrap; }
.showcase-char {
  display: flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 12px;
  background: rgba(56, 189, 248,0.08);
  border: 1px solid rgba(192, 132, 252, 0.15);
  font-size: 11px; color: var(--text);
  backdrop-filter: blur(4px);
}
.showcase-char-icon { font-size: 13px; }

/* 经典台词气泡 */
.showcase-voice-bubble {
  margin-top: 10px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248,0.12), rgba(99,102,241,0.08));
  border: 1px solid rgba(56, 189, 248,0.2);
  border-radius: 12px;
  font-size: 12px;
  color: var(--text);
  position: relative;
  max-width: 100%;
}
.showcase-voice-bubble::before {
  content: '';
  position: absolute;
  left: 20px; top: -6px;
  width: 12px; height: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248,0.12), rgba(99,102,241,0.08));
  border-left: 1px solid rgba(56, 189, 248,0.2);
  border-top: 1px solid rgba(56, 189, 248,0.2);
  transform: rotate(45deg);
}
.showcase-voice-name {
  color: var(--primary);
  font-weight: 600;
  margin-right: 2px;
}
.showcase-voice-text {
  color: var(--text);
  font-style: italic;
}

/* 右侧大图海报 */
.showcase-visual {
  width: 140px; flex-shrink: 0;
  display: flex; flex-direction: column;
  align-items: center;
  margin-left: 10px;
}
.showcase-poster-card {
  position: relative;
  width: 120px; height: 170px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.6s ease;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  transform: rotate(2deg);
}
.showcase-slide.active .showcase-poster-card {
  transform: rotate(0deg);
}
.showcase-poster-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.showcase-poster-overlay {
  position: absolute; inset: 0;
  opacity: 0.1;
  mix-blend-mode: overlay;
}
.showcase-poster-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.5);
  pointer-events: none;
}
.showcase-visual-label {
  font-size: 10px; color: var(--text-dim);
  letter-spacing: 1px; text-align: center;
  background: rgba(250,245,255,0.8);
  padding: 2px 10px; border-radius: 8px;
  backdrop-filter: blur(4px);
}

/* 底部切换控制 */
.showcase-controls {
  display: flex; align-items: center;
  justify-content: center; gap: 14px;
  padding: 8px 0 0;
}
.showcase-arrow {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s;
  box-shadow: 0 2px 8px var(--shadow);
  color: var(--primary); font-size: 16px;
  backdrop-filter: blur(4px);
}
.showcase-arrow:active { transform: scale(0.9); }
.showcase-arrow:hover { background: var(--primary); color: #fff; }
.showcase-dots { display: flex; gap: 6px; }
.showcase-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(56, 189, 248, 0.25);
  cursor: pointer; transition: all 0.4s;
}
.showcase-dot.active {
  width: 20px; border-radius: 4px;
  background: var(--primary);
}

/* ===== Photo Section ===== */
.section-photo { background: linear-gradient(180deg, #dbeafe 0%, #e0e7ff 100%); }
.photo-desc { text-align: center; color: var(--text-dim); margin-bottom: 20px; font-size: 14px; }
.photo-booth { position: relative; }
.photo-step { display: none; }
.photo-step.active { display: block; animation: fadeInUp 0.5s ease-out; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.upload-area {
  border: 2px dashed rgba(192, 132, 252, 0.3);
  border-radius: 20px; padding: 48px 20px;
  text-align: center; cursor: pointer;
  transition: all 0.3s;
  background: rgba(192, 132, 252, 0.03);
}
.upload-area:hover, .upload-area.dragover { border-color: var(--primary); background: rgba(192, 132, 252, 0.08); }
.upload-icon { margin-bottom: 16px; }
.upload-icon svg { width: 48px; height: 48px; color: var(--primary); }
.upload-area p { font-size: 16px; margin-bottom: 8px; }
.upload-area small { font-size: 12px; color: var(--text-dim); }
.preview-container { text-align: center; }
.preview-photo {
  width: 120px; height: 120px; border-radius: 16px;
  overflow: hidden; margin: 0 auto 16px;
  border: 2px solid var(--primary);
}
.preview-photo img { width: 100%; height: 100%; object-fit: cover; }
.step-label { font-size: 14px; margin-bottom: 16px; color: var(--text-dim); }
.character-select {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; justify-content: center; margin-bottom: 24px;
  max-width: 320px; margin-left: auto; margin-right: auto;
}
.char-option {
  text-align: center; cursor: pointer;
  padding: 8px; border-radius: 12px;
  border: 2px solid transparent; transition: all 0.3s;
}
.char-option.selected { border-color: var(--primary); background: rgba(192, 132, 252, 0.08); }
.char-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  margin: 0 auto 4px;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: 2px solid rgba(255,255,255,0.6);
}
.char-option small { font-size: 11px; color: var(--text-dim); }
.btn-generate {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border: none; border-radius: 30px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 16px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(192, 132, 252, 0.3);
}
.btn-generate:active { transform: scale(0.95); }
.btn-generate:hover { box-shadow: 0 6px 24px rgba(192, 132, 252, 0.4); }
.btn-sparkle { animation: sparkle 1.5s ease-in-out infinite; }
@keyframes sparkle { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.2) rotate(15deg); } }
.generating { text-align: center; padding: 40px 0; }
.gen-animation { position: relative; width: 100px; height: 100px; margin: 0 auto 24px; }
.gen-ring {
  position: absolute; inset: 0;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  border-radius: 50%; animation: spin 1.2s linear infinite;
}
.gen-ring.delay1 { inset: 8px; border-top-color: var(--accent); animation-duration: 1.8s; animation-direction: reverse; }
.gen-ring.delay2 { inset: 16px; border-top-color: var(--accent2); animation-duration: 2.4s; }
.gen-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; animation: genBounce 1s ease-in-out infinite;
}
@keyframes genBounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.gen-text { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; }
.gen-progress { width: 200px; height: 4px; margin: 0 auto 8px; background: rgba(56, 189, 248,0.1); border-radius: 4px; overflow: hidden; }
.gen-progress-fill { height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.3s; }
.gen-percent { font-size: 12px; color: var(--primary); }
.result-container { text-align: center; }
.result-frame {
  width: 100%; max-width: 320px; margin: 0 auto 20px;
  border-radius: 16px; overflow: hidden;
  border: 2px solid var(--primary);
  box-shadow: 0 8px 32px var(--shadow);
}
.result-frame canvas { width: 100%; display: block; }
.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border: none; border-radius: 20px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: all 0.2s;
}
.btn-action svg { width: 16px; height: 16px; }
.btn-save { background: var(--primary); color: #fff; }
.btn-retry { background: var(--bg-card); color: var(--text); border: 1px solid rgba(59,130,196,0.15); }
.btn-action:active { transform: scale(0.95); }

/* ===== End Section ===== */
.section-end { background: linear-gradient(180deg, #e0e7ff 0%, #dbeafe 100%); }
.end-content { text-align: center; }
.end-card {
  background: var(--bg-card);
  border: 1px solid rgba(192, 132, 252, 0.1);
  border-radius: 20px; padding: 28px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px var(--shadow);
  backdrop-filter: blur(10px);
}
.end-info { margin-bottom: 24px; }
.info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(192, 132, 252, 0.06); font-size: 14px; }
.info-row:last-child { border: none; }
.info-label { color: var(--text-dim); }
.info-value { font-weight: 600; }
.countdown { display: flex; gap: 16px; justify-content: center; margin-bottom: 24px; }
.countdown-item { text-align: center; }
.cd-num {
  display: block; font-size: 32px; font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cd-label { font-size: 11px; color: var(--text-dim); }
.btn-ticket {
  display: inline-block; padding: 14px 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none; border-radius: 30px;
  color: #fff; font-size: 16px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: all 0.3s;
  animation: ticketPulse 2s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(192, 132, 252, 0.3);
}
.btn-ticket:hover { transform: scale(1.05); }
@keyframes ticketPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.4); } 50% { box-shadow: 0 0 0 12px rgba(192, 132, 252, 0); } }
.end-footer { margin-top: 32px; }
.end-footer p { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.social-links a { color: var(--primary); text-decoration: none; }

/* ===== Venue Map ===== */
.section-venue-map { background: linear-gradient(180deg, #e0e7ff 0%, #f0f9ff 100%); }
.section-venue-map .section-inner { padding-top: 40px; padding-bottom: 28px; }
.section-venue-map .section-title { margin-bottom: 12px; }
.section-venue-map .title-deco { font-size: 36px; }
.section-venue-map .title-text { font-size: 22px; }
.venue-map-desc { text-align: center; color: var(--text-dim); font-size: 13px; margin-bottom: 12px; }
.venue-map-container { position: relative; width: 100%; max-width: 420px; margin: 0 auto; }
#venueMapCanvas { width: 100%; border-radius: 14px; background: #f0f4f8; box-shadow: 0 4px 20px rgba(37,99,235,0.08), inset 0 0 0 2px rgba(56, 189, 248,0.12); display: block; }
.venue-map-legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.legend-item { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--text-dim); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.venue-area-card {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: #fff; border-radius: 14px; padding: 14px 16px; width: 82%; max-width: 300px;
  box-shadow: 0 6px 24px rgba(37,99,235,0.12); opacity: 0; pointer-events: none;
  transition: all 0.3s ease; z-index: 10; border: 1px solid rgba(56, 189, 248,0.12);
}
.venue-area-card.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.area-card-close { position: absolute; top: 8px; right: 12px; font-size: 18px; color: var(--text-dim); cursor: pointer; line-height: 1; }
.area-card-icon { font-size: 24px; margin-bottom: 4px; }
.venue-area-card h3 { font-size: 15px; margin-bottom: 3px; }
.venue-area-card p { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; line-height: 1.4; }
.area-card-crowd { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-dim); }
.crowd-bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(56, 189, 248,0.1); overflow: hidden; }
.crowd-bar::after { content: ''; display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #6366f1, #ff6b6b); width: var(--crowd-w, 0%); transition: width 0.4s; }

/* ===== Chatbot ===== */
.chatbot-btn {
  position: fixed; bottom: 90px; right: 16px; z-index: 150;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 16px rgba(192, 132, 252, 0.4);
  transition: all 0.3s; overflow: visible;
  animation: charFloat 3s ease-in-out infinite;
}
@keyframes charFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.chatbot-btn:active { transform: scale(0.92); animation: none; }
.chatbot-badge {
  position: absolute; top: -4px; right: -4px;
  background: #ff6b6b; color: #fff; font-size: 9px; font-weight: 700;
  padding: 2px 5px; border-radius: 8px; line-height: 1.2;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* 动漫角色 - 浮动按钮版 */
.anime-char-btn { position: relative; width: 48px; height: 48px; }
.anime-char-body {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 32px; background: #ffecd2;
  border-radius: 50% 50% 45% 45%; overflow: visible;
}
.anime-char-body .anime-hair {
  position: absolute; top: -4px; left: -3px; right: -3px; height: 18px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50% 50% 30% 30%;
  animation: hairSway 4s ease-in-out infinite;
}
@keyframes hairSway { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(2deg); } }
.anime-char-body .anime-face { position: absolute; top: 8px; left: 0; right: 0; bottom: 0; }
.anime-eye {
  position: absolute; top: 4px; width: 6px; height: 7px;
  background: #2d3748; border-radius: 50%;
  animation: blink 4s ease-in-out infinite;
}
.anime-eye::after {
  content: ''; position: absolute; top: 1px; left: 1px;
  width: 2px; height: 2px; background: #fff; border-radius: 50%;
}
.anime-eye.left { left: 6px; }
.anime-eye.right { right: 6px; }
@keyframes blink { 0%,92%,100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
.anime-mouth {
  position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 3px; background: #e53e3e;
  border-radius: 0 0 50% 50%;
}
.anime-blush {
  position: absolute; bottom: 6px; width: 6px; height: 3px;
  background: rgba(255, 150, 150, 0.5); border-radius: 50%;
}
.anime-blush.left { left: 2px; }
.anime-blush.right { right: 2px; }
.anime-char-hand {
  position: absolute; bottom: 0; right: 2px;
  width: 10px; height: 10px; background: #ffecd2;
  border-radius: 50%;
  animation: wave 2s ease-in-out infinite;
}
@keyframes wave { 0%,100% { transform: rotate(0deg); } 25% { transform: rotate(15deg); } 75% { transform: rotate(-10deg); } }

/* 动漫角色 - 头像版 */
.anime-char-avatar {
  position: relative; width: 40px; height: 40px;
  background: #ffecd2; border-radius: 50%;
  overflow: visible;
}
.anime-char-avatar .anime-hair {
  position: absolute; top: -3px; left: -2px; right: -2px; height: 22px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50% 50% 30% 30%;
}
.anime-char-avatar .anime-face { position: absolute; top: 10px; left: 0; right: 0; bottom: 0; }
.anime-char-avatar .anime-eye {
  position: absolute; top: 3px; width: 5px; height: 6px;
  background: #2d3748; border-radius: 50%;
  animation: blink 3.5s ease-in-out infinite;
}
.anime-char-avatar .anime-eye::after {
  content: ''; position: absolute; top: 1px; left: 1px;
  width: 2px; height: 2px; background: #fff; border-radius: 50%;
}
.anime-char-avatar .anime-eye.left { left: 7px; }
.anime-char-avatar .anime-eye.right { right: 7px; }
.anime-char-avatar .anime-mouth {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 3px; background: #e53e3e;
  border-radius: 0 0 50% 50%;
}
.anime-char-avatar .anime-mouth.talking {
  animation: talkMouth 0.4s ease-in-out infinite alternate;
}
@keyframes talkMouth { 0% { height: 2px; width: 4px; } 100% { height: 5px; width: 6px; } }
.anime-char-avatar .anime-blush {
  position: absolute; bottom: 5px; width: 5px; height: 3px;
  background: rgba(255, 150, 150, 0.5); border-radius: 50%;
}
.anime-char-avatar .anime-blush.left { left: 3px; }
.anime-char-avatar .anime-blush.right { right: 3px; }

.chatbot-btn svg { width: 24px; height: 24px; }
.chatbot-panel {
  position: fixed; bottom: 150px; right: 16px; z-index: 200;
  width: 360px; max-width: calc(100vw - 32px);
  height: 480px; max-height: calc(100vh - 180px);
  background: #fff; border-radius: 20px;
  box-shadow: 0 8px 30px rgba(37,99,235,0.12);
  display: flex; flex-direction: column;
  transform: translateY(20px) scale(0.95); opacity: 0; pointer-events: none;
  transition: all 0.3s ease; border: 1px solid rgba(56, 189, 248,0.1);
}
.chatbot-panel.show { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chatbot-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid rgba(56, 189, 248,0.1);
  flex-shrink: 0;
}
.chatbot-avatar { font-size: 28px; }
.chatbot-info { flex: 1; }
.chatbot-info h4 { font-size: 15px; margin: 0; }
.chatbot-status { font-size: 11px; color: #6366f1; }
.chatbot-close { background: none; border: none; font-size: 22px; color: var(--text-dim); cursor: pointer; padding: 0 4px; }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; }
.msg-bot { justify-content: flex-start; }
.msg-user { justify-content: flex-end; }
.msg-bubble {
  max-width: 80%; padding: 10px 14px; border-radius: 16px;
  font-size: 13px; line-height: 1.6; word-break: break-word;
}
.msg-bot .msg-bubble { background: #f5f0e5; color: var(--text); border-bottom-left-radius: 4px; }
.msg-user .msg-bubble { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-bottom-right-radius: 4px; }
.chatbot-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px; flex-shrink: 0; }
.quick-tag {
  background: #f5f0e8; border: 1px solid rgba(56, 189, 248,0.15); border-radius: 16px;
  padding: 5px 12px; font-size: 12px; cursor: pointer; color: var(--text);
  font-family: inherit; transition: all 0.2s;
}
.quick-tag:active { background: var(--primary); color: #fff; }
.chatbot-input {
  display: flex; gap: 8px; padding: 10px 16px 16px;
  border-top: 1px solid rgba(56, 189, 248,0.1); flex-shrink: 0;
}
.chatbot-input input {
  flex: 1; border: 1px solid rgba(56, 189, 248,0.15); border-radius: 20px;
  padding: 8px 14px; font-size: 13px; outline: none;
  font-family: inherit; background: #f5f0e8; color: var(--text);
}
.chatbot-input input:focus { border-color: var(--primary); }
.chatbot-input button {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none; border-radius: 20px; padding: 8px 18px;
  color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit;
}

/* ===== Quiz Section ===== */
.section-quiz { background: linear-gradient(180deg, #f0f9ff 0%, #dbeafe 100%); }
.quiz-desc { text-align: center; color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }
.quiz-container {
  max-width: 420px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid rgba(56, 189, 248,0.1);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}
/* 开始界面 */
.quiz-start { text-align: center; padding: 40px 24px; }
.quiz-start-icon { font-size: 56px; margin-bottom: 16px; animation: quizBounce 2s ease-in-out infinite; }
@keyframes quizBounce { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15) rotate(5deg); } }
.quiz-start h3 { font-size: 22px; color: var(--primary-dark); margin-bottom: 10px; }
.quiz-start p { font-size: 13px; color: var(--text-dim); line-height: 1.8; margin-bottom: 24px; }
.btn-quiz-start {
  display: inline-block; padding: 14px 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none; border-radius: 30px;
  color: #fff; font-size: 16px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(56, 189, 248,0.3);
}
.btn-quiz-start:active { transform: scale(0.95); }
/* 答题界面 */
.quiz-playing { padding: 20px; }
.quiz-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.quiz-progress { font-size: 14px; font-weight: 700; color: var(--text-dim); }
.quiz-timer {
  position: relative; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.timer-svg { position: absolute; inset: 0; }
#timerNum { font-size: 16px; font-weight: 900; color: var(--primary); z-index: 1; }
.quiz-score { font-size: 14px; font-weight: 700; color: var(--primary); }
.quiz-progress-bar { height: 4px; background: rgba(56, 189, 248,0.1); border-radius: 4px; overflow: hidden; margin-bottom: 20px; }
.quiz-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 4px; transition: width 0.4s; }
.quiz-question {
  font-size: 17px; font-weight: 700; color: var(--text);
  line-height: 1.6; margin-bottom: 20px;
  padding: 16px; background: rgba(56, 189, 248,0.05);
  border-radius: 14px; border-left: 4px solid var(--primary);
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: #f5f0e8; border: 2px solid rgba(56, 189, 248,0.12);
  cursor: pointer; transition: all 0.3s;
  font-size: 14px; color: var(--text);
  font-family: inherit; text-align: left; width: 100%;
}
.quiz-option:active { transform: scale(0.98); }
.quiz-option .opt-label {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(56, 189, 248,0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
  transition: all 0.3s;
}
.quiz-option.correct { border-color: #6366f1; background: rgba(99,102,241,0.1); }
.quiz-option.correct .opt-label { background: #6366f1; color: #fff; }
.quiz-option.wrong { border-color: #e63946; background: rgba(230,57,70,0.08); }
.quiz-option.wrong .opt-label { background: #e63946; color: #fff; }
.quiz-option.disabled { pointer-events: none; opacity: 0.6; }
/* 结果界面 */
.quiz-result { text-align: center; padding: 40px 24px; }
.quiz-result-icon { font-size: 64px; margin-bottom: 16px; animation: quizBounce 2s ease-in-out infinite; }
.quiz-result-title { font-size: 24px; font-weight: 900; color: var(--primary-dark); margin-bottom: 8px; }
.quiz-result-score {
  display: inline-block; padding: 6px 20px; border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 16px;
}
.quiz-result-desc { font-size: 14px; color: var(--text-dim); line-height: 1.8; margin-bottom: 20px; }
.quiz-result-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.btn-quiz-share {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none; border-radius: 30px; color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(56, 189, 248,0.3);
}
.btn-quiz-share:active { transform: scale(0.95); }
.btn-quiz-retry {
  display: inline-block; padding: 10px 30px;
  background: var(--bg-card); border: 2px solid var(--primary);
  border-radius: 30px; color: var(--primary);
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all 0.3s;
}
.btn-quiz-retry:active { transform: scale(0.95); background: var(--primary); color: #fff; }

/* ===== 统一分享弹窗 ===== */
.share-modal {
  position: fixed; inset: 0; z-index: 250;
  display: none; align-items: center; justify-content: center;
}
.share-modal.show { display: flex; }
.share-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.75); }
.share-modal-body {
  position: relative; z-index: 1;
  background: #fff; border-radius: 20px; padding: 20px 18px 18px;
  width: 88%; max-width: 360px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: shareModalIn 0.3s ease-out;
}
@keyframes shareModalIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.share-modal-img {
  width: 100%; border-radius: 12px; overflow: hidden;
  margin-bottom: 14px; background: #f8f4e8;
}
.share-modal-img img { width: 100%; display: block; }
.share-modal-tip { font-size: 13px; color: var(--text-dim); margin-bottom: 14px; line-height: 1.6; }
.share-modal-close {
  padding: 10px 32px; border: none; border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.share-modal-close:active { transform: scale(0.95); }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 24px; border-radius: 20px;
  background: rgba(192, 132, 252, 0.9);
  color: #fff; font-size: 13px;
  opacity: 0; transition: all 0.3s;
  z-index: 300; pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(192, 132, 252, 0.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 360px) {
  .hero-title { font-size: 44px; }
  .about-grid { gap: 8px; }
  .about-card { padding: 14px 10px; }
  .showcase-anime-title { font-size: 20px; }
  .showcase-visual { width: 110px; }
  .showcase-poster-card { width: 95px; height: 140px; }
}
@media (min-width: 481px) {
  .section-inner { padding: 80px 24px 60px; }
}
