:root {
    --bg-dark: #121018;
    --bg-card: #1e1b26;
    --primary: #ff4d6d;
    --primary-grad: linear-gradient(135deg, #ff4d6d 0%, #ff8a5c 100%);
    --text-main: #f0f0f0;
    --text-muted: #9a9a9a;
    --border-radius: 12px;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px; /* Space for floating button */
}

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

/* Header & Nav */
header {
    background: rgba(18, 16, 24, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.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;
}
.brand img {
    height: 32px;
    border-radius: 6px;
}
.brand span {
    font-size: 18px;
    font-weight: bold;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    display: none;
    gap: 15px;
    font-size: 14px;
    color: var(--text-muted);
}
.nav-links a { transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 20px;
    cursor: pointer;
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    background: var(--bg-card);
    padding: 15px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-direction: column;
    gap: 10px;
}
.mobile-nav.active { display: flex; }
.mobile-nav a { font-size: 15px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}
.hero-content {
    text-align: center;
}
.hero h1 {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 15px;
}
.hero p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 25px;
}
.download-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    background: var(--primary-grad);
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}
.btn:active { transform: scale(0.95); }
.btn.outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

/* Poster Grid in Hero */
.hero-posters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    align-items: center;
}
.hero-posters .poster-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: float 6s ease-in-out infinite;
}
.hero-posters .poster-item:nth-child(even) { animation-delay: 3s; }
.hero-posters img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

/* Marquee */
.marquee-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    padding: 10px 0;
    margin-top: 20px;
    border-radius: 8px;
}
.marquee {
    white-space: nowrap;
    animation: scrollText 15s linear infinite;
    font-weight: bold;
    font-size: 15px;
}
.marquee span {
    margin-right: 30px;
    background: linear-gradient(90deg, #ff4d6d, #ff8a5c, #ffd166);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sections */
section { padding: 40px 20px; max-width: 1200px; margin: 0 auto; }
.sec-title { font-size: 22px; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.sec-title::before { content: ''; display: block; width: 4px; height: 20px; background: var(--primary); border-radius: 2px; }

/* Section: 真人短剧 */
.sec-real { background: #1a1721; border-radius: var(--border-radius); }
.slider-wrap { overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.slider-wrap::-webkit-scrollbar { display: none; }
.slider-inner { display: flex; gap: 15px; width: max-content; }
.slide-card { width: 130px; scroll-snap-align: start; }
.slide-card img { width: 100%; aspect-ratio: 3/4; border-radius: 8px; margin-bottom: 8px; }
.slide-card h3 { font-size: 14px; font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide-card .tag { font-size: 11px; color: var(--primary); }

/* Section: 完结魔改剧 (Timeline) */
.sec-finished { background: #201c2a; border-radius: var(--border-radius); }
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.1); }
.tl-item { position: relative; margin-bottom: 20px; }
.tl-item::before { content: ''; position: absolute; left: -18px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.tl-time { font-size: 12px; color: var(--primary); font-weight: bold; }
.tl-content { font-size: 14px; background: rgba(255,255,255,0.05); padding: 10px 15px; border-radius: 8px; margin-top: 5px; }

/* Section: 本周热播榜 */
.sec-hot { background: #1e1822; border-radius: var(--border-radius); }
.hot-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.hot-item { display: flex; gap: 15px; background: rgba(255,255,255,0.03); padding: 10px; border-radius: 8px; align-items: center; }
.hot-rank { font-size: 20px; font-weight: bold; color: var(--primary); width: 30px; text-align: center; }
.hot-item img { width: 60px; height: 80px; border-radius: 6px; }
.hot-info h3 { font-size: 15px; margin-bottom: 5px; }
.hot-info p { font-size: 12px; color: var(--text-muted); }

/* Section: 热门点评 */
.sec-comments { background: #171a21; border-radius: var(--border-radius); }
.review-card { background: rgba(255,255,255,0.05); padding: 15px; border-radius: 8px; margin-bottom: 15px; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-avatar { width: 32px; height: 32px; border-radius: 50%; background: #333; }
.review-name { font-size: 14px; font-weight: bold; }
.review-text { font-size: 13px; color: #ccc; }

/* Info Grid Section (会员权益/隐私/未成年等) */
.info-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.info-card { background: #1c1c1c; padding: 20px; border-radius: var(--border-radius); }
.info-card h2 { font-size: 18px; margin-bottom: 15px; color: #fff; }
.info-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.5; }

/* FAQ */
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 15px 0; }
.faq-q { font-size: 15px; font-weight: bold; margin-bottom: 8px; color: #fff; }
.faq-a { font-size: 14px; color: var(--text-muted); }

/* Download Section */
.sec-download { background: var(--primary-grad); border-radius: var(--border-radius); padding: 40px 20px; text-align: center; color: #fff; }
.sec-download h2 { font-size: 24px; margin-bottom: 15px; }
.sec-download p { font-size: 15px; margin-bottom: 25px; opacity: 0.9; }
.dl-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sec-download .btn { background: #fff; color: var(--primary); }

/* Footer */
footer {
    background: #0a090d;
    padding: 40px 20px 20px;
    text-align: center;
    font-size: 12px;
    color: #666;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-links { margin-bottom: 15px; display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.footer-links a { color: #888; }
.footer-info { margin-bottom: 15px; }
.footer-info a { color: #888; text-decoration: underline; }

/* Floating Button */
.floating-dl {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 27, 38, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
    border-radius: 30px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 90%;
    width: max-content;
}
.floating-dl img { height: 24px; border-radius: 4px; }
.floating-dl .text-area { text-align: left; }
.floating-dl .text-area span { display: block; font-size: 12px; color: #fff; font-weight: bold; }
.floating-dl .text-area small { font-size: 10px; color: var(--text-muted); }
.floating-dl .btn-small { padding: 6px 12px; font-size: 12px; border-radius: 15px; }

/* Modal */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 1000; align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-content { background: #1e1b26; padding: 25px; border-radius: 12px; width: 90%; max-width: 400px; text-align: center; position: relative; }
.modal-content p { font-size: 14px; margin-bottom: 15px; color: #fff; }
.modal-content .copy-box { background: rgba(255,255,255,0.1); padding: 10px; border-radius: 6px; font-size: 12px; word-break: break-all; color: var(--primary); margin-bottom: 15px; }
.modal-close { position: absolute; top: 10px; right: 15px; color: #fff; font-size: 20px; cursor: pointer; background: none; border: none; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Breakpoints */
@media (min-width: 768px) {
    .hero { flex-direction: row; align-items: center; justify-content: space-between; padding: 50px 20px; }
    .hero-content { flex: 1; text-align: left; padding-right: 40px; }
    .hero h1 { font-size: 36px; }
    .download-btns { justify-content: flex-start; }
    .hero-posters { flex: 1; grid-template-columns: repeat(2, 1fr); max-width: 400px; }
    
    .nav-links { display: flex; }
    .mobile-menu-btn { display: none; }
    .mobile-nav { display: none !important; }
    
    .hot-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    section { padding: 60px 20px; }
}

@media (min-width: 1024px) {
    .hot-grid { grid-template-columns: repeat(3, 1fr); }
    .hero h1 { font-size: 42px; }
    .hero-posters { max-width: 500px; }
}