:root {
  --bg: #07050f;
  --pink: #ff3d8b;
  --cyan: #28e0ff;
  --purple: #8b5bff;
  --text: #f0f0f5;
  --text-muted: #9aa0bd;
  --card-bg: #120e24;
  --border: #2a2442;
  --font-sans: "PingFang SC", "Helvetica Neue", Helvetica, Arial, "Microsoft Yahei", sans-serif;
}

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

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

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

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

ul {
  list-style: none;
}

/* 背景柔光斑 */
.glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.glow-1 {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(139,91,255,0.15) 0%, transparent 60%);
  filter: blur(80px);
}
.glow-2 {
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(255,61,139,0.1) 0%, transparent 60%);
  filter: blur(100px);
}

/* 导航 */
.header-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  background: rgba(18, 14, 36, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: 64px;
  z-index: 100;
  transition: all 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

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

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

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

.nav-links a:hover, .nav-links a.active {
  color: var(--cyan);
}

.nav-btn {
  background: linear-gradient(90deg, var(--pink), var(--purple));
  color: #fff;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu-panel {
  display: none;
  position: absolute;
  top: 74px;
  left: 0;
  width: 100%;
  background: rgba(18, 14, 36, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu-panel a {
  display: block;
  padding: 8px 0;
  color: var(--text-muted);
}

.mobile-menu-panel.open {
  display: flex;
}

/* 通用容器 */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 80px 0;
  scroll-margin-top: 100px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* 卡片通用 */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--pink);
  box-shadow: 0 10px 30px rgba(255,61,139,0.15);
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.badge.raw {
  background: #e53935;
  font-weight: bold;
}

/* 主视觉 */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  filter: blur(8px) brightness(0.4);
  transform: scale(1.05);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 20%, transparent 80%),
              linear-gradient(to top, var(--bg) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.hero-tag {
  display: inline-block;
  background: rgba(40, 224, 255, 0.1);
  border: 1px solid rgba(40, 224, 255, 0.3);
  color: var(--cyan);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 24px;
  background: linear-gradient(90deg, #ff3d8b, #28e0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 40px;
  line-height: 1.8;
}

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

.btn-primary {
  background: linear-gradient(90deg, var(--pink), var(--purple));
  color: #fff;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,61,139,0.4);
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* 倾斜海报堆 */
.hero-posters {
  position: relative;
  width: 400px;
  height: 500px;
  display: none;
}

.poster-stack {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform 0.4s ease;
}

.poster-stack:nth-child(1) {
  width: 240px;
  height: 360px;
  top: 20px;
  left: 20px;
  transform: rotate(-8deg);
  z-index: 1;
}

.poster-stack:nth-child(2) {
  width: 240px;
  height: 360px;
  top: 60px;
  left: 100px;
  transform: rotate(4deg);
  z-index: 2;
}

.poster-stack:nth-child(3) {
  width: 200px;
  height: 300px;
  top: 150px;
  left: 40px;
  transform: rotate(-2deg);
  z-index: 3;
}

.hero-posters:hover .poster-stack:nth-child(1) { transform: rotate(-12deg) translateY(-10px); }
.hero-posters:hover .poster-stack:nth-child(2) { transform: rotate(8deg) translateY(-10px); }
.hero-posters:hover .poster-stack:nth-child(3) { transform: rotate(-4deg) translateY(-10px); }

/* 今夜精选 Bento 网格 */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 16px;
}

.bento-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.bento-item:hover {
  border-color: var(--pink);
}

.bento-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-item img {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

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

.bento-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.bento-info h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.bento-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 本周热度 */
.heat-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.heat-row {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
}

.heat-row:hover {
  border-color: var(--cyan);
  background: #18132e;
}

.heat-rank {
  font-size: 1.5rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  width: 40px;
  margin-right: 16px;
}

.heat-row:nth-child(1) .heat-rank,
.heat-row:nth-child(2) .heat-rank,
.heat-row:nth-child(3) .heat-rank {
  background: linear-gradient(180deg, #ff3d8b, #ff8a00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
}

.heat-img {
  width: 48px;
  height: 64px;
  border-radius: 6px;
  margin-right: 20px;
  object-fit: cover;
}

.heat-title {
  flex: 1;
  font-weight: bold;
  font-size: 1.1rem;
}

.heat-bar-wrap {
  flex: 2;
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  margin-right: 20px;
  overflow: hidden;
}

.heat-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--cyan));
}

.heat-val {
  font-size: 0.9rem;
  color: var(--text-muted);
  width: 50px;
  text-align: right;
}

/* 三大频道 */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.channel-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  aspect-ratio: 9/16;
  transition: all 0.3s;
}

.channel-card:hover {
  transform: translateY(-6px);
  border-color: var(--pink);
  box-shadow: 0 10px 30px rgba(255,61,139,0.15);
}

.channel-card img {
  width: 100%;
  height: 100%;
}

.channel-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
  text-align: center;
}

.channel-info h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.channel-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 弹幕热评 */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  font-size: 1.2rem;
}

.review-name {
  font-weight: bold;
  color: var(--cyan);
}

.review-text {
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* 使用指南 */
.guide-wrap {
  display: flex;
  gap: 60px;
  align-items: center;
}

.guide-phone {
  flex: 1;
  max-width: 300px;
  border-radius: 40px;
  border: 8px solid #1a152e;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  overflow: hidden;
  position: relative;
}

.guide-phone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: #1a152e;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

.guide-phone img {
  width: 100%;
  height: 100%;
  aspect-ratio: 9/17;
  object-fit: cover;
}

.guide-steps {
  flex: 1;
}

.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.step-num {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(40, 224, 255, 0.1);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.step-content h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #fff;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 用户答疑 */
.faq-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.faq-card {
  padding: 32px;
}

.faq-card h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: var(--pink);
}

.faq-item {
  margin-bottom: 20px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-q {
  font-weight: bold;
  margin-bottom: 8px;
  color: #fff;
}

.faq-a {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-img-box {
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* 下载区块 */
.download-section {
  text-align: center;
  padding: 100px 0;
  position: relative;
}

.download-section .glow-1 {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(255,61,139,0.15) 0%, transparent 60%);
}

.download-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* 皮肤胶囊 */
.skin-toggle {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  gap: 8px;
  background: rgba(18, 14, 36, 0.8);
  backdrop-filter: blur(10px);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 100;
}

.skin-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all 0.2s;
}

.skin-btn.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* 皮肤装饰层 */
.skin-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  display: none;
}

/* 宋干节 */
body.skin-songkran .skin-layer.songkran {
  display: block;
  background: radial-gradient(circle at 50% 100%, rgba(40, 224, 255, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 0% 0%, rgba(255, 61, 139, 0.1) 0%, transparent 50%);
  animation: wave 10s infinite alternate;
}
body.skin-songkran::after {
  content: '泼水档 · 全站中字上新';
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(40, 224, 255, 0.9);
  color: #000;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 100;
  pointer-events: none;
}

/* 水灯节 */
body.skin-loykrathong .skin-layer.loykrathong {
  display: block;
  background: radial-gradient(circle at 50% 50%, rgba(255, 140, 0, 0.1) 0%, transparent 60%);
  animation: breath 5s infinite alternate;
}
body.skin-loykrathong::after {
  content: '点灯档 · 许个愿再看一集';
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 140, 0, 0.9);
  color: #000;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 100;
  pointer-events: none;
}

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

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

footer p {
  margin-bottom: 8px;
}

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

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

/* 响应式 */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 240px); }
  .bento-item.large { grid-column: span 2; grid-row: span 2; }
  .channels-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-wrap { flex-direction: column; text-align: center; }
  .step-item { text-align: left; }
  .faq-groups { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .header-nav { justify-content: space-between; }
}

@media (max-width: 768px) {
  .hero { padding-top: 120px; text-align: center; flex-direction: column; }
  .hero-content { flex-direction: column; }
  .hero-text { max-width: 100%; margin-bottom: 40px; }
  .hero-title { font-size: 2.8rem; }
  .hero-btns { justify-content: center; flex-direction: column; }
  .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .bento-item.large { grid-column: span 1; grid-row: span 1; aspect-ratio: 4/3; }
  .bento-item { aspect-ratio: 16/9; }
  .channels-grid { grid-template-columns: 1fr; }
  .channel-card { aspect-ratio: 16/9; }
  .reviews-grid { grid-template-columns: 1fr; }
  .heat-row { flex-wrap: wrap; padding: 12px 16px; }
  .heat-bar-wrap { order: 4; width: 100%; margin: 12px 0 0 0; flex: auto; }
  .heat-val { order: 5; margin-left: auto; }
  .download-btns { flex-direction: column; align-items: center; }
  .skin-toggle { bottom: 20px; left: 50%; transform: translateX(-50%); width: max-content; }
  body.skin-songkran::after, body.skin-loykrathong::after { top: auto; bottom: 80px; }
}