:root {
  --bg-dark: #0d1024;
  --bg-panel: #131734;
  --bg-card: #1a1f42;
  --bg-card-hover: #232a55;
  --gold: #f5c06a;
  --gold-dark: #d99a3f;
  --violet: #8b7fd4;
  --text-main: #e2e5f5;
  --text-muted: #8c92b5;
  --line-color: rgba(245, 192, 106, 0.15);
  --line-violet: rgba(139, 127, 212, 0.2);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% 0%, rgba(139, 127, 212, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(245, 192, 106, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

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

ul {
  list-style: none;
}

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

/* 导航条 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 16, 36, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-color);
  z-index: 1000;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: bold;
  color: var(--gold);
  letter-spacing: 1px;
}

.brand img {
  height: 32px;
  border-radius: 6px;
}

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

.nav-links a {
  color: var(--text-main);
  font-size: 15px;
  transition: color 0.3s;
}

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

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

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-dark);
  border: none;
  box-shadow: 0 4px 15px rgba(245, 192, 106, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 192, 106, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: rgba(245, 192, 106, 0.1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--gold);
  transition: 0.3s;
}

/* 首屏 */
.hero {
  padding: 140px 0 80px;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 500px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(139, 127, 212, 0.2);
  color: var(--violet);
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--line-violet);
}

.hero h1 {
  font-size: 52px;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--line-violet);
  padding-top: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold);
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* 放映灯箱 */
.lightbox {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  max-width: 400px;
  margin: 0 auto;
  background: var(--bg-panel);
  border-radius: 20px;
  border: 1px solid var(--line-color);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: breathe 6s infinite alternate;
}

@keyframes breathe {
  0% { box-shadow: 0 20px 50px rgba(245, 192, 106, 0.1); }
  100% { box-shadow: 0 20px 60px rgba(245, 192, 106, 0.3); }
}

.lightbox::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100px;
  background: radial-gradient(ellipse at top, rgba(245, 192, 106, 0.4), transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

.badge {
  position: absolute;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  z-index: 2;
}

.badge-top {
  top: 20px;
  left: 20px;
  background: rgba(229, 72, 77, 0.9);
  color: #fff;
}

.badge-bottom {
  top: 60px;
  left: 20px;
  background: rgba(245, 192, 106, 0.9);
  color: var(--bg-dark);
}

.lightbox-text {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  z-index: 2;
  letter-spacing: 2px;
  background: linear-gradient(to top, rgba(13,16,36,0.9), transparent);
  padding: 20px 0 10px;
}

/* 通用区块样式 */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* 三种剧种 */
.genre-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.genre-card {
  background: var(--bg-card);
  border: 1px solid var(--line-violet);
  border-radius: 16px;
  padding: 30px;
  transition: transform 0.3s, background 0.3s;
}

.genre-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
}

.genre-card h3 {
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 12px;
}

.genre-card p {
  font-size: 15px;
  color: var(--text-muted);
}

/* 榜单行 */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 40px 60px 1fr 120px 100px 60px;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.rank-row:hover {
  border-color: var(--line-color);
  transform: translateX(5px);
}

.rank-num {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-muted);
  text-align: center;
}

.rank-row.top1 .rank-num {
  color: var(--gold);
  font-size: 24px;
}

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

.rank-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

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

.heat-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.heat-bar {
  height: 100%;
  background: linear-gradient(to right, var(--gold-dark), var(--gold));
  border-radius: 3px;
}

.rank-score {
  font-size: 18px;
  font-weight: bold;
  color: var(--gold);
  text-align: right;
}

/* 分栏布局 */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* 左图右文内容卡 */
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.content-card {
  display: flex;
  background: var(--bg-panel);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-violet);
  transition: transform 0.3s;
}

.content-card:hover {
  transform: translateY(-4px);
}

.content-card img {
  width: 140px;
  height: 190px;
  object-fit: cover;
  flex-shrink: 0;
}

.content-card-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-card-info h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--gold);
}

.content-card-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(139, 127, 212, 0.2);
  color: var(--violet);
  border-radius: 4px;
  font-size: 12px;
}

/* 筛选区 */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line-violet);
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.chip:hover, .chip.active {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}

/* 手机演示 */
.phone-mockup {
  width: 260px;
  height: 520px;
  background: #000;
  border-radius: 30px;
  border: 8px solid var(--bg-card);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.phone-screen img.active {
  opacity: 1;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line-violet);
  padding: 20px 0;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 0;
}

.faq-item.open .faq-a {
  max-height: 200px;
  margin-top: 12px;
}

.faq-icon {
  color: var(--gold);
  transition: transform 0.3s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* 下载区 */
.download-section {
  text-align: center;
  background: linear-gradient(to right, var(--bg-panel), var(--bg-card));
  border-top: 1px solid var(--line-color);
  border-bottom: 1px solid var(--line-color);
  padding: 100px 20px;
}

.download-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--gold);
}

.download-section p {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 16px;
}

.download-btn-large {
  font-size: 18px;
  padding: 16px 48px;
}

/* 页脚 */
footer {
  padding: 40px 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--line-color);
}

footer a {
  color: var(--text-muted);
  transition: color 0.3s;
}

footer a:hover {
  color: var(--gold);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.footer-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .lightbox {
    margin-top: 40px;
  }
  .split-layout {
    grid-template-columns: 1fr;
  }
  .genre-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .rank-row {
    grid-template-columns: 30px 50px 1fr 60px;
    gap: 12px;
  }
  .rank-row .heat-bar-wrap, .rank-row .rank-score {
    display: none;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }
  .genre-cards {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    flex-direction: column;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  .content-card {
    flex-direction: column;
  }
  .content-card img {
    width: 100%;
    height: 200px;
  }
  .filter-bar {
    overflow-x: auto;
    padding-bottom: 10px;
    flex-wrap: nowrap;
  }
  .chip {
    white-space: nowrap;
  }
}