:root {
    --bg-dark: #0f0f13;
    --bg-card: #1a1a24;
    --primary: #ff2a55;
    --primary-glow: rgba(255, 42, 85, 0.3);
    --text-main: #f0f0f0;
    --text-sub: #a0a0b0;
    --border: #2a2a3a;
    --accent: #00e5ff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
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;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(15, 15, 19, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo-group { display: flex; align-items: center; gap: 12px; font-weight: bold; font-size: 1.2rem; color: var(--text-main); }
.logo-group img { height: 32px; width: auto; border-radius: 6px; }
.nav-links { display: none; gap: 20px; }
.nav-links a { color: var(--text-sub); font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* Hero */
.hero {
    position: relative; padding: 60px 0 40px; overflow: hidden;
    background: radial-gradient(circle at top right, #2a0a15 0%, var(--bg-dark) 60%);
}
.hero-content { position: relative; z-index: 2; text-align: center; }
.hero h1 { font-size: 2.2rem; line-height: 1.3; margin-bottom: 15px; font-weight: 800; }
.hero h1 span { color: var(--primary); }
.hero-sub { font-size: 1.1rem; color: var(--text-sub); margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.hero-tags span { padding: 4px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; font-size: 0.85rem; color: var(--accent); }

/* Hero Carousel */
.hero-carousel {
    position: relative; width: 100%; overflow: hidden;
    padding-bottom: 40px; display: flex; gap: 15px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.carousel-track { display: flex; gap: 15px; animation: scrollLeft 30s linear infinite; width: max-content; }
.carousel-track img { height: 220px; width: auto; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Download Buttons */
.download-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 20px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: 30px; font-weight: bold;
    font-size: 1rem; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
    border: none; outline: none;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), #ff6a00); color: #fff; box-shadow: 0 4px 15px var(--primary-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--primary-glow); }
.btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: rgba(0, 229, 255, 0.1); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* Sections Common */
section { padding: 60px 0; }
.section-title { font-size: 1.8rem; margin-bottom: 10px; text-align: center; }
.section-sub { text-align: center; color: var(--text-sub); margin-bottom: 40px; font-size: 0.95rem; }
.bg-alt { background-color: #13131a; }

/* Section 1: 魔改爽剧 */
.shuangju-layout { display: flex; flex-direction: column; gap: 30px; }
.shuangju-side { display: flex; flex-direction: column; gap: 15px; }
.shuangju-side img { width: 100%; max-width: 300px; border-radius: 16px; margin: 0 auto; }
.shuangju-list { display: grid; grid-template-columns: 1fr; gap: 15px; }
.shuangju-item {
    background: var(--bg-card); padding: 15px 20px; border-radius: 12px;
    border-left: 4px solid var(--primary); transition: background 0.3s;
}
.shuangju-item:hover { background: #222230; }
.shuangju-item h3 { font-size: 1.1rem; margin-bottom: 5px; color: #fff; }
.shuangju-item p { font-size: 0.9rem; color: var(--text-sub); }

/* Section 2: 原创魔改 */
.original-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.original-card {
    background: var(--bg-card); border-radius: 12px; overflow: hidden;
    display: flex; flex-direction: column; transition: transform 0.3s;
}
.original-card:hover { transform: translateY(-5px); }
.original-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.original-info { padding: 15px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.original-info h3 { font-size: 1rem; margin-bottom: 5px; line-height: 1.3; }
.original-info .tags { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.original-info .tags span { font-size: 0.75rem; padding: 2px 6px; background: rgba(255,42,85,0.15); color: var(--primary); border-radius: 4px; }
.original-info .date { font-size: 0.8rem; color: var(--text-sub); }

/* Section 3: 魔改日历 (Timeline) */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
    content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 30px; padding-left: 50px; }
.timeline-item::before {
    content: ''; position: absolute; left: 14px; top: 6px; width: 14px; height: 14px;
    border-radius: 50%; background: var(--primary); border: 2px solid var(--bg-dark); box-shadow: 0 0 0 3px var(--primary-glow);
}
.timeline-time { font-weight: bold; color: var(--accent); margin-bottom: 5px; font-size: 1.1rem; }
.timeline-content { background: var(--bg-card); padding: 15px; border-radius: 8px; border: 1px solid var(--border); }
.timeline-content h3 { font-size: 1rem; margin-bottom: 5px; }
.timeline-content p { font-size: 0.9rem; color: var(--text-sub); }

/* Section 4: 魔改心愿榜 & 周榜 */
.rank-split { display: flex; flex-direction: column; gap: 40px; }
.rank-col { flex: 1; }
.rank-title { font-size: 1.3rem; margin-bottom: 20px; color: var(--primary); border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item {
    display: flex; align-items: center; gap: 15px;
    background: var(--bg-card); padding: 12px 15px; border-radius: 8px;
}
.rank-num { font-size: 1.2rem; font-weight: bold; color: var(--accent); width: 30px; text-align: center; }
.rank-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.rank-info p { font-size: 0.8rem; color: var(--text-sub); }

/* Section 5: 魔改辣评 */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.review-card {
    background: var(--bg-card); padding: 20px; border-radius: 12px;
    display: flex; gap: 15px; align-items: flex-start;
}
.review-card img { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: #000; }
.review-body h4 { font-size: 0.95rem; margin-bottom: 5px; color: var(--accent); }
.review-body p { font-size: 0.9rem; color: var(--text-sub); }

/* Section 6: 隐私安全 & FAQ */
.info-split { display: flex; flex-direction: column; gap: 40px; }
.faq-list { display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: var(--bg-card); border-radius: 8px; overflow: hidden; }
.faq-q { padding: 15px; font-weight: bold; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-a { padding: 0 15px 15px; color: var(--text-sub); font-size: 0.9rem; }
.privacy-list { display: flex; flex-direction: column; gap: 15px; }
.privacy-item { background: var(--bg-card); padding: 15px; border-radius: 8px; border-left: 4px solid var(--accent); }
.privacy-item h4 { margin-bottom: 5px; font-size: 1rem; }
.privacy-item p { font-size: 0.9rem; color: var(--text-sub); }

/* Section 7: 底部下载与安装 */
.download-steps { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.step-card { background: var(--bg-card); padding: 20px; border-radius: 12px; display: flex; gap: 15px; align-items: center; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; }
.step-text h4 { font-size: 1rem; margin-bottom: 3px; }
.step-text p { font-size: 0.9rem; color: var(--text-sub); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 30px 0; text-align: center; color: var(--text-sub); font-size: 0.85rem; }
footer p { margin-bottom: 10px; }
footer a { color: var(--text-sub); transition: color 0.3s; }
footer a:hover { color: var(--text-main); }

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 1000;
}
.modal-overlay.active { display: flex; }
.modal-box { background: var(--bg-card); padding: 25px; border-radius: 16px; width: 90%; max-width: 400px; text-align: center; }
.modal-box h3 { font-size: 1.1rem; margin-bottom: 15px; color: var(--primary); }
.modal-box p { font-size: 0.9rem; color: var(--text-sub); margin-bottom: 20px; word-break: break-all; }
.modal-box button { width: 100%; padding: 12px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; }

@media (min-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero-carousel img { height: 300px; }
    .shuangju-layout { flex-direction: row; }
    .shuangju-side { width: 300px; flex-shrink: 0; }
    .shuangju-list { grid-template-columns: 1fr 1fr; flex: 1; }
    .timeline::before { left: 50%; transform: translateX(-50%); }
    .timeline-item { width: 50%; padding-left: 0; padding-right: 40px; text-align: right; }
    .timeline-item:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 40px; text-align: left; }
    .timeline-item::before { left: 100%; transform: translateX(-50%); }
    .timeline-item:nth-child(even)::before { left: 0; }
    .rank-split { flex-direction: row; }
    .reviews-grid { grid-template-columns: 1fr 1fr; }
    .info-split { flex-direction: row; }
    .faq-list, .privacy-list { flex: 1; }
    .download-steps { flex-direction: row; }
}

@media (min-width: 1024px) {
    .nav-links { display: flex; }
    .hero h1 { font-size: 4rem; }
    .hero-carousel img { height: 380px; }
    .shuangju-list { grid-template-columns: 1fr 1fr; }
    .original-grid { grid-template-columns: repeat(4, 1fr); }
    .reviews-grid { grid-template-columns: repeat(3, 1fr); }
    .download-group { gap: 20px; }
    .btn { padding: 15px 40px; font-size: 1.1rem; }
}