:root {
  --bg-color: #09090E;
  --card-bg: #12131C;
  --primary: #7B61FF;
  --secondary: #00F0FF;
  --accent: #FF4B8C;
  --text-main: #F0F0F5;
  --text-muted: #8E8E9F;
  --border-color: rgba(255, 255, 255, 0.1);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(rgba(123, 97, 255, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 导航栏 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 14, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-left img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-left span {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
}

.nav-mid {
  display: none;
}

.nav-mid a {
  padding: 8px 16px;
  font-size: 15px;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all 0.3s;
}

.nav-mid a.active, .nav-mid a:hover {
  background: var(--primary);
  color: #fff;
}

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

.search-box {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 6px 16px;
  color: var(--text-main);
  outline: none;
  width: 200px;
}

.btn-nav {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-nav-outline {
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-nav-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 15px rgba(123, 97, 255, 0.4);
}

.btn-nav-primary:hover {
  box-shadow: 0 0 25px rgba(123, 97, 255, 0.8);
  transform: translateY(-2px);
}

/* 首屏 Hero */
.hero {
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--secondary);
  border: 1px solid var(--secondary);
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 900;
}

.hero h1 span {
  display: block;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(123, 97, 255, 0.6);
}

.hero p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.btn-hero {
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.btn-hero-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(123, 97, 255, 0.5);
  animation: pulse 2s infinite;
}

.btn-hero-outline {
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.hero-subtext {
  font-size: 13px;
  color: var(--text-muted);
}

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

.phone-mockup {
  width: 280px;
  height: 580px;
  background: #1a1a24;
  border: 4px solid var(--primary);
  border-radius: 40px;
  box-shadow: 0 0 30px rgba(123, 97, 255, 0.4), inset 0 0 20px rgba(0, 240, 255, 0.2);
  transform: rotate(3deg);
  transition: all 0.5s ease;
  padding: 12px;
  overflow: hidden;
  position: relative;
}

.phone-mockup:hover {
  transform: rotate(0deg) translateY(-10px);
  box-shadow: 0 0 50px rgba(123, 97, 255, 0.7), inset 0 0 30px rgba(0, 240, 255, 0.4);
}

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

/* 走马灯 */
.marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  margin-bottom: 100px;
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

.marquee-content span {
  font-size: 18px;
  font-weight: bold;
  margin: 0 30px;
  color: var(--text-main);
}

/* 通用区块标题 */
.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.section-header .bar {
  width: 6px;
  height: 24px;
  background: var(--secondary);
  border-radius: 4px;
  margin-right: 12px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 800;
}

/* AI 情绪选片机 */
.ai-selector {
  margin-bottom: 100px;
}

.ai-container {
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.film-strip {
  height: 24px;
  background: repeating-linear-gradient(90deg, #000 0, #000 10px, transparent 10px, transparent 20px);
  border-bottom: 1px solid var(--border-color);
  opacity: 0.5;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px;
}

.ai-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-mood-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
}

.ai-mood-btn:hover, .ai-mood-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}

.ai-search {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  outline: none;
  margin-top: 10px;
}

.ai-result {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 16px;
}

.ai-result img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 12px;
}

.ai-result-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.ai-result-info p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.ai-score {
  color: var(--accent);
  font-weight: bold;
  font-size: 18px;
}

.ai-refresh {
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  margin-top: auto;
  transition: all 0.3s;
}

.ai-refresh:hover {
  background: rgba(0, 240, 255, 0.1);
}

/* 今日热播榜 */
.hot-rank {
  margin-bottom: 100px;
}

.rank-list {
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 20px;
}

.rank-header {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border-color);
}

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

.rank-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

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

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

.rank-info {
  flex: 1;
}

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

.rank-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.rank-tags span {
  font-size: 12px;
  color: var(--secondary);
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.rank-info p {
  font-size: 13px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 16px;
}

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

.btn-play {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  box-shadow: 0 0 10px rgba(123, 97, 255, 0.2);
  transition: all 0.3s;
}

.btn-play:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(123, 97, 255, 0.6);
}

/* 精选放映厅 */
.screening-room {
  margin-bottom: 100px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

.polaroid-card {
  background: #fff;
  padding: 12px 12px 20px;
  border-radius: 4px;
  transition: all 0.3s;
  position: relative;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.polaroid-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(123, 97, 255, 0.3);
}

.polaroid-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 16px;
}

.polaroid-info {
  text-align: center;
  color: #000;
  margin-top: auto;
}

.polaroid-info h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
}

.polaroid-info .score {
  color: var(--primary);
  font-weight: bold;
}

.subtitle-overlay {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  opacity: 0;
  transition: opacity 0.3s;
}

.polaroid-card:hover .subtitle-overlay {
  opacity: 1;
}

/* 胶囊题材分类 */
.genre-capsules {
  margin-bottom: 100px;
}

.capsule-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: none;
}

.capsule-scroll::-webkit-scrollbar {
  display: none;
}

.capsule {
  white-space: nowrap;
  padding: 16px 32px;
  border-radius: 40px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s;
}

.capsule:hover {
  transform: scale(1.05);
}

.cap-purple { background: linear-gradient(135deg, var(--primary), #4a2c9c); }
.cap-cyan { background: linear-gradient(135deg, var(--secondary), #007a85); }
.cap-pink { background: linear-gradient(135deg, var(--accent), #a82759); }

/* 观众口碑卷轴 */
.testimonials {
  margin-bottom: 100px;
}

.testimonial-card {
  background: var(--card-bg);
  border-top: 4px solid var(--accent);
  border-bottom: 4px solid var(--accent);
  padding: 24px;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.testimonial-card::before, .testimonial-card::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-color);
}

.testimonial-card::before { top: -7px; left: 20px; }
.testimonial-card::after { bottom: -7px; right: 20px; }

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

.testimonial-card p {
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 24px;
  flex: 1;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.user-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info .name {
  font-size: 14px;
  font-weight: bold;
}

.user-info .days {
  font-size: 12px;
  color: var(--text-muted);
}

/* 本周排片日历 */
.schedule {
  margin-bottom: 100px;
}

.grid-7 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

.schedule-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.schedule-card.today {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(123, 97, 255, 0.3);
  position: relative;
}

.schedule-card .day {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.schedule-card .date {
  font-size: 24px;
  font-weight: bold;
}

.schedule-card .tag-today {
  font-size: 12px;
  color: var(--primary);
  margin-top: 8px;
  background: rgba(123, 97, 255, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
}

/* 纯 CSS 下载控制台 */
.download-console {
  margin: 100px 0;
  background: #0B0C10;
  border-radius: 24px;
  padding: 40px 24px;
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.download-console::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  z-index: -1;
  border-radius: 26px;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% 200%;
  animation: borderGlow 4s linear infinite;
}

.dl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.dl-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dl-tag {
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: 16px;
  font-weight: bold;
}

.dl-left h2 {
  font-size: 32px;
  margin-bottom: 16px;
  font-weight: 900;
}

.dl-left p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.dl-features {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.dl-feature {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.1);
}

.dl-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-dl {
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s;
  flex: 1;
  min-width: 160px;
}

.btn-dl-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(123, 97, 255, 0.4);
}

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

.btn-dl-outline {
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.btn-dl-outline:hover {
  transform: translateY(-3px);
  background: rgba(0, 240, 255, 0.1);
}

.dl-right {
  position: relative;
  height: 350px;
  background: #1a1a24;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comic-panel {
  position: absolute;
  background: #2a2a35;
  border: 4px solid #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.panel-1 {
  width: 70%;
  height: 60%;
  transform: rotate(-6deg);
  top: 15%;
  left: 10%;
}

.panel-2 {
  width: 60%;
  height: 50%;
  transform: rotate(4deg);
  bottom: 10%;
  right: 10%;
  background: #1e1e28;
}

.panel-3 {
  width: 80%;
  height: 70%;
  transform: rotate(-2deg);
  background: #12131C;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.panel-3 img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 2px solid var(--primary);
}

.panel-3 span {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
}

.bubble {
  position: absolute;
  background: var(--bg-color);
  border: 2px solid var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  z-index: 20;
  box-shadow: 0 0 15px rgba(123, 97, 255, 0.5);
  animation: float 3s ease-in-out infinite;
}

.bubble-1 {
  top: 10%;
  right: 10%;
  border-color: var(--secondary);
  color: var(--secondary);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.bubble-1::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 20px;
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: var(--secondary) transparent transparent;
}

.bubble-2 {
  bottom: 15%;
  left: 5%;
  color: var(--primary);
  animation-delay: 1.5s;
}

.bubble-2::after {
  content: '';
  position: absolute;
  top: -6px;
  right: 20px;
  border-width: 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent var(--primary);
}

/* FAQ */
.faq {
  margin-bottom: 100px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

details {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

summary {
  padding: 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  list-style: none;
}

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

summary::before {
  content: 'Q';
  display: inline-block;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  line-height: 24px;
  border-radius: 4px;
  margin-right: 12px;
  font-size: 14px;
}

.faq-answer {
  padding: 0 20px 20px 56px;
  color: var(--text-muted);
  font-size: 15px;
}

/* 页脚 */
footer {
  background: #000;
  padding: 60px 0 20px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

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

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

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.3s;
}

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

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

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.footer-brand span {
  font-size: 18px;
  font-weight: bold;
}

.footer-slogan {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.age-tip {
  display: inline-block;
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

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

/* 动画 */
@keyframes pulse {
  0% { box-shadow: 0 0 15px rgba(123, 97, 255, 0.4); }
  50% { box-shadow: 0 0 25px rgba(123, 97, 255, 0.8); }
  100% { box-shadow: 0 0 15px rgba(123, 97, 255, 0.4); }
}

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

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* 响应式 */
@media (min-width: 768px) {
  .nav-mid { display: flex; gap: 8px; }
  .search-box { display: block; }
  .hero { flex-direction: row; align-items: center; }
  .ai-grid { grid-template-columns: 1fr 2fr; }
  .ai-result { flex-direction: row; align-items: flex-start; }
  .ai-result img { width: 160px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-7 { grid-template-columns: repeat(4, 1fr); }
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .dl-right { height: auto; min-height: 400px; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 56px; }
  .grid-7 { grid-template-columns: repeat(7, 1fr); }
  .dl-left h2 { font-size: 40px; }
}