:root {
  --brand-primary: #FF5C8A;
  --brand-light: #FFD6E7;
  --brand-dark: #1A1A2E;
  --brand-accent: #7B5CFF;
  --bg-color: #0D0D15;
  --text-main: #FFFFFF;
  --text-muted: #A0A0B8;
  --glass-bg: rgba(26, 26, 46, 0.6);
  --glass-border: rgba(255, 92, 138, 0.2);
  --font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

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

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

ul {
  list-style: none;
}

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

/* 顶部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 13, 21, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: bold;
  color: var(--text-main);
}

.logo-area img {
  height: 32px;
  width: auto;
  border-radius: 8px;
  animation: jelly 2s infinite;
}

@keyframes jelly {
  0%, 100% { transform: scale(1, 1); }
  25% { transform: scale(0.95, 1.05); }
  50% { transform: scale(1.05, 0.95); }
  75% { transform: scale(0.98, 1.02); }
}

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

.nav-menu a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--brand-primary);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 4px 12px;
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--text-main);
  outline: none;
  font-size: 14px;
  width: 120px;
}

.btn-login {
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 92, 138, 0.2);
}

.btn-login:hover {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 92, 138, 0.6);
}

/* Hero 首屏 */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 50%, rgba(255, 92, 138, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 30% 30%, rgba(123, 92, 255, 0.1) 0%, transparent 40%);
  z-index: -1;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 40px;
}

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

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #FFF 0%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  color: var(--brand-primary);
  -webkit-text-fill-color: var(--brand-primary);
}

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

.hero-actions {
  display: flex;
  gap: 20px;
}

.btn-primary {
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 92, 138, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
  transition: transform 0.6s ease;
}

.btn-primary:hover::before {
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 92, 138, 0.6);
}

.btn-secondary {
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  perspective: 1000px;
}

.phone-mockup {
  width: 280px;
  height: 580px;
  border-radius: 40px;
  border: 8px solid #2A2A40;
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 92, 138, 0.2);
  position: relative;
  overflow: hidden;
  transform: rotateY(-15deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.phone-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

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

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 16px;
  color: var(--text-main);
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* 分类导航 */
.category-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.category-tag {
  padding: 8px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-tag:hover, .category-tag.active {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(255, 92, 138, 0.4);
}

/* 热播剧场 (瀑布流) */
.grid-theater {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--glass-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(255, 92, 138, 0.2);
  border-color: var(--brand-primary);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 133%; /* 3:4 比例 */
  overflow: hidden;
}

.card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-img-wrap img {
  transform: scale(1.1);
}

.card-info {
  padding: 16px;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* 今日热榜 */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.rank-item {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.rank-item:hover {
  background: rgba(255, 92, 138, 0.1);
  border-color: rgba(255, 92, 138, 0.3);
}

.rank-num {
  font-size: 24px;
  font-weight: 900;
  width: 50px;
  color: var(--text-muted);
  font-style: italic;
}

.rank-item:nth-child(1) .rank-num { color: #FFD700; }
.rank-item:nth-child(2) .rank-num { color: #C0C0C0; }
.rank-item:nth-child(3) .rank-num { color: #CD7F32; }

.rank-title {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
}

.rank-tag {
  font-size: 12px;
  color: var(--brand-primary);
  background: rgba(255, 92, 138, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 16px;
}

/* 预告片墙 */
.trailer-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.trailer-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.trailer-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.trailer-item:hover img {
  transform: scale(1.05);
}

.trailer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.trailer-title {
  font-size: 20px;
  font-weight: bold;
}

/* 用户评价 */
.reviews-container {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
}

.review-card {
  min-width: 300px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  scroll-snap-align: start;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
}

.review-name {
  font-weight: 600;
}

.review-stars {
  color: #FFD700;
  margin-bottom: 12px;
}

.review-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* APP 下载 */
.download-section {
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 92, 138, 0.05) 100%);
}

.download-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 60px 40px;
  max-width: 800px;
  margin: 0 auto;
  backdrop-filter: blur(20px);
}

.download-box h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.download-box p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.btn-download-large {
  display: inline-block;
  padding: 16px 48px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  box-shadow: 0 10px 30px rgba(255, 92, 138, 0.4);
  transition: all 0.3s ease;
}

.btn-download-large:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 92, 138, 0.6);
}

/* 页脚 */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 0 30px;
  background: #08080C;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.footer-links h4 {
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 13px;
}

.update-time {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero-title { font-size: 40px; }
  .hero-container { flex-direction: column; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .phone-mockup { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hero-title { font-size: 32px; }
  .trailer-wall { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
}

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