:root {
  --paper: #F7F0E3;
  --ink: #241E1C;
  --cinnabar: #B7342B;
  --cinnabar-dark: #7C1D18;
  --gold: #B9924B;
  --bamboo: #5B7A63;
  --font-serif: "Songti SC", STSong, "Source Han Serif SC", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景晕染 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 20%, rgba(183,52,43,0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(185,146,75,0.05) 0%, transparent 40%);
  z-index: -1;
}

a { text-decoration: none; color: var(--cinnabar); }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }

/* 通用排版 */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.4; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; display: flex; align-items: center; }
h3 { font-size: 1.1rem; color: var(--ink); }

/* 印章标签 */
.seal-tag {
  background: var(--cinnabar);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
  writing-mode: vertical-rl;
  margin-right: 12px;
  letter-spacing: 2px;
  font-family: var(--font-serif);
  transform: rotate(2deg);
}

/* 水袖线分隔 */
.sleeve-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3rem 0;
  position: relative;
  height: 20px;
}
.sleeve-divider::before {
  content: "";
  position: absolute;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cinnabar), var(--gold), transparent);
  border-radius: 50%;
  transform: rotate(-1deg);
}
.sleeve-divider .coin {
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 1px solid var(--paper);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

/* 盖章动效 */
.seal-stamp {
  display: inline-block;
  color: var(--cinnabar);
  font-family: var(--font-serif);
  font-weight: bold;
  border: 1px solid var(--cinnabar);
  padding: 0 4px;
  border-radius: 2px;
  transform-origin: center;
  animation: stampIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 1;
}
@keyframes stampIn {
  0% { transform: scale(1.4) rotate(-4deg); opacity: 0.5; box-shadow: 0 0 0 0 rgba(183,52,43,0.4); }
  80% { transform: scale(0.95) rotate(0deg); opacity: 1; box-shadow: 0 0 0 6px rgba(183,52,43,0); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* 幕布效果 */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  pointer-events: none;
  overflow: hidden;
}
.curtain-panel {
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, #5c0d09, #8e1a14 50%, #5c0d09);
  box-shadow: inset 0 0 100px rgba(0,0,0,0.8);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  position: relative;
}
.curtain-panel.left { transform-origin: left; }
.curtain-panel.right { transform-origin: right; }
.curtain.open.left { transform: translateX(-100%); }
.curtain.open.right { transform: translateX(100%); }

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 240, 227, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(185, 146, 75, 0.2);
  transition: all 0.3s ease;
}
header.scrolled { padding: 0.5rem 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--cinnabar-dark);
  font-weight: bold;
}
.brand img { height: 34px; width: auto; border-radius: 4px; }
.nav-links {
  display: flex;
  gap: 1.2rem;
  font-size: 0.95rem;
}
.nav-links a { color: var(--ink); font-weight: 500; }
.nav-links a:hover { color: var(--cinnabar); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
}
.search-box input { border: none; outline: none; background: transparent; width: 120px; font-size: 0.9rem; }
.btn-download-nav {
  background: var(--cinnabar);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-weight: bold;
}
.mobile-menu-btn { display: none; font-size: 1.5rem; background: none; border: none; color: var(--ink); cursor: pointer; }

/* 首屏 */
.hero {
  padding-top: 100px;
  padding-bottom: 4rem;
  text-align: center;
  background: var(--cinnabar-dark);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100" height="100" filter="url(images/74a214d3-a6c8-4117-99cd-67cd4c34.webp)" opacity="0.05"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--gold);
  letter-spacing: 2px;
}
.hero p.subtitle { font-size: 1.2rem; opacity: 0.9; margin-bottom: 2rem; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-value { font-size: 1.8rem; font-family: var(--font-serif); font-weight: bold; color: var(--gold); }
.stat-label { font-size: 0.9rem; opacity: 0.8; }
.hero-actions { display: flex; justify-content: center; gap: 24px; position: relative; z-index: 2; }

/* 门匾按钮 */
.btn-plaque {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 64px;
  background: #3a2618;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 4px;
  border: 2px solid var(--gold);
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}
.btn-plaque::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(185, 146, 75, 0.3);
  pointer-events: none;
}
.btn-plaque:hover { transform: translateY(-2px); }

/* 内容区块通用 */
section { padding: 4rem 1.5rem; max-width: 1200px; margin: 0 auto; scroll-margin-top: 80px; }

/* 热播推荐 */
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.headliner {
  grid-column: span 5;
  background: #fff;
  border: 2px solid var(--cinnabar);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 15px rgba(183,52,43,0.1);
}
.headliner img { width: 100%; height: auto; display: block; }
.headliner-info { padding: 1.5rem; }
.headliner-info h3 { font-size: 1.5rem; color: var(--cinnabar-dark); margin-bottom: 0.5rem; }
.headliner-info p { font-size: 0.9rem; color: #666; }
.headliner-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--cinnabar);
  color: #fff;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 2px;
}
.list-grid {
  grid-column: span 7;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.list-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  display: flex;
  padding: 0.8rem;
  gap: 1rem;
  transition: all 0.2s;
  cursor: pointer;
}
.list-card:hover { transform: translateY(-4px); border-color: var(--cinnabar); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.list-card img { width: 70px; height: 100px; object-fit: cover; border-radius: 4px; }
.list-card-info { display: flex; flex-direction: column; justify-content: center; }
.list-card-info h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.list-card-info span { font-size: 0.8rem; color: #888; }

/* 更新日历 */
.calendar-section { background: rgba(183,52,43,0.02); border-radius: 12px; border: 1px solid rgba(183,52,43,0.1); }
.calendar-layout { display: flex; gap: 2rem; }
.pillar { display: flex; flex-direction: column; justify-content: space-around; padding: 1rem 0; border-right: 2px solid var(--cinnabar); }
.drum-node {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--cinnabar);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: bold; color: var(--cinnabar);
  margin-right: -22px;
  z-index: 2;
}
.drum-node.active { background: var(--cinnabar); color: #fff; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(183,52,43,0.4); } 70% { box-shadow: 0 0 0 10px rgba(183,52,43,0); } 100% { box-shadow: 0 0 0 0 rgba(183,52,43,0); } }
.drum-node.future { border-color: #ccc; color: #ccc; }
.timeline { flex: 1; display: flex; flex-direction: column; gap: 2rem; }
.time-row { padding: 1rem; border-bottom: 1px dashed #ddd; display: flex; gap: 1rem; align-items: center; }
.time-row.active { background: rgba(255,255,255,0.5); border-radius: 8px; }
.time-label { font-weight: bold; width: 60px; }
.show-covers { display: flex; gap: 1rem; flex-wrap: wrap; }
.show-cover-item { display: flex; align-items: center; gap: 0.5rem; background: #fff; padding: 0.3rem 0.6rem; border-radius: 4px; border: 1px solid #eee; }
.show-cover-item img { width: 30px; height: 40px; object-fit: cover; border-radius: 2px; }
.show-cover-item span { font-size: 0.85rem; }

/* 排行榜 */
.leaderboard { background: #fff; border: 1px solid var(--gold); padding: 2rem; border-radius: 8px; position: relative; }
.leaderboard::before {
  content: "今日红榜";
  position: absolute; right: 20px; top: 20px;
  font-family: var(--font-serif); font-size: 1.5rem; color: rgba(183,52,43,0.2);
  writing-mode: vertical-rl; letter-spacing: 5px;
}
.rank-row { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid #eee; }
.rank-row:last-child { border-bottom: none; }
.rank-row.top1 { border: 2px solid var(--gold); background: rgba(185,146,75,0.05); padding: 0.8rem 1rem; border-radius: 4px; }
.rank-num { width: 30px; text-align: center; font-weight: bold; font-family: var(--font-serif); }
.rank-1 { color: var(--gold); font-size: 1.2rem; }
.rank-2 { color: #999; font-size: 1.2rem; }
.rank-3 { color: #cd7f32; font-size: 1.2rem; }
.rank-row img { width: 40px; height: 56px; object-fit: cover; border-radius: 4px; }
.rank-title { flex: 1; font-weight: bold; }
.rank-trend.up { color: var(--cinnabar); }
.rank-trend.down { color: #999; }

/* 题材分类 */
.genre-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.genre-card {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(185,146,75,0.3);
  padding: 1.5rem; border-radius: 6px;
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: transform 0.2s;
}
.genre-card:hover { transform: skewY(-1deg) rotate(0.5deg); }
.genre-card h3 { color: var(--cinnabar-dark); font-size: 1.2rem; border-bottom: 1px solid var(--gold); padding-bottom: 0.3rem; margin-bottom: 0.5rem; }
.genre-covers { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.genre-covers img { width: 40px; height: 56px; object-fit: cover; border-radius: 2px; }

/* 独播首发 */
.exclusive-section { background: var(--cinnabar-dark); color: var(--paper); max-width: 100%; border-radius: 0; }
.exclusive-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 3rem; }
.exclusive-box { flex: 1; background: rgba(0,0,0,0.2); border: 1px solid var(--gold); padding: 2rem; border-radius: 8px; text-align: center; }
.exclusive-box h3 { color: var(--gold); font-size: 1.8rem; margin: 1rem 0; }
.exclusive-list { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.exclusive-item { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.8rem; }
.exclusive-item img { width: 50px; height: 70px; object-fit: cover; border-radius: 4px; }
.exclusive-item-info h4 { font-size: 1.1rem; color: var(--gold); }
.exclusive-item-info span { font-size: 0.8rem; opacity: 0.8; }

/* 免费专区 */
.free-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.free-card {
  background: var(--paper);
  border: 1px solid #ddd; padding: 1rem; text-align: center;
  position: relative; border-radius: 4px;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.05);
  transform: rotate(-1.5deg);
  transition: transform 0.2s;
}
.free-card:nth-child(even) { transform: rotate(1.5deg); }
.free-card:hover { transform: rotate(0deg) translateY(-2px); }
.free-card img { width: 60px; height: 84px; object-fit: cover; margin: 0 auto 0.5rem; border-radius: 2px; }
.free-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.free-seal { position: absolute; top: 10px; right: 10px; color: #fff; background: var(--cinnabar); padding: 2px 4px; font-size: 0.8rem; border-radius: 2px; }

/* 用户评价 */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.review-card {
  background: #fff; padding: 1.5rem; border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
}
.review-card:nth-child(even) { background: #fdfcf8; transform: rotate(0.5deg); }
.pin {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; background: var(--cinnabar); border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.review-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.review-header img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--bamboo); object-fit: cover; }
.review-header span { font-weight: bold; }
.stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 0.5rem; }
.review-text { font-size: 0.95rem; color: #555; line-height: 1.6; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: #fff; border: 1px solid #eee; border-radius: 4px; overflow: hidden; }
.faq-question { padding: 1.2rem; font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: rgba(247,240,227,0.5); }
.faq-question:hover { color: var(--cinnabar); }
.faq-answer { padding: 0 1.2rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; font-size: 0.95rem; color: #555; }
.faq-item.active .faq-answer { max-height: 200px; padding: 1.2rem; border-top: 1px solid #eee; }

/* 下载区 */
.download-section { text-align: center; background: var(--paper); padding: 4rem 1.5rem; }
.download-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.dl-card { background: #fff; border: 1px solid #e0e0e0; padding: 2rem 1rem; border-radius: 8px; }
.dl-card h3 { color: var(--cinnabar); margin-bottom: 0.5rem; }
.dl-card p { font-size: 0.9rem; color: #666; }
.dl-actions { display: flex; justify-content: center; gap: 2rem; }
.btn-ticket {
  display: flex; align-items: center; justify-content: center;
  min-width: 240px; height: 64px;
  background: var(--cinnabar); color: #fff;
  font-size: 1.2rem; font-weight: bold; border-radius: 4px;
  position: relative; transition: background 0.2s;
}
.btn-ticket:hover { background: var(--cinnabar-dark); }
.btn-ticket::before {
  content: ""; position: absolute; left: 10px; top: 10px; bottom: 10px; width: 1px; border-left: 1px dashed rgba(255,255,255,0.5);
}

/* 页脚 */
footer {
  background: #1a1412; color: #999; padding: 3rem 1.5rem 2rem;
  font-size: 0.85rem; text-align: center;
}
.footer-links { display: flex; justify-content: center; gap: 3rem; margin-bottom: 2rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; text-align: left; }
.footer-col h4 { color: #ccc; margin-bottom: 0.5rem; }
.footer-col a { color: #888; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #333; padding-top: 1.5rem; margin-top: 1.5rem; font-size: 0.8rem; line-height: 1.8; }
.footer-bottom a { color: #888; text-decoration: underline; }
.footer-bottom a:hover { color: #ccc; }

/* 响应式调整 */
@media (max-width: 992px) {
  .recommend-grid { grid-template-columns: 1fr; }
  .headliner { grid-column: span 1; }
  .list-grid { grid-column: span 1; }
  .calendar-layout { flex-direction: column; }
  .pillar { flex-direction: row; border-right: none; border-bottom: 2px solid var(--cinnabar); padding: 0 0 1rem 0; justify-content: space-between; }
  .drum-node { margin: 0; }
  .exclusive-inner { flex-direction: column; }
  .genre-grid { grid-template-columns: repeat(2, 1fr); }
  .free-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-links { flex-direction: column; gap: 1.5rem; align-items: center; text-align: center; }
  .footer-col { text-align: center; }
}

@media (max-width: 768px) {
  .nav-links, .search-box { display: none; }
  .mobile-menu-btn { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .hero-actions, .dl-actions { flex-direction: column; align-items: center; gap: 1rem; }
  .list-grid { grid-template-columns: 1fr; }
  .genre-grid, .free-grid, .reviews-grid { grid-template-columns: 1fr; }
  .download-cards { grid-template-columns: 1fr; }
}