:root {
    --bg-dark: #121212;
    --bg-panel: #1e1e1e;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --accent-pink: #ff477e;
    --accent-purple: #8a2be2;
    --accent-cyan: #00e5ff;
    --gradient-main: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    --gradient-text: linear-gradient(90deg, #ff477e, #ff8a00, #00e5ff, #8a2be2);
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --transition: all 0.3s ease;
}

* {
    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-dark);
    color: var(--text-main);
    line-height: 1.6;
    padding-bottom: 90px; /* Space for floating download */
    overflow-x: hidden;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header & Nav */
header {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

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

.brand img {
    height: 32px;
    width: auto;
    border-radius: var(--radius-sm);
}

.brand h1 {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.mobile-menu-btn {
    display: none;
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
}

.nav-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-menu a {
    white-space: nowrap;
    padding: 8px 16px;
    background: var(--bg-panel);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #fff;
    background: var(--gradient-main);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(255, 71, 126, 0.3);
}

/* Hero Section */
.hero {
    padding: 40px 0;
    background: linear-gradient(180deg, rgba(138, 43, 226, 0.1) 0%, rgba(18, 18, 18, 1) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
}

.hero-text h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 24px;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    background: var(--bg-panel);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: var(--gradient-main);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 71, 126, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 71, 126, 0.6);
}

.hero-images {
    display: flex;
    gap: 16px;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.hero-images img {
    width: 30%;
    max-width: 200px;
    border-radius: var(--radius-md);
    object-fit: cover;
    aspect-ratio: 3/4;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.hero-images img:hover {
    transform: scale(1.05);
    border-color: var(--accent-pink);
}

/* Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 20px;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

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

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

/* Sections Common */
section {
    padding: 60px 0;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gradient-main);
    border-radius: 2px;
}

/* Today Gossip (今日吃瓜) - Chat Style */
.section-today {
    background-color: #1a1a24;
}

.chat-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.chat-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.chat-item:nth-child(even) {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--accent-purple);
}

.chat-bubble {
    background: var(--bg-panel);
    padding: 12px 16px;
    border-radius: 12px;
    border-top-left-radius: 2px;
    max-width: 80%;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.chat-item:nth-child(even) .chat-bubble {
    border-top-left-radius: 12px;
    border-top-right-radius: 2px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(255, 71, 126, 0.2));
}

.chat-bubble strong {
    display: block;
    color: var(--accent-cyan);
    font-size: 0.8rem;
    margin-bottom: 4px;
}

/* Weekly Hot (本周热瓜) - Card Grid */
.section-weekly {
    background-color: #1e1e1e;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.hot-card {
    background: #252525;
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 4px solid var(--accent-pink);
    transition: var(--transition);
}

.hot-card:hover {
    background: #2a2a2a;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.hot-card h3 {
    font-size: 1.1rem;
    color: #fff;
}

.hot-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-grow: 1;
}

.hot-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--accent-pink);
    margin-top: auto;
}

/* Campus (校园大赛) - Split Layout */
.section-campus {
    background-color: #121826;
}

.split-layout {
    display: flex;
    gap: 32px;
    align-items: stretch;
}

.split-image {
    flex: 1;
    max-width: 40%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.split-content {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.item-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-cyan);
    opacity: 0.5;
    min-width: 30px;
    text-align: center;
}

.item-text {
    font-size: 0.95rem;
    color: #e0e0e0;
}

/* Society (社会时间) - Timeline Style */
.section-society {
    background-color: #1c1c1c;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    display: flex;
    gap: 20px;
    position: relative;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--accent-purple);
    border-radius: 50%;
    position: absolute;
    left: 15px;
    top: 6px;
    box-shadow: 0 0 10px var(--accent-purple);
    z-index: 1;
}

.timeline-content {
    margin-left: 48px;
    background: var(--bg-panel);
    padding: 16px;
    border-radius: var(--radius-md);
    border-left: 2px solid transparent;
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    border-left-color: var(--accent-purple);
    background: #252525;
}

.timeline-content h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Privacy & FAQ - Accordion/Q&A Style */
.section-faq {
    background-color: #121212;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.qna-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.qna-item {
    background: var(--bg-panel);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qna-q {
    font-weight: 700;
    color: var(--accent-pink);
    font-size: 1rem;
}

.qna-a {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Download Section */
.section-download {
    background: linear-gradient(135deg, #1a0022, #001122);
    text-align: center;
    border-radius: var(--radius-lg);
    margin: 40px 16px;
    padding: 40px 16px;
}

.section-download h2 {
    margin-bottom: 20px;
}

.download-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.step {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    flex: 1;
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step span {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-cyan);
    margin-bottom: 8px;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    background-color: #0a0a0a;
    padding: 32px 16px;
    text-align: center;
    border-top: 1px solid #1a1a1a;
    font-size: 0.85rem;
    color: #666;
}

footer p {
    margin-bottom: 8px;
}

footer a {
    color: #888;
    transition: color 0.2s;
}

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

/* Floating Download */
.floating-download {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    transition: opacity 0.3s;
}

.floating-download img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.floating-download .float-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.floating-download .float-text strong {
    display: block;
    color: #fff;
    font-size: 0.9rem;
}

.floating-download .btn-primary {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Modal / Toast */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: var(--bg-panel);
    padding: 24px;
    border-radius: var(--radius-lg);
    max-width: 90%;
    width: 400px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-box p {
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.copy-input {
    width: 100%;
    padding: 12px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.modal-box button {
    background: var(--accent-pink);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 12px;
        gap: 4px;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .nav-menu a {
        border-radius: var(--radius-sm);
        text-align: left;
        padding: 12px 16px;
    }
    
    .hero-text h2 {
        font-size: 1.6rem;
    }
    
    .hero-images {
        flex-wrap: wrap;
    }
    
    .hero-images img {
        width: calc(50% - 8px);
        max-width: none;
    }
    
    .hero-images img:first-child {
        width: 100%;
        aspect-ratio: 16/9;
        max-width: 100%;
    }
    
    .split-layout {
        flex-direction: column;
    }
    
    .split-image {
        max-width: 100%;
        height: 300px;
    }
    
    .floating-download {
        width: calc(100% - 32px);
        justify-content: space-between;
    }
    
    .floating-download .float-text {
        display: none;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
    
    .hero-text {
        flex: 1;
    }
    
    .hero-text p {
        margin: 0 0 24px;
    }
    
    .download-buttons {
        justify-content: flex-start;
    }
    
    .hero-images {
        flex: 1;
        justify-content: flex-end;
    }
    
    .hero-images img {
        width: 25%;
    }
}