:root {
  --paper: #F7F0E3;
  --cinnabar: #B7342B;
  --cinnabar-dark: #7C1D18;
  --ink: #241E1C;
  --gold: #B9924B;
  --bamboo: #5B7A63;
  --font-serif: "Songti SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", 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;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(183, 52, 43, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(185, 146, 75, 0.04) 0%, transparent 40%);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: normal; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 印章基础样式 */
.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cinnabar);
  color: var(--paper);
  font-family: var(--font-serif);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.8em;
  line-height: 1;
  vertical-align: middle;
  animation: stamp-in 400ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.stamp-gold { background: var(--gold); color: var(--ink); }
.stamp-ink { background: var(--ink); color: var(--gold); }
@keyframes stamp-in {
  0% { transform: scale(1.4) rotate(-4deg); opacity: 0; box-shadow: 0 0 0 rgba(0,0,0,0); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; box-shadow: 2px 2px 0 rgba(124, 29, 24, 0.2); }
}

/* 水袖线分隔 */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  position: relative;
  height: 20px;
}
.divider::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--cinnabar) 20%, var(--gold) 50%, var(--cinnabar) 80%, transparent 100%);
  border-radius: 50%;
  transform: translateY(-50%) scaleY(0.5);
}
.divider::after {
  content: '铜';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink);
  font-family: var(--font-serif);
}

/* 标题风格 */
.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
}
.section-tag {
  writing-mode: vertical-rl;
  background: var(--cinnabar);
  color: var(--paper);
  font-family: var(--font-serif);
  padding: 8px 4px;
  font-size: 14px;
  letter-spacing: 2px;
  border-radius: 2px;
  margin-right: 15px;
  flex-shrink: 0;
}
.section-title {
  font-size: 2rem;
  color: var(--ink);
  position: relative;
  clip-path: inset(0 0 0 0);
  transition: clip-path 500ms ease-out;
}
.section-title.reveal {
  animation: curtain-reveal 500ms ease-out forwards;
}
@keyframes curtain-reveal {
  0% { clip-path: inset(0 50% 0 50%); }
  100% { clip-path: inset(0 0 0 0); }
}

/* 顶部导航 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.3s ease;
  background: rgba(247, 240, 227, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(185, 146, 75, 0.2);
}
header.scrolled {
  background: rgba(247, 240, 227, 0.95);
  border-bottom: 1px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  transition: height 0.3s ease;
}
header.scrolled .nav-container { height: 56px; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 32px; width: auto; }
.brand span { font-family: var(--font-serif); font-size: 1.2rem; font-weight: bold; color: var(--cinnabar); }
.nav-links {
  display: none;
  gap: 20px;
  font-size: 0.95rem;
}
.nav-links a { color: var(--ink); transition: color 0.2s; }
.nav-links a:hover { color: var(--cinnabar); }
.nav-actions { display: flex; align-items: center; gap: 15px; }
.search-box {
  display: none;
  align-items: center;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 4px 12px;
}
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  color: var(--ink);
  width: 120px;
  font-family: var(--font-sans);
}
.btn-download-sm {
  background: var(--cinnabar);
  color: var(--paper) !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.9rem;
  white-space: nowrap;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.hamburger {
  display: block;
  width: 48px;
  height: 48px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  position: absolute;
  left: 12px;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s;
}

/* 首屏 */
.hero {
  padding-top: 70px;
  background: var(--cinnabar-dark);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--cinnabar) 0%, var(--cinnabar-dark) 100%);
  opacity: 0.8;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
.hero-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-title {
  font-size: 2.5rem;
  line-height: 1.2;
  color: var(--gold);
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(247, 240, 227, 0.8);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 10px 0;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.stat-item .stamp { font-size: 1.2rem; padding: 4px 8px; }
.hero-buttons {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.btn-door {
  flex: 1;
  min-width: 220px;
  height: 64px;
  background: rgba(183, 52, 43, 0.9);
  border: 2px solid var(--gold);
  border-radius: 8px;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.btn-door::before, .btn-door::after {
  content: '▪';
  position: absolute;
  color: var(--gold);
  font-size: 12px;
  top: 4px;
}
.btn-door::before { left: 4px; }
.btn-door::after { right: 4px; }
.btn-door:hover { transform: translateY(-2px); }
.hero-cards {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.hero-card {
  flex: 0 0 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-card img { border-radius: 4px; border: 1px solid var(--gold); }
.hero-card span { font-size: 0.8rem; color: var(--gold); text-align: center; }

/* 热播推荐 */
.section-hot { padding: 40px 0; }
.hot-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.hot-main {
  position: relative;
  background: var(--ink);
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--gold);
}
.hot-main img { width: 100%; height: auto; object-fit: cover; }
.hot-main-info {
  padding: 15px;
  background: linear-gradient(to top, var(--ink) 0%, transparent 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}
.hot-main-info h3 { color: var(--gold); font-size: 1.2rem; }
.hot-main-info p { font-size: 0.85rem; color: var(--paper); }
.hot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.hot-card {
  background: var(--paper);
  border: 1px solid var(--gold);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.hot-card:hover { transform: translateY(-4px); border-color: var(--cinnabar); }
.hot-card img { width: 100%; }
.hot-card-info { padding: 8px; }
.hot-card-info h3 { font-size: 0.95rem; color: var(--ink); }
.hot-card-info p { font-size: 0.75rem; color: #666; }

/* 更新日历 */
.section-calendar { padding: 40px 0; background: rgba(183, 52, 43, 0.03); }
.calendar-layout { display: flex; flex-direction: column; gap: 20px; }
.calendar-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px dashed rgba(185, 146, 75, 0.3);
}
.calendar-time { flex: 0 0 80px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.calendar-drum { width: 50px; height: 50px; border-radius: 50%; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 1rem; }
.calendar-shows { display: flex; flex-wrap: wrap; gap: 10px; }
.calendar-show { display: flex; flex-direction: column; width: 80px; gap: 4px; }
.calendar-show img { border-radius: 2px; }
.calendar-show span { font-size: 0.75rem; text-align: center; }

/* 排行榜 */
.section-rank { padding: 40px 0; }
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item {
  display: grid;
  grid-template-columns: 40px 60px 1fr 60px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(185, 146, 75, 0.2);
}
.rank-item.top1 { border: 1px solid var(--gold); background: rgba(185, 146, 75, 0.1); }
.rank-num { font-family: var(--font-serif); font-size: 1.2rem; color: var(--ink); }
.rank-item.top1 .rank-num { color: var(--gold); }
.rank-item.top2 .rank-num { color: #999; }
.rank-item.top3 .rank-num { color: #cd7f32; }
.rank-img { width: 60px; height: 80px; object-fit: cover; border-radius: 2px; }
.rank-info h3 { font-size: 0.95rem; }
.rank-info p { font-size: 0.75rem; color: #666; }
.rank-value { font-size: 0.85rem; color: var(--cinnabar); text-align: right; }

/* 题材分类 */
.section-category { padding: 40px 0; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.cat-card {
  background: #fff;
  border: 1px solid var(--gold);
  padding: 15px;
  border-radius: 4px;
  text-align: center;
}
.cat-card h3 { font-size: 1.1rem; color: var(--cinnabar); margin-bottom: 5px; }
.cat-card p { font-size: 0.8rem; color: #666; }

/* 独播首发 */
.section-exclusive { padding: 40px 0; background: var(--cinnabar-dark); color: var(--paper); }
.exclusive-layout { display: flex; flex-direction: column; gap: 20px; }
.exclusive-main { background: var(--ink); padding: 20px; border-radius: 8px; border: 2px solid var(--gold); }
.exclusive-main img { width: 100%; max-width: 200px; margin: 0 auto 15px; border-radius: 4px; }
.exclusive-main h3 { color: var(--gold); font-size: 1.2rem; text-align: center; }
.exclusive-main p { font-size: 0.9rem; text-align: center; margin-bottom: 15px; }
.exclusive-list { display: flex; flex-direction: column; gap: 10px; }
.exclusive-item { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,0.05); padding: 10px; border-radius: 4px; }
.exclusive-item img { width: 50px; height: 70px; object-fit: cover; border-radius: 2px; }
.exclusive-item div { font-size: 0.9rem; }

/* 免费专区 */
.section-free { padding: 40px 0; }
.free-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.free-card {
  background: var(--paper);
  border: 1px solid var(--gold);
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  position: relative;
}
.free-card img { border-radius: 2px; margin-bottom: 8px; }
.free-card h3 { font-size: 0.95rem; }
.free-card p { font-size: 0.75rem; color: #666; }
.free-stamp { position: absolute; top: 5px; right: 5px; background: var(--cinnabar); color: var(--paper); padding: 2px 4px; font-size: 0.7rem; border-radius: 2px; }

/* 用户评价 */
.section-reviews { padding: 40px 0; background: rgba(185, 146, 75, 0.05); }
.review-stats { display: flex; justify-content: space-around; margin-bottom: 30px; text-align: center; }
.review-stats div { display: flex; flex-direction: column; gap: 5px; }
.review-stats .num { font-size: 1.5rem; color: var(--cinnabar); font-family: var(--font-serif); }
.review-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.review-card { background: var(--paper); padding: 15px; border-radius: 4px; border: 1px solid rgba(185, 146, 75, 0.3); box-shadow: 2px 2px 5px rgba(0,0,0,0.05); }
.review-card p { font-size: 0.9rem; margin-top: 10px; }

/* 常见问题 */
.section-faq { padding: 40px 0; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border-bottom: 1px solid rgba(185, 146, 75, 0.3); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 15px 0; font-size: 1rem; font-family: var(--font-serif); color: var(--ink); display: flex; justify-content: space-between; cursor: pointer; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; font-size: 0.9rem; color: #666; }
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 15px; }

/* 下载安装区 */
.section-download { padding: 40px 0; background: var(--ink); color: var(--paper); }
.download-steps { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 30px; }
.step-card { background: rgba(255,255,255,0.05); padding: 20px; border-radius: 8px; border: 1px solid var(--gold); }
.step-card h3 { color: var(--gold); font-size: 1.1rem; margin-bottom: 10px; }
.download-buttons { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.download-buttons .btn-door { flex: 1; max-width: 300px; }

/* 页脚 */
footer { background: var(--ink); color: rgba(247, 240, 227, 0.6); padding: 30px 0; font-size: 0.85rem; text-align: center; }
footer a { color: rgba(247, 240, 227, 0.6); text-decoration: underline; }
.footer-info { margin-bottom: 10px; }

/* 响应式 */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .search-box { display: flex; }
  .hamburger { display: none; }
  .hero-content { grid-template-columns: 1fr 1fr; }
  .hot-layout { grid-template-columns: 1fr 1fr; }
  .calendar-layout { flex-direction: row; flex-wrap: wrap; }
  .calendar-item { flex: 1 1 45%; flex-direction: row; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .exclusive-layout { flex-direction: row; }
  .exclusive-main { flex: 1; }
  .exclusive-list { flex: 1; }
  .free-grid { grid-template-columns: repeat(4, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .download-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
  .hot-grid { grid-template-columns: repeat(4, 1fr); }
  .free-grid { grid-template-columns: repeat(5, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
}