```css
/* =========================================
   西瓜影院 - 全局样式表
   dfgl.net.cn | 2025
   ========================================= */

/* ---------- 基础重置与设计变量 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 灵感来自西瓜红与深夜蓝 */
    --bg: #f8f7ff;
    --bg-secondary: #ffffff;
    --text: #1e1e2f;
    --text-muted: #6b6b80;
    --primary: #2b2d42;
    --primary-light: #3f4157;
    --accent: #ff4d6d;
    --accent-light: #ff758f;
    --accent-dark: #e63956;
    --soft: #f0effa;
    --soft-hover: #e6e4f5;
    --border: rgba(30, 30, 47, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --gradient-accent: linear-gradient(135deg, #ff4d6d 0%, #ff758f 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 239, 250, 0.6) 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* 暗色模式变量 */
[data-theme="dark"] {
    --bg: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --text: #eaeaf0;
    --text-muted: #9a9ab0;
    --primary: #0f0f1a;
    --primary-light: #2a2a3e;
    --accent: #ffb347;
    --accent-light: #ffc96b;
    --accent-dark: #e69d2e;
    --soft: #1e1e30;
    --soft-hover: #2a2a40;
    --border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --gradient-card: linear-gradient(145deg, rgba(30, 30, 48, 0.9) 0%, rgba(15, 15, 26, 0.6) 100%);
    --glass-bg: rgba(30, 30, 48, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 基础样式 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.7;
    transition: background 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::selection {
    background: var(--accent);
    color: white;
}

img, svg, video {
    max-width: 100%;
    display: block;
}

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

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

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

/* ---------- 导航栏 ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar:hover {
    box-shadow: var(--shadow-md);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    flex-shrink: 0;
}

.logo svg {
    width: 38px;
    height: 38px;
    fill: var(--accent);
    transition: transform 0.3s ease;
}

.logo:hover svg {
    transform: scale(1.1) rotate(-5deg);
}

.logo:hover {
    color: var(--accent-light);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    transition: var(--transition);
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

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

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

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

.search-box {
    display: flex;
    align-items: center;
    background: var(--soft);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    transition: var(--transition);
    flex-shrink: 0;
}

.search-box:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.15);
    border-color: var(--accent);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    padding: 6px 8px;
    width: 150px;
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-box input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.search-box svg {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
    opacity: 0.6;
    transition: var(--transition);
}

.search-box:focus-within svg {
    fill: var(--accent);
    opacity: 1;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    border-radius: var(--radius-sm);
}

.menu-toggle:hover {
    color: var(--accent);
    background: var(--soft);
}

.dark-toggle {
    background: var(--soft);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    flex-shrink: 0;
}

.dark-toggle:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.3);
}

/* ---------- Hero Banner ---------- */
.hero {
    background: var(--gradient-hero);
    color: white;
    padding: 80px 0 100px;
    border-radius: 0 0 48px 48px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 77, 109, 0.3) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 179, 71, 0.2) 0%, transparent 70%);
    animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #ffd6dd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.hero-text p {
    font-size: 1.15rem;
    max-width: 600px;
    opacity: 0.9;
    margin-bottom: 28px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-badge {
    display: inline-block;
    background: var(--gradient-accent);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 30px rgba(255, 77, 109, 0.3);
    animation: fadeInUp 0.8s ease 0.4s both;
    transition: var(--transition);
}

.hero-badge:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 77, 109, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-carousel {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.hero-carousel::-webkit-scrollbar {
    height: 6px;
}

.hero-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.hero-carousel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.hero-carousel .card {
    min-width: 200px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    font-size: 1.05rem;
}

.hero-carousel .card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent);
}

/* ---------- 通用区块 ---------- */
section {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 40px;
    border-left: 8px solid var(--accent);
    padding-left: 24px;
    line-height: 1.3;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 24px;
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 4px;
}

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

/* ---------- 卡片设计 ---------- */
.card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 77, 109, 0.3);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
}

.card p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

.badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: white;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(255, 77, 109, 0.2);
}

/* ---------- 文章列表 ---------- */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    display: flex;
    gap: 20px;
    align-items: baseline;
    transition: var(--transition);
    flex-wrap: wrap;
}

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

.article-item:hover {
    background: var(--soft);
    padding-left: 30px;
}

.article-item time {
    color: var(--accent);
    font-weight: 600;
    margin-right: 15px;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.article-item a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    flex: 1;
    min-width: 200px;
}

.article-item a:hover {
    color: var(--accent);
}

.article-summary {
    color: var(--text-muted);
    opacity: 0.8;
    font-size: 0.9rem;
    flex-basis: 100%;
    padding-left: 0;
    margin-top: 4px;
}

@media (min-width: 768px) {
    .article-item {
        flex-wrap: nowrap;
        align-items: center;
    }
    .article-summary {
        flex-basis: auto;
        margin-top: 0;
        max-width: 400px;
        text-align: right;
    }
}

/* ---------- FAQ ---------- */
.faq-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    padding: 0 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
    overflow: hidden;
}

.faq-item:hover {
    border-color: rgba(255, 77, 109, 0.3);
    box-shadow: var(--shadow-sm);
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(255, 77, 109, 0.1);
}

.faq-question {
    padding: 22px 0;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    transition: var(--transition);
    gap: 20px;
}

.faq-question span {
    font-size: 1.4rem;
    transition: var(--transition);
    flex-shrink: 0;
    color: var(--accent);
}

.faq-item.active .faq-question span {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding-bottom: 24px;
    color: var(--text-muted);
    line-height: 1.8;
    animation: fadeIn 0.3s ease;
}

.faq-item.active .faq-answer {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- 页脚 ---------- */
footer {
    background: var(--primary);
    color: #ccc;
    padding: 60px 0 30px;
    margin-top: 80px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-grid strong {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: block;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-accent);
    color: white;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: none;
    font-size: 1.5rem;
    box-shadow: 0 8px 30px rgba(255, 77, 109, 0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(255, 77, 109, 0.4);
}

/* ---------- 数字动画 ---------- */
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}

/* ---------- 滚动显示动画 ---------- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 工具类 ---------- */
.text-center {
    text-align: center;
}

.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* ---------- 响应式设计 ---------- */
@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
    }
    
    .search-box input {
        width: 120px;
    }
}

@media (max-width: 800px) {
    .nav-inner {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 0;
        background: var(--bg-secondary);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        margin-top: 10px;
    }
    
    .nav-links.open {
        display: flex;
        animation: fadeIn 0.3s ease;
    }
    
    .menu-toggle {
        display: block;
        order: 3;
    }
    
    .search-box {
        order: 4;
        width: 100%;
        margin-top: 5px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .dark-toggle {
        order: 2;
        margin-left: auto;
    }
    
    .logo {
        order: 1;
    }
    
    .hero {
        padding: 60px 0 80px;
        border-radius: 0 0 32px 32px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 24px;
    }
    
    .article-item {
        flex-direction: column;
        gap: 8px;
        padding: 18px 20px;
    }
    
    .article-item time {
        margin-right: 0;
    }
    
    .article-summary {
        text-align: left;
        max-width: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .logo svg {
        width: 30px;
        height: 30px;
    }
    
    .hero-text h1 {
        font-size: 1.7rem;
    }
    
    .hero-badge {
        font-size: 0.85rem;
        padding: 10px 18px;
    }
    
    .hero-carousel .card {
        min-width: 150px;
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.4rem;
        padding-left: 16px;
        border-left-width: 5px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .faq-item {
        padding: 0 16px;
    }
    
    .faq-question {
        font-size: 0.95rem;
        padding: 18px 0;
    }
}

/* ---------- 打印样式 ---------- */
@media print {
    .navbar, .hero, .back-to-top, .dark-toggle, .menu-toggle, footer {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ---------- 无障碍优化 ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 焦点可见性 */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
    border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
```