:root {
  --bg-light: #f7f4ee;
  --bg-white: #ffffff;
  --brand-green: #84cc16;
  --brand-dark: #1a2e05;
  --text-main: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-light: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-hover: 0 12px 24px rgba(0,0,0,0.1);
  --neon-cyan: #06b6d4;
  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-dark);
}
.logo-group img {
  height: 32px;
  width: auto;
  border-radius: 4px;
}
.nav-links {
  display: flex;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--brand-green); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border-radius: 20px;
  padding: 6px 12px;
  border: 1px solid var(--border-color);
}
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 120px;
}
.btn-download-top {
  background-color: var(--brand-green);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}
.btn-download-top:hover { background-color: #65a30d; }

/* Section 1: 放映厅 */
.hero-section {
  padding: 40px 0;
  background: radial-gradient(circle at center, #ffffff 0%, var(--bg-light) 100%);
  position: relative;
}
.hero-title {
  text-align: center;
  font-size: 32px;
  color: var(--brand-dark);
  margin-bottom: 30px;
}
.hall-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}
.hall-card {
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  padding: 20px;
  flex: 1;
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s, box-shadow 0.3s;
}
.hall-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.hall-card img {
  width: 80px;
  height: 112px;
  border-radius: 8px;
  object-fit: cover;
}
.hall-info h3 { font-size: 16px; margin-bottom: 4px; color: var(--brand-dark); }
.hall-info p { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.btn-enter-hall {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid var(--brand-green);
  color: var(--brand-green);
  border-radius: 12px;
  font-weight: 500;
}
.hero-cta {
  text-align: center;
  background: var(--brand-dark);
  color: #fff;
  padding: 30px;
  border-radius: 24px;
  max-width: 600px;
  margin: 0 auto;
}
.hero-cta p { margin-bottom: 16px; font-size: 15px; opacity: 0.9; }
.btn-ticket {
  display: inline-block;
  background: var(--brand-green);
  color: var(--brand-dark);
  padding: 12px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  position: relative;
}
.btn-ticket::before, .btn-ticket::after {
  content: '';
  position: absolute;
  top: 50%; width: 12px; height: 12px;
  background: var(--brand-dark);
  border-radius: 50%;
  transform: translateY(-50%);
}
.btn-ticket::before { left: -6px; }
.btn-ticket::after { right: -6px; }

/* Section 2: 时刻表 */
.schedule-section { padding: 40px 0; }
.section-title { font-size: 24px; text-align: center; margin-bottom: 24px; color: var(--brand-dark); }
.schedule-board {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border-color);
}
.time-row {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border-color);
}
.time-row:last-child { border-bottom: none; }
.time-label {
  font-size: 20px;
  font-weight: 700;
  color: var(--neon-cyan);
  width: 100px;
  flex-shrink: 0;
  font-family: monospace;
}
.time-row.active .time-label { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.time-content {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.mini-card {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg-light);
  padding: 8px;
  border-radius: 8px;
  flex-shrink: 0;
}
.mini-card img { width: 40px; height: 56px; border-radius: 4px; }
.mini-card span { font-size: 13px; font-weight: 500; }

/* Section 3: 片单 */
.tabs-section { padding: 40px 0; }
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}
.tab-btn {
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn.active {
  background: var(--brand-green);
  color: #fff;
  border-color: var(--brand-green);
}
.tab-content { display: none; }
.tab-content.active { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.drama-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s;
  position: relative;
}
.drama-card:hover { transform: translateY(-6px); }
.drama-cover { position: relative; }
.drama-cover img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--brand-green);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}
.drama-info { padding: 12px; }
.drama-info h3 { font-size: 15px; margin-bottom: 6px; color: var(--brand-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drama-meta { font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center; }

/* Section 4: 独播 */
.premiere-section { padding: 40px 0; }
.premiere-layout { display: flex; gap: 30px; }
.premiere-main {
  flex: 1;
  background: var(--bg-white);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 24px;
  box-shadow: var(--shadow-light);
}
.premiere-main img { width: 200px; border-radius: 12px; }
.premiere-info h3 { font-size: 20px; margin-bottom: 12px; }
.premiere-info p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.countdown-box {
  background: var(--bg-light);
  padding: 12px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 600;
  color: var(--neon-cyan);
  margin-bottom: 20px;
}
.btn-book {
  display: inline-block;
  background: var(--brand-green);
  color: #fff;
  padding: 8px 24px;
  border-radius: 20px;
  font-weight: 500;
}
.premiere-list {
  width: 320px;
  flex-shrink: 0;
  background: var(--bg-white);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-light);
}
.premiere-list h3 { font-size: 16px; margin-bottom: 16px; }
.premiere-list ul { display: flex; flex-direction: column; gap: 12px; }
.premiere-list li { display: flex; gap: 12px; align-items: center; }
.premiere-list img { width: 50px; height: 70px; border-radius: 6px; object-fit: cover; }
.premiere-list-info span { display: block; font-size: 14px; font-weight: 500; }
.premiere-list-info small { font-size: 12px; color: var(--text-muted); }

/* Section 5: 会员卡 */
.member-section { padding: 40px 0; text-align: center; }
.member-cards { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }
.m-card {
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  width: 280px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transform: rotate(-5deg);
  transition: all 0.3s;
  text-align: left;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.m-card:nth-child(2) { transform: rotate(0deg) translateY(-10px); background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); }
.m-card:nth-child(3) { transform: rotate(5deg); }
.m-card:hover { transform: rotate(0) scale(1.05); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.m-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--brand-dark); }
.m-card p { font-size: 13px; color: var(--text-muted); }
.rules-text { font-size: 12px; color: var(--text-muted); margin-top: 30px; }

/* Section 6: 口碑 */
.reviews-section { padding: 40px 0; background: #f1f5f9; }
.stats-row { display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; }
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 32px; color: var(--brand-green); font-weight: 800; }
.stat-item span { font-size: 14px; color: var(--text-muted); }
.ticket-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.ticket {
  background: #fff;
  width: 300px;
  padding: 16px;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  position: relative;
  box-shadow: var(--shadow-light);
  transform: rotate(2deg);
}
.ticket:nth-child(even) { transform: rotate(-2deg); }
.ticket::before, .ticket::after {
  content: ''; position: absolute; top: 50%; width: 16px; height: 16px; background: #f1f5f9; border-radius: 50%; transform: translateY(-50%);
}
.ticket::before { left: -8px; }
.ticket::after { right: -8px; }
.ticket-avatar img { width: 40px; height: 40px; border-radius: 50%; }
.ticket-content h4 { font-size: 14px; margin-bottom: 4px; }
.ticket-content .stars { color: #f59e0b; font-size: 12px; margin-bottom: 6px; }
.ticket-content p { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

/* Section 7: 下载 */
.download-section { padding: 60px 0; }
.faq-list { max-width: 800px; margin: 0 auto 40px; }
.faq-item { background: var(--bg-white); border-radius: 12px; margin-bottom: 12px; padding: 16px 20px; box-shadow: var(--shadow-light); }
.faq-item h3 { font-size: 16px; margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--text-muted); }

.gate-layout { display: flex; justify-content: center; align-items: stretch; gap: 20px; max-width: 860px; margin: 0 auto; }
.gate-box {
  flex: 1; background: var(--bg-white); border-radius: 16px; padding: 30px; box-shadow: var(--shadow-light); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.gate-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin-top: 20px; }
.btn-device { display: flex; align-items: center; justify-content: center; background: var(--bg-light); border: 1px solid var(--border-color); padding: 10px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.btn-device:hover { background: var(--brand-green); color: #fff; border-color: var(--brand-green); }
.qr-box img { width: 160px; height: 160px; margin: 0 auto 12px; border-radius: 8px; }
.qr-box p { font-size: 14px; color: var(--text-muted); }

/* Footer */
footer {
  background: #f8fafc;
  padding: 40px 0 20px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
.footer-brand { max-width: 300px; }
.footer-brand p { margin-top: 10px; }
.footer-links { display: flex; gap: 50px; }
.footer-col h4 { font-size: 14px; color: var(--text-main); margin-bottom: 12px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a:hover { color: var(--brand-green); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 20px; text-align: center; font-size: 12px; }
.footer-bottom p { margin-bottom: 8px; }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { text-decoration: underline; }

@media (max-width: 1024px) {
  .hall-cards { flex-direction: column; }
  .premiere-layout { flex-direction: column; }
  .premiere-list { width: 100%; }
  .premiere-main { flex-direction: column; align-items: center; text-align: center; }
  .premiere-main img { width: 150px; }
  .member-cards { flex-direction: column; align-items: center; }
  .m-card { width: 100%; max-width: 400px; transform: rotate(0) !important; margin-bottom: 16px; }
  .gate-layout { flex-direction: column; }
}

@media (max-width: 768px) {
  .nav-links, .search-box { display: none; }
  .time-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .time-content { width: 100%; }
  .stats-row { flex-direction: column; gap: 20px; }
  .footer-links { flex-direction: column; gap: 20px; }
  .gate-buttons { grid-template-columns: 1fr; }
}