:root {
  --primary: #FF5C8A;
  --primary-light: #FFD6E7;
  --dark: #1A1A2E;
  --purple: #7B5CFF;
  --text-main: #FFFFFF;
  --text-muted: #B0B0C0;
  --card-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 15% 50%, rgba(255, 92, 138, 0.08), transparent 25%),
                    radial-gradient(circle at 85% 30%, rgba(123, 92, 255, 0.08), transparent 25%);
}

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

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-light);
}

.nav-logo img {
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-btn {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--primary);
  border-radius: 20px;
  color: var(--primary);
  font-size: 0.9rem;
  transition: all 0.3s;
  box-shadow: 0 0 10px rgba(255, 92, 138, 0.2);
}

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

/* 首屏 Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 5% 60px;
  position: relative;
}

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

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #FFF, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.btn-primary {
  padding: 0.8rem 2.2rem;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #FFF;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 92, 138, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.phone-mockup {
  width: 300px;
  height: 600px;
  background: var(--card-bg);
  border: 8px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 92, 138, 0.1);
  position: relative;
  transform: rotateY(-15deg) rotateX(5deg);
  animation: float 6s ease-in-out infinite;
}

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

@keyframes float {
  0%, 100% { transform: translateY(0) rotateY(-15deg) rotateX(5deg); }
  50% { transform: translateY(-20px) rotateY(-15deg) rotateX(5deg); }
}

/* 剧场区块 */
.section {
  padding: 80px 5%;
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.section-header p {
  color: var(--text-muted);
}

/* 分类胶囊 */
.categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.cat-pill {
  padding: 0.6rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.cat-pill:hover, .cat-pill.active {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #FFF;
  border-color: transparent;
}

/* 瀑布流网格 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

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

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

.card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.card-info {
  padding: 1rem;
}

.card-info h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #FFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-info p {
  font-size: 0.8rem;
  color: var(--primary);
  background: rgba(255, 92, 138, 0.1);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
}

/* 热榜 */
.top-list {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--glass-border);
}

.top-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-item:last-child {
  border-bottom: none;
}

.top-rank {
  font-size: 1.5rem;
  font-weight: 800;
  font-style: italic;
  width: 50px;
  color: var(--text-muted);
}

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

.top-title {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 500;
}

.top-tag {
  font-size: 0.8rem;
  color: var(--primary-light);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
}

/* 特色区块 */
.feature-split {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.feature-text {
  flex: 1;
}

.feature-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-light);
}

.feature-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.feature-image {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 预告片墙 */
.trailer-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.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;
}

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

.trailer-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.9), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

/* 页脚 */
footer {
  background: #11111f;
  padding: 60px 5% 20px;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #FFF;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.copyright time {
  opacity: 0.7;
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.8rem; }
  .feature-split { gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }
  .hero-content { margin-bottom: 3rem; }
  .hero p { margin: 0 auto 2rem; }
  .hero-btns { justify-content: center; }
  .feature-split {
    flex-direction: column;
  }
  .section { padding: 50px 5%; }
  .hero h1 { font-size: 2.2rem; }
}