:root {
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --secondary: #2d1b4e;
  --accent: #ff3d71;
  --bg-1: #fdf8f3;
  --bg-2: #fff0e6;
  --bg-3: #f0f4ff;
  --bg-4: #f5f0ff;
  --bg-5: #fff5f7;
  --bg-6: #f0faf5;
  --bg-7: #f8f8fa;
  --bg-8: #fffdf5;
  --text: #2d2d3a;
  --text-light: #6b6b7b;
  --border: #e8e2d8;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(45, 27, 78, 0.08);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  height: 34px;
  width: auto;
  border-radius: 8px;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
  white-space: nowrap;
}

.nav-desktop {
  display: none;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-desktop a {
  padding: 6px 12px;
  font-size: 14px;
  color: var(--text-light);
  border-radius: 8px;
  transition: all 0.25s;
  position: relative;
  white-space: nowrap;
}

.nav-desktop a:hover {
  color: var(--primary);
  background: var(--bg-2);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 20px;
  box-shadow: var(--shadow);
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--text);
  border-radius: 8px;
  transition: background 0.2s;
}

.nav-mobile a:hover, .nav-mobile a:active {
  background: var(--bg-2);
  color: var(--primary);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #fff5ec 0%, #ffe8d6 40%, #ffe0f0 100%);
  padding: 40px 20px 0;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  font-weight: 600;
}

.hero h1 {
  font-size: 26px;
  line-height: 1.35;
  color: var(--secondary);
  margin-bottom: 14px;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto 24px;
}

.hero-downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s;
  border: 2px solid transparent;
}

.dl-btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

.dl-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.45);
}

.dl-btn.ghost {
  background: #fff;
  color: var(--secondary);
  border-color: var(--border);
}

.dl-btn.ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 10px;
}

.hero-gallery img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.3s;
}

.hero-gallery img:hover {
  transform: scale(1.03);
}

/* Marquee */
.marquee-wrap {
  margin-top: 32px;
  background: var(--secondary);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(90deg, #ffb347, #ff6b35, #ff3d71, #a855f7, #ffb347);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: colorShift 4s linear infinite;
}

.marquee-track span::before {
  content: "◆ ";
  -webkit-text-fill-color: var(--primary);
  background: none;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes colorShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ===== Section Common ===== */
.section {
  padding: 48px 20px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: 22px;
  color: var(--secondary);
  font-weight: 800;
  margin-bottom: 8px;
}

.section-head h2 em {
  font-style: normal;
  color: var(--primary);
}

.section-head p {
  font-size: 14px;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Classic Theater ===== */
.section-classic { background: var(--bg-2); }

.classic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.classic-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.classic-feature img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.classic-info h3 {
  font-size: 18px;
  color: var(--secondary);
  margin-bottom: 8px;
  font-weight: 700;
}

.classic-info .meta {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.classic-info .tag {
  background: var(--bg-2);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.classic-info p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.classic-list {
  display: grid;
  gap: 10px;
}

.classic-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.classic-list li img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.classic-list li div {
  flex: 1;
  min-width: 0;
}

.classic-list li strong {
  display: block;
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.classic-list li span {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== Late Night ===== */
.section-night {
  background: linear-gradient(180deg, #1a1030 0%, #2d1b4e 100%);
  color: #e8e0f0;
}

.section-night .section-head h2 { color: #ffb347; }
.section-night .section-head p { color: #b8a8d0; }

.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #ff3d71, #a855f7, #ff3d71);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 61, 113, 0.25);
}

.timeline-item time {
  font-size: 12px;
  color: #ffb347;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.timeline-item h3 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
  font-weight: 600;
}

.timeline-item p {
  font-size: 13px;
  color: #b8a8d0;
}

/* ===== Original Link ===== */
.section-original { background: var(--bg-4); }

.original-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.original-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.original-side img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.original-qa .qa-item {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.original-qa .qa-item strong {
  display: block;
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: 4px;
}

.original-qa .qa-item strong::before {
  content: "问：";
  color: var(--primary);
  font-weight: 800;
}

.original-qa .qa-item p {
  font-size: 13px;
  color: var(--text-light);
}

.original-qa .qa-item p::before {
  content: "答：";
  color: #a855f7;
  font-weight: 700;
}

/* ===== Full Episodes ===== */
.section-full { background: var(--bg-6); }

.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.episode-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.25s;
}

.episode-card:hover { transform: translateY(-3px); }

.episode-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.episode-card div { padding: 10px; }

.episode-card h3 {
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: 4px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-card span {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== AI Theater ===== */
.section-ai { background: var(--bg-8); }

.ai-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.ai-card {
  display: flex;
  gap: 14px;
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border-left: 4px solid var(--primary);
  align-items: flex-start;
}

.ai-card img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.ai-card div { flex: 1; min-width: 0; }

.ai-card h3 {
  font-size: 15px;
  color: var(--secondary);
  margin-bottom: 4px;
  font-weight: 600;
}

.ai-card p {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== Comments ===== */
.section-comments { background: var(--bg-5); }

.comment-wall {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.comment-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.comment-card img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--bg-2);
}

.comment-card div { flex: 1; }

.comment-card strong {
  display: block;
  font-size: 13px;
  color: var(--secondary);
  margin-bottom: 2px;
}

.comment-card p {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== Minor Protection ===== */
.section-minor { background: var(--bg-3); }

.minor-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.minor-list {
  display: grid;
  gap: 10px;
}

.minor-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  font-size: 13px;
  color: var(--text-light);
}

.minor-list li::before {
  content: "✓";
  color: #22a06b;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

/* ===== Feedback ===== */
.section-feedback { background: var(--bg-7); }

.feedback-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.feedback-item {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.feedback-item h3 {
  font-size: 15px;
  color: var(--secondary);
  margin-bottom: 6px;
  font-weight: 600;
}

.feedback-item p {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== Download Section ===== */
.section-download {
  background: linear-gradient(135deg, #2d1b4e 0%, #4a2c7a 100%);
  color: #fff;
}

.download-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.download-inner h2 {
  font-size: 22px;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 800;
}

.download-inner > p {
  font-size: 14px;
  color: #c8b8e0;
  margin-bottom: 28px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 28px;
  text-align: left;
}

.step-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 14px 16px;
}

.step-card .step-num {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
}

.step-card strong {
  font-size: 14px;
  color: #fff;
  display: inline;
}

.step-card p {
  font-size: 13px;
  color: #c8b8e0;
  margin-top: 6px;
  padding-left: 28px;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.download-buttons .dl-btn {
  min-width: 120px;
  justify-content: center;
}

/* ===== Footer ===== */
.site-footer {
  background: #1a1425;
  color: #8a7f9a;
  padding: 32px 20px 24px;
  font-size: 12px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 12px;
  line-height: 1.7;
  margin-top: 6px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.footer-nav a {
  font-size: 12px;
  color: #8a7f9a;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.footer-bottom a {
  color: #8a7f9a;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--primary); }

/* ===== Floating Download ===== */
.float-download {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(255, 61, 113, 0.4);
  transition: transform 0.25s;
}

.float-download:hover { transform: translateX(-50%) scale(1.05); }

.float-download img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.show { display: flex; }

.modal-box {
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.modal-box p {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.6;
}

.modal-box .copy-url {
  background: var(--bg-2);
  border: 1px dashed var(--primary);
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  color: var(--primary);
  word-break: break-all;
  margin-bottom: 14px;
  cursor: pointer;
  user-select: all;
}

.modal-box .modal-close {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .header-inner { padding: 14px 32px; }
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }

  .hero { padding: 56px 32px 0; }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-content { text-align: left; }
  .hero-desc { margin-left: 0; }
  .hero-downloads { justify-content: flex-start; }
  .hero h1 { font-size: 34px; }
  .hero-gallery { max-width: 100%; padding: 0; }

  .section { padding: 64px 32px; }
  .section-head h2 { font-size: 28px; }

  .classic-feature { grid-template-columns: 240px 1fr; align-items: start; }
  .classic-grid { grid-template-columns: 1fr 1fr; }
  .classic-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .timeline { max-width: 700px; margin: 0 auto; }

  .original-layout { grid-template-columns: 280px 1fr; align-items: start; }

  .episode-grid { grid-template-columns: repeat(3, 1fr); }

  .ai-grid { grid-template-columns: repeat(2, 1fr); }

  .comment-wall { grid-template-columns: repeat(2, 1fr); }

  .minor-layout { grid-template-columns: 1fr 1fr; align-items: start; }

  .feedback-grid { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: repeat(3, 1fr); }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 40px; }
  .section-head h2 { font-size: 30px; }

  .classic-grid { grid-template-columns: 1.2fr 1fr; }
  .classic-list { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }

  .episode-grid { grid-template-columns: repeat(4, 1fr); }

  .ai-grid { grid-template-columns: repeat(3, 1fr); }

  .comment-wall { grid-template-columns: repeat(3, 1fr); }

  .feedback-grid { grid-template-columns: repeat(3, 1fr); }
}