:root {
        --bg-color: #0a0a0a;
        --bg-light: #1a1a1a;
        --pink-main: #ff2a6d;
        --pink-hover: #ff4d85;
        --yellow-main: #ffd700;
        --text-main: #f0f0f0;
        --text-muted: #999;
        --border-color: #333;
    }

    * {
        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;
        position: relative;
    }

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

    /* Pencil falling animation */
    .pencil-bg {
        position: fixed;
        top: -100px;
        width: 10px;
        height: 60px;
        background: #f4d03f;
        border-radius: 2px;
        opacity: 0.15;
        pointer-events: none;
        z-index: 0;
        animation: fall linear infinite;
    }
    
    .pencil-bg::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 20px;
        background: #e59866;
        border-radius: 2px 2px 0 0;
    }

    @keyframes fall {
        0% { transform: translateY(-100px) rotate(15deg); }
        100% { transform: translateY(110vh) rotate(75deg); }
    }

    /* Header */
    header {
        background-color: rgba(10, 10, 10, 0.95);
        position: sticky;
        top: 0;
        z-index: 100;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-container {
        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: 20px;
        font-weight: bold;
        color: var(--pink-main);
    }

    .logo-area img {
        height: 32px;
        width: auto;
    }

    .menu-toggle {
        display: none;
        background: none;
        border: 1px solid var(--pink-main);
        color: var(--pink-main);
        padding: 5px 15px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
    }

    .nav-links {
        display: flex;
        gap: 20px;
        list-style: none;
    }

    .nav-links a {
        font-size: 15px;
        transition: color 0.3s;
    }

    .nav-links a:hover {
        color: var(--pink-main);
    }

    /* Hero Section */
    .hero {
        text-align: center;
        padding: 60px 20px;
        position: relative;
        z-index: 1;
    }

    .hero h1 {
        font-size: 36px;
        margin-bottom: 20px;
        color: var(--text-main);
    }

    .hero h1 span {
        color: var(--pink-main);
    }

    .hero p {
        color: var(--text-muted);
        font-size: 16px;
        margin-bottom: 30px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .download-btn-wrap {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .download-btn {
        background-color: var(--yellow-main);
        color: #000;
        font-size: 18px;
        font-weight: bold;
        padding: 15px 40px;
        border-radius: 30px;
        display: inline-block;
        transition: transform 0.2s, background-color 0.2s;
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    }

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

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

    /* Carousel */
    .carousel-section {
        padding: 40px 20px;
        overflow: hidden;
        position: relative;
        z-index: 1;
    }

    .carousel-wrapper {
        max-width: 1000px;
        margin: 0 auto;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 450px;
    }

    .carousel-card {
        position: absolute;
        width: 260px;
        height: 380px;
        border-radius: 12px;
        overflow: hidden;
        transition: all 0.5s ease;
        cursor: pointer;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
        background-color: var(--bg-light);
        border: 2px solid transparent;
    }

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

    .carousel-card .play-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 50px;
        height: 50px;
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(2px);
        transition: background-color 0.3s;
    }

    .carousel-card .play-icon::after {
        content: '';
        width: 0;
        height: 0;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 15px solid #fff;
        margin-left: 5px;
    }

    .carousel-card:hover .play-icon {
        background-color: var(--pink-main);
    }

    /* Cards positions */
    .card-pos-0 { transform: translateX(-200%) scale(0.6); opacity: 0; pointer-events: none; z-index: 0; }
    .card-pos-1 { transform: translateX(-100%) scale(0.8); opacity: 0.8; z-index: 1; }
    .card-pos-2 { transform: translateX(0) scale(1); opacity: 1; z-index: 2; border-color: var(--pink-main); }
    .card-pos-3 { transform: translateX(100%) scale(0.8); opacity: 0.8; z-index: 1; }
    .card-pos-4 { transform: translateX(200%) scale(0.6); opacity: 0; pointer-events: none; z-index: 0; }

    .carousel-controls {
        text-align: center;
        margin-top: 20px;
    }

    .carousel-controls button {
        background: none;
        border: 1px solid var(--pink-main);
        color: var(--pink-main);
        padding: 8px 20px;
        margin: 0 10px;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.3s;
    }

    .carousel-controls button:hover {
        background: var(--pink-main);
        color: #fff;
    }

    /* Scrolling Marquee */
    .marquee-band {
        background-color: var(--pink-main);
        color: #fff;
        padding: 10px 0;
        overflow: hidden;
        white-space: nowrap;
        position: relative;
        z-index: 1;
    }

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

    .marquee-content span {
        display: inline-block;
        padding: 0 30px;
        font-size: 14px;
    }

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

    /* General Section Styles */
    .section-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 60px 20px;
        position: relative;
        z-index: 1;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
        text-align: center;
        position: relative;
        display: inline-block;
        left: 50%;
        transform: translateX(-50%);
    }

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: var(--pink-main);
        border-radius: 2px;
    }

    /* Library */
    .grid-6 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .media-card {
        background-color: var(--bg-light);
        border-radius: 8px;
        overflow: hidden;
        position: relative;
        transition: transform 0.3s;
    }

    .media-card:hover {
        transform: translateY(-5px);
    }

    .media-img-wrap {
        position: relative;
        padding-top: 140%;
        cursor: pointer;
    }

    .media-img-wrap img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .media-img-wrap .play-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 40px;
        height: 40px;
        background-color: rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.3s;
    }

    .media-img-wrap .play-icon::after {
        content: '';
        width: 0;
        height: 0;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-left: 12px solid #fff;
        margin-left: 3px;
    }

    .media-img-wrap:hover .play-icon {
        background-color: var(--pink-main);
        border-color: var(--pink-main);
    }

    .media-info {
        padding: 12px;
    }

    .media-info h3 {
        font-size: 16px;
        margin-bottom: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .media-info p {
        font-size: 13px;
        color: var(--text-muted);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Feature Section */
    .feature-box {
        background-color: var(--bg-light);
        padding: 30px;
        border-radius: 12px;
        border-left: 4px solid var(--pink-main);
        margin-top: 20px;
    }

    .feature-box p {
        color: var(--text-muted);
        font-size: 15px;
        line-height: 1.8;
        text-indent: 2em;
    }

    /* Ranking */
    .ranking-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .ranking-item {
        display: flex;
        background-color: var(--bg-light);
        border-radius: 8px;
        padding: 10px;
        align-items: center;
        gap: 15px;
    }

    .rank-num {
        font-size: 24px;
        font-weight: bold;
        color: var(--pink-main);
        width: 40px;
        text-align: center;
        font-style: italic;
    }

    .rank-img {
        width: 60px;
        height: 80px;
        border-radius: 4px;
        object-fit: cover;
    }

    .rank-info {
        flex: 1;
    }

    .rank-info h3 {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .rank-stats {
        font-size: 12px;
        color: var(--text-muted);
        display: flex;
        gap: 15px;
    }

    /* Danmaku Section */
    .video-player {
        position: relative;
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        aspect-ratio: 16/9;
        background-color: #000;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid var(--border-color);
        cursor: pointer;
    }

    .video-player img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

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

    .danmaku-item {
        position: absolute;
        color: #fff;
        font-size: 16px;
        font-weight: bold;
        text-shadow: 1px 1px 2px #000;
        white-space: nowrap;
        animation: danmaku-move linear forwards;
    }

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

    /* History */
    .history-timeline {
        position: relative;
        padding-left: 20px;
        border-left: 2px solid var(--border-color);
        margin-top: 20px;
    }

    .history-item {
        margin-bottom: 20px;
        position: relative;
    }

    .history-item::before {
        content: '';
        position: absolute;
        left: -26px;
        top: 5px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: var(--pink-main);
    }

    .history-item h3 {
        font-size: 16px;
        color: var(--pink-main);
        margin-bottom: 5px;
    }

    .history-item p {
        font-size: 14px;
        color: var(--text-muted);
    }

    /* FAQ */
    .faq-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .faq-item {
        background-color: var(--bg-light);
        border-radius: 8px;
        overflow: hidden;
    }

    .faq-item summary {
        padding: 15px 20px;
        cursor: pointer;
        font-weight: bold;
        list-style: none;
        position: relative;
    }

    .faq-item summary::-webkit-details-marker {
        display: none;
    }

    .faq-item summary::after {
        content: '+';
        position: absolute;
        right: 20px;
        color: var(--pink-main);
        font-size: 18px;
    }

    .faq-item[open] summary::after {
        content: '-';
    }

    .faq-content {
        padding: 0 20px 15px;
        color: var(--text-muted);
        font-size: 14px;
    }

    /* Comments */
    .comment-section {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .comment-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .comment-item {
        display: flex;
        gap: 15px;
        background-color: var(--bg-light);
        padding: 15px;
        border-radius: 8px;
    }

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

    .comment-body {
        flex: 1;
    }

    .comment-user {
        font-size: 14px;
        color: var(--pink-main);
        margin-bottom: 4px;
    }

    .comment-text {
        font-size: 14px;
        color: var(--text-main);
    }

    .comment-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .comment-form textarea {
        width: 100%;
        height: 80px;
        background-color: var(--bg-light);
        border: 1px solid var(--border-color);
        color: var(--text-main);
        padding: 10px;
        border-radius: 8px;
        resize: none;
    }

    .comment-form button {
        align-self: flex-end;
        background-color: var(--pink-main);
        color: #fff;
        border: none;
        padding: 8px 20px;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .comment-form button:hover {
        background-color: var(--pink-hover);
    }

    /* Modals */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .modal-overlay.active {
        display: flex;
    }

    .modal-content {
        background-color: var(--bg-light);
        padding: 30px;
        border-radius: 12px;
        text-align: center;
        max-width: 400px;
        width: 90%;
        border: 1px solid var(--pink-main);
    }

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

    .modal-content p {
        margin-bottom: 20px;
        color: var(--text-muted);
    }

    .modal-close {
        background-color: var(--pink-main);
        color: #fff;
        border: none;
        padding: 8px 25px;
        border-radius: 20px;
        cursor: pointer;
    }

    /* Footer */
    footer {
        background-color: #050505;
        padding: 30px 20px;
        text-align: center;
        font-size: 12px;
        color: var(--text-muted);
        border-top: 1px solid var(--border-color);
        position: relative;
        z-index: 1;
    }

    footer p {
        margin-bottom: 10px;
    }

    footer a {
        color: var(--text-muted);
        transition: color 0.3s;
    }

    footer a:hover {
        color: var(--pink-main);
    }

    .footer-about {
        margin: 15px 0;
        text-align: left;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-about summary {
        cursor: pointer;
        display: inline-block;
        font-size: 12px;
        color: var(--text-muted);
        outline: none;
    }

    .footer-about summary::-webkit-details-marker {
        display: none;
    }
    
    .footer-about summary:hover {
        color: var(--pink-main);
    }

    .footer-links {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        line-height: 1.8;
    }

    /* Responsive */
    @media (max-width: 1024px) {
        .carousel-wrapper { height: 380px; }
        .carousel-card { width: 220px; height: 320px; }
        .card-pos-0 { transform: translateX(-180%) scale(0.6); }
        .card-pos-1 { transform: translateX(-90%) scale(0.8); }
        .card-pos-3 { transform: translateX(90%) scale(0.8); }
        .card-pos-4 { transform: translateX(180%) scale(0.6); }
    }

    @media (max-width: 768px) {
        .menu-toggle { display: block; }
        .nav-links {
            display: none;
            flex-direction: column;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background-color: var(--bg-light);
            padding: 20px;
            border-bottom: 1px solid var(--border-color);
        }
        .nav-links.active { display: flex; }
        
        .hero h1 { font-size: 28px; }
        
        .carousel-wrapper { height: 300px; }
        .carousel-card { width: 170px; height: 250px; }
        .card-pos-0 { transform: translateX(-140%) scale(0.6); opacity: 0; }
        .card-pos-1 { transform: translateX(-70%) scale(0.8); opacity: 0.5; }
        .card-pos-2 { transform: translateX(0) scale(1); opacity: 1; }
        .card-pos-3 { transform: translateX(70%) scale(0.8); opacity: 0.5; }
        .card-pos-4 { transform: translateX(140%) scale(0.6); opacity: 0; }
        
        .grid-6 { grid-template-columns: repeat(2, 1fr); }
        
        .ranking-item { flex-wrap: wrap; }
    }