:root {
  --bg-dark: #232826;
  --bg-panel: #2b312e;
  --chalk-white: #f4f2e9;
  --chalk-aux: #b9bfb6;
  --chalk-faded: #858e87;
  --accent-yellow: #f5e663;
  --accent-red: #ff8b6b;
  --accent-mint: #7fe0b0;
  --line-color: rgba(244, 242, 233, 0.18);
  --font-main: "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  background-image: 
    linear-gradient(45deg, rgba(244,242,233,0.03) 25%, transparent 25%, transparent 75%, rgba(244,242,233,0.03) 75%, rgba(244,242,233,0.03)), 
    linear-gradient(45deg, rgba(244,242,233,0.03) 25%, transparent 25%, transparent 75%, rgba(244,242,233,0.03) 75%, rgba(244,242,233,0.03));
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  color: var(--chalk-white);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 顶部导航 */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-dark);
  border-bottom: 2px solid var(--chalk-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-box {
  width: 34px;
  height: 34px;
  border: 2px solid var(--accent-yellow);
  transform: rotate(-4deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: var(--chalk-white);
}

.nav-logo img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: none;
  gap: 15px;
  font-size: 14px;
}

.nav-links a {
  color: var(--chalk-aux);
  border-bottom: 1px dashed transparent;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--chalk-white);
  border-bottom-color: var(--chalk-white);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-nav-download {
  background-color: transparent;
  color: var(--accent-yellow);
  border: 1px solid var(--accent-yellow);
  padding: 4px 12px;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.2s;
}

.btn-nav-download:hover {
  background-color: var(--accent-yellow);
  color: var(--bg-dark);
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--chalk-white);
  font-size: 24px;
  cursor: pointer;
}

/* 版块标题 */
.section-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-tag {
  color: var(--accent-yellow);
  font-weight: bold;
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}

h2.section-title {
  font-size: 28px;
  color: var(--chalk-white);
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}

h2.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 10%;
  width: 80%;
  height: 4px;
  background-color: var(--accent-red);
  transform: rotate(-1.5deg);
}

.section-desc {
  color: var(--chalk-aux);
  font-size: 15px;
}

/* 通用区块内边距 */
section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 首屏 */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
}

.hero-badge {
  color: var(--accent-yellow);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 20px;
  border: 1px dashed var(--accent-yellow);
  padding: 4px 12px;
  transform: rotate(-2deg);
}

h1.hero-title {
  font-size: 36px;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.hero-desc {
  text-align: center;
  color: var(--chalk-aux);
  max-width: 600px;
  margin-bottom: 30px;
  font-size: 16px;
}

.hero-btn-group {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
}

.btn-primary {
  background-color: var(--accent-yellow);
  color: var(--bg-dark);
  padding: 12px 30px;
  font-weight: bold;
  font-size: 16px;
  border: 2px solid var(--accent-yellow);
  display: inline-block;
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent-yellow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--chalk-white);
  padding: 12px 30px;
  font-weight: bold;
  font-size: 16px;
  border: 2px solid var(--chalk-white);
  display: inline-block;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background-color: var(--chalk-white);
  color: var(--bg-dark);
}

.hero-wall {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: 100%;
  margin-bottom: 40px;
  position: relative;
}

.wall-item {
  flex: 1;
  max-width: 220px;
  border: 2px solid var(--chalk-white);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
  position: relative;
}

.wall-item img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.wall-item.side-left { transform: rotate(-4deg) translateY(15px); }
.wall-item.side-right { transform: rotate(4deg) translateY(15px); }
.wall-item.main-center { z-index: 10; transform: scale(1.05); border-width: 3px; border-color: var(--accent-yellow); }

.score-stamp {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px double var(--accent-red);
  background-color: var(--bg-dark);
  color: var(--accent-yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(14deg);
  font-weight: bold;
  z-index: 2;
}

.score-stamp span:first-child { font-size: 10px; color: var(--accent-red); margin-bottom: 2px; }
.score-stamp span:last-child { font-size: 22px; line-height: 1; }

.annotation {
  position: absolute;
  color: var(--accent-yellow);
  font-size: 16px;
  font-weight: bold;
  z-index: 15;
  font-family: "KaiTi", serif;
}

.ann-1 { top: 10%; right: 15%; transform: rotate(10deg); }
.ann-2 { bottom: 10%; left: 15%; color: var(--accent-mint); transform: rotate(-8deg); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.stat-pill {
  background-color: var(--bg-panel);
  border: 1px solid var(--line-color);
  padding: 6px 20px;
  font-size: 14px;
  color: var(--chalk-aux);
}

.stat-pill strong { color: var(--chalk-white); margin-right: 4px; }

/* 锐评分类 */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cat-card {
  background-color: var(--bg-panel);
  border: 2px solid var(--line-color);
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.cat-card:hover {
  transform: translateY(-5px);
  border-color: var(--chalk-white);
}

.cat-img-wrap { position: relative; width: 100%; aspect-ratio: 2/3; overflow: hidden; }
.cat-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cat-tag {
  position: absolute;
  top: 10px; left: 10px;
  background-color: var(--bg-dark);
  color: var(--accent-yellow);
  padding: 2px 8px;
  font-size: 12px;
  font-weight: bold;
  border: 1px solid var(--accent-yellow);
}

.cat-info { padding: 15px; border-top: 2px dashed var(--line-color); }
.cat-info h3 { font-size: 18px; margin-bottom: 6px; color: var(--chalk-white); }
.cat-info p { font-size: 14px; color: var(--chalk-aux); }

/* 看片三评 */
.steps-container {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-color);
}

.step-item {
  padding: 20px;
  border-bottom: 1px solid var(--line-color);
}
.step-item:last-child { border-bottom: none; }

.step-num {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent-yellow);
  margin-bottom: 8px;
  font-family: monospace;
}

.step-item h3 { font-size: 18px; margin-bottom: 8px; color: var(--chalk-mint); }
.step-item p { font-size: 15px; color: var(--chalk-aux); margin-bottom: 10px; }
.step-quote { font-style: italic; color: var(--chalk-faded); font-size: 14px; border-left: 3px solid var(--accent-red); padding-left: 10px; }

/* 毒舌榜 */
.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px dashed var(--line-color);
  gap: 15px;
}

.rank-num { font-size: 20px; font-weight: bold; color: var(--chalk-faded); width: 30px; text-align: center; }
.rank-item:nth-child(1) .rank-num { color: var(--accent-yellow); font-size: 24px; }
.rank-item:nth-child(2) .rank-num { color: var(--chalk-white); font-size: 22px; }
.rank-item:nth-child(3) .rank-num { color: var(--accent-red); font-size: 22px; }

.rank-img { width: 52px; height: 68px; object-fit: cover; border: 1px solid var(--line-color); }
.rank-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.rank-title { font-size: 16px; font-weight: bold; color: var(--chalk-white); }
.rank-review { font-size: 13px; color: var(--chalk-aux); }
.rank-bar-wrap { display: none; flex: 1; height: 6px; background-color: var(--line-color); position: relative; }
.rank-bar { height: 100%; background-color: var(--accent-yellow); }
.rank-score { font-size: 18px; font-weight: bold; color: var(--accent-yellow); width: 40px; text-align: right; }

/* 锐评片库 */
.filter-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.search-box input {
  width: 100%;
  padding: 12px;
  background-color: transparent;
  border: 1px solid var(--chalk-white);
  color: var(--chalk-white);
  font-size: 16px;
  outline: none;
}
.search-box input:focus { border-color: var(--accent-yellow); }

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-tag {
  background-color: transparent;
  border: 1px solid var(--line-color);
  color: var(--chalk-aux);
  padding: 6px 15px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tag:hover, .filter-tag.active {
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
}

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

.lib-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--line-color);
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
}
.lib-card:hover { transform: translateY(-5px); border-color: var(--chalk-white); }

.mini-stamp {
  position: absolute;
  top: 5px; right: 5px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--accent-mint);
  background-color: var(--bg-dark);
  color: var(--accent-mint);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: bold; transform: rotate(-10deg);
  z-index: 2;
}

.lib-img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.lib-info { padding: 10px; border-top: 1px solid var(--line-color); }
.lib-title { font-size: 15px; color: var(--chalk-white); margin-bottom: 4px; font-weight: bold; }
.lib-meta { font-size: 12px; color: var(--chalk-faded); display: flex; justify-content: space-between; }

/* 想看榜 */
.wish-list { display: flex; flex-direction: column; gap: 15px; }
.wish-item {
  display: flex; align-items: center; gap: 15px;
  padding: 15px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line-color);
}
.wish-img { width: 48px; height: 62px; object-fit: cover; border: 1px solid var(--line-color); }
.wish-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.wish-title-row { display: flex; justify-content: space-between; align-items: center; }
.wish-title { font-size: 16px; font-weight: bold; }
.wish-tag { font-size: 12px; color: var(--accent-mint); border: 1px solid var(--accent-mint); padding: 1px 6px; }
.progress-wrap { height: 4px; background-color: var(--line-color); width: 100%; }
.progress-bar { height: 100%; background-color: var(--accent-yellow); width: 0; transition: width 0.3s; }
.wish-bottom { display: flex; justify-content: space-between; font-size: 12px; color: var(--chalk-faded); }
.btn-wish {
  background-color: transparent;
  border: 1px solid var(--accent-yellow);
  color: var(--accent-yellow);
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-wish:hover { background-color: var(--accent-yellow); color: var(--bg-dark); }
.btn-wish.added { background-color: var(--accent-yellow); color: var(--bg-dark); border-color: var(--accent-yellow); cursor: default; }

/* 放映角 */
.player-corner {
  display: flex; flex-direction: column; align-items: center;
  position: relative; max-width: 800px; margin: 0 auto;
}
.phone-mockup {
  width: 220px; height: 440px;
  border: 4px solid var(--chalk-white);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-panel);
  z-index: 2;
}
.phone-screen { width: 100%; height: 100%; position: relative; }
.phone-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.5s ease-in-out;
  object-fit: cover;
}
.phone-slide.active { opacity: 1; }
.swipe-hint {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: var(--chalk-white); font-size: 12px; opacity: 1; transition: opacity 0.3s;
  background: rgba(0,0,0,0.5); padding: 4px 8px; border-radius: 10px;
}
.dots { display: flex; gap: 8px; margin-top: 15px; z-index: 2; }
.dot { width: 8px; height: 8px; border-radius: 50%; background-color: var(--line-color); cursor: pointer; }
.dot.active { background-color: var(--accent-yellow); }

.float-ann {
  position: absolute; font-family: "KaiTi", serif; font-size: 15px; z-index: 1;
}
.ann-p1 { top: 20%; left: 5%; color: var(--accent-yellow); transform: rotate(-5deg); }
.ann-p2 { top: 40%; left: 10%; color: var(--accent-mint); transform: rotate(4deg); }
.ann-p3 { top: 25%; right: 5%; color: var(--accent-mint); transform: rotate(5deg); }
.ann-p4 { top: 45%; right: 8%; color: var(--accent-red); transform: rotate(-4deg); }

/* 观众锐评 */
.review-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.review-card {
  background-color: var(--bg-panel);
  padding: 20px;
  border: 1px solid var(--line-color);
  position: relative;
}
.review-mark {
  position: absolute; top: 15px; right: 15px;
  font-size: 20px; font-weight: bold;
}
.mark-good { color: var(--accent-yellow); }
.mark-bad { color: var(--accent-red); }
.review-text { font-size: 14px; color: var(--chalk-aux); margin-bottom: 15px; margin-top: 10px; }
.review-author { font-size: 12px; color: var(--chalk-faded); display: flex; align-items: center; gap: 10px; }
.review-rating { color: var(--accent-yellow); font-weight: bold; }

/* 选片指南 */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line-color); }
.faq-q {
  padding: 15px; background-color: var(--bg-panel); cursor: pointer; display: flex; gap: 10px;
  font-weight: bold; color: var(--chalk-white); user-select: none;
}
.faq-q:hover { background-color: rgba(255,255,255,0.05); }
.faq-qnum { color: var(--accent-yellow); font-family: monospace; }
.faq-a {
  padding: 0 15px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s;
  font-size: 14px; color: var(--chalk-aux); background-color: var(--bg-panel);
}
.faq-item.open .faq-a { padding: 0 15px 15px 15px; max-height: 200px; }

/* 下载区 */
.download-section {
  text-align: center;
  border: 3px dashed var(--chalk-white);
  padding: 50px 20px;
  margin-bottom: 60px;
  position: relative;
}
.download-deco { font-size: 24px; color: var(--accent-yellow); margin-bottom: 10px; font-weight: bold; letter-spacing: 5px; }
.download-section h2 { font-size: 32px; margin-bottom: 15px; color: var(--chalk-white); }
.download-section p { color: var(--chalk-aux); margin-bottom: 30px; font-size: 16px; }

/* 页脚 */
footer {
  background-color: var(--bg-panel);
  padding: 40px 20px 20px;
  border-top: 1px solid var(--line-color);
  font-size: 13px;
  color: var(--chalk-faded);
}
.footer-content {
  max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--chalk-faded); }
.footer-links a:hover { color: var(--chalk-white); }
.footer-bottom { border-top: 1px dashed var(--line-color); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* 响应式 */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
  .nav-actions .btn-nav-download { display: block; }
  
  h1.hero-title { font-size: 48px; }
  .wall-item { max-width: 260px; }
  
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .steps-container { flex-direction: row; }
  .step-item { flex: 1; border-bottom: none; border-right: 1px solid var(--line-color); }
  .step-item:last-child { border-right: none; }
  
  .rank-item { gap: 20px; }
  .rank-bar-wrap { display: block; }
  
  .filter-controls { flex-direction: row; align-items: center; }
  .search-box { width: 300px; }
  
  .lib-grid { grid-template-columns: repeat(5, 1fr); }
  
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  
  .phone-mockup { width: 260px; height: 520px; }
  .float-ann { font-size: 18px; }
  .ann-p1 { left: 15%; }
  .ann-p2 { left: 20%; }
  .ann-p3 { right: 15%; }
  .ann-p4 { right: 20%; }
}

@media (min-width: 1024px) {
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .wall-item { max-width: 300px; }
  .hero-wall { gap: 30px; }
  
  .phone-mockup { width: 300px; height: 600px; }
  .ann-p1 { left: 25%; }
  .ann-p2 { left: 30%; }
  .ann-p3 { right: 25%; }
  .ann-p4 { right: 30%; }
}

/* 动画 */
.fade-up { transition: transform 0.6s ease-out, opacity 0.6s ease-out; }