:root {
    --bg-dark: #12101a;
    --bg-card: #1e1a2b;
    --primary: #ff3366;
    --secondary: #ff9933;
    --accent: #7b61ff;
    --text-main: #f2f2f2;
    --text-muted: #b3b3b3;
    --gradient-hot: linear-gradient(90deg, #ff3366, #ff9933);
    --gradient-cool: linear-gradient(90deg, #7b61ff, #3366ff);
    --radius: 16px;
    --radius-sm: 8px;
  }

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

  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px;
  }

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

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

  /* 导航 */
  header {
    background: rgba(18, 16, 26, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #2a253a;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main);
  }

  .brand img {
    height: 32px;
    width: auto;
    border-radius: 6px;
  }

  .nav-links {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
  }

  .nav-links a {
    color: var(--text-muted);
    transition: color 0.3s;
    position: relative;
  }

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

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-hot);
    transition: width 0.3s;
  }

  .nav-links a:hover::after {
    width: 100%;
  }

  .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
  }

  /* 首屏 */
  .hero {
    position: relative;
    padding: 40px 20px 60px;
    background: radial-gradient(circle at top right, #2a1b3d 0%, var(--bg-dark) 70%);
    overflow: hidden;
  }

  .hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
  }

  .hero-text h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: var(--gradient-hot);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
  }

  .hero-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: bold;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    text-align: center;
  }

  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.4);
  }

  .btn-primary {
    background: var(--gradient-hot);
    color: #fff;
  }

  .btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
  }

  .hero-images {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
  }

  .hero-images img {
    width: 30%;
    border-radius: var(--radius);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s;
    object-fit: cover;
    aspect-ratio: 3/4;
  }

  .hero-images img:hover {
    transform: scale(1.05);
  }

  /* 跑马灯 */
  .marquee-wrap {
    background: #1a1525;
    padding: 12px 0;
    overflow: hidden;
    border-top: 1px solid #2a253a;
    border-bottom: 1px solid #2a253a;
  }

  .marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
  }

  .marquee-content span {
    font-size: 1rem;
    font-weight: bold;
    background: var(--gradient-hot);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 40px;
  }

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

  /* 通用区块 */
  section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-header {
    text-align: center;
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-main);
  }

  .section-header p {
    color: var(--text-muted);
    font-size: 1rem;
  }

  /* 热播短剧 */
  .hot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
  }

  .poster-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
  }

  .poster-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
  }

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

  .poster-info {
    padding: 12px;
  }

  .poster-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
  }

  .tag {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255,51,102,0.15);
    color: var(--primary);
  }

  .score {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: bold;
  }

  /* 新剧上新 - 时间轴 */
  .timeline-section {
    background: #1a1622;
    border-radius: var(--radius);
    padding: 40px 20px;
    margin-top: 20px;
  }

  .timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
  }

  .timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    transform: translateX(-50%);
  }

  .timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 30px;
  }

  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
  }

  .timeline-content {
    background: var(--bg-card);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    width: 80%;
    border-right: 3px solid var(--accent);
  }

  .timeline-item:nth-child(even) .timeline-content {
    border-right: none;
    border-left: 3px solid var(--accent);
  }

  .timeline-time {
    font-weight: bold;
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 5px;
  }

  .timeline-content h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

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

  /* 全部剧集 - 图文交错 */
  .all-episodes-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .episode-row {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    align-items: stretch;
  }

  .episode-row:nth-child(even) {
    flex-direction: row-reverse;
  }

  .episode-row img {
    width: 40%;
    object-fit: cover;
  }

  .episode-info {
    padding: 30px;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .episode-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .episode-info .tag-list {
    margin-bottom: 15px;
  }

  .episode-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  .date {
    font-size: 0.85rem;
    color: var(--secondary);
  }

  /* 用户神评 */
  .reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }

  .review-card {
    background: #221c30;
    padding: 20px;
    border-radius: var(--radius);
    display: flex;
    gap: 15px;
    border: 1px solid #332a45;
  }

  .review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    padding: 4px;
    flex-shrink: 0;
  }

  .review-content h4 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 5px;
  }

  .review-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
  }

  /* 会员权益 */
  .vip-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, #1e162a, #12101a);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid #332a45;
  }

  .vip-left img {
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(123, 97, 255, 0.3);
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .vip-right ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .vip-right li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }

  .vip-right li::before {
    content: '✦';
    color: var(--secondary);
    font-size: 1.2rem;
  }

  /* 常见问题 */
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
  }

  .faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }

  .faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .faq-question::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--primary);
  }

  .faq-item.active .faq-question::after {
    content: '-';
  }

  .faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    color: var(--text-muted);
    font-size: 0.9rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 200px;
  }

  /* 下载专区 */
  .download-section {
    text-align: center;
    background: linear-gradient(to bottom, #12101a, #1e162a);
    border-radius: var(--radius);
    padding: 60px 20px;
    border: 1px solid #332a45;
  }

  .download-section h2 {
    margin-bottom: 20px;
  }

  .download-section p {
    color: var(--text-muted);
    margin-bottom: 30px;
  }

  .download-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
  }

  .steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
  }

  .step {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: var(--radius-sm);
    flex: 1;
    min-width: 200px;
  }

  .step-num {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
  }

  /* 浮动下载 */
  .floating-download {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
  }

  .floating-download .btn {
    padding: 12px 30px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .floating-download img {
    height: 24px;
    width: auto;
    border-radius: 4px;
  }

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

  footer p {
    margin-bottom: 8px;
  }

  footer a {
    color: var(--text-muted);
    text-decoration: underline;
  }

  /* 移动端折叠导航 */
  .mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    border-bottom: 1px solid #2a253a;
    flex-direction: column;
    padding: 10px 20px;
  }

  .mobile-nav.active {
    display: flex;
  }

  .mobile-nav a {
    padding: 12px 0;
    border-bottom: 1px solid #2a253a;
    color: var(--text-main);
  }

  /* 复制弹窗 */
  .copy-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
  }

  .copy-modal.active {
    display: flex;
  }

  .modal-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    max-width: 90%;
    width: 400px;
  }

  .modal-content p {
    margin-bottom: 20px;
    color: var(--text-main);
  }

  .modal-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid #332a45;
    background: #12101a;
    color: var(--text-main);
    text-align: center;
  }

  /* 响应式 */
  @media (max-width: 1024px) {
    .hero-container {
      grid-template-columns: 1fr;
      text-align: center;
    }
    .hero-text h1 {
      font-size: 2.2rem;
    }
    .hero-downloads {
      justify-content: center;
    }
    .vip-container {
      grid-template-columns: 1fr;
    }
    .vip-left img {
      max-width: 200px;
    }
  }

  @media (max-width: 768px) {
    .nav-links {
      display: none;
    }
    .mobile-menu-btn {
      display: block;
    }
    .hero-text h1 {
      font-size: 1.8rem;
    }
    .hero-images img {
      width: 32%;
    }
    .hot-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .episode-row, .episode-row:nth-child(even) {
      flex-direction: column;
    }
    .episode-row img {
      width: 100%;
      aspect-ratio: 16/9;
    }
    .episode-info {
      width: 100%;
      padding: 20px;
    }
    .timeline::before {
      left: 20px;
    }
    .timeline-item, .timeline-item:nth-child(even) {
      justify-content: flex-start;
      padding-left: 50px;
      padding-right: 0;
    }
    .timeline-content {
      width: 100%;
      border-left: 3px solid var(--accent);
      border-right: none;
    }
    .timeline-item:nth-child(even) .timeline-content {
      border-left: 3px solid var(--accent);
    }
    .reviews-grid {
      grid-template-columns: 1fr;
    }
  }