:root {
    --bg-main: #1A0C08;
    --bg-dark: #1F0E09;
    --panel-1: #33150E;
    --panel-2: #4A1E13;
    --text-main: #FFF3EA;
    --text-sub: #C29C8A;
    --border-light: rgba(255,196,150,.10);
    --border-med: rgba(255,196,150,.20);
    --grad-main: linear-gradient(135deg, #FFC64D, #FF8A3D, #FF5470);
    --grad-text: linear-gradient(90deg, #FFC64D, #FF8A3D, #FF5470);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  
  body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
  }

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

  .text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
  }

  .btn-grad {
    background: var(--grad-main);
    color: #1A0C08;
    font-weight: 700;
    border-radius: 20px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
  }
  .btn-grad:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,138,61,0.4);
  }

  /* Header */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 12, 8, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
  }
  .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo-area { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: bold; }
  .logo-area img { height: 32px; width: auto; border-radius: 4px; }
  
  .nav-desktop { display: none; gap: 15px; font-size: 0.9rem; color: var(--text-sub); }
  .nav-desktop a { transition: color 0.3s; position: relative; padding: 5px 0; }
  .nav-desktop a:hover { color: #FFC64D; }
  .nav-desktop a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--grad-main); transition: width 0.3s;
  }
  .nav-desktop a:hover::after { width: 100%; }

  .mobile-menu-btn { display: block; cursor: pointer; color: #FFC64D; font-size: 1.5rem; background: none; border: none; }
  
  .nav-mobile {
    display: none; flex-direction: column; padding: 10px 20px; background: var(--bg-dark);
    border-bottom: 1px solid var(--border-med);
  }
  .nav-mobile.active { display: flex; }
  .nav-mobile a { padding: 10px 0; border-bottom: 1px solid var(--border-light); color: var(--text-sub); }
  .nav-mobile a:last-child { border-bottom: none; }

  /* Hero */
  .hero {
    position: relative;
    padding: 40px 20px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 198, 77, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(255, 84, 112, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 0% 100%, rgba(255, 138, 61, 0.15) 0%, transparent 50%);
    overflow: hidden;
  }
  .hero-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; align-items: center; text-align: center; }
  .hero-text h1 { font-size: 2rem; line-height: 1.3; margin-bottom: 15px; }
  .hero-text p { color: var(--text-sub); font-size: 1rem; margin-bottom: 25px; max-width: 600px; margin-left: auto; margin-right: auto; }
  
  .hero-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 20px; }
  .hero-btns a { flex: 1 1 auto; min-width: 120px; font-size: 0.9rem; padding: 8px 15px; }

  .hero-gallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
  }
  .hero-img-box { border-radius: 12px; overflow: hidden; aspect-ratio: 3/4; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
  
  /* Marquee */
  .marquee-wrap {
    overflow: hidden; white-space: nowrap; background: rgba(74, 30, 19, 0.5);
    border-top: 1px solid var(--border-med); border-bottom: 1px solid var(--border-med);
    padding: 10px 0; margin-top: 20px;
  }
  .marquee-content {
    display: inline-block; animation: marquee 20s linear infinite;
    font-weight: bold; font-size: 1.1rem;
  }
  .marquee-content span { margin: 0 20px; }
  @keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

  /* Sections */
  section { padding: 50px 20px; max-width: 1200px; margin: 0 auto; }
  .sec-title { font-size: 1.5rem; margin-bottom: 30px; text-align: center; }
  
  /* Timeline */
  .timeline-box { background: var(--panel-1); border-radius: 16px; padding: 20px; border: 1px solid var(--border-light); }
  .timeline-item { display: flex; gap: 15px; margin-bottom: 20px; position: relative; }
  .timeline-item:last-child { margin-bottom: 0; }
  .timeline-item::before {
    content: ''; position: absolute; left: 45px; top: 25px; bottom: -20px; width: 1px; background: var(--border-med);
  }
  .timeline-item:last-child::before { display: none; }
  .t-time { font-weight: bold; color: #FFC64D; width: 40px; text-align: right; flex-shrink: 0; font-size: 0.9rem; }
  .t-content { background: var(--panel-2); padding: 10px 15px; border-radius: 8px; flex-grow: 1; font-size: 0.95rem; }

  /* Drama Grid (真人短剧) */
  .drama-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
  .drama-card { background: var(--panel-1); border-radius: 16px; overflow: hidden; border: 1px solid var(--border-light); display: flex; flex-direction: column; }
  .drama-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
  .drama-info { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
  .drama-info h3 { font-size: 1.1rem; margin-bottom: 8px; color: #FFC64D; }
  .drama-info .tags { display: flex; gap: 5px; margin-bottom: 10px; flex-wrap: wrap; }
  .drama-info .tag { background: rgba(255,198,77,0.15); color: #FFC64D; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; }
  .drama-info .meta { display: flex; justify-content: space-between; color: var(--text-sub); font-size: 0.8rem; margin-top: auto; }
  .drama-info p { font-size: 0.9rem; color: var(--text-sub); margin-bottom: 15px; line-height: 1.4; }

  /* Ranking (本周热播榜) */
  .rank-list { display: flex; flex-direction: column; gap: 15px; }
  .rank-item { display: flex; align-items: center; background: var(--panel-1); padding: 15px; border-radius: 12px; border: 1px solid var(--border-light); gap: 15px; }
  .rank-num { font-size: 1.5rem; font-weight: bold; color: rgba(255,198,77,0.3); width: 30px; text-align: center; }
  .rank-item:nth-child(1) .rank-num { color: #FFC64D; }
  .rank-item:nth-child(2) .rank-num { color: #FF8A3D; }
  .rank-item:nth-child(3) .rank-num { color: #FF5470; }
  .rank-img { width: 60px; height: 80px; border-radius: 6px; flex-shrink: 0; }
  .rank-info { flex-grow: 1; }
  .rank-info h4 { font-size: 1rem; margin-bottom: 5px; }
  .rank-info p { font-size: 0.8rem; color: var(--text-sub); }

  /* Reviews (热门点评) */
  .review-list { display: grid; gap: 15px; }
  .review-card { background: var(--panel-1); padding: 20px; border-radius: 16px; border: 1px solid var(--border-light); display: flex; gap: 15px; }
  .review-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #FFC64D; flex-shrink: 0; }
  .review-content h4 { font-size: 0.95rem; margin-bottom: 5px; color: #FF8A3D; }
  .review-content p { font-size: 0.9rem; color: var(--text-sub); }

  /* FAQ (常见问题 & 会员/隐私等) */
  .faq-list { display: flex; flex-direction: column; gap: 10px; }
  details { background: var(--panel-1); border-radius: 8px; border: 1px solid var(--border-light); overflow: hidden; }
  summary { padding: 15px; font-weight: bold; cursor: pointer; list-style: none; position: relative; color: #FFF3EA; display: flex; justify-content: space-between; align-items: center; }
  summary::after { content: '+'; color: #FFC64D; font-size: 1.2rem; }
  details[open] summary::after { content: '-'; }
  details[open] summary { border-bottom: 1px solid var(--border-light); }
  .faq-answer { padding: 15px; font-size: 0.9rem; color: var(--text-sub); }

  /* Download Section (结尾) */
  .dl-section { background: var(--bg-dark); border-top: 1px solid var(--border-med); padding-bottom: 80px; }
  .dl-content { display: flex; flex-direction: column; gap: 30px; align-items: center; text-align: center; }
  .dl-image { width: 100%; max-width: 300px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
  .dl-text h2 { font-size: 1.8rem; margin-bottom: 15px; }
  .dl-text p { color: var(--text-sub); margin-bottom: 20px; }
  .dl-steps { text-align: left; margin-bottom: 25px; background: var(--panel-1); padding: 20px; border-radius: 12px; width: 100%; }
  .dl-steps li { margin-bottom: 10px; color: var(--text-sub); position: relative; padding-left: 20px; }
  .dl-steps li::before { content: '•'; color: #FFC64D; position: absolute; left: 0; font-size: 1.2rem; line-height: 1; top: 2px; }

  /* Footer */
  footer { background: var(--bg-main); padding: 30px 20px; border-top: 1px solid var(--border-light); text-align: center; font-size: 0.8rem; color: var(--text-sub); }
  .footer-links { margin-bottom: 15px; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
  .footer-links a { color: var(--text-sub); transition: color 0.3s; }
  .footer-links a:hover { color: #FFC64D; }
  .footer-copy { margin-bottom: 10px; }
  .footer-beian a { color: var(--text-sub); text-decoration: underline; }
  .footer-time { font-size: 0.75rem; margin-top: 10px; color: rgba(194, 156, 138, 0.6); }

  /* Floating Download */
  .float-dl {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(51, 21, 14, 0.95); backdrop-filter: blur(10px);
    border: 1px solid var(--border-med); border-radius: 30px;
    padding: 8px 15px; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5); z-index: 99;
    transition: transform 0.3s;
  }
  .float-dl:hover { transform: translateX(-50%) translateY(-5px); }
  .float-dl img { width: 30px; height: 30px; border-radius: 6px; }
  .float-info { text-align: left; }
  .float-info h4 { font-size: 0.85rem; color: #FFF3EA; margin-bottom: 2px; }
  .float-info p { font-size: 0.7rem; color: var(--text-sub); }
  .float-dl .btn-grad { padding: 6px 12px; font-size: 0.8rem; border-radius: 15px; }

  /* Modal */
  .modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 1000;
    display: none; align-items: center; justify-content: center; padding: 20px;
  }
  .modal-overlay.active { display: flex; }
  .modal-box {
    background: var(--panel-1); border: 1px solid var(--border-med);
    border-radius: 16px; padding: 25px; width: 100%; max-width: 400px; text-align: center;
  }
  .modal-box p { margin-bottom: 20px; font-size: 0.95rem; line-height: 1.5; }
  .modal-box input {
    width: 100%; padding: 10px; margin-bottom: 20px; background: var(--bg-dark);
    border: 1px solid var(--border-med); color: #FFF3EA; border-radius: 8px; font-size: 0.9rem;
  }

  /* Breakpoints */
  @media (min-width: 768px) {
    .hero-inner { flex-direction: row; text-align: left; }
    .hero-text { flex: 1; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { margin-left: 0; }
    .hero-btns { justify-content: flex-start; }
    .hero-gallery { flex: 1; grid-template-columns: repeat(2, 1fr); }
    
    .nav-desktop { display: flex; }
    .mobile-menu-btn { display: none; }
    
    .drama-grid { grid-template-columns: repeat(2, 1fr); }
    .review-list { grid-template-columns: repeat(2, 1fr); }
    
    .dl-content { flex-direction: row; text-align: left; }
    .dl-image { flex: 1; max-width: 100%; }
    .dl-text { flex: 1.5; }
  }

  @media (min-width: 1024px) {
    .drama-grid { grid-template-columns: repeat(3, 1fr); }
    .review-list { grid-template-columns: repeat(3, 1fr); }
    
    .hero-text h1 { font-size: 3rem; }
    .hero-gallery { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    
    .timeline-box { padding: 30px; }
    .timeline-item { margin-bottom: 30px; }
  }