:root {
    --bg-main: #f6f8fb;
    --text-main: #1e293b;
    --text-light: #64748b;
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #f59e0b;
    --accent-pink: #ec4899;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    padding-bottom: 80px; /* 给底部悬浮窗留空间 */
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Header */
header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}
.brand img { height: 36px; border-radius: 6px; }
.desktop-nav {
    display: none;
    gap: 20px;
}
.desktop-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s;
}
.desktop-nav a:hover {
    color: #ffffff;
    background: var(--primary);
}
.mobile-nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
}
.mobile-nav {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 10px 20px;
    flex-direction: column;
    gap: 10px;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
    font-size: 16px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text-main);
}
.mobile-nav a:hover { background: #f1f5f9; color: var(--primary); }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e0f2fe 0%, #eef2ff 100%);
    padding: 40px 20px 60px;
    overflow: hidden;
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.hero-text h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.3;
}
.hero-text p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 24px;
}
.download-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 30px;
    border: 1px solid var(--primary);
    transition: all 0.3s;
}
.download-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.download-btn.secondary {
    background: #ffffff;
    color: var(--primary);
}
.download-btn.secondary:hover {
    background: #f8fafc;
}

.hero-gallery {
    display: flex;
    gap: 15px;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
}
.hero-gallery::-webkit-scrollbar { display: none; }
.gallery-item {
    flex: 0 0 80%;
    scroll-snap-align: center;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    background: #fff;
}
.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}
@media (min-width: 768px) {
    .hero-inner { flex-direction: row; align-items: center; }
    .hero-text { flex: 1; }
    .hero-text h1 { font-size: 36px; }
    .hero-gallery { flex: 1; overflow: visible; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
    .gallery-item { flex: none; }
    .gallery-item:first-child { grid-column: 1 / -1; }
    .gallery-item img { height: 220px; }
    .gallery-item:first-child img { height: 260px; }
    
    .desktop-nav { display: flex; }
    .mobile-nav-toggle { display: none; }
}

/* Marquee */
.marquee-wrap {
    background: #0f172a;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
}
.marquee-content {
    display: inline-block;
    animation: marquee 15s linear infinite;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
}
.marquee-content span {
    background: linear-gradient(90deg, #f59e0b, #ec4899, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 20px;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Sections Common */
.section-padding { padding: 60px 20px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20%;
    width: 60%;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* 今日吃瓜 (Chat Style) */
.bg-today { background: #fdf2f8; }
.chat-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}
.chat-bubble {
    background: #ffffff;
    padding: 16px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.chat-bubble.right {
    flex-direction: row-reverse;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 4px;
    background: #eef2ff;
}
.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.chat-text-wrap {
    flex: 1;
}
.chat-name {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}
.chat-text {
    font-size: 15px;
    color: var(--text-main);
}

/* 本周热瓜 (Trending List) */
.bg-week { background: #f0fdf4; }
.trending-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.trending-card {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #dcfce7;
    transition: transform 0.2s;
}
.trending-card:hover { transform: translateX(5px); }
.trending-num {
    font-size: 24px;
    font-weight: 800;
    color: #22c55e;
    opacity: 0.5;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}
.trending-content { flex: 1; }
.trending-content h3 { font-size: 16px; margin-bottom: 4px; }
.trending-content p { font-size: 14px; color: var(--text-light); }

/* 校园大赛 (Layout: Left Image, Right Text) */
.bg-school { background: #fffbeb; }
.school-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}
.school-image {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
}
.school-image img { width: 100%; height: auto; object-fit: cover; }
.school-list {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.school-list-item {
    background: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    border-left: 4px solid var(--secondary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
@media (min-width: 768px) {
    .school-layout { flex-direction: row; align-items: stretch; }
    .school-image { flex: 0 0 40%; max-width: none; }
    .school-list { grid-template-columns: 1fr; }
}

/* 反差大赛 (Staggered Grid) */
.bg-contrast { background: #f5f3ff; }
.contrast-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.contrast-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid #ddd6fe;
    position: relative;
    overflow: hidden;
}
.contrast-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 6px; height: 100%;
    background: #8b5cf6;
}
.contrast-card:nth-child(even)::before { background: #d946ef; }
.contrast-card h3 { font-size: 17px; margin-bottom: 8px; color: #4c1d95; }
.contrast-card p { font-size: 14px; color: var(--text-light); }
@media (min-width: 768px) {
    .contrast-grid { grid-template-columns: 1fr 1fr; }
}

/* 隐私安全 (FAQ Accordion Style but static) */
.bg-privacy { background: #f8fafc; }
.privacy-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.privacy-item {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid var(--border);
}
.privacy-q { font-weight: 700; margin-bottom: 6px; color: var(--primary); }
.privacy-a { font-size: 14px; color: var(--text-light); }

/* 意见反馈 (Form Look) */
.bg-feedback { background: #fef2f2; }
.feedback-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}
.feedback-item {
    padding-bottom: 16px;
    border-bottom: 1px dashed #fecaca;
}
.feedback-item:last-child { border-bottom: none; padding-bottom: 0; }
.feedback-item h4 { font-size: 16px; margin-bottom: 6px; color: #b91c1c; }
.feedback-item p { font-size: 14px; color: var(--text-light); }

/* 常见问题 (Q&A) */
.bg-faq { background: #f0f9ff; }
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}
.faq-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e0f2fe;
}
.faq-card h3 { font-size: 16px; color: #0369a1; margin-bottom: 10px; }
.faq-card p { font-size: 14px; color: var(--text-main); }
@media (min-width: 768px) {
    .faq-grid { grid-template-columns: 1fr 1fr; }
}

/* 下载专区 */
.bg-download { background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%); color: #fff; }
.bg-download .section-title { color: #fff; }
.bg-download .section-title::after { background: var(--primary); }
.download-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}
.download-zone-text h2 { font-size: 28px; margin-bottom: 16px; }
.download-zone-text p { font-size: 16px; color: #94a3b8; margin-bottom: 30px; max-width: 600px; }
.download-zone-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}
.download-zone-btns .download-btn { padding: 14px 28px; font-size: 16px; }
.download-steps {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 700px;
    text-align: left;
}
.download-steps h3 { font-size: 18px; margin-bottom: 16px; color: #e2e8f0; text-align: center; }
.step-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.step-num {
    background: var(--primary);
    color: #fff;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
    flex-shrink: 0;
}
.step-text { color: #cbd5e1; font-size: 14px; line-height: 1.5; }
.download-image {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
}
.download-image img { width: 100%; height: auto; }
@media (min-width: 768px) {
    .download-zone { flex-direction: row; text-align: left; align-items: flex-start; justify-content: space-between;}
    .download-zone > div:first-child { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
    .download-zone-btns { justify-content: flex-start; }
    .download-steps { align-self: stretch; }
}

/* Footer */
footer {
    background: #f1f5f9;
    padding: 30px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-light); }
.footer-links a:hover { color: var(--primary); }
.footer-meta { font-size: 12px; color: #94a3b8; }

/* Floating Download Window */
.floating-download {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 50px;
    padding: 8px 16px 8px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    border: 1px solid var(--border);
    width: calc(100% - 40px);
    max-width: 380px;
}
.floating-download img {
    width: 40px; height: 40px;
    border-radius: 10px;
    object-fit: cover;
}
.floating-info { flex: 1; overflow: hidden; }
.floating-info h4 { font-size: 14px; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.floating-info p { font-size: 12px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.floating-btn {
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 百度/微信提示框 */
.copy-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.copy-modal.active { display: flex; }
.copy-modal-content {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    max-width: 320px;
    width: 100%;
}
.copy-modal-content p { font-size: 14px; margin-bottom: 16px; color: var(--text-main); }
.copy-modal-content input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #333;
    text-align: center;
}
.copy-modal-content button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
}