:root {
  --bg-dark: #0d0a08;
  --bg-caramel: #1a120c;
  --brand-gold: #F5A623;
  --brand-peach: #FF8C42;
  --brand-coral: #FF6B5B;
  --brand-brown: #8B5E3C;
  --text-main: #FFF8F0;
  --text-sub: rgba(255, 248, 240, 0.7);
  --text-muted: rgba(255, 248, 240, 0.5);
  --glass-bg: rgba(255, 248, 240, 0.06);
  --glass-border: rgba(245, 166, 35, 0.1);
  --radius-lg: 16px;
  --radius-pill: 100px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-caramel));
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* 暖光呼吸特效背景 */
.ambient-light {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  background: 
    radial-gradient(circle at 20% 30%, rgba(245, 166, 35, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 140, 66, 0.06) 0%, transparent 40%);
  animation: breathe 8s ease-in-out infinite alternate;
}

@keyframes breathe {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

/* 导航栏 */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: 64px;
  background: rgba(13, 10, 8, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(13, 10, 8, 0.95);
  border-bottom: 1px solid rgba(245, 166, 35, 0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
}

.brand img {
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.35);
}

.nav-links {
  display: none;
  gap: 32px;
}

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

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

.nav-links a:hover {
  color: var(--brand-gold);
  text-shadow: 0 0 10px rgba(245, 166, 35, 0.5);
}

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

.btn-download {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-peach));
  color: var(--bg-caramel);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.25);
  transition: var(--transition);
  display: none;
}

@media (min-width: 768px) {
  .btn-download { display: block; }
}

.btn-download:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 30px rgba(255, 140, 66, 0.45);
}

.menu-toggle {
  display: block;
  width: 24px; height: 24px;
  background: none; border: none;
  color: var(--text-main);
  font-size: 24px; cursor: pointer;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }

/* 主内容区 */
main {
  padding-top: 64px;
}

/* Hero 区域 */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 40px 20px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.25);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-dark) 10%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 1024px) {
  .hero-content { flex-direction: row; align-items: center; justify-content: space-between; }
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(245, 166, 35, 0.4);
  color: var(--brand-gold);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  margin-bottom: 24px;
  background: rgba(245, 166, 35, 0.05);
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(245, 166, 35, 0.5), 0 0 40px rgba(255, 140, 66, 0.2);
}

@media (min-width: 768px) {
  .hero h1 { font-size: 56px; }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.hero-brand-slogan {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-tag-pill {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-sub);
  backdrop-filter: blur(12px);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-peach));
  color: var(--bg-caramel);
  font-weight: 700;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 30px rgba(255, 140, 66, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-gold);
  font-weight: 600;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--brand-gold);
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: rgba(245, 166, 35, 0.15);
}

.hero-preview {
  display: none;
}

@media (min-width: 1024px) {
  .hero-preview {
    display: block;
    width: 320px;
    flex-shrink: 0;
  }
}

.phone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19;
  border-radius: 32px;
  border: 2px solid rgba(245, 166, 35, 0.2);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(245, 166, 35, 0.2), 0 0 120px rgba(255, 140, 66, 0.12);
  background: var(--bg-caramel);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-btn-pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  background: var(--brand-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  font-size: 24px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(245, 166, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
}

/* 板块通用样式 */
section {
  padding: 60px 20px;
  position: relative;
  z-index: 2;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-link {
  color: var(--brand-gold);
  font-size: 14px;
  transition: var(--transition);
}

.section-link:hover {
  text-shadow: 0 0 10px rgba(245, 166, 35, 0.5);
}

/* 情绪分类横向滚动 */
.mood-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.mood-scroll::-webkit-scrollbar { display: none; }

.mood-pill {
  flex-shrink: 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mood-pill:hover {
  border-color: var(--brand-gold);
  background: rgba(245, 166, 35, 0.12);
  transform: translateY(-2px);
}

/* 编辑力荐网格 */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .grid-cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  .grid-cards { grid-template-columns: repeat(5, 1fr); }
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(245, 166, 35, 0.15);
  border-color: rgba(245, 166, 35, 0.4);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--brand-gold);
  color: var(--bg-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 2;
}

.card-info {
  padding: 12px;
  background: linear-gradient(to top, var(--bg-dark), transparent);
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  z-index: 2;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 榜单 */
.leaderboard-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 16px;
  cursor: pointer;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--brand-gold);
  border-bottom-color: var(--brand-gold);
  font-weight: 700;
}

.leaderboard-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 1024px) {
  .leaderboard-grid { grid-template-columns: repeat(3, 1fr); }
}

.list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.list-item:hover {
  border-color: rgba(245, 166, 35, 0.3);
  background: rgba(255, 248, 240, 0.1);
}

.rank-num {
  font-size: 20px;
  font-weight: 800;
  width: 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-peach), var(--brand-coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.list-cover {
  width: 40px;
  height: 54px;
  border-radius: 4px;
  object-fit: cover;
}

.list-info {
  flex: 1;
}

.list-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-hot {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* AI 短剧实验室 */
.ai-section {
  background: radial-gradient(circle at center, #2a1a10, var(--bg-dark));
  border-top: 1px solid rgba(245, 166, 35, 0.1);
  border-bottom: 1px solid rgba(245, 166, 35, 0.1);
}

.ai-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 1024px) {
  .ai-grid { grid-template-columns: 1fr 1fr; }
}

.ai-main-card {
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-main-img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.vote-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 248, 240, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.vote-progress {
  height: 100%;
  width: 65%;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-peach), var(--brand-coral));
  border-radius: 4px;
  position: relative;
}

.vote-progress::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 客户端下载 */
.download-section {
  background: radial-gradient(circle at center, rgba(245, 166, 35, 0.15), var(--bg-dark));
}

.download-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .download-grid { grid-template-columns: 1fr 1fr; }
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  font-size: 24px;
  background: rgba(245, 166, 35, 0.1);
  padding: 10px;
  border-radius: 12px;
}

.feature-text h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 14px;
  color: var(--text-sub);
}

.download-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* 页脚 */
footer {
  background: #080604;
  padding: 60px 20px 30px;
  font-size: 14px;
  border-top: 1px solid rgba(245, 166, 35, 0.1);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand img {
  height: 32px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links h4 {
  color: var(--text-main);
  margin-bottom: 16px;
  font-size: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 248, 240, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* 关于我们 details */
.about-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 20px;
}

details {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

summary {
  cursor: pointer;
  list-style: none;
  display: inline-block;
  transition: var(--transition);
}

summary::-webkit-details-marker {
  display: none;
}

summary:hover {
  color: var(--brand-gold);
}

.about-content {
  margin-top: 12px;
  padding: 16px;
  background: rgba(255, 248, 240, 0.03);
  border-radius: 8px;
  line-height: 2;
}

.about-content a {
  color: var(--text-sub);
  margin-right: 12px;
  display: inline-block;
}

.about-content a:hover {
  color: var(--brand-gold);
}

/* 动画类 */
.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-enabled .fade-up {
  opacity: 0;
  transform: translateY(30px);
}

.js-enabled .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}