:root {
        --bg-color: #121212;
        --surface-color: #1e1e1e;
        --primary-red: #e50914;
        --primary-yellow: #ffc107;
        --primary-green: #28a745;
        --text-color: #f5f5f5;
        --text-muted: #aaaaaa;
    }

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

    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        background-color: var(--bg-color);
        color: var(--text-color);
        line-height: 1.6;
        overflow-x: hidden;
        position: relative;
    }

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

    /* 苹果下落动画 */
    .apple-fall-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 0;
        overflow: hidden;
    }

    .apple {
        position: absolute;
        top: -50px;
        font-size: 24px;
        animation: fall linear infinite;
    }

    @keyframes fall {
        0% { transform: translateY(-50px) rotate(0deg); }
        100% { transform: translateY(100vh) rotate(360deg); }
    }

    /* 导航条 */
    .mobile-nav-toggle {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 100;
        background-color: var(--primary-red);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 14px;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(229, 9, 20, 0.4);
    }

    .sidebar-nav {
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100vh;
        background-color: var(--surface-color);
        z-index: 99;
        transition: right 0.3s ease;
        padding-top: 80px;
        display: flex;
        flex-direction: column;
        border-left: 1px solid #333;
    }

    .sidebar-nav.active {
        right: 0;
    }

    .sidebar-nav a {
        padding: 15px 25px;
        color: var(--text-color);
        font-size: 16px;
        border-bottom: 1px solid #2a2a2a;
        transition: color 0.2s;
    }

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

    /* 主体内容 */
    main {
        position: relative;
        z-index: 1;
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }

    /* 头部首屏 */
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 0;
        gap: 20px;
    }

    .logo-title {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo-title img {
        height: 36px;
        border-radius: 8px;
    }

    h1 {
        font-size: 24px;
        color: var(--primary-yellow);
    }

    .download-btn {
        display: inline-block;
        background-color: var(--primary-green);
        color: white;
        padding: 12px 30px;
        font-size: 18px;
        font-weight: bold;
        border-radius: 30px;
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
        transition: transform 0.2s, background-color 0.2s;
    }

    .download-btn:hover {
        transform: translateY(-2px);
        background-color: #218838;
    }

    .update-time {
        font-size: 12px;
        color: var(--text-muted);
    }

    /* 轮播图 */
    .carousel-container {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        aspect-ratio: 3 / 4;
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    }

    .carousel-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.5s ease;
    }

    .carousel-slide.active {
        opacity: 1;
    }

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* 图片播放按钮通用样式 */
    .img-wrapper {
        position: relative;
        cursor: pointer;
        border-radius: 12px;
        overflow: hidden;
    }

    .img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.3s;
    }

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

    .play-btn {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 50px;
        height: 50px;
        background-color: rgba(0, 0, 0, 0.5);
        border: 2px solid rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.2s;
    }

    .play-btn::before {
        content: '';
        display: block;
        width: 0;
        height: 0;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 16px solid white;
        margin-left: 5px;
    }

    .img-wrapper:hover .play-btn {
        background-color: var(--primary-red);
    }

    /* 滚动横幅 */
    .marquee-banner {
        background-color: var(--primary-red);
        color: white;
        padding: 10px 0;
        margin: 40px 0;
        overflow: hidden;
        white-space: nowrap;
        position: relative;
    }

    .marquee-content {
        display: inline-block;
        animation: marquee 15s linear infinite;
    }

    .marquee-content span {
        margin: 0 20px;
        font-weight: bold;
    }

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

    /* 通用区块 */
    section {
        margin-bottom: 60px;
    }

    h2 {
        font-size: 22px;
        color: var(--primary-yellow);
        text-align: center;
        margin-bottom: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    h2::before, h2::after {
        content: '';
        height: 2px;
        width: 30px;
        background-color: var(--primary-red);
    }

    h3 {
        font-size: 18px;
        color: var(--text-color);
        margin-bottom: 10px;
    }

    /* 剧库 / 热推 / 排行榜 */
    .grid-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .card {
        background-color: var(--surface-color);
        border-radius: 12px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .card .img-wrapper {
        aspect-ratio: 3 / 4;
    }

    .card-info {
        padding: 12px;
    }

    .card-desc {
        font-size: 13px;
        color: var(--text-muted);
    }

    .card-stats {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        margin-top: 8px;
        color: var(--primary-yellow);
    }

    /* 优势说明 */
    .advantage-text {
        background-color: var(--surface-color);
        padding: 24px;
        border-radius: 12px;
        border-left: 4px solid var(--primary-red);
        font-size: 15px;
        line-height: 1.8;
        color: #ddd;
    }

    /* 弹幕互动 */
    .danmu-player {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        aspect-ratio: 16 / 9;
        background-color: #000;
    }

    .danmu-player img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.8;
    }

    .danmu-layer {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        overflow: hidden;
    }

    .danmu-item {
        position: absolute;
        color: white;
        font-size: 14px;
        font-weight: bold;
        text-shadow: 1px 1px 2px black;
        white-space: nowrap;
        animation: danmu-move linear forwards;
    }

    @keyframes danmu-move {
        from { transform: translateX(100vw); }
        to { transform: translateX(-100%); }
    }

    /* 历史介绍 */
    .history-content {
        background-color: var(--surface-color);
        padding: 24px;
        border-radius: 12px;
        font-size: 15px;
        color: #ddd;
    }

    /* 常见问题手风琴 */
    .accordion {
        border-radius: 12px;
        overflow: hidden;
    }

    .accordion-item {
        border-bottom: 1px solid #2a2a2a;
        background-color: var(--surface-color);
    }

    .accordion-header {
        width: 100%;
        text-align: left;
        padding: 18px 20px;
        background: transparent;
        border: none;
        color: var(--text-color);
        font-size: 16px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: color 0.2s;
    }

    .accordion-header:hover {
        color: var(--primary-yellow);
    }

    .accordion-header::after {
        content: '+';
        font-size: 20px;
        color: var(--primary-red);
    }

    .accordion-item.active .accordion-header::after {
        content: '-';
    }

    .accordion-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        padding: 0 20px;
        color: var(--text-muted);
        font-size: 14px;
    }

    .accordion-item.active .accordion-body {
        padding-bottom: 18px;
    }

    /* 网友热议 */
    .comments-section {
        background-color: var(--surface-color);
        padding: 24px;
        border-radius: 12px;
    }

    .comment-list {
        margin-bottom: 24px;
    }

    .comment-item {
        display: flex;
        gap: 12px;
        margin-bottom: 16px;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: contain;
        background-color: #2a2a2a;
    }

    .comment-content {
        flex: 1;
    }

    .comment-name {
        font-size: 14px;
        color: var(--primary-yellow);
        margin-bottom: 4px;
    }

    .comment-text {
        font-size: 14px;
        color: #ddd;
    }

    .comment-form textarea {
        width: 100%;
        height: 80px;
        background-color: var(--bg-color);
        border: 1px solid #333;
        border-radius: 8px;
        padding: 12px;
        color: var(--text-color);
        font-size: 14px;
        resize: none;
        margin-bottom: 12px;
    }

    .comment-form textarea:focus {
        outline: none;
        border-color: var(--primary-yellow);
    }

    .submit-btn {
        background-color: var(--primary-red);
        color: white;
        border: none;
        padding: 10px 24px;
        border-radius: 20px;
        font-size: 14px;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .submit-btn:hover {
        background-color: #b80710;
    }

    /* 弹窗 */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: 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-content {
        background-color: var(--surface-color);
        padding: 30px;
        border-radius: 16px;
        text-align: center;
        max-width: 400px;
        width: 100%;
        border: 1px solid #333;
    }

    .modal-content h3 {
        color: var(--primary-yellow);
        margin-bottom: 15px;
    }

    .modal-content p {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .modal-close {
        background-color: var(--primary-green);
        color: white;
        border: none;
        padding: 10px 30px;
        border-radius: 20px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
    }

    /* 页脚 */
    footer {
        text-align: center;
        padding: 30px 20px;
        margin-top: 40px;
        border-top: 1px solid #2a2a2a;
        color: var(--text-muted);
        font-size: 12px;
        position: relative;
        z-index: 1;
    }

    /* 响应式 */
    @media (min-width: 768px) {
        header {
            flex-direction: row;
            justify-content: space-between;
            text-align: left;
            padding: 60px 20px;
        }

        .header-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 20px;
        }

        .carousel-container {
            flex: 0 0 300px;
            margin: 0;
        }

        h1 {
            font-size: 32px;
        }

        .grid-container {
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        .marquee-content span {
            margin: 0 40px;
        }
    }

    @media (min-width: 1024px) {
        .grid-container {
            grid-template-columns: repeat(6, 1fr);
        }
        
        .card-info {
            padding: 16px 10px;
        }
        
        .card-desc {
            font-size: 12px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .carousel-container {
            flex: 0 0 380px;
        }
    }