:root {
        --bg-color: #121212;
        --text-main: #ffffff;
        --text-sub: #b3b3b3;
        --primary-yellow: #ffd700;
        --primary-red: #e53935;
        --card-bg: #1e1e1e;
    }

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

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

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

    /* Lemon Rain Effect */
    .lemon-rain {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 0;
        overflow: hidden;
    }
    .lemon {
        position: absolute;
        top: -50px;
        width: 24px;
        height: 24px;
        background: var(--primary-yellow);
        border-radius: 50% 0 50% 50%;
        transform: rotate(45deg);
        opacity: 0.6;
        animation: fall linear infinite;
    }
    .lemon::after {
        content: '';
        position: absolute;
        top: 2px;
        right: 2px;
        width: 4px;
        height: 4px;
        background: #fff;
        border-radius: 50%;
        opacity: 0.5;
    }
    @keyframes fall {
        0% { transform: translateY(0) rotate(45deg); }
        100% { transform: translateY(100vh) rotate(405deg); }
    }

    /* Layout */
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        position: relative;
        z-index: 1;
    }

    /* Header & Nav */
    .header {
        position: fixed;
        top: 0;
        width: 100%;
        height: 60px;
        background: rgba(18, 18, 18, 0.95);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        z-index: 100;
        border-bottom: 1px solid #333;
    }
    
    .logo-area {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 20px;
        font-weight: bold;
        color: var(--primary-yellow);
    }
    .logo-area img {
        height: 32px;
        width: auto;
        border-radius: 4px;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--primary-yellow);
        font-size: 24px;
        cursor: pointer;
        z-index: 102;
    }

    .nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 250px;
        height: calc(100vh - 60px);
        background: #1a1a1a;
        transition: left 0.3s ease;
        padding: 20px;
        z-index: 99;
        border-right: 1px solid #333;
    }

    .nav.active {
        left: 0;
    }

    .nav a {
        display: block;
        padding: 15px 0;
        color: var(--text-main);
        font-size: 16px;
        border-bottom: 1px solid #333;
        transition: color 0.2s;
    }
    .nav a:hover {
        color: var(--primary-yellow);
    }

    /* Main Content */
    main {
        margin-top: 60px;
        padding-bottom: 60px;
    }

    section {
        padding: 40px 0;
    }

    h1, h2, h3 {
        color: var(--primary-yellow);
        margin-bottom: 20px;
    }
    
    h1 {
        font-size: 28px;
        text-align: center;
    }
    h2 {
        font-size: 24px;
        text-align: center;
    }

    /* Hero Section */
    .hero {
        text-align: center;
        padding: 60px 0 40px;
    }

    .hero p {
        color: var(--text-sub);
        margin-bottom: 30px;
        font-size: 16px;
    }

    .btn-download {
        display: inline-block;
        background-color: var(--primary-red);
        color: #fff;
        font-size: 18px;
        font-weight: bold;
        padding: 12px 36px;
        border-radius: 30px;
        box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
        transition: transform 0.2s, box-shadow 0.2s;
        border: none;
        cursor: pointer;
    }
    .btn-download:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
    }

    .update-time {
        margin-top: 15px;
        font-size: 13px;
        color: var(--text-sub);
    }

    /* Card Grid System */
    .grid-6 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .card {
        background: var(--card-bg);
        border-radius: 10px;
        overflow: hidden;
        position: relative;
        cursor: pointer;
    }

    .card img {
        width: 100%;
        height: auto;
        display: block;
        aspect-ratio: 3/4;
        object-fit: cover;
    }

    .play-btn {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid rgba(255,255,255,0.8);
        transition: background 0.2s;
    }
    .play-btn::before {
        content: '';
        width: 0;
        height: 0;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-left: 12px solid #fff;
        margin-left: 4px;
    }
    .card:hover .play-btn {
        background: rgba(255, 215, 0, 0.8);
    }

    .card-meta {
        padding: 10px;
        background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
        position: absolute;
        bottom: 0;
        width: 100%;
    }
    .card-title {
        font-size: 14px;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .card-desc {
        font-size: 12px;
        color: var(--text-sub);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Highlights */
    .highlight-text {
        background: #1e1e1e;
        padding: 20px;
        border-radius: 10px;
        border-left: 4px solid var(--primary-yellow);
        color: var(--text-sub);
        line-height: 1.8;
    }
    .highlight-text strong {
        color: var(--primary-yellow);
    }

    /* Leaderboard */
    .leaderboard-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .leaderboard-item {
        display: flex;
        align-items: center;
        background: var(--card-bg);
        padding: 10px;
        border-radius: 8px;
    }
    .rank-num {
        font-size: 18px;
        font-weight: bold;
        color: var(--primary-red);
        width: 30px;
        text-align: center;
    }
    .rank-cover {
        width: 40px;
        height: 55px;
        border-radius: 4px;
        object-fit: cover;
        margin-right: 10px;
    }
    .rank-info {
        flex: 1;
    }
    .rank-title {
        font-size: 14px;
    }
    .rank-stats {
        font-size: 12px;
        color: var(--primary-yellow);
    }

    /* Danmaku Section */
    .danmaku-player {
        position: relative;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        border-radius: 12px;
        overflow: hidden;
        background: #000;
        aspect-ratio: 9/16;
    }
    .danmaku-player img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .danmaku-track {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        overflow: hidden;
    }
    .danmaku-msg {
        position: absolute;
        white-space: nowrap;
        color: #fff;
        font-size: 14px;
        font-weight: bold;
        text-shadow: 1px 1px 2px #000;
        animation: slide linear forwards;
    }
    @keyframes slide {
        0% { transform: translateX(100%); }
        100% { transform: translateX(-100%); }
    }

    /* History */
    .history-content p {
        margin-bottom: 15px;
        color: var(--text-sub);
        text-indent: 2em;
    }

    /* FAQ Accordion */
    .faq-item {
        background: var(--card-bg);
        margin-bottom: 10px;
        border-radius: 8px;
        overflow: hidden;
    }
    .faq-question {
        padding: 15px;
        cursor: pointer;
        color: var(--primary-yellow);
        font-weight: bold;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .faq-answer {
        padding: 0 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s, padding 0.3s;
        color: var(--text-sub);
        font-size: 14px;
    }
    .faq-item.active .faq-answer {
        max-height: 200px;
        padding: 0 15px 15px;
    }

    /* Comments */
    .comment-box {
        background: var(--card-bg);
        padding: 20px;
        border-radius: 10px;
        margin-bottom: 20px;
    }
    .comment-box textarea {
        width: 100%;
        height: 80px;
        background: #2a2a2a;
        border: 1px solid #444;
        border-radius: 8px;
        color: #fff;
        padding: 10px;
        resize: none;
        margin-bottom: 10px;
        font-family: inherit;
    }
    .comment-submit {
        background: var(--primary-yellow);
        color: #000;
        border: none;
        padding: 8px 20px;
        border-radius: 20px;
        font-weight: bold;
        cursor: pointer;
    }
    .comment-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .comment-item {
        display: flex;
        gap: 10px;
    }
    .comment-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--card-bg);
    }
    .comment-body {
        flex: 1;
    }
    .comment-name {
        font-size: 13px;
        color: var(--primary-yellow);
        margin-bottom: 4px;
    }
    .comment-text {
        font-size: 14px;
        color: var(--text-sub);
    }

    /* Marquee */
    .marquee-container {
        background: #1a1a1a;
        border-top: 1px solid var(--primary-yellow);
        border-bottom: 1px solid var(--primary-yellow);
        padding: 10px 0;
        overflow: hidden;
        white-space: nowrap;
        margin: 20px 0;
    }
    .marquee-content {
        display: inline-block;
        animation: marquee 20s linear infinite;
        color: var(--primary-yellow);
        font-size: 14px;
    }
    .marquee-content span {
        margin: 0 30px;
    }
    @keyframes marquee {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

    /* Carousel */
    .carousel-section {
        position: relative;
        padding: 40px 20px;
    }
    .carousel-container {
        position: relative;
        height: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
        perspective: 1000px;
    }
    .carousel-card {
        position: absolute;
        width: 160px;
        height: 240px;
        border-radius: 10px;
        overflow: hidden;
        transition: transform 0.5s ease, z-index 0.5s;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }
    .carousel-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .carousel-card .play-btn {
        width: 30px;
        height: 30px;
    }
    
    .carousel-card.active {
        transform: translateX(0) scale(1);
        z-index: 10;
    }
    .carousel-card.prev {
        transform: translateX(-120px) scale(0.85) rotateY(15deg);
        z-index: 5;
        opacity: 0.8;
    }
    .carousel-card.next {
        transform: translateX(120px) scale(0.85) rotateY(-15deg);
        z-index: 5;
        opacity: 0.8;
    }
    .carousel-card.hidden {
        transform: translateX(0) scale(0.6);
        z-index: 1;
        opacity: 0;
        pointer-events: none;
    }

    /* Modal */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 1000;
        justify-content: center;
        align-items: center;
    }
    .modal.show {
        display: flex;
    }
    .modal-content {
        background: var(--card-bg);
        padding: 30px;
        border-radius: 12px;
        text-align: center;
        max-width: 80%;
        border: 1px solid var(--primary-yellow);
    }
    .modal-content h3 {
        color: var(--primary-yellow);
        margin-bottom: 15px;
    }
    .modal-content p {
        color: var(--text-sub);
        margin-bottom: 20px;
    }
    .modal-btn {
        background: var(--primary-red);
        color: #fff;
        padding: 10px 20px;
        border-radius: 20px;
        border: none;
        cursor: pointer;
        font-weight: bold;
        display: block;
        margin: 0 auto;
    }

    /* Footer */
    footer {
        text-align: center;
        padding: 20px;
        font-size: 12px;
        color: #666;
        border-top: 1px solid #333;
        margin-top: 40px;
        position: relative;
        z-index: 1;
    }
    footer a {
        color: #666;
        margin-top: 5px;
        display: inline-block;
    }

    /* Responsive */
    @media (min-width: 768px) {
        .grid-6 {
            grid-template-columns: repeat(3, 1fr);
        }
        .hero h1 {
            font-size: 36px;
        }
        .carousel-card {
            width: 200px;
            height: 300px;
        }
        .carousel-card.prev {
            transform: translateX(-180px) scale(0.85) rotateY(15deg);
        }
        .carousel-card.next {
            transform: translateX(180px) scale(0.85) rotateY(-15deg);
        }
        .danmaku-player {
            max-width: 600px;
            aspect-ratio: 16/9;
        }
    }

    @media (min-width: 1024px) {
        .menu-toggle {
            display: none;
        }
        .nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 200px;
            height: 100vh;
            border-right: 1px solid #333;
            background: #151515;
            padding-top: 80px;
            transition: transform 0.3s;
        }
        .nav a {
            padding: 15px 25px;
            border-bottom: none;
        }
        .header {
            left: 200px;
            width: calc(100% - 200px);
            justify-content: space-between;
            padding: 0 30px;
        }
        .logo-area {
            display: none; /* Hide logo in header on PC, show in nav instead */
        }
        .nav .logo-area {
            display: flex;
            position: absolute;
            top: 20px;
            left: 25px;
        }
        main {
            margin-left: 200px;
            margin-top: 60px;
        }
        .grid-6 {
            grid-template-columns: repeat(6, 1fr);
        }
        .grid-6.three-cols {
            grid-template-columns: repeat(3, 1fr);
        }
    }