:root {
  --bg-main: #0B0D1F;
  --bg-dark: #141833;
  --panel-1: #1C2145;
  --panel-2: #262C58;
  --rainbow: linear-gradient(90deg, #FF3D81, #FF8A00, #FFE14D, #2ED47A, #00C2FF, #5B5BFF, #B93DFF);
  --rainbow-vert: linear-gradient(180deg, #FF3D81, #FF8A00, #FFE14D, #2ED47A, #00C2FF, #5B5BFF, #B93DFF);
  --text-main: #E8EAF6;
  --text-sub: #A5ABD6;
  --text-dark: #0B0D1F;
  --border-pink: rgba(255,61,129,.18);
  --border-yellow: rgba(255,225,77,.16);
  --border-cyan: rgba(0,194,255,.18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* 公用样式 */
.gradient-text {
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}
.gradient-btn {
  background: var(--rainbow);
  color: var(--text-dark);
  font-weight: bold;
  border-radius: 24px;
  padding: 10px 20px;
  text-align: center;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}
.gradient-btn:active { transform: scale(0.96); opacity: 0.9; }
.section-title {
  font-size: 24px;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--rainbow);
  border-radius: 2px;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.border-glow {
  border: 1px solid transparent;
  background: linear-gradient(var(--panel-1), var(--panel-1)) padding-box,
              var(--rainbow) border-box;
}

/* 首屏 */
.hero {
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle at 15% 30%, rgba(255,61,129,.15), transparent 40%),
                    radial-gradient(circle at 85% 70%, rgba(0,194,255,.15), transparent 40%);
  padding: 20px 0 0;
  position: relative;
  overflow: hidden;
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  height: 32px;
  border-radius: 8px;
}
.brand span {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}
.hero-content {
  text-align: center;
  padding: 20px 0 40px;
}
.hero h1 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.hero-desc {
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.download-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.download-group a {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--panel-1);
  border: 1px solid var(--border-pink);
  color: var(--text-main);
  transition: background 0.3s;
}
.download-group a:hover {
  background: var(--panel-2);
}
.download-group a.primary {
  background: var(--rainbow);
  color: var(--text-dark);
  border: none;
}

/* 首屏轮播 */
.carousel-wrapper {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-wrapper::-webkit-scrollbar { display: none; }
.carousel-item {
  flex: 0 0 75%;
  scroll-snap-align: center;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 10px 10px;
  background: linear-gradient(to top, rgba(11,13,31,0.9), transparent);
  font-size: 14px;
  text-align: center;
  color: #fff;
}

/* 跑马灯 */
.marquee-wrap {
  background: var(--panel-2);
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--border-cyan);
  border-bottom: 1px solid var(--border-pink);
}
.marquee-content {
  display: inline-block;
  animation: scroll-left 20s linear infinite;
}
.marquee-content span {
  font-size: 13px;
  margin-right: 30px;
  font-weight: bold;
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 导航 (移动端折叠) */
.main-nav {
  background: rgba(20, 24, 51, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-yellow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: bold;
}
.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle-icon span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}
.nav-links {
  display: none;
  flex-direction: column;
  padding: 10px 0;
  border-top: 1px solid var(--border-pink);
}
.nav-links.active { display: flex; }
.nav-links a {
  padding: 12px 16px;
  color: var(--text-sub);
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a:focus {
  color: #FF3D81;
}
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    border-top: none;
    padding: 0;
  }
  .nav-links a {
    padding: 14px 12px;
    border-bottom: none;
    font-size: 14px;
  }
}

/* 内容区块 */
section {
  padding: 40px 0;
}
/* 魔改短剧 */
.mg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.mg-card {
  background: var(--panel-1);
  border-radius: 12px;
  padding: 16px;
  border-left: 4px solid transparent;
  background-image: linear-gradient(var(--panel-1), var(--panel-1)), var(--rainbow);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 1px solid transparent;
}
.mg-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: #FFE14D;
}
.mg-card p {
  font-size: 13px;
  color: var(--text-sub);
}
@media (min-width: 768px) {
  .mg-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .mg-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* 二创短剧 */
.ec-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ec-item {
  background: var(--panel-2);
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-cyan);
}
.ec-item span:first-child {
  font-weight: bold;
  font-size: 14px;
}
.ec-item span:last-child {
  font-size: 12px;
  color: #00C2FF;
}
@media (min-width: 768px) {
  .ec-layout { flex-direction: row; align-items: flex-start; }
  .ec-img { flex: 0 0 40%; }
  .ec-list { flex: 1; }
}

/* 原创短剧 */
.yc-timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--border-pink);
  margin-left: 10px;
}
.yc-node {
  position: relative;
  margin-bottom: 20px;
}
.yc-node::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rainbow);
}
.yc-time {
  font-size: 14px;
  font-weight: bold;
  color: #FF8A00;
  margin-bottom: 4px;
}
.yc-desc {
  font-size: 13px;
  color: var(--text-sub);
}

/* 用户神评 */
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.review-card {
  background: var(--panel-1);
  padding: 16px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  border: 1px solid var(--border-yellow);
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--rainbow);
}
.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-content p {
  font-size: 13px;
  color: var(--text-main);
  margin-bottom: 4px;
}
.review-name {
  font-size: 11px;
  color: var(--text-sub);
}
@media (min-width: 768px) {
  .review-grid { grid-template-columns: 1fr 1fr; }
}

/* 会员权益 & 隐私安全 & 意见反馈 & 常见问题 & 未成年保护 */
.box-panel {
  background: var(--panel-1);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border-pink);
}
.box-panel h2 {
  font-size: 20px;
  margin-bottom: 16px;
}
.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.faq-item {
  margin-bottom: 16px;
}
.faq-q {
  font-weight: bold;
  color: #FFE14D;
  font-size: 14px;
  margin-bottom: 4px;
}
.faq-a {
  font-size: 13px;
  color: var(--text-sub);
}

/* 下载专区 */
.dl-section {
  background: var(--panel-2);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dl-section img {
  width: 120px;
  margin: 0 auto 20px;
  border-radius: 12px;
  border: 1px solid var(--border-cyan);
}
.dl-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto 24px;
  text-align: left;
}
.step-item {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text-sub);
}
.step-num {
  background: var(--rainbow);
  color: var(--text-dark);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}
.dl-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.dl-btns a {
  background: var(--panel-1);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  border: 1px solid var(--border-cyan);
}
.dl-btns a.main-dl {
  background: var(--rainbow);
  color: var(--text-dark);
  border: none;
  font-weight: bold;
}

/* 浮动下载窗口 */
.floating-dl {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(28, 33, 69, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-pink);
  border-radius: 30px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  text-decoration: none;
}
.floating-dl img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.floating-dl-info {
  display: flex;
  flex-direction: column;
}
.floating-dl-title {
  font-size: 12px;
  font-weight: bold;
  color: #FFE14D;
}
.floating-dl-desc {
  font-size: 10px;
  color: var(--text-sub);
}
.floating-dl-btn {
  background: var(--rainbow);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 14px;
}

/* 弹窗 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: var(--panel-1);
  padding: 24px;
  border-radius: 16px;
  max-width: 300px;
  text-align: center;
  border: 1px solid var(--border-yellow);
}
.modal-content p {
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--text-main);
}
.modal-content input {
  width: 100%;
  padding: 8px;
  margin-bottom: 16px;
  border-radius: 8px;
  border: 1px solid var(--border-cyan);
  background: var(--bg-dark);
  color: #fff;
  text-align: center;
  font-size: 12px;
}
.modal-content button {
  width: 100%;
}

/* 页脚 */
footer {
  background: var(--bg-dark);
  padding: 30px 0 40px;
  font-size: 12px;
  color: var(--text-sub);
  border-top: 1px solid var(--border-pink);
  text-align: center;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
footer a {
  color: var(--text-sub);
}
footer a:hover {
  color: #FFE14D;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.about-us-details {
  margin-top: 10px;
  width: 100%;
  max-width: 600px;
}
.about-us-details summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-sub);
  list-style: none;
  outline: none;
}
.about-us-details summary::-webkit-details-marker { display: none; }
.about-us-content {
  background: var(--panel-1);
  padding: 12px;
  margin-top: 8px;
  border-radius: 8px;
  text-align: left;
  color: var(--text-sub);
  font-size: 11px;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-us-content a {
  color: #00C2FF;
  margin-right: 8px;
}