* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #0a1128;
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Header & Nav */
.header {
    background: rgba(10, 17, 40, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 255, 128, 0.2);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}
.brand img {
    height: 32px;
    border-radius: 4px;
}
.nav-toggle {
    background: #00ff80;
    color: #0a1128;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    display: none;
}
.nav-menu {
    display: flex;
    gap: 15px;
}
.nav-menu a {
    color: #a0aec0;
    font-size: 15px;
    transition: color 0.3s;
}
.nav-menu a:hover {
    color: #00ff80;
}
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background: #0a1128;
        padding: 20px;
        border-bottom: 1px solid rgba(0, 255, 128, 0.2);
    }
    .nav-menu.active { display: flex; }
}

/* Hero */
.hero {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(180deg, #0a1128 0%, #111c44 100%);
}
.hero h1 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 10px;
}
.hero h1 span { color: #00ff80; }
.hero p {
    color: #a0aec0;
    font-size: 16px;
    margin-bottom: 20px;
}
.download-btn {
    display: inline-block;
    background: #e53e3e;
    color: #fff;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4);
}
.download-btn:hover {
    background: #c53030;
    transform: translateY(-2px);
}
.update-time {
    display: block;
    margin-top: 15px;
    font-size: 12px;
    color: #718096;
}

/* Fall Animation */
.fall-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.fall-item {
    position: absolute;
    color: #00ff80;
    font-size: 20px;
    font-weight: bold;
    opacity: 0.4;
    animation: fall linear infinite;
}
@keyframes fall {
    0% { transform: translateY(-100px) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(360deg); }
}

/* Carousel */
.carousel-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
}
.carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 350px;
}
.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.carousel-card {
    position: absolute;
    width: 200px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #111c44;
    display: none;
}
.carousel-card.active {
    display: block;
    z-index: 5;
    transform: scale(1) translateX(0);
}
.carousel-card.prev, .carousel-card.next {
    display: block;
    z-index: 4;
    opacity: 0.6;
}
.carousel-card.prev { transform: scale(0.85) translateX(-130px); }
.carousel-card.next { transform: scale(0.85) translateX(130px); }
.carousel-card.prev2, .carousel-card.next2 {
    display: block;
    z-index: 3;
    opacity: 0.3;
}
.carousel-card.prev2 { transform: scale(0.7) translateX(-240px); }
.carousel-card.next2 { transform: scale(0.7) translateX(240px); }

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 128, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0a1128;
    font-size: 24px;
    pointer-events: none;
    opacity: 0.8;
}
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.carousel-controls button {
    background: #00ff80;
    border: none;
    color: #0a1128;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
}

/* Scrolling Banner */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(0, 255, 128, 0.1);
    border-top: 1px solid rgba(0, 255, 128, 0.2);
    border-bottom: 1px solid rgba(0, 255, 128, 0.2);
    padding: 10px 0;
    margin: 20px 0;
}
.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
    color: #00ff80;
    font-size: 14px;
}
@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* General Section */
.section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}
.section h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 30px;
    border-left: 4px solid #00ff80;
    padding-left: 12px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}
.card {
    background: #111c44;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}
.card p {
    padding: 10px;
    font-size: 13px;
    color: #cbd5e0;
    text-align: center;
}
.card .hot-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e53e3e;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Text Block */
.text-block {
    background: #111c44;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 128, 0.1);
}
.text-block p {
    margin-bottom: 15px;
    color: #a0aec0;
    font-size: 15px;
}

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

/* History */
.history-list {
    border-left: 2px solid #00ff80;
    padding-left: 20px;
    margin-left: 10px;
}
.history-item {
    margin-bottom: 25px;
    position: relative;
}
.history-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #00ff80;
    border-radius: 50%;
}
.history-item h3 {
    color: #00ff80;
    font-size: 18px;
    margin-bottom: 5px;
}

/* FAQ */
.faq-item {
    background: #111c44;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}
.faq-item summary {
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    color: #00ff80;
    font-size: 20px;
    line-height: 1;
}
.faq-item[open] summary::after { content: '-'; }
.faq-item p {
    padding: 0 20px 15px;
    color: #a0aec0;
    font-size: 14px;
}

/* Comments */
.comment-section {
    background: #111c44;
    padding: 30px;
    border-radius: 12px;
}
.comment-list {
    margin-bottom: 20px;
}
.comment {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-content h4 {
    color: #00ff80;
    font-size: 14px;
    margin-bottom: 5px;
}
.comment-content p {
    color: #cbd5e0;
    font-size: 14px;
}
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.comment-form textarea {
    width: 100%;
    height: 80px;
    background: #0a1128;
    border: 1px solid rgba(0, 255, 128, 0.3);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    resize: none;
}
.comment-form button {
    align-self: flex-end;
    background: #00ff80;
    color: #0a1128;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: #111c44;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #00ff80;
    max-width: 90%;
    width: 400px;
}
.modal-box h3 { color: #fff; margin-bottom: 15px; }
.modal-box p { color: #a0aec0; margin-bottom: 20px; }
.modal-box .close-btn {
    background: #00ff80;
    color: #0a1128;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

/* Footer */
.footer {
    background: #050814;
    padding: 40px 20px 20px;
    text-align: center;
    border-top: 1px solid #111c44;
    margin-top: 60px;
}
.footer p {
    font-size: 12px;
    color: #4a5568;
    margin-bottom: 10px;
}
.footer a { color: #4a5568; }
.footer a:hover { color: #00ff80; }
.site-about {
    margin-top: 20px;
    font-size: 12px;
    color: #4a5568;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.site-about summary {
    cursor: pointer;
    display: inline-block;
    outline: none;
}
.site-about summary::-webkit-details-marker { display: none; }
.site-about .about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}
.site-about .about-links a {
    color: #4a5568;
    text-decoration: underline;
}

@media (min-width: 1024px) {
    .carousel-container { height: 450px; }
    .carousel-card { width: 260px; height: 380px; }
    .carousel-card.prev { transform: scale(0.85) translateX(-160px); }
    .carousel-card.next { transform: scale(0.85) translateX(160px); }
    .carousel-card.prev2 { transform: scale(0.7) translateX(-300px); }
    .carousel-card.next2 { transform: scale(0.7) translateX(300px); }
}