:root {
    --bg: #000000;
    --surface: #121212;
    --surface-light: #1a1a1a;
    --primary: #facc15;
    --secondary: #dc2626;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --border: #27272a;
    --font-display: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }

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

  html {
    scroll-behavior: smooth;
  }

  body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  /* 探照灯背景 */
  .spotlight-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }
  .spotlight {
    position: absolute;
    top: -20%;
    width: 60vw;
    height: 120vh;
    background: radial-gradient(ellipse at top, rgba(250, 204, 21, 0.12) 0%, transparent 60%);
    filter: blur(40px);
    transform-origin: top center;
    opacity: 0.6;
  }
  .spotlight.left {
    left: -10%;
    animation: swayLeft 10s infinite alternate ease-in-out;
  }
  .spotlight.right {
    right: -10%;
    background: radial-gradient(ellipse at top, rgba(220, 38, 38, 0.1) 0%, transparent 60%);
    animation: swayRight 12s infinite alternate ease-in-out;
  }

  @keyframes swayLeft {
    0% { transform: rotate(-15deg); }
    100% { transform: rotate(10deg); }
  }
  @keyframes swayRight {
    0% { transform: rotate(15deg); }
    100% { transform: rotate(-10deg); }
  }

  /* 导航 */
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
  }
  .navbar.scrolled {
    border-bottom: 1px solid var(--primary);
    box-shadow: 0 4px 20px rgba(250, 204, 21, 0.1);
  }
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
  }
  .nav-brand img {
    height: 32px;
    width: auto;
  }
  .nav-brand span {
    color: var(--primary);
  }
  .nav-links {
    display: none;
    gap: 28px;
  }
  .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
  }
  .nav-links a:hover {
    color: var(--primary);
  }
  .nav-download {
    background-color: var(--secondary);
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: pulseRed 2s infinite;
  }
  @keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
  }

  @media (min-width: 768px) {
    .nav-links { display: flex; }
  }

  /* 内容容器 */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
  }

  /* 首屏 */
  .hero {
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    z-index: 1;
  }
  .hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    letter-spacing: 2px;
    color: var(--text-main);
    margin-bottom: 20px;
    text-transform: uppercase;
  }
  .hero h1 .highlight-y {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.4);
  }
  .hero h1 .highlight-r {
    color: var(--secondary);
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
  }
  .hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
  }
  .cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
  }
  .btn-primary {
    background-color: var(--primary);
    color: #000;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.4);
  }
  .btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: border-color 0.3s;
  }
  .btn-secondary:hover {
    border-color: var(--secondary);
    color: var(--secondary);
  }

  /* 票根标签 */
  .ticket-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
  }
  .ticket {
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .ticket::before, .ticket::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--bg);
    border-radius: 50%;
  }
  .ticket::before { left: -5px; }
  .ticket::after { right: -5px; }
  .ticket span {
    color: var(--primary);
    font-weight: 700;
  }

  /* 通用区块标题 */
  .section-header {
    text-align: center;
    margin-bottom: 48px;
  }
  .section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: 1px;
    color: var(--text-main);
    margin-bottom: 8px;
  }
  .section-header h2 .accent {
    color: var(--primary);
  }
  .section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
  }

  /* 午夜放映机 (横向滚动) */
  .film-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0 40px;
    scrollbar-width: none;
  }
  .film-strip::-webkit-scrollbar {
    display: none;
  }
  .film-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid #1f1f1f;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    transform-style: preserve-3d;
    perspective: 800px;
    position: relative;
  }
  .film-card:hover {
    transform: rotateX(5deg) translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.15);
  }
  .film-card .poster {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
  }
  .film-card .card-body {
    padding: 16px;
  }
  .film-card h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .film-card .tag {
    font-size: 0.75rem;
    color: var(--primary);
    border: 1px solid rgba(250, 204, 21, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
  }

  /* 剧场时间轴 */
  .timeline-section {
    padding: 60px 0;
  }
  .timeline {
    position: relative;
    border-left: 2px solid #1f1f1f;
    margin-left: 20px;
  }
  .timeline-item {
    position: relative;
    padding: 20px 0 20px 30px;
  }
  .timeline-node {
    position: absolute;
    left: -7px;
    top: 32px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--surface-light);
    border: 2px solid #333;
    transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
  }
  .timeline-item.active .timeline-node {
    background: var(--secondary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--secondary);
  }
  .timeline-date {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
  }
  .timeline-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
  }
  .timeline-card img {
    width: 80px;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
  }
  .timeline-card-info h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 8px;
  }
  .timeline-card-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* AI放映室 */
  .ai-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.05) 0%, transparent 50%, rgba(220, 38, 38, 0.05) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .ai-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  @media (min-width: 768px) {
    .ai-grid { grid-template-columns: 1fr 1fr; }
  }
  .ai-panel {
    background: var(--surface);
    border: 1px solid var(--secondary);
    border-radius: 12px;
    padding: 28px;
  }
  .ai-panel h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 16px;
  }
  .vote-option {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: border-color 0.3s;
  }
  .vote-option:hover {
    border-color: var(--primary);
  }
  .vote-option .pct {
    color: var(--primary);
    font-weight: 700;
  }
  .data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .data-cell {
    background: rgba(0,0,0,0.4);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
  }
  .data-cell .num {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary);
  }
  .data-cell .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  /* 片库手风琴 */
  .library-section {
    padding: 60px 0;
  }
  .library-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  @media (min-width: 768px) {
    .library-container {
      flex-direction: row;
      height: 400px;
    }
  }
  .lib-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    transition: flex 0.4s ease, background 0.3s;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    min-height: 80px;
  }
  @media (min-width: 768px) {
    .lib-item {
      flex: 1;
      min-height: auto;
    }
    .lib-item:hover {
      flex: 3;
      background: var(--surface-light);
      border-color: var(--secondary);
    }
  }
  .lib-item h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 16px;
    white-space: nowrap;
  }
  .lib-list {
    list-style: none;
    opacity: 0;
    transition: opacity 0.4s;
  }
  .lib-item:hover .lib-list {
    opacity: 1;
  }
  .lib-list li {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid #1f1f1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 票根榜单 */
  .ranking-section {
    padding: 60px 0;
  }
  .ranking-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  @media (min-width: 768px) {
    .ranking-grid {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto;
    }
    .rank-1 { grid-row: span 2; }
  }
  .rank-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    border-right: 2px dashed #333;
    transition: transform 0.3s, border-color 0.3s;
  }
  .rank-card:hover {
    transform: translateX(4px);
    border-color: var(--primary);
  }
  .rank-card img {
    width: 90px;
    object-fit: cover;
  }
  .rank-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .rank-info .rank-num {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 4px;
  }
  .rank-info h3 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 4px;
  }
  .rank-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  .rank-1 {
    flex-direction: column;
  }
  .rank-1 img {
    width: 100%;
    height: 220px;
  }
  .rank-1 .rank-info {
    padding: 20px;
  }

  /* 影院守则 */
  .rules-section {
    padding: 60px 0;
  }
  .rules-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .rule-bar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s, border-color 0.3s;
    cursor: default;
    position: relative;
    overflow: hidden;
  }
  .rule-bar:hover {
    transform: translateX(8px);
    border-color: var(--primary);
  }
  .rule-icon {
    font-size: 1.5rem;
  }
  .rule-title {
    font-weight: 700;
    color: var(--text-main);
    min-width: 100px;
  }
  .rule-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s, transform 0.3s;
    flex: 1;
  }
  .rule-bar:hover .rule-desc {
    opacity: 1;
    transform: translateX(0);
  }

  /* 下载与FAQ */
  .download-section {
    padding: 80px 0;
  }
  .download-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  @media (min-width: 768px) {
    .download-grid { grid-template-columns: 1fr 1fr; }
  }
  .dl-box h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 24px;
    line-height: 1.2;
  }
  .dl-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  .dl-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    color: var(--text-main);
    text-decoration: none;
    padding: 14px 24px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-weight: 600;
    transition: border-color 0.3s, background 0.3s;
  }
  .dl-btn:hover {
    border-color: var(--primary);
    background: var(--surface-light);
  }
  .faq-box details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
  }
  .faq-box summary {
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .faq-box summary::-webkit-details-marker { display: none; }
  .faq-box summary::after {
    content: '+';
    color: var(--primary);
    font-size: 1.2rem;
  }
  .faq-box details[open] summary::after {
    content: '-';
  }
  .faq-box details p {
    padding: 0 20px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
  }

  /* 页脚 */
  .footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    background: #050505;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }
  @media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
  }
  .footer-col h4 {
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 16px;
    font-weight: 700;
  }
  .footer-col a, .footer-col p {
    display: block;
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 10px;
    transition: color 0.3s;
  }
  .footer-col a:hover {
    color: var(--text-main);
  }
  .footer-bottom {
    text-align: center;
    font-size: 0.75rem;
    color: #444;
    padding-top: 24px;
    border-top: 1px solid #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .footer-bottom a {
    color: #555;
    text-decoration: none;
  }
  .footer-bottom a:hover {
    color: var(--text-muted);
  }
  .footer-gradient {
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin-top: 20px;
  }