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

:root {
    --primary-color: #6b7280;
    --secondary-color: #9ca3af;
    --accent-color: #4b5563;
    --bg-dark: #f3f4f6;
    --bg-card: rgba(255, 255, 255, 0.9);
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-3d: 0 8px 16px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
    --shadow-hover: 0 12px 24px rgba(0,0,0,0.12), 0 6px 12px rgba(0,0,0,0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
}

body.dark-theme {
    --bg-dark: #111827;
    --bg-card: rgba(31, 41, 55, 0.9);
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-3d: 0 8px 16px rgba(0,0,0,0.3), 0 4px 8px rgba(0,0,0,0.2);
    --shadow-hover: 0 12px 24px rgba(0,0,0,0.4), 0 6px 12px rgba(0,0,0,0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==================== 加载动画 ==================== */
.loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    text-align: center;
    position: relative;
}

.spinner-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(1) { width: 60px; height: 60px; animation-duration: 1.5s; }
.spinner-ring:nth-child(2) { width: 80px; height: 80px; animation-duration: 2s; border-top-color: var(--secondary-color); }
.spinner-ring:nth-child(3) { width: 100px; height: 100px; animation-duration: 2.5s; border-top-color: var(--accent-color); }

.loading-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 60px;
}

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ==================== 滚动进度条 ==================== */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 10001;
    transition: width 0.1s linear;
    width: 0%;
}

/* ==================== 粒子背景 ==================== */
#particleCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ==================== 公告跑马灯 ==================== */
.announcement-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 36px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: #fff;
    overflow: hidden;
    z-index: 1001;
    display: flex;
    align-items: center;
}

.announcement-track {
    display: flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    padding-left: 100%;
}

.announcement-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 3rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.announcement-item .ann-icon { font-size: 0.75rem; }
.announcement-item[data-type="maintenance"] { color: #fca5a5; }
.announcement-item[data-type="event"] { color: #86efac; }

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

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 36px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
}

body.dark-theme .navbar {
    background: rgba(17, 24, 39, 0.9);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.nav-logo i { font-size: 1.5rem; }

.nav-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--warning);
    animation: pulse-dot 2s infinite;
}

.status-dot.online { background: var(--success); }
.status-dot.offline { background: var(--danger); }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-online { font-weight: 600; color: var(--success); }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.15rem;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(107, 114, 128, 0.1);
}

.nav-link.active {
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.theme-toggle {
    width: 36px; height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(30deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 22px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==================== 容器 ==================== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* ==================== 页面区域 ==================== */
.section {
    display: none;
    padding: 120px 0 60px;
    min-height: 100vh;
    animation: fadeIn 0.5s ease;
}

.section.active { display: block; }

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

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* ==================== 主页英雄区 ==================== */
.hero { text-align: center; padding: 3rem 0; }

.hero-title { font-size: 3.5rem; margin-bottom: 0.75rem; animation: slideDown 0.8s ease; }

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: slideUp 0.8s ease 0.2s both;
}

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

/* 社交链接 */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeIn 1s ease 0.4s both;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.8rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-3d);
}

.social-btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.kook-btn { background: linear-gradient(135deg, #5865f2, #7289da); color: #fff; }
.qq-btn { background: linear-gradient(135deg, #12b7f5, #00a1d6); color: #fff; }
.copy-icon { opacity: 0.7; transition: var(--transition); }
.qq-btn:hover .copy-icon { opacity: 1; }

/* 服务器时间 */
.server-time { margin: 3rem 0; }

.time-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-3d);
    transition: var(--transition);
}

.time-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.time-card i { font-size: 3rem; color: var(--primary-color); }
.time-info h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.time-display {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.start-date { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.5rem; }

/* 在线统计 */
.online-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-3d);
    transition: var(--transition);
}

.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.stat-card i { font-size: 2rem; color: var(--primary-color); }
.stat-info h3 { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.25rem; }
.stat-number { font-size: 1.8rem; font-weight: 700; color: var(--text-primary); }

/* 画廊 */
.gallery-section { margin-top: 3rem; }

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-title i { color: var(--primary-color); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: var(--shadow-3d);
    transition: var(--transition);
    cursor: pointer;
    background: #e5e7eb;
}

body.dark-theme .gallery-item { background: #374151; }

.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-hover); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.1); }

/* ==================== 服务器介绍 ==================== */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-3d);
}

.about-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

.about-icon {
    width: 80px; height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
}

.about-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.about-card p { color: var(--text-secondary); line-height: 1.8; }

/* ==================== 职业介绍 ==================== */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.character-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-3d);
}

.character-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.character-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.character-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.character-card h3 { font-size: 1.3rem; }
.character-card p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }

.character-req {
    font-size: 0.85rem;
    color: var(--info);
    background: rgba(59, 130, 246, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

/* ==================== 服务器规则 ==================== */
.rules-content { max-width: 800px; margin: 0 auto; }

.rules-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-3d);
    transition: var(--transition);
}

.rules-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.rules-icon {
    width: 100px; height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
}

.rules-card h3 { font-size: 2rem; margin-bottom: 1rem; }
.rules-card p { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.1rem; }

.rules-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-3d);
}

.rules-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.rules-tips {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-3d);
}

.rules-tips h4 { font-size: 1.5rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.rules-tips h4 i { color: #f59e0b; }
.rules-tips ul { list-style: none; }

.rules-tips li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.rules-tips li i { color: #10b981; }

/* ==================== 更新日志时间线 ==================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease;
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-3d);
    transition: var(--transition);
}

.timeline-card:hover { transform: translateX(4px); box-shadow: var(--shadow-hover); }

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-version {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-changes {
    list-style: none;
}

.timeline-changes li {
    padding: 0.3rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.timeline-changes li::before {
    content: '+';
    color: var(--success);
    font-weight: 700;
}

/* ==================== 活动日历 ==================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.event-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-3d);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.event-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(107, 114, 128, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.event-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.event-card p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }

.event-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==================== 排行榜 ==================== */
.leaderboard-table {
    max-width: 800px;
    margin: 0 auto;
}

.lb-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-3d);
    transition: var(--transition);
}

.lb-row:hover { transform: translateX(4px); box-shadow: var(--shadow-hover); }

.lb-rank {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-secondary);
}

.lb-row:nth-child(1) .lb-rank { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.lb-row:nth-child(2) .lb-rank { background: linear-gradient(135deg, #9ca3af, #6b7280); color: #fff; }
.lb-row:nth-child(3) .lb-rank { background: linear-gradient(135deg, #b45309, #92400e); color: #fff; }

.lb-name { flex: 1; font-weight: 600; font-size: 1.1rem; }
.lb-role { font-size: 0.85rem; color: var(--text-secondary); }
.lb-score { font-weight: 700; font-size: 1.2rem; color: var(--primary-color); }

/* ==================== 白名单申请 ==================== */
.whitelist-content { max-width: 900px; margin: 0 auto; }

.whitelist-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-3d);
    transition: var(--transition);
}

.whitelist-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.whitelist-icon {
    width: 100px; height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
}

.whitelist-card h3 { font-size: 2rem; margin-bottom: 1rem; }
.whitelist-card p { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.1rem; }

.whitelist-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-3d);
}

.whitelist-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.whitelist-steps {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-3d);
}

.whitelist-steps h4 { font-size: 1.5rem; margin-bottom: 2rem; display: flex; align-items: center; gap: 0.5rem; }

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0,0,0,0.02);
    border-radius: 12px;
    transition: var(--transition);
}

body.dark-theme .step { background: rgba(255,255,255,0.02); }
.step:hover { background: rgba(0,0,0,0.04); }
body.dark-theme .step:hover { background: rgba(255,255,255,0.04); }

.step-number {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    color: #fff;
}

.step-content h5 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step-content p { color: var(--text-secondary); }

/* ==================== 充电区 ==================== */
.charging-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.search-box { position: relative; width: 100%; }
.search-box i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-secondary); }

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.search-box input:focus { outline: none; border-color: var(--primary-color); }

.sort-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.sort-btn {
    padding: 0.75rem 1.25rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-btn:hover, .sort-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-3d);
}

.charging-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.charging-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-3d);
}

.charging-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

.charging-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #e5e7eb;
}

body.dark-theme .charging-image { background: #374151; }

.charging-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.charging-card:hover .charging-image img { transform: scale(1.1); }

.charging-info { padding: 1.5rem; }
.charging-name { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }

.charging-price {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }

.page-btn {
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover, .page-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-3d);
}

.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ==================== FAQ ==================== */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-3d);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover { box-shadow: var(--shadow-hover); }

.faq-question {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    user-select: none;
}

.faq-question:hover { background: rgba(107, 114, 128, 0.05); }

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.open .faq-question i { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.2rem;
}

/* ==================== 留言板 ==================== */
.guestbook-form {
    max-width: 600px;
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guestbook-form input,
.guestbook-form textarea {
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.guestbook-form textarea { resize: vertical; }

.gb-submit {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-3d);
    align-self: flex-start;
}

.gb-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.guestbook-list { max-width: 600px; margin: 0 auto; }

.gb-item {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-3d);
}

.gb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.gb-name { font-weight: 600; font-size: 0.95rem; }
.gb-date { font-size: 0.8rem; color: var(--text-secondary); }
.gb-message { color: var(--text-secondary); line-height: 1.6; font-size: 0.95rem; }

/* ==================== 投票 ==================== */
.poll-card {
    max-width: 700px;
    margin: 0 auto 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-3d);
}

.poll-question { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }

.poll-option {
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.poll-option-bar {
    height: 44px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    transition: var(--transition);
}

.poll-option-bar:hover { border-color: var(--primary-color); }

.poll-option-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(107,114,128,0.15), rgba(107,114,128,0.05));
    border-radius: 12px;
    transition: width 0.5s ease;
}

.poll-option-text {
    position: relative;
    z-index: 1;
    font-weight: 500;
    flex: 1;
}

.poll-option-pct {
    position: relative;
    z-index: 1;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 1rem;
}

.poll-total {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* ==================== 玩家风采上传 ==================== */
.showcase-upload {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-card);
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(107, 114, 128, 0.05);
    transform: scale(1.01);
}

.upload-zone i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.upload-zone p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upload-zone span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 玩家风采覆盖层 */
.gallery-item {
    position: relative;
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .showcase-overlay {
    opacity: 1;
}

.showcase-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.showcase-date {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

.showcase-delete {
    width: 32px;
    height: 32px;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.85rem;
}

.showcase-delete:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* ==================== 地图展示 ==================== */
.map-container {
    max-width: 1000px;
    margin: 0 auto;
}

.map-container img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-3d);
    margin-bottom: 2rem;
}

/* ==================== 音乐播放器 ==================== */
.music-player {
    position: fixed;
    bottom: 20px; left: 20px;
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme .music-player {
    background: rgba(31, 41, 55, 0.95);
}

.music-player.collapsed {
    width: 56px; height: 56px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
}

.music-player.collapsed .player-body { opacity: 0; pointer-events: none; transform: translateX(-20px); }
.music-player.collapsed .player-toggle { display: flex; }
.music-player:hover { transform: translateY(-4px); box-shadow: 0 15px 50px rgba(0,0,0,0.15); }

.player-toggle {
    display: none;
    position: absolute;
    top: 0; left: 0;
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-3d);
    transition: var(--transition);
    z-index: 2;
}

.player-toggle:hover { transform: scale(1.1); box-shadow: var(--shadow-hover); }

.player-body { transition: opacity 0.3s ease, transform 0.3s ease; }

.player-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }

.player-close {
    width: 32px; height: 32px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: auto;
}

.player-close:hover { background: var(--primary-color); color: #fff; }

.album-cover {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    overflow: hidden;
    flex-shrink: 0;
    color: #fff;
}

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

.song-info { flex: 1; min-width: 0; }
.song-title { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-artist { font-size: 0.8rem; color: var(--text-secondary); }

.player-controls { display: flex; flex-direction: column; gap: 0.75rem; }
.progress-container { display: flex; align-items: center; gap: 0.5rem; }
.time-current, .time-total { font-size: 0.75rem; color: var(--text-secondary); min-width: 35px; }

.progress-bar {
    flex: 1; height: 4px;
    -webkit-appearance: none; appearance: none;
    background: #e5e7eb;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

body.dark-theme .progress-bar { background: #374151; }

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 12px; height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.progress-bar::-webkit-slider-thumb:hover { transform: scale(1.2); }

.control-buttons { display: flex; justify-content: center; gap: 1rem; }

.control-btn {
    width: 36px; height: 36px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    transform: scale(1.1);
    box-shadow: var(--shadow-3d);
}

.play-btn {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
}

.volume-container { display: flex; align-items: center; gap: 0.5rem; }
.volume-container i { color: var(--text-secondary); font-size: 0.9rem; }

.volume-bar {
    flex: 1; height: 4px;
    -webkit-appearance: none; appearance: none;
    background: #e5e7eb;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

body.dark-theme .volume-bar { background: #374151; }

.volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 12px; height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

/* ==================== Toast ==================== */
.toast {
    position: fixed;
    bottom: 100px; left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(16, 185, 129, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    transition: var(--transition);
    z-index: 9999;
    color: #fff;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==================== 回到顶部 ==================== */
.back-to-top {
    position: fixed;
    bottom: 20px; right: 20px;
    width: 48px; height: 48px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-3d);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); background: var(--primary-color); color: #fff; }

/* ==================== 页脚 ==================== */
.site-footer {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0.25rem; }
.footer-copyright strong { color: var(--text-primary); }
.footer-contact { display: flex; gap: 1.5rem; align-items: center; }

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-link:hover { color: #2563eb; text-decoration: underline; }
.contact-link i { font-size: 1rem; }

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .charging-grid { grid-template-columns: repeat(2, 1fr); }
    .online-stats { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        top: 100px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 100px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        gap: 0.5rem;
        transition: var(--transition);
        overflow-y: auto;
    }

    body.dark-theme .nav-menu { background: rgba(17, 24, 39, 0.98); }
    .nav-menu.active { left: 0; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .charging-grid { grid-template-columns: 1fr; }

    .music-player { width: calc(100% - 40px); left: 20px; right: 20px; }
    .music-player.collapsed { width: 56px; height: 56px; }

    .footer-content { flex-direction: column; text-align: center; }
    .section-title { font-size: 1.8rem; }
    .nav-status { display: none; }
    .character-grid { grid-template-columns: 1fr; }
    .events-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .social-links { flex-direction: column; }
    .social-btn { width: 100%; justify-content: center; }
    .sort-buttons { justify-content: center; }
    .time-card { flex-direction: column; text-align: center; }
}
