:root {
    --bg-main: #0f0c1b;
    --bg-alt: #18142b;
    --bg-card: #221c3a;
    --accent: #ff3366;
    --accent-hover: #ff5c8a;
    --text-main: #f2f0fa;
    --text-muted: #a8a0c0;
    --border: #332b52;
    --gradient-marquee: linear-gradient(90deg, #ff3366, #ffcc00, #00e5ff, #ff3366);
    --font-stack: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  }

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

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

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

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

  /* 布局基础 */
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
  }

  /* 头部导航 */
  .header {
    background-color: rgba(15, 12, 27, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
  }

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

  .brand img {
    height: 32px;
    width: 32px;
    border-radius: 6px;
    object-fit: cover;
  }

  .nav-pc {
    display: none;
  }

  .nav-mobile-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
  }

  /* 首屏 */
  .hero {
    padding: 40px 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(circle at top right, rgba(255, 51, 102, 0.15), transparent 50%),
                radial-gradient(circle at bottom left, rgba(0, 229, 255, 0.1), transparent 50%);
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text h1 {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff, #ff99bb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    word-break: break-word;
  }

  .hero-text p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
  }

  .btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.4);
  }

  .btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
  }

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

  .btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  .hero-posters {
    display: flex;
    gap: 16px;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  
  .hero-posters::-webkit-scrollbar {
    display: none;
  }

  .hero-posters img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
  }

  /* 跑马灯 */
  .marquee-wrap {
    overflow: hidden;
    white-space: nowrap;
    padding: 15px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
    margin-top: 30px;
  }

  .marquee-text {
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    background: var(--gradient-marquee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: marquee 20s linear infinite;
    padding-right: 50px;
  }

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

  /* 通用区块 */
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
  }
  
  .section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
  }

  /* 热播短剧 */
  .hot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hot-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .hot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  }

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

  .hot-info {
    padding: 12px;
  }

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

  .hot-info .tag {
    font-size: 12px;
    color: var(--accent);
    background: rgba(255, 51, 102, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
  }

  /* 新剧上新 */
  .new-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .new-item {
    display: flex;
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 12px;
    gap: 16px;
    align-items: center;
  }

  .new-item img {
    width: 100px;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
  }
  
  .new-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .new-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
  }
  
  .new-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
  }

  /* 全部剧集/纵向时间轴 */
  .timeline {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--border);
  }

  .timeline-item {
    position: relative;
    margin-bottom: 24px;
    padding-left: 16px;
  }

  .timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
  }

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

  .timeline-content {
    background: var(--bg-card);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
  }
  
  .timeline-content img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
  }

  /* 用户神评 */
  .review-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .review-card {
    background: var(--bg-alt);
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
  }

  .review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }

  .review-header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
  }

  .review-header .name {
    font-weight: bold;
    font-size: 14px;
  }

  .review-text {
    font-size: 14px;
    color: var(--text-main);
  }

  /* 会员权益/FAQ */
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .faq-item {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
  }
  
  .faq-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 16px;
    color: var(--text-main);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .faq-btn::after {
    content: '+';
    font-size: 20px;
    color: var(--accent);
    transition: transform 0.3s;
  }
  
  .faq-btn.active::after {
    transform: rotate(45deg);
  }
  
  .faq-content {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-muted);
    font-size: 14px;
  }

  .faq-content p {
    padding-bottom: 16px;
  }

  /* 下载专区 */
  .download-section {
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-main), #1a152e);
    border-radius: 20px;
    padding: 40px 20px;
    margin: 40px 0;
    border: 1px solid var(--border);
  }
  
  .download-section h2 {
    margin-bottom: 16px;
    font-size: 24px;
  }
  
  .download-section p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 15px;
  }

  .steps {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 30px;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 12px;
  }
  
  .steps ol {
    padding-left: 20px;
    color: var(--text-main);
    font-size: 14px;
  }
  
  .steps li {
    margin-bottom: 10px;
  }

  /* 浮动下载窗口 */
  .floating-download {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.5);
    z-index: 99;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .floating-download img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
  }

  .floating-download:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.7);
  }

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

  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
  }
  
  .footer-nav a {
    color: var(--text-muted);
  }
  
  .footer-nav a:hover {
    color: var(--accent);
  }

  .footer p {
    margin-bottom: 8px;
  }
  
  .footer time {
    display: block;
    margin-bottom: 8px;
  }

  /* 弹出框蒙层 */
  .modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
  }
  
  .modal-overlay.active {
    display: flex;
  }
  
  .modal-box {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--border);
  }
  
  .modal-box p {
    margin-bottom: 16px;
    font-size: 15px;
  }
  
  .modal-box .url-box {
    background: var(--bg-main);
    padding: 12px;
    border-radius: 8px;
    word-break: break-all;
    font-family: monospace;
    margin-bottom: 16px;
    border: 1px dashed var(--accent);
    color: var(--accent);
  }

  /* 响应式 768px */
  @media (min-width: 768px) {
    .nav-pc {
      display: flex;
      gap: 24px;
    }
    .nav-pc a {
      font-size: 15px;
      color: var(--text-muted);
      transition: color 0.3s;
    }
    .nav-pc a:hover {
      color: var(--accent);
    }
    .nav-mobile-btn {
      display: none;
    }
    .hero-text h1 {
      font-size: 42px;
    }
    .hero-posters img {
      width: 240px;
      height: 360px;
    }
    .hot-grid {
      grid-template-columns: repeat(4, 1fr);
    }
    .review-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .new-list {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
    }
    .timeline {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      border-left: none;
      padding-left: 0;
    }
    .timeline-item {
      padding-left: 0;
    }
    .timeline-item::before {
      display: none;
    }
  }

  /* 响应式 1024px */
  @media (min-width: 1024px) {
    .hero-posters {
      gap: 24px;
    }
    .hot-grid {
      grid-template-columns: repeat(5, 1fr);
    }
    .new-list {
      grid-template-columns: repeat(3, 1fr);
    }
    .review-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    .section {
      padding: 80px 0;
    }
  }