:root {
  --bg: #000000;
  --surface: #121212;
  --surface-hover: #1a1a1a;
  --accent-yellow: #facc15;
  --accent-red: #dc2626;
  --text-main: #f5f5f5;
  --text-muted: #a3a3a3;
  --border-red: rgba(220, 38, 38, 0.4);
  --font-title: 'Bebas Neue', 'Impact', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

/* 顶部导航 */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  z-index: 1000;
  transition: background 0.3s, border-bottom 0.3s;
  background: transparent;
}

.header-nav.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--accent-yellow);
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.15);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-area img {
  height: 32px;
  width: auto;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 24px;
  letter-spacing: 1px;
  color: #ffffff;
}

.logo-text span {
  color: var(--accent-yellow);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--accent-yellow);
}

.btn-download-nav {
  background: var(--accent-red);
  color: #fff;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
  animation: pulse-red 2s infinite;
  display: inline-block;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 5px rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 20px rgba(220, 38, 38, 0.8); }
  100% { box-shadow: 0 0 5px rgba(220, 38, 38, 0.4); }
}

/* 首屏 Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 100px 20px 60px;
  overflow: hidden;
}

.spotlight {
  position: absolute;
  top: 0;
  width: 60vw;
  height: 100vh;
  background: radial-gradient(ellipse at top, rgba(250, 204, 21, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

.spotlight-left {
  left: -20vw;
  transform-origin: top left;
  animation: swing-left 10s infinite alternate ease-in-out;
}

.spotlight-right {
  right: -20vw;
  transform-origin: top right;
  animation: swing-right 10s infinite alternate ease-in-out;
  background: radial-gradient(ellipse at top, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
}

@keyframes swing-left {
  0% { transform: rotate(-15deg); }
  100% { transform: rotate(15deg); }
}

@keyframes swing-right {
  0% { transform: rotate(15deg); }
  100% { transform: rotate(-15deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(48px, 8vw, 100px);
  line-height: 1.1;
  letter-spacing: 4px;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.hero-title .highlight {
  color: var(--accent-yellow);
  text-shadow: 0 0 30px rgba(250, 204, 21, 0.5);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--text-muted);
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent-yellow);
  color: #000;
  padding: 15px 40px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.2s, background 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  background: #eab308;
  transform: scale(1.05);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--accent-yellow);
  padding: 15px 40px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(250, 204, 21, 0.1);
}

/* 悬浮电影票根 */
.ticket-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.ticket {
  background: rgba(18, 18, 18, 0.6);
  border: 1px solid rgba(250, 204, 21, 0.3);
  padding: 12px 24px;
  border-radius: 8px;
  color: var(--accent-yellow);
  font-size: 14px;
  font-weight: 600;
  position: relative;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticket::before, .ticket::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--bg);
  border-radius: 50%;
  transform: translateY(-50%);
}

.ticket::before { left: -4px; }
.ticket::after { right: -4px; }

/* 通用版块 */
.section {
  padding: 80px 5%;
  position: relative;
}

.section-title {
  font-family: var(--font-title);
  font-size: 42px;
  color: var(--accent-yellow);
  margin-bottom: 40px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 30px;
  background: var(--accent-red);
}

/* 今夜上新 时间轴 */
.timeline-section {
  background: var(--bg);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background: rgba(250, 204, 21, 0.2);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: 14px;
  top: 20px;
  width: 14px;
  height: 14px;
  background: #333;
  border: 2px solid #555;
  border-radius: 50%;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.timeline-item.active .timeline-dot {
  background: var(--accent-red);
  border-color: var(--accent-yellow);
  box-shadow: 0 0 15px var(--accent-red);
}

.timeline-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border-red);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  gap: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
  align-items: center;
}

.timeline-item.active .timeline-card {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.1);
}

.timeline-card:hover {
  transform: translateX(10px);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.15);
}

.timeline-card img {
  width: 80px;
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
}

.timeline-info h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}

.timeline-info p {
  font-size: 14px;
  color: var(--text-muted);
}

/* 午夜放映机 横向滚动 */
.horizontal-scroll-section {
  background: var(--bg);
}

.scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.poster-card {
  flex: 0 0 calc(100% / 3.5);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border-red);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  perspective: 1000px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .poster-card { flex: 0 0 calc(100% / 2.5); }
}

@media (max-width: 768px) {
  .poster-card { flex: 0 0 80%; }
}

.poster-card:hover {
  transform: rotateX(8deg) translateY(-10px);
  box-shadow: 0 15px 30px rgba(250, 204, 21, 0.2);
  border-color: var(--accent-yellow);
}

.poster-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.poster-card .moon-icon {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 24px;
  color: var(--accent-yellow);
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
  z-index: 2;
}

.poster-info {
  padding: 15px;
  background: linear-gradient(to top, var(--surface), transparent);
}

.poster-info h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 5px;
}

.poster-info p {
  font-size: 13px;
  color: var(--text-muted);
}

/* AI放映室 */
.ai-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  padding: 100px 5%;
}

.ai-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.05) 0%, transparent 40%, rgba(220, 38, 38, 0.05) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
  z-index: 0;
  pointer-events: none;
}

.ai-container {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.ai-content {
  flex: 1;
}

.ai-content h2 {
  font-family: var(--font-title);
  font-size: 38px;
  color: var(--accent-yellow);
  margin-bottom: 20px;
}

.ai-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.ai-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.film-reel {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 10px dotted var(--accent-yellow);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 30px rgba(250, 204, 21, 0.2);
  transition: transform 0.1s linear;
}

.film-reel::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-red);
  opacity: 0.8;
}

.film-reel::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
}

/* 片库分类 */
.library-section {
  background: var(--bg);
}

.accordion-container {
  display: flex;
  height: 400px;
  gap: 10px;
  overflow: hidden;
}

.accordion-panel {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border-red);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: flex 0.5s ease, box-shadow 0.5s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.accordion-panel:hover {
  flex: 2.5;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.15);
  border-color: var(--accent-yellow);
}

.accordion-panel h3 {
  font-family: var(--font-title);
  font-size: 28px;
  color: var(--accent-yellow);
  margin-bottom: 10px;
  writing-mode: vertical-lr;
  letter-spacing: 4px;
  transition: writing-mode 0.5s, margin 0.5s;
}

.accordion-panel:hover h3 {
  writing-mode: horizontal-tb;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s, transform 0.5s;
  margin-bottom: 20px;
}

.accordion-panel:hover .accordion-list {
  opacity: 1;
  transform: translateX(0);
}

.accordion-list li {
  font-size: 14px;
  color: var(--text-main);
  background: rgba(0,0,0,0.6);
  padding: 8px 12px;
  border-radius: 4px;
  border-left: 3px solid var(--accent-red);
}

/* 票根榜单 */
.ranking-section {
  background: var(--bg);
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 120px;
  gap: 15px;
}

.rank-card {
  background: var(--surface);
  border: 1px dashed rgba(220, 38, 38, 0.5);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: transform 0.3s, background 0.3s;
  position: relative;
}

.rank-card::after {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 10px;
  width: 1px;
  border-right: 2px dashed rgba(250, 204, 21, 0.3);
}

.rank-card:hover {
  transform: scale(1.02);
  background: var(--surface-hover);
  border-color: var(--accent-red);
}

.rank-card img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.rank-1 { grid-column: span 2; grid-row: span 2; }
.rank-1 img { width: 100px; height: 140px; }
.rank-1 .rank-info h3 { font-size: 24px; }
.rank-2 { grid-column: span 2; grid-row: span 1; }
.rank-3 { grid-column: span 2; grid-row: span 1; }
.rank-4 { grid-column: span 1; grid-row: span 1; }
.rank-5 { grid-column: span 1; grid-row: span 1; }
.rank-6 { grid-column: span 1; grid-row: span 1; }

.rank-number {
  font-family: var(--font-title);
  font-size: 36px;
  color: var(--accent-red);
  opacity: 0.8;
  position: absolute;
  top: 5px;
  right: 15px;
}

.rank-info h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
}

.rank-info p {
  font-size: 12px;
  color: var(--accent-yellow);
}

/* 影院规则 */
.rules-section {
  background: var(--bg);
}

.rule-bar {
  background: var(--surface);
  border-left: 4px solid var(--accent-red);
  margin-bottom: 15px;
  padding: 20px 30px;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.rule-bar:hover {
  padding-left: 40px;
  background: var(--surface-hover);
  border-left-color: var(--accent-yellow);
}

.rule-icon {
  font-size: 24px;
  color: var(--accent-yellow);
}

.rule-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  min-width: 100px;
  transition: margin-right 0.3s;
}

.rule-desc {
  color: var(--text-muted);
  font-size: 14px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.3s 0.1s, transform 0.3s 0.1s;
  width: 100%;
}

.rule-bar:hover .rule-desc {
  opacity: 1;
  transform: translateX(0);
}

/* 下载与FAQ */
.download-section {
  background: var(--bg);
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.download-left {
  flex: 1;
  min-width: 300px;
}

.download-left h2 {
  font-family: var(--font-title);
  font-size: 48px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 30px;
}

.download-left h2 span {
  color: var(--accent-yellow);
}

.dl-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-dl {
  background: #fff;
  color: #000;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, background 0.2s;
}

.btn-dl:hover {
  transform: translateY(-2px);
  background: #e5e5e5;
}

.btn-dl-outline {
  background: transparent;
  color: #fff;
  border: 1px solid #444;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, border-color 0.2s;
}

.btn-dl-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: #fff;
}

.faq-container {
  flex: 1;
  min-width: 300px;
}

.faq-item {
  border-bottom: 1px solid #333;
  padding: 15px 0;
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--accent-yellow);
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--accent-red);
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-top: 10px;
}

/* 页脚 */
footer {
  background: #050505;
  padding: 60px 5% 30px;
  border-top: 1px solid #1a1a1a;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-col h4 {
  color: var(--accent-yellow);
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #555;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--accent-red);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid #1a1a1a;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  color: #555;
}

.footer-bottom a {
  color: #555;
  transition: color 0.3s;
}

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

.footer-bottom .time {
  font-size: 12px;
  color: #444;
}

.gradient-line {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-yellow));
  margin: 40px auto 0;
  max-width: 1200px;
  opacity: 0.5;
}

/* 响应式 */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .masonry-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-1 { grid-column: span 2; }
  .rank-2, .rank-3 { grid-column: span 1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 48px; }
  .hero-subtitle { font-size: 16px; }
  .section { padding: 60px 5%; }
  .section-title { font-size: 32px; }
  .timeline::before { left: 10px; }
  .timeline-item { padding-left: 40px; }
  .timeline-dot { left: 4px; }
  .timeline-card { flex-direction: column; align-items: flex-start; }
  .timeline-card img { width: 100%; height: auto; aspect-ratio: 16/9; }
  .masonry-grid { display: flex; flex-direction: column; }
  .accordion-container { flex-direction: column; height: auto; }
  .accordion-panel { flex: none; height: 180px; }
  .accordion-panel:hover { flex: none; }
  .accordion-panel h3 { writing-mode: horizontal-tb; }
  .accordion-list { opacity: 1; transform: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .download-section { flex-direction: column; }
  .rule-bar { flex-direction: column; align-items: flex-start; }
  .rule-title { margin-bottom: 10px; }
  .rule-desc { opacity: 1; transform: none; }
}