:root {
  --bg-main: #0B0D1F;
  --bg-dark: #141833;
  --panel-1: #1C2145;
  --panel-2: #262C58;
  --c-pink: #FF3D81;
  --c-orange: #FF8A00;
  --c-yellow: #FFE14D;
  --c-green: #2ED47A;
  --c-cyan: #00C2FF;
  --c-blue: #5B5BFF;
  --c-purple: #B93DFF;
  --rainbow: linear-gradient(90deg, #FF3D81, #FF8A00, #FFE14D, #2ED47A, #00C2FF, #5B5BFF, #B93DFF);
  --rainbow-diag: linear-gradient(135deg, #FF3D81, #FF8A00, #FFE14D, #2ED47A, #00C2FF, #5B5BFF, #B93DFF);
  --border-pink: rgba(255,61,129,.18);
  --border-yellow: rgba(255,225,77,.16);
  --border-cyan: rgba(0,194,255,.18);
  --text-main: #F2F4FF;
  --text-sub: #A5AACB;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
}

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

body {
  background-color: var(--bg-main);
  background-image: radial-gradient(circle at 15% 10%, rgba(255,61,129,.08) 0%, transparent 40%),
                    radial-gradient(circle at 85% 30%, rgba(0,194,255,.06) 0%, transparent 40%),
                    radial-gradient(circle at 50% 80%, rgba(185,61,255,.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 90px;
}

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

/* 按钮基础样式 */
.btn-rainbow {
  display: inline-block;
  background: var(--rainbow);
  color: #0B0D1F;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  text-align: center;
}
.btn-rainbow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,61,129,.3);
}

/* 头部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,13,31,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-pink);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand img {
  height: 36px;
  width: auto;
  border-radius: var(--radius-sm);
}
.nav-menu {
  display: none;
  gap: 15px;
  align-items: center;
}
.nav-menu a {
  font-size: 14px;
  color: var(--text-sub);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all .2s;
  white-space: nowrap;
}
.nav-menu a:hover {
  background: var(--panel-2);
  color: var(--c-yellow);
}
.mobile-toggle {
  display: block;
  background: none;
  border: 1px solid var(--border-pink);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--panel-1);
  border-bottom: 1px solid var(--border-cyan);
  padding: 10px 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-yellow);
  color: var(--text-sub);
  font-size: 15px;
}
.mobile-nav a:last-child { border-bottom: none; }

/* 首屏 */
.hero {
  padding: 40px 20px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}
.hero-text h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p {
  color: var(--text-sub);
  font-size: 16px;
  margin-bottom: 20px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.hero-tags span {
  background: var(--panel-2);
  border: 1px solid var(--border-pink);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--c-cyan);
}
.download-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.download-group .btn-rainbow {
  flex: 1 1 calc(50% - 12px);
  padding: 10px 12px;
  font-size: 14px;
}
.hero-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  position: relative;
}
.hero-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-cyan);
  box-shadow: 0 4px 15px rgba(0,0,0,.5);
  object-fit: cover;
  aspect-ratio: 3/4;
}
.hero-gallery img:nth-child(1) { transform: translateY(10px); }
.hero-gallery img:nth-child(3) { transform: translateY(10px); }

/* 跑马灯 */
.marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
  background: var(--panel-1);
  border-top: 1px solid var(--border-pink);
  border-bottom: 1px solid var(--border-pink);
  padding: 10px 0;
  margin: 30px 0;
}
.marquee-inner {
  display: inline-block;
  animation: scrollLeft 20s linear infinite;
}
.marquee-inner span {
  font-size: 16px;
  font-weight: 700;
  margin-right: 40px;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 通用区块 */
.section {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head p {
  color: var(--text-sub);
  font-size: 15px;
}

/* 魔改短剧 - 横向滑动卡片 */
.mod-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
}
.mod-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: var(--panel-1);
  border: 1px solid var(--border-pink);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.mod-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.mod-card-info {
  padding: 12px;
}
.mod-card-info h3 {
  font-size: 16px;
  color: var(--c-yellow);
  margin-bottom: 6px;
}
.mod-card-info p {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mod-card-info .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.mod-card-info .tags span {
  font-size: 11px;
  background: var(--panel-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--c-cyan);
}
.mod-card-info .date {
  font-size: 11px;
  color: var(--text-sub);
}

/* 二创短剧 - 列表卡片 */
.recreate-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.recreate-item {
  background: var(--panel-2);
  border: 1px solid var(--border-yellow);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.recreate-item h3 { font-size: 16px; color: var(--c-pink); }
.recreate-item p { font-size: 14px; color: var(--text-sub); }
.recreate-item .meta { font-size: 12px; color: var(--c-green); }

/* 原创短剧 - 纵向时间轴 */
.timeline {
  position: relative;
  padding-left: 30px;
  margin-top: 20px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--rainbow);
}
.timeline-item {
  position: relative;
  margin-bottom: 24px;
  background: var(--panel-1);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-cyan);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-yellow);
  border: 2px solid var(--bg-main);
}
.timeline-item .time {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-orange);
  margin-bottom: 6px;
}
.timeline-item h3 { font-size: 15px; margin-bottom: 6px; }
.timeline-item p { font-size: 13px; color: var(--text-sub); }

/* 用户神评 - 评论卡片 */
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.review-card {
  background: var(--panel-2);
  border-radius: var(--radius-md);
  padding: 16px;
  border-left: 4px solid var(--c-pink);
}
.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.review-header img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--panel-1);
}
.review-header strong { font-size: 14px; color: var(--c-yellow); }
.review-card p { font-size: 13px; color: var(--text-sub); }

/* 会员权益 & 隐私安全 - 左右结构 */
.info-split {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-box {
  background: var(--panel-1);
  border: 1px solid var(--border-pink);
  border-radius: var(--radius-lg);
  padding: 24px;
  flex: 1;
}
.info-box h3 {
  font-size: 20px;
  color: var(--c-yellow);
  margin-bottom: 16px;
  text-align: center;
}
.info-box ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.info-box li {
  font-size: 14px;
  color: var(--text-sub);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.info-box li::before {
  content: '✦';
  color: var(--c-cyan);
}

/* 意见反馈 & 常见问题 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
details {
  background: var(--panel-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-yellow);
  padding: 12px 16px;
}
summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--c-cyan);
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
details p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-sub);
  padding-top: 10px;
  border-top: 1px dashed var(--border-pink);
}

/* 未成年保护 */
.minor-card {
  background: var(--panel-1);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-cyan);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.minor-card h3 { font-size: 18px; color: var(--c-pink); }
.minor-card p { font-size: 14px; color: var(--text-sub); }
.minor-card ul { gap: 10px; display: flex; flex-direction: column; }
.minor-card li { font-size: 13px; color: var(--text-main); display: flex; gap: 8px;}
.minor-card li::before { content: '•'; color: var(--c-orange); }

/* 下载专区 */
.download-zone {
  background: var(--panel-2);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  border: 1px solid var(--border-pink);
  margin-top: 40px;
}
.download-zone h2 {
  font-size: 24px;
  margin-bottom: 16px;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.download-zone p {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 20px;
}
.download-zone .btn-rainbow {
  display: inline-block;
  margin: 8px;
  width: 140px;
}
.install-steps {
  text-align: left;
  max-width: 600px;
  margin: 24px auto 0;
  background: var(--panel-1);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-yellow);
}
.install-steps h3 { font-size: 16px; color: var(--c-yellow); margin-bottom: 12px; }
.install-steps p { font-size: 13px; color: var(--text-sub); margin-bottom: 8px; }

/* 浮动下载窗口 */
.floating-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-dark);
  border: 2px solid var(--c-pink);
  border-radius: 30px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.6);
  z-index: 99;
  width: 90%;
  max-width: 400px;
  justify-content: space-between;
}
.floating-download img {
  height: 32px;
  width: 32px;
  border-radius: 8px;
}
.floating-download .info {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.floating-download .info strong {
  font-size: 13px;
  color: var(--c-yellow);
  white-space: nowrap;
}
.floating-download .info span {
  font-size: 11px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.floating-download .btn-rainbow {
  padding: 6px 16px;
  font-size: 13px;
  white-space: nowrap;
}

/* 页脚 */
.site-footer {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 20px;
  border-top: 1px solid var(--border-yellow);
  font-size: 12px;
  color: var(--text-sub);
  text-align: center;
}
.footer-links {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
}
.footer-links a { color: var(--text-sub); }
.footer-links a:hover { color: var(--c-cyan); }
.footer-about summary {
  font-size: 12px;
  color: var(--text-sub);
  cursor: pointer;
  margin-bottom: 10px;
}
.footer-about .about-content {
  background: var(--panel-1);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
}
.footer-about .about-content a { color: var(--c-cyan); }
.copyright { margin-bottom: 8px; }
.beian a { color: var(--text-sub); }
.update-time { margin-top: 8px; font-size: 11px; opacity: .7;}

/* 弹窗提示 */
.toast-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.toast-modal.open { display: flex; }
.toast-content {
  background: var(--panel-2);
  border: 1px solid var(--c-pink);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  max-width: 340px;
  width: 100%;
}
.toast-content p {
  font-size: 15px;
  margin-bottom: 20px;
  color: var(--text-main);
}
.toast-content input {
  width: 100%;
  padding: 10px;
  background: var(--bg-main);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
}
.toast-content button {
  width: 100%;
}

/* 响应式 */
@media (min-width: 768px) {
  .hero { grid-template-columns: 1fr 1fr; padding: 60px 20px 40px; }
  .hero-text h1 { font-size: 40px; }
  .hero-gallery img:nth-child(1) { transform: translateY(0); }
  .hero-gallery img:nth-child(3) { transform: translateY(0); }
  .section-head h2 { font-size: 32px; }
  .recreate-list { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .info-split { flex-direction: row; }
  .minor-card { grid-template-columns: 1fr 1fr; }
  .download-zone .btn-rainbow { width: auto; padding: 12px 30px; }
}

@media (min-width: 1024px) {
  .nav-menu { display: flex; }
  .mobile-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .hero-text h1 { font-size: 48px; }
  .mod-card { flex: 0 0 280px; }
  .recreate-list { grid-template-columns: repeat(3, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .download-zone { padding: 50px 40px; }
}