:root {
    --bg-dark: #190611;
    --bg-deep: #1E0915;
    --panel-1: #2E0F20;
    --panel-2: #40162C;
    --primary: #F45C96;
    --secondary: #B93A70;
    --gold: #FFC879;
    --border-light: rgba(255, 190, 215, .10);
    --border-strong: rgba(255, 190, 215, .20);
    --text-main: #F8E6ED;
    --text-muted: #C99CB0;
    --gradient: linear-gradient(135deg, var(--primary), var(--gold));
    --font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(25, 6, 17, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-area img {
    height: 32px;
    border-radius: 6px;
}

.logo-area span {
    font-size: 20px;
    font-weight: bold;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--bg-dark);
    letter-spacing: 1px;
}

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

.nav-links a {
    font-size: 15px;
    color: var(--text-main);
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
    border-radius: 1px;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 60px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--bg-dark);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
}

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

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

.hero-images img {
    width: calc(33.333% - 11px);
    min-width: 240px;
    max-width: 360px;
    border-radius: 16px;
    border: 1px solid var(--border-strong);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    object-fit: cover;
    aspect-ratio: 4/3;
}

.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-download {
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: bold;
    color: var(--bg-dark);
    background: var(--gradient);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 92, 150, 0.4);
}

.marquee-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--panel-1);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
    margin-bottom: 40px;
}

.marquee-text {
    white-space: nowrap;
    font-size: 14px;
    font-weight: bold;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: marquee 10s linear infinite;
}

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

/* Sections Global */
.section-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.section-title {
    font-size: 26px;
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 24px;
    background: var(--gradient);
    border-radius: 3px;
}

/* Today Gossip (今日吃瓜) */
.gossip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gossip-card {
    background: var(--panel-2);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-light);
    transition: border-color 0.3s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gossip-card:hover {
    border-color: var(--primary);
}

.gossip-card h3 {
    font-size: 16px;
    color: var(--primary);
}

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

/* Weekly Hot (本周热瓜) */
.hot-list {
    background: var(--panel-1);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-light);
}

.hot-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.hot-item:last-child {
    border-bottom: none;
}

.hot-rank {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold);
    opacity: 0.8;
    min-width: 40px;
}

.hot-content h3 {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.hot-content p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Campus Contest (校园大赛) */
.campus-split {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.campus-image {
    flex: 0 0 40%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
}

.campus-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campus-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.campus-content .item {
    background: var(--panel-2);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.campus-content .item h4 {
    color: var(--gold);
    font-size: 15px;
    margin-bottom: 4px;
}

.campus-content .item p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Contrast Contest (反差大赛) */
.contrast-wall {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contrast-item {
    background: var(--panel-1);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-light);
}

.contrast-item h3 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 8px;
}

.contrast-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Privacy & Feedback (隐私安全, 意见反馈) */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.faq-item {
    background: var(--panel-2);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-light);
}

.faq-item h3 {
    font-size: 16px;
    color: var(--gold);
    margin-bottom: 10px;
}

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

/* Comments (用户评论) */
.comments-section {
    background: var(--panel-1);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-light);
}

.comment-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--primary);
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

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

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

/* Download Section */
.download-section {
    background: var(--panel-2);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--border-strong);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(244,92,150,0.1) 0%, transparent 60%);
    pointer-events: none;
}

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

.step-item {
    background: var(--bg-deep);
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    min-width: 200px;
}

.step-item h4 {
    color: var(--gold);
    font-size: 16px;
    margin-bottom: 8px;
}

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

/* Footer */
.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border-light);
    padding: 40px 20px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

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

.footer-links a:hover {
    color: var(--primary);
}

.copyright-text {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Floating Download Window */
.floating-download {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--panel-2);
    border: 1px solid var(--primary);
    border-radius: 30px;
    padding: 8px 20px 8px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px rgba(244, 92, 150, 0.3);
    z-index: 1000;
    text-decoration: none;
    color: var(--text-main);
}

.floating-download img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gold);
}

.floating-download-text {
    display: flex;
    flex-direction: column;
}

.floating-download-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--primary);
}

.floating-download-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* Dialog for Baidu/Apple */
.dialog-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.dialog-box {
    background: var(--panel-2);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 360px;
    text-align: center;
    border: 1px solid var(--border-strong);
}

.dialog-box p {
    color: var(--text-main);
    margin-bottom: 16px;
    font-size: 15px;
}

.dialog-box input {
    width: 100%;
    padding: 10px;
    background: var(--bg-dark);
    border: 1px solid var(--primary);
    color: var(--gold);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    text-align: center;
}

.dialog-box button {
    padding: 10px 24px;
    border-radius: 20px;
    background: var(--gradient);
    color: var(--bg-dark);
    border: none;
    font-weight: bold;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 32px; }
    .hero-images { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 10px; }
    .hero-images img { flex: 0 0 280px; }
    .campus-split { flex-direction: column; }
    .campus-image { flex: 0 0 250px; width: 100%; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0; right: 0;
        background: var(--bg-deep);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-light);
        gap: 16px;
        text-align: center;
    }
    .nav-links.active { display: flex; }
    .mobile-menu-toggle { display: block; }
    
    .hero h1 { font-size: 26px; }
    .hero-images { flex-wrap: wrap; }
    .hero-images img { width: 100%; flex: 0 0 100%; }
    .download-buttons { flex-direction: column; align-items: stretch; }
    .btn-download { justify-content: center; width: 100%; }
    
    .contrast-wall { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .gossip-grid { grid-template-columns: 1fr; }
    
    .floating-download {
        width: 90%;
        bottom: 15px;
        padding: 8px;
    }
    .floating-download-text { flex: 1; }
    .floating-download-title { font-size: 13px; }
    .floating-download-desc { font-size: 10px; }
}