/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 现代白天主题 - 清新简洁 */
    --bg-primary: rgba(255, 255, 255, 0.95);
    --bg-secondary: rgba(248, 250, 252, 0.95);
    --bg-body: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 30%, #cbd5e1 100%);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-color: #3b82f6;
    --accent-secondary: #06b6d4;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-bg-hover: rgba(255, 255, 255, 0.98);
    --shadow-color: rgba(15, 23, 42, 0.08);
    --shadow-hover: rgba(15, 23, 42, 0.15);
    --border-color: rgba(226, 232, 240, 0.8);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-scrolled-bg: rgba(255, 255, 255, 0.98);
    --section-bg: rgba(248, 250, 252, 0.7);
    --background-overlay: linear-gradient(135deg, rgba(248, 250, 252, 0.3) 0%, rgba(226, 232, 240, 0.2) 100%);
    --footer-bg: rgba(255, 255, 255, 0.95);
    --footer-title: #1e293b;
    --footer-text: #64748b;
    --footer-bottom-text: #94a3b8;
    --theme-toggle-bg: rgba(59, 130, 246, 0.1);
    --theme-toggle-hover: rgba(59, 130, 246, 0.2);
    --glass-blur: 25px;
    --glass-border: 1px solid rgba(226, 232, 240, 0.6);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

body.dark-theme {
    /* 保持原有的夜晚主题不变 */
    --bg-primary: rgba(26, 26, 46, 0.85);
    --bg-secondary: rgba(22, 33, 62, 0.9);
    --bg-body: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    --text-primary: #eaeaea;
    --text-secondary: #a0a0a0;
    --accent-color: #e74c3c;
    --accent-secondary: #f39c12;
    --card-bg: rgba(30, 30, 50, 0.85);
    --card-bg-hover: rgba(40, 40, 60, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --shadow-hover: rgba(0, 0, 0, 0.7);
    --border-color: rgba(255, 255, 255, 0.15);
    --nav-bg: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.9) 100%);
    --nav-scrolled-bg: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(22, 33, 62, 0.95) 100%);
    --section-bg: rgba(0, 0, 0, 0.7);
    --background-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(231, 76, 60, 0.3) 100%);
    --footer-bg: linear-gradient(135deg, rgba(10, 10, 20, 0.95) 0%, rgba(26, 26, 46, 0.9) 100%);
    --footer-title: #e74c3c;
    --footer-text: #a0a0a0;
    --footer-bottom-text: #7f8c8d;
    --theme-toggle-bg: rgba(255, 255, 255, 0.15);
    --theme-toggle-hover: rgba(255, 255, 255, 0.25);
    --glass-blur: 25px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --gradient-primary: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --gradient-secondary: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    --gradient-accent: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    color: var(--text-primary);
    background: var(--bg-body);
    background-attachment: fixed;
    background-size: cover;
    line-height: 1.6;
    overflow-x: hidden;
    transition: color 0.3s ease, background 0.5s ease;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 音频控制器 */
.audio-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.audio-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* 导航栏 - 现代化设计 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    z-index: 999;
    padding: 16px 0;
    box-shadow: 0 4px 20px var(--shadow-color), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-bottom: var(--glass-border);
}

/* 导航栏滚动效果 */
.navbar.scrolled {
    padding: 12px 0;
    background: var(--nav-scrolled-bg);
    box-shadow: 0 8px 32px var(--shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

body.dark-theme .logo {
    color: white;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    color: var(--accent-color);
}

.nav-link:hover:before {
    width: 80%;
}

.nav-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.join-btn {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    margin-left: 8px;
}

.join-btn:hover {
    background: var(--gradient-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

body.dark-theme .nav-link {
    color: white;
}

body.dark-theme .nav-link:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

body.dark-theme .nav-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

body.dark-theme .join-btn {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

body.dark-theme .join-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6);
}

/* 背景容器 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: saturate(1.2);
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    transition: transform 0.5s ease;
}

.background-container:hover #background-video {
    transform: translate(-50%, -50%) scale(1.02);
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-overlay);
    transition: background 0.3s ease;
}

body.dark-theme #background-video {
    filter: brightness(0.6) contrast(1.1);
}

body.dark-theme .background-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(26, 26, 46, 0.5) 100%);
}

/* 首页内容 */
.home-content {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.home-content .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-content .welcome-section {
    width: 100%;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.welcome-section h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 0 0 20px rgba(231, 76, 60, 0.3);
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.2;
}

.welcome-section p {
    font-size: 1.6rem;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 1px;
}

.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.community-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮样式 - 现代化设计 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    text-transform: none;
    letter-spacing: 0;
    gap: 8px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

.primary-btn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.primary-btn:hover {
    background: var(--gradient-accent);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.secondary-btn {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

.kook-btn {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: white;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.kook-btn:hover {
    background: linear-gradient(135deg, #4752C4, #3C46A0);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.qq-btn {
    background: linear-gradient(135deg, #12B7F5, #0DA5E0);
    color: white;
    box-shadow: 0 4px 15px rgba(18, 183, 245, 0.3);
}

.qq-btn:hover {
    background: linear-gradient(135deg, #0DA5E0, #0B93CB);
    box-shadow: 0 8px 25px rgba(18, 183, 245, 0.4);
}

/* 夜晚主题按钮样式 */
body.dark-theme .primary-btn {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

body.dark-theme .primary-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6);
}

body.dark-theme .secondary-btn {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-color: #e74c3c;
}

body.dark-theme .secondary-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: #f39c12;
    color: #f39c12;
}

/* 服务器状态 - 现代化设计 */
.server-status {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 20px 32px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    box-shadow: 0 8px 32px var(--shadow-color), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.server-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.server-status:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px var(--shadow-hover);
}

.server-status:hover::before {
    left: 100%;
}

.status-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.status-indicator.online {
    background: #10b981;
    animation: pulse 2s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.status-indicator.offline {
    background: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

@keyframes pulse {
    0% { 
        opacity: 1;
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        box-shadow: 0 0 30px rgba(16, 185, 129, 1.0);
        transform: scale(1.1);
    }
    100% { 
        opacity: 1;
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
        transform: scale(1);
    }
}

.player-count {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-color);
    letter-spacing: 0.5px;
    z-index: 1;
    position: relative;
}

/* 主题切换按钮 - 现代化设计 */
.theme-toggle {
    background: var(--theme-toggle-bg);
    border: none;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent-color);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
    margin-left: 12px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.theme-toggle:hover {
    background: var(--theme-toggle-hover);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle i {
    transition: all 0.3s ease;
    transform-origin: center;
}

/* 夜晚主题时图标旋转 */
body.dark-theme .theme-toggle i {
    transform: rotate(180deg);
}

/* 主题切换时的旋转动画 */
.theme-toggle.switching i {
    transform: rotate(180deg);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body.dark-theme .theme-toggle.switching i {
    transform: rotate(360deg);
}

body.dark-theme .theme-toggle {
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

body.dark-theme .theme-toggle:hover {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}

body.dark-theme .player-count {
    color: #e74c3c;
}

body.dark-theme .server-status::before {
    background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.1), transparent);
}

/* 卡片元素悬停效果增强 */
.feature-card,
.announcement-item,
.donate-item,
.rule-item {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.feature-card:hover,
.announcement-item:hover,
.donate-item:hover,
.rule-item:hover {
    transform: translateY(-12px) scale(1.03) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
}

.feature-card::before,
.announcement-item::before,
.donate-item::before,
.rule-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.feature-card:hover::before,
.announcement-item:hover::before,
.donate-item:hover::before,
.rule-item:hover::before {
    left: 100%;
}

.feature-card *,
.announcement-item *,
.donate-item *,
.rule-item * {
    position: relative;
    z-index: 1;
}

/* 输入框焦点效果 */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
    transition: all 0.3s ease;
}

/* 平滑页面过渡 */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.page-transition.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 鼠标跟随效果 */
.mouse-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    pointer-events: none;
    z-index: 9999;
    transition: all 0.2s ease;
    mix-blend-mode: difference;
}

/* 滚动进度条增强 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c 0%, #f39c12 50%, #2ecc71 100%);
    z-index: 1000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5), 0 0 20px rgba(231, 76, 60, 0.3);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(231, 76, 60, 0.5), 0 0 20px rgba(231, 76, 60, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(231, 76, 60, 0.7), 0 0 30px rgba(231, 76, 60, 0.5);
    }
}

/* 导航栏滚动效果增强 */
.server-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.1), transparent);
    transition: left 0.6s ease;
}

.server-status:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.server-status:hover::before {
    left: 100%;
}

.status-indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.status-indicator.online {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: pulse 2s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.status-indicator.offline {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

@keyframes pulse {
    0% { 
        opacity: 1;
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        box-shadow: 0 0 35px rgba(16, 185, 129, 1.0);
        transform: scale(1.1);
    }
    100% { 
        opacity: 1;
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
        transform: scale(1);
    }
}

.player-count {
    font-weight: 900;
    font-size: 1.3rem;
    color: #e74c3c;
    text-shadow: 0 3px 8px rgba(231, 76, 60, 0.4), 0 0 20px rgba(231, 76, 60, 0.3);
    letter-spacing: 1.5px;
    z-index: 1;
    position: relative;
    animation: countGlow 2s ease-in-out infinite;
}

@keyframes countGlow {
    0%, 100% {
        text-shadow: 0 3px 8px rgba(231, 76, 60, 0.4), 0 0 20px rgba(231, 76, 60, 0.3);
    }
    50% {
        text-shadow: 0 3px 8px rgba(231, 76, 60, 0.6), 0 0 30px rgba(231, 76, 60, 0.5);
    }
}

/* 页面内容 */
.page-content {
    padding: 120px 0 60px;
    min-height: 100vh;
    background: white;
}

/* 滚动部分 */
.scroll-section {
    min-height: 100vh;
    padding: 120px 0 60px;
    display: flex;
    align-items: center;
    background: var(--section-bg);
    position: relative;
    z-index: 1;
    transition: background 0.3s ease;
}

.scroll-section#home {
    background: transparent;
    padding: 0;
}

.scroll-section#rules,
.scroll-section#donate {
    min-height: auto;
    padding: 80px 0 30px;
    display: block;
    align-items: flex-start;
}

.scroll-section .container {
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.page-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 40px;
    color: #2c3e50;
}

/* 特色页面 - 现代化卡片设计 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: var(--card-bg);
    padding: 32px 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px var(--shadow-color), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px var(--shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-secondary);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

/* 夜晚主题特色卡片 */
body.dark-theme .feature-card::before {
    background: var(--gradient-primary);
}

body.dark-theme .feature-card:hover {
    border-color: rgba(231, 76, 60, 0.3);
}

body.dark-theme .feature-icon {
    color: #e74c3c;
}

body.dark-theme .feature-card:hover .feature-icon {
    color: #f39c12;
}

/* 公告页面 */
.announcements-list {
    max-width: 800px;
    margin: 0 auto;
}

.announcement-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px var(--shadow-color), 0 5px 15px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: var(--glass-border);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.announcement-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.announcement-item:hover {
    transform: translateY(-8px) scale(1.01);
    background: var(--card-bg-hover);
    box-shadow: 0 20px 50px var(--shadow-color), 0 10px 25px rgba(0, 0, 0, 0.15), 0 0 40px rgba(231, 76, 60, 0.1);
    border-color: var(--border-color);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.announcement-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.announcement-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.announcement-tag {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.announcement-tag.important {
    background: #e74c3c;
    color: white;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.4), 0 0 20px rgba(231, 76, 60, 0.2);
}

.announcement-tag.maintenance {
    background: #f39c12;
    color: white;
    box-shadow: 0 2px 10px rgba(243, 156, 18, 0.4), 0 0 20px rgba(243, 156, 18, 0.2);
}

.announcement-tag.event {
    background: #2ecc71;
    color: white;
    box-shadow: 0 2px 10px rgba(46, 204, 113, 0.4), 0 0 20px rgba(46, 204, 113, 0.2);
}

.announcement-date {
    color: var(--text-secondary);
    font-size: 14px;
}

.announcement-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 规则页面 - 优化版本 */
.rules-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.rules-header {
    margin-bottom: 48px;
    position: relative;
}

.rules-intro {
    font-size: 2.2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding: 24px 48px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-color);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.rules-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
}

/* 添加闪烁的装饰线 */
.rules-intro::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 2s infinite;
}

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

.rules-intro:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 48px var(--shadow-hover);
}

/* 添加装饰性元素 */
.rules-header::before {
    content: '⚖️ 🤝 🎭';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    background: var(--card-bg);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 2px solid var(--accent-color);
    z-index: 1;
}

.rules-note {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    padding: 24px 32px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(6, 182, 212, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rules-note strong {
    color: var(--accent-color);
    font-weight: 600;
}

.rules-note::before {
    content: '📋';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px var(--shadow-color);
    border: 2px solid var(--accent-color);
}

/* 夜晚主题规则页面 */
body.dark-theme .rules-intro::before {
    background: var(--gradient-primary);
}

body.dark-theme .rules-header::before {
    border-color: #e74c3c;
}

body.dark-theme .rules-note {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(243, 156, 18, 0.05));
    border-color: rgba(231, 76, 60, 0.3);
}

body.dark-theme .rules-note strong {
    color: #e74c3c;
}

body.dark-theme .rules-note::before {
    border-color: #e74c3c;
}

/* 移动端规则页面优化 */
@media (max-width: 768px) {
    .rules-intro {
        font-size: 1.8rem;
        padding: 20px 32px;
        margin-bottom: 20px;
    }
    
    .rules-header::before {
        font-size: 1.2rem;
        padding: 6px 12px;
        top: -16px;
    }
    
    .rules-note {
        font-size: 1rem;
        padding: 20px 24px;
    }
    
    .rules-note::before {
        left: -10px;
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .rules-intro {
        font-size: 1.5rem;
        padding: 16px 24px;
    }
    
    .rules-header::before {
        font-size: 1rem;
        padding: 4px 8px;
        top: -14px;
    }
    
    .rules-note {
        font-size: 0.95rem;
        padding: 16px 20px;
    }
    
    .rules-note::before {
        left: -8px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.rules-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 15px 35px var(--shadow-color), 0 5px 15px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: var(--glass-border);
    text-align: left;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.rules-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.rules-section:hover {
    transform: translateY(-8px) scale(1.01);
    background: var(--card-bg-hover);
    box-shadow: 0 20px 50px var(--shadow-color), 0 10px 25px rgba(0, 0, 0, 0.15), 0 0 40px rgba(231, 76, 60, 0.1);
    border-color: var(--border-color);
}

.rules-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
}

.rules-section ul {
    list-style: none;
    padding: 0;
}

.rules-section li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.rules-section li:last-child {
    border-bottom: none;
}

.rules-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 赞助页面 - 优化版本 */
.donate-intro {
    text-align: center;
    font-size: 1.4rem;
    color: var(--text-primary);
    max-width: 600px;
    margin: 0 auto 48px;
    position: relative;
    display: inline-block;
    padding: 24px 40px;
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: 0 8px 32px var(--shadow-color);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-weight: 600;
    line-height: 1.6;
    overflow: hidden;
}

.donate-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success-color), var(--accent-color), var(--accent-secondary));
    border-radius: 18px 18px 0 0;
}

/* 添加感谢装饰 */
.donate-intro::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: gratitude-shimmer 3s infinite;
}

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

.donate-intro:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 48px var(--shadow-hover);
}

/* 添加感谢装饰图标 */
#donate .section-title::before {
    content: '💝';
    position: absolute;
    left: 50%;
    top: -25px;
    transform: translateX(-50%);
    font-size: 2rem;
    background: var(--card-bg);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 3px solid var(--success-color);
    animation: heart-beat 2s infinite;
}

@keyframes heart-beat {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

#donate .section-title {
    position: relative;
    margin-top: 40px;
}

/* 感谢文字特殊效果 */
.donate-intro {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.1), 
        rgba(59, 130, 246, 0.08), 
        rgba(6, 182, 212, 0.06)
    );
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* 添加感谢徽章 */
.donate-intro-wrapper {
    position: relative;
    text-align: center;
    margin-bottom: 48px;
}

.donate-intro-wrapper::before {
    content: '🙏 💖 🎉';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    background: var(--card-bg);
    padding: 8px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 2px solid var(--success-color);
    z-index: 1;
    animation: gratitude-float 3s ease-in-out infinite;
}

@keyframes gratitude-float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

/* 夜晚主题赞助页面 */
body.dark-theme .donate-intro {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.15), 
        rgba(231, 76, 60, 0.1), 
        rgba(243, 156, 18, 0.08)
    );
    border-color: rgba(16, 185, 129, 0.4);
}

body.dark-theme .donate-intro::before {
    background: linear-gradient(90deg, var(--success-color), #e74c3c, #f39c12);
}

body.dark-theme #donate .section-title::before {
    border-color: var(--success-color);
}

body.dark-theme .donate-intro-wrapper::before {
    border-color: var(--success-color);
}

/* 移动端赞助页面优化 */
@media (max-width: 768px) {
    .donate-intro {
        font-size: 1.2rem;
        padding: 20px 28px;
        margin-bottom: 36px;
    }
    
    #donate .section-title::before {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
        top: -20px;
    }
    
    #donate .section-title {
        margin-top: 32px;
    }
    
    .donate-intro-wrapper::before {
        font-size: 1.2rem;
        padding: 6px 16px;
        top: -16px;
    }
}

@media (max-width: 480px) {
    .donate-intro {
        font-size: 1.1rem;
        padding: 16px 24px;
        margin-bottom: 28px;
    }
    
    #donate .section-title::before {
        font-size: 1.2rem;
        width: 36px;
        height: 36px;
        top: -18px;
    }
    
    #donate .section-title {
        margin-top: 28px;
    }
    
    .donate-intro-wrapper::before {
        font-size: 1rem;
        padding: 4px 12px;
        top: -14px;
    }
}

.donate-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    background: #ecf0f1;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: #bdc3c7;
}

.category-btn.active {
    background: #e74c3c;
    color: white;
}

/* 赞助人员卡片优化 */
.donate-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
    justify-items: center;
    margin-top: 40px;
}

.donate-item {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 16px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 24px var(--shadow-color), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    border: var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    overflow: hidden;
}

.donate-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--success-color), var(--accent-color));
    border-radius: 16px 16px 0 0;
}

.donate-item:hover {
    transform: translateY(-8px) scale(1.03);
    background: var(--card-bg-hover);
    box-shadow: 0 16px 40px var(--shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.donate-item-image {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.donate-item-image::after {
    content: '💖';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 16px;
    background: var(--card-bg);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--shadow-color);
    border: 2px solid var(--success-color);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.donate-item:hover .donate-item-image {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: scale(1.05);
}

.donate-item:hover .donate-item-image::after {
    opacity: 1;
    transform: scale(1);
}

.donate-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.donate-item:hover .donate-item-image img {
    transform: scale(1.1) rotate(5deg);
}

.donate-item-info h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.donate-item-info p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.donate-item-info p::before {
    content: '🎁';
    font-size: 12px;
}

/* 夜晚主题赞助卡片 */
body.dark-theme .donate-item::before {
    background: linear-gradient(90deg, var(--success-color), #e74c3c);
}

body.dark-theme .donate-item-image {
    border-color: rgba(16, 185, 129, 0.4);
}

body.dark-theme .donate-item:hover .donate-item-image {
    border-color: rgba(16, 185, 129, 0.7);
}

body.dark-theme .donate-item-image::after {
    border-color: var(--success-color);
}

/* 移动端赞助卡片优化 */
@media (max-width: 768px) {
    .donate-items {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 16px;
        margin-top: 32px;
    }
    
    .donate-item {
        padding: 14px;
    }
    
    .donate-item-image {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    
    .donate-item-image::after {
        width: 20px;
        height: 20px;
        font-size: 14px;
        top: -4px;
        right: -4px;
    }
}

@media (max-width: 480px) {
    .donate-items {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 14px;
        margin-top: 28px;
    }
    
    .donate-item {
        padding: 12px;
    }
    
    .donate-item-image {
        width: 55px;
        height: 55px;
        margin-bottom: 8px;
    }
    
    .donate-item-info h3 {
        font-size: 0.9rem;
    }
    
    .donate-item-info p {
        font-size: 0.75rem;
    }
}

.donate-item-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 20px;
}

/* 赞助模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 60px var(--shadow-color), 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

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

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

@keyframes fadeInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

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

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* 滚动动画效果 */
.section-title {
    animation: fadeInUp 0.8s ease-out;
}

.feature-card,
.announcement-item,
.rule-item,
.donate-item,
.page-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.feature-card.animate-in,
.announcement-item.animate-in,
.rule-item.animate-in,
.donate-item.animate-in,
.page-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 交错动画效果 */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.announcement-item:nth-child(1) { animation-delay: 0.1s; }
.announcement-item:nth-child(2) { animation-delay: 0.2s; }
.announcement-item:nth-child(3) { animation-delay: 0.3s; }

.rule-item:nth-child(1) { animation-delay: 0.1s; }
.rule-item:nth-child(2) { animation-delay: 0.2s; }
.rule-item:nth-child(3) { animation-delay: 0.3s; }
.rule-item:nth-child(4) { animation-delay: 0.4s; }

.donate-item:nth-child(1) { animation-delay: 0.1s; }
.donate-item:nth-child(2) { animation-delay: 0.2s; }
.donate-item:nth-child(3) { animation-delay: 0.3s; }
.donate-item:nth-child(4) { animation-delay: 0.4s; }
.donate-item:nth-child(5) { animation-delay: 0.5s; }
.donate-item:nth-child(6) { animation-delay: 0.6s; }

/* 欢迎区域动画优化 */
.home-content .container .welcome-section {
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.23, 1, 0.32, 1) 0.1s both;
    text-align: center !important;
    width: 100%;
    margin: 0 auto;
    display: block;
}

.welcome-section h1 {
    animation: fadeInUp 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 0 0 25px rgba(231, 76, 60, 0.4), 0 0 50px rgba(231, 76, 60, 0.1);
}

.welcome-section p {
    animation: fadeInUp 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s both;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 255, 255, 0.2);
}

.cta-buttons {
    animation: fadeInUp 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.7s both;
    transform-origin: center bottom;
}

.community-buttons {
    animation: fadeInUp 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.9s both;
    transform-origin: center bottom;
}

.server-status {
    animation: scaleIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.1s both;
    transform-origin: center;
}

/* 增强的交错动画效果 */
.feature-card:nth-child(1),
.announcement-item:nth-child(1),
.rule-item:nth-child(1),
.donate-item:nth-child(1) { animation-delay: 0.1s; }

.feature-card:nth-child(2),
.announcement-item:nth-child(2),
.rule-item:nth-child(2),
.donate-item:nth-child(2) { animation-delay: 0.2s; }

.feature-card:nth-child(3),
.announcement-item:nth-child(3),
.rule-item:nth-child(3),
.donate-item:nth-child(3) { animation-delay: 0.3s; }

.feature-card:nth-child(4),
.announcement-item:nth-child(4),
.rule-item:nth-child(4),
.donate-item:nth-child(4) { animation-delay: 0.4s; }

.donate-item:nth-child(5) { animation-delay: 0.5s; }
.donate-item:nth-child(6) { animation-delay: 0.6s; }

/* 增强的滚动动画 - 排除规则和赞助介绍元素 */
.feature-card,
.announcement-item,
.rule-item,
.donate-item,
.page-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-card.animate-in,
.announcement-item.animate-in,
.rule-item.animate-in,
.donate-item.animate-in,
.page-title.animate-in {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 增强的悬停效果 */
.feature-card:hover .feature-icon,
.announcement-item:hover h3,
.donate-item:hover h3 {
    transform: scale(1.2) rotateY(10deg) rotateX(5deg);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 10px 20px rgba(231, 76, 60, 0.4));
    color: #e74c3c;
}

.feature-card:hover p,
.announcement-item:hover p,
.donate-item:hover p {
    transform: translateY(-5px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 增强的阴影效果 */
.scroll-section {
    position: relative;
    z-index: 1;
}

/* 平滑的背景过渡 */
.background-container {
    transition: filter 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 增强的模态框动画 */
.modal-content {
    animation: scaleIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 增强的按钮悬停效果 */
.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* 增强的导航链接效果 */
.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px) scale(1.02);
}

/* 增强的服务器状态指示器 */
.status-indicator.online::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.3);
    transform: translate(-50%, -50%) scale(0);
    animation: pulseRing 2s infinite ease-out;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.cta-buttons {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.community-buttons {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.server-status {
    animation: fadeInUp 0.8s ease-out 1s both;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #e74c3c;
}

.modal-content h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

.donate-form .form-group {
    margin-bottom: 25px;
}

.donate-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

.donate-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.donate-form input:focus {
    outline: none;
    border-color: #e74c3c;
}

.donate-form small {
    color: #7f8c8d;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.info-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    border-left: 4px solid #e74c3c;
}

.info-box ol {
    padding-left: 20px;
    margin: 10px 0;
}

.info-box li {
    margin-bottom: 5px;
}

.warning {
    color: #e74c3c;
    font-weight: bold;
    margin-top: 10px;
}

.payment-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px;
    border: 2px solid #ecf0f1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.payment-btn:hover {
    border-color: #e74c3c;
    background: #fef5f5;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.payment-btn.active {
    border-color: #e74c3c;
    background: #fef5f5;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.15);
    transform: translateY(-2px);
}

.alipay-btn {
    color: #1677FF;
}

.wechat-btn {
    color: #07C160;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 移动端导航菜单 */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
        padding: 8px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-toggle span {
        width: 25px;
        height: 3px;
        background: var(--text-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    body.dark-theme .nav-toggle span {
        background: white;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        border-bottom: var(--glass-border);
        box-shadow: 0 8px 32px var(--shadow-color);
        z-index: 998;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-link {
        padding: 16px 20px;
        border-radius: 12px;
        text-align: center;
        background: rgba(59, 130, 246, 0.05);
        border: 1px solid rgba(59, 130, 246, 0.1);
    }
    
    .join-btn {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .theme-toggle {
        margin-left: 0;
        align-self: center;
    }
    
    /* 移动端首页内容 */
    .welcome-section h1 {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }
    
    .welcome-section p {
        font-size: 1.3rem;
        margin-bottom: 40px;
    }
    
    .cta-buttons,
    .community-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .btn {
        width: 280px;
        padding: 16px 24px;
    }
    
    /* 移动端卡片布局 */
    .features-grid,
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card,
    .announcement-item,
    .rules-section {
        padding: 24px 20px;
        margin-bottom: 20px;
    }
    
    /* 移动端公告头部 */
    .announcement-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .announcement-meta {
        width: 100%;
        justify-content: space-between;
    }
    
    /* 移动端赞助人员网格 */
    .donate-items {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 12px;
    }
    
    /* 移动端服务器状态 */
    .server-status {
        padding: 16px 24px;
        margin-top: 24px;
        gap: 12px;
        border-radius: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .player-count {
        font-size: 1.1rem;
    }
    
    /* 移动端内容间距 */
    .scroll-section {
        padding: 80px 0 40px;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 0;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .welcome-section h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .welcome-section p {
        font-size: 1.1rem;
    }
    
    .btn {
        width: 260px;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card,
    .announcement-item,
    .rules-section {
        padding: 20px 16px;
    }
    
    .donate-items {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .server-status {
        padding: 14px 20px;
        gap: 10px;
    }
    
    .container {
        padding: 0 12px;
    }
}

footer {
    background: var(--footer-bg);
    color: white;
    padding: 60px 0 30px;
    transition: background 0.3s ease;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-top: var(--glass-border);
}

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

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--footer-title);
    font-weight: 700;
}

.footer-section p {
    color: var(--footer-text);
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

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

@media (max-width: 768px) {
    footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }
}

/* 页面加载动画 */
body {
    opacity: 0;
    animation: pageLoad 0.8s ease-out forwards;
}

body.page-loaded {
    opacity: 1;
}

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

/* 涟漪动画 */
@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 增强的滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

body.dark-theme .scroll-progress {
    background: var(--gradient-primary);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

/* 现代化的滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

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

body.dark-theme ::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.5);
}

body.dark-theme ::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
}

/* 选择文本的样式 */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}

body.dark-theme ::selection {
    background: rgba(231, 76, 60, 0.3);
    color: white;
}

/* 焦点可见性增强 */
.btn:focus-visible,
.nav-link:focus-visible,
.theme-toggle:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* 加载状态动画 */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 错误状态样式 */
.error {
    color: var(--error-color);
    border-color: var(--error-color);
}

.success {
    color: var(--success-color);
    border-color: var(--success-color);
}

.warning {
    color: var(--warning-color);
    border-color: var(--warning-color);
}

/* 性能优化 */
.feature-card,
.announcement-item,
.donate-item,
.btn {
    will-change: transform;
}

/* 减少动画对于偏好减少动画的用户 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --shadow-color: rgba(0, 0, 0, 0.3);
        --border-color: rgba(0, 0, 0, 0.3);
    }
    
    body.dark-theme {
        --shadow-color: rgba(255, 255, 255, 0.3);
        --border-color: rgba(255, 255, 255, 0.3);
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .theme-toggle,
    .audio-controls,
    .scroll-progress,
    .background-container {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .scroll-section {
        background: white !important;
        page-break-inside: avoid;
    }
}
/* 键盘导航支持 */
body.keyboard-navigation *:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* 触摸设备优化 */
body.touch-device .btn,
body.touch-device .nav-link {
    min-height: 44px; /* 确保触摸目标足够大 */
}

body.touch-device .theme-toggle {
    min-width: 44px;
    min-height: 44px;
}

/* 离线状态样式 */
body.offline::before {
    content: '网络连接已断开';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--warning-color);
    color: white;
    text-align: center;
    padding: 8px;
    z-index: 10001;
    font-size: 14px;
    font-weight: 500;
}

body.offline .navbar {
    top: 32px; /* 为离线提示留出空间 */
}

/* 慢网络连接优化 */
body.slow-connection .feature-card,
body.slow-connection .announcement-item,
body.slow-connection .donate-item {
    transition-duration: 0.1s; /* 减少动画时间 */
}

body.slow-connection .background-container {
    display: none; /* 隐藏背景视频/图片以节省带宽 */
}

/* 减少动画偏好 */
body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

/* 懒加载图片样式 */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* 加载占位符 */
.image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

body.dark-theme .image-placeholder {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
}

/* 通知样式增强 */
.notification {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-success {
    background: rgba(16, 185, 129, 0.9);
}

.notification-error {
    background: rgba(239, 68, 68, 0.9);
}

.notification-warning {
    background: rgba(245, 158, 11, 0.9);
}

.notification-info {
    background: rgba(59, 130, 246, 0.9);
}

/* 无障碍访问增强 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 跳转到主内容链接 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* 高对比度模式下的增强 */
@media (prefers-contrast: high) {
    .btn,
    .nav-link,
    .feature-card,
    .announcement-item {
        border: 2px solid currentColor;
    }
}

/* 暗色模式媒体查询支持 */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

@media (prefers-color-scheme: light) {
    :root {
        color-scheme: light;
    }
}
/* 规则页面动画 - 简化无冲突版本 */
.rules-intro {
    /* 确保元素默认可见，不受滚动动画影响 */
    opacity: 1;
    /* 只使用CSS过渡，不使用keyframe动画 */
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1),
                background 0.3s ease;
}

.rules-intro:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 48px var(--shadow-hover);
}

/* 规则头部装饰动画 - 简化 */
.rules-header::before {
    animation: gentle-float 3s ease-in-out infinite;
}

@keyframes gentle-float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-3px);
    }
}
/* 赞助页面动画 - 简化无冲突版本 */
.donate-intro {
    /* 确保元素默认可见，不受滚动动画影响 */
    opacity: 1;
    /* 只使用CSS过渡，不使用keyframe动画 */
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1),
                background 0.3s ease;
}

.donate-intro:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 48px var(--shadow-hover);
}

/* 感谢标题装饰动画 - 简化 */
#donate .section-title::before {
    animation: gentle-pulse 2s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1); 
    }
    50% { 
        transform: translateX(-50%) scale(1.05); 
    }
}

/* 感谢徽章动画 - 简化 */
.donate-intro-wrapper::before {
    animation: gentle-float 3s ease-in-out infinite;
}

/* 赞助人员头像悬停特效 - 简化 */
.donate-item:hover .donate-item-image img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* 调试：确保没有其他规则覆盖hover效果 */
.rules-intro:hover,
.donate-intro:hover {
    /* 强制应用hover效果，覆盖任何可能的冲突 */
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: 0 16px 48px var(--shadow-hover) !important;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1) !important;
}