/* ===== 基础样式 ===== */
:root {
    /* 日间主题 */
    --primary-color: #000000;
    --primary-dark: #1a1a1a;
    --secondary-color: #2a2a2a;
    --accent-color: #404040;
    --bg-dark: #ffffff;
    --bg-darker: #f5f5f5;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-hover: rgba(250, 250, 250, 1);
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --gradient-primary: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2a2a2a 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 100%);
}

/* 日间主题 */
[data-theme="light"] {
    --primary-color: #000000;
    --primary-dark: #1a1a1a;
    --secondary-color: #2a2a2a;
    --accent-color: #404040;
    --bg-dark: #ffffff;
    --bg-darker: #f5f5f5;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-hover: rgba(250, 250, 250, 1);
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --gradient-primary: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2a2a2a 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 100%);
}

/* 夜间主题（默认） */
[data-theme="dark"] {
    --primary-color: #ffffff;
    --primary-dark: #e0e0e0;
    --secondary-color: #d0d0d0;
    --accent-color: #b0b0b0;
    --bg-dark: #000000;
    --bg-darker: #0a0a0a;
    --bg-card: rgba(20, 20, 20, 0.9);
    --bg-card-hover: rgba(30, 30, 30, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --border-color: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7);
    --gradient-primary: linear-gradient(135deg, #ffffff 0%, #e0e0e0 50%, #d0d0d0 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

[data-theme="dark"] body {
    background: #000000;
}

[data-theme="light"] body {
    background: #ffffff;
}

html {
    overflow-x: hidden;
}

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

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.join-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    -webkit-text-fill-color: white;
}

.nav-link.join-btn::after {
    display: none;
}

.nav-link.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-link.join-btn {
    background: #ffffff;
    color: #000000;
    -webkit-text-fill-color: #000000;
}

[data-theme="dark"] .nav-link.join-btn:hover {
    background: #e0e0e0;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

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

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ===== 主题切换按钮 ===== */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    transform: scale(1.1);
    box-shadow: var(--shadow-sm);
}

.theme-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(15deg);
}

/* 主题图标通过JS动态更新，这里不需要content */

/* ===== 英雄区域 ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    background: transparent;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 0;
    overflow: hidden;
}

[data-theme="dark"] .hero-video {
    opacity: 0.45;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-video.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

[data-theme="light"] .hero-background,
[data-theme="light"] .hero-section {
    background: transparent;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel-slide {
    min-width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.4);
    transition: transform 25s ease-out, filter 2s ease;
    will-change: transform, filter;
    transform: scale(1);
}

.hero-carousel-slide.active img {
    filter: brightness(0.5);
    transform: scale(1.1);
}

/* 图片加载时的占位背景 */
.hero-carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #000000 50%, #0a0a0a 100%);
    z-index: -1;
}

[data-theme="light"] .hero-carousel-slide::before {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #d8d8d8 100%);
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.7) 65%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 2;
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.35) 60%, rgba(255, 255, 255, 0.65) 100%);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-content {
    text-align: center;
    z-index: 3;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    transition: color 0.3s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-kook {
    background: #22c55e;
    color: #fff;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-kook .btn-icon {
    font-size: 1.25rem;
}

.btn-kook .btn-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.btn-kook:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

/* 金色Kook按钮 */
.btn-kook-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #fff;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-kook-gold .btn-icon {
    font-size: 1.25rem;
}

.btn-kook-gold .btn-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.btn-kook-gold:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
}

/* QQ群按钮 */
.btn-qq {
    background: linear-gradient(135deg, #12B7F5 0%, #0099FF 100%);
    color: #fff;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(18, 183, 245, 0.3);
}

.btn-qq .btn-icon {
    font-size: 1.25rem;
}

.btn-qq .btn-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.btn-qq:hover {
    background: linear-gradient(135deg, #0099FF 0%, #0077CC 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(18, 183, 245, 0.5);
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

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

[data-theme="dark"] .btn-primary {
    background: #ffffff;
    color: #000000;
}

[data-theme="light"] .btn-primary {
    background: #000000;
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .btn-primary:hover {
    background: #e0e0e0;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .btn-primary:hover {
    background: #1a1a1a;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.server-status {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .server-status {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.status-dot.online {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.player-count {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ===== 动画类 ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

/* ===== 通用区域样式 ===== */
section {
    padding: 5rem 0;
    position: relative;
    background: var(--bg-dark);
}

[data-theme="dark"] section {
    background: #000000;
}

[data-theme="light"] section {
    background: #ffffff;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.subsection-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* 赞助人员标题：放大并居中，风格与大标题一致 */
.sponsors-section .subsection-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 规则页面 ===== */
.rules-hero {
    padding: 8rem 0 4rem;
    text-align: center;
}

.rules-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.rules-label {
    display: inline-flex;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.rules-hero-desc {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.rules-section {
    background: transparent;
    position: relative;
}

.rules-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.04), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.rules-section .container {
    position: relative;
    z-index: 1;
}

.rules-section .rule-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
}

.rule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.rule-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

[data-theme="light"] .rule-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .rule-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.rule-card {
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rule-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.12);
}

.rule-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.rule-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.rule-list {
    list-style: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    line-height: 1.7;
}

.rule-list li {
    position: relative;
    padding-left: 1.7rem;
}

.rule-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient-primary);
}

.rule-list.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem 1rem;
}

.rule-list.two-col li {
    padding-left: 0;
}

.rule-list.two-col li::before {
    display: none;
}

@media (max-width: 768px) {
    .rules-hero {
        padding-top: 6rem;
    }
}

/* ===== 轮播图 ===== */
.carousel-section {
    background: var(--bg-dark);
}

[data-theme="dark"] .carousel-section {
    background: #000000;
}

[data-theme="light"] .carousel-section {
    background: #ffffff;
}

.carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-card);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

.carousel-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.carousel-slide-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    width: 24px;
    border-radius: 5px;
}

/* ===== 服务器特色区域 ===== */
.features-section {
    background: var(--bg-dark);
    transition: background 0.3s ease;
}

[data-theme="dark"] .features-section {
    background: #000000;
}

[data-theme="light"] .features-section {
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .feature-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .feature-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
    transform: scaleY(1);
}

.feature-icon {
    display: inline-block;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== 公告区域 ===== */
.announcements-section {
    background: var(--bg-dark);
    transition: background 0.3s ease;
}

[data-theme="dark"] .announcements-section {
    background: #000000;
}

[data-theme="light"] .announcements-section {
    background: #ffffff;
}

.announcements-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.announcement-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .announcement-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .announcement-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.announcement-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.announcement-card:hover {
    transform: translateX(5px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-md);
}

.announcement-card:hover::after {
    transform: scaleX(1);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

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

.announcement-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.announcement-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    white-space: nowrap;
}

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

.announcement-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    white-space: nowrap;
    border: 1px solid currentColor;
}

/* 夜间主题标签：深色背景 + 细白边框，文字清晰不发光 */
[data-theme="dark"] .announcement-tag {
    background: #111111;
    color: #ffffff;
    box-shadow: none;
}

/* 日间主题标签：浅灰背景 + 深色文字 */
[data-theme="light"] .announcement-tag {
    background: #f3f3f3;
    color: #111111;
    box-shadow: none;
}

.announcement-tag:hover {
    transform: translateY(-1px);
}

/* ===== 赞助区域 ===== */
.sponsor-section {
    background: var(--bg-dark);
    transition: background 0.3s ease;
}

[data-theme="dark"] .sponsor-section {
    background: #000000;
}

[data-theme="light"] .sponsor-section {
    background: #ffffff;
}

.sponsor-items-section,
.sponsors-section {
    margin-bottom: 4rem;
}

.sponsor-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.sponsor-item-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .sponsor-item-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .sponsor-item-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.sponsor-item-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sponsor-item-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.sponsor-item-card:hover::before {
    opacity: 1;
}

.sponsor-item-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.sponsor-item-cover {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.sponsor-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sponsor-item-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.sponsor-item-price {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.sponsor-item-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.sponsors-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.sponsor-person {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .sponsor-person {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .sponsor-person:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.sponsor-person:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.sponsor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    border: 3px solid var(--border-color);
    overflow: hidden;
}

.sponsor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sponsor-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.sponsor-tier {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== 模态框 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-theme="light"] .modal-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

[data-theme="light"] .modal-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.server-info-box {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

[data-theme="light"] .server-info-box {
    background: var(--bg-card);
}

[data-theme="dark"] .server-info-box {
    background: rgba(20, 20, 20, 0.9);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 100px;
}

.info-value {
    flex: 1;
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

[data-theme="light"] .info-value {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

[data-theme="dark"] .info-value {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.copy-btn {
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.join-instructions {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

[data-theme="light"] .join-instructions {
    background: var(--bg-card);
}

[data-theme="dark"] .join-instructions {
    background: rgba(20, 20, 20, 0.9);
}

.join-instructions h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.join-instructions ol {
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 2;
}

.join-instructions li {
    margin-bottom: 0.5rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
    transition: background 0.3s ease;
}

[data-theme="dark"] .footer {
    background: #000000;
}

[data-theme="light"] .footer {
    background: #ffffff;
}

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

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

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

/* ===== 主题过渡动画 ===== */
html {
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body, .navbar, .hero-section, section, .feature-card, .announcement-card, 
.sponsor-item-card, .sponsor-person, .modal-content, .footer,
.hero-background, .hero-overlay {
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 排除不需要过渡的元素 */
img, svg, video, canvas, audio, iframe, embed, object, 
.hero-carousel-slide img, .carousel-slide img {
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    .theme-toggle {
        margin-left: 0.5rem;
        width: 36px;
        height: 36px;
    }
    
    .nav-menu {
        align-items: center;
    }
    
    .nav-menu li {
        display: flex;
        align-items: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .server-status {
        flex-direction: column;
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-items-grid {
        grid-template-columns: 1fr;
    }

    .sponsors-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .modal-content {
        padding: 1.5rem;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .copy-btn {
        width: 100%;
    }
}

/* ===== 加载动画 ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--border-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-card-hover);
}

/* ===== 音乐控制器 ===== */
.music-controller {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.music-controller:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.music-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.music-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.music-toggle:hover::before {
    opacity: 1;
}

.music-toggle:hover {
    transform: scale(1.1);
}

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

.music-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s;
}

.music-icon.hidden {
    display: none;
}

.music-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.music-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
}

.music-wave span {
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    animation: wave 1.2s ease-in-out infinite;
}

.music-wave span:nth-child(1) {
    animation-delay: 0s;
}

.music-wave span:nth-child(2) {
    animation-delay: 0.1s;
}

.music-wave span:nth-child(3) {
    animation-delay: 0.2s;
}

.music-wave span:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes wave {
    0%, 100% {
        transform: scaleY(0.3);
    }
    50% {
        transform: scaleY(1);
    }
}

.music-controller.paused .music-wave span {
    animation: none;
    transform: scaleY(0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .music-controller {
        bottom: 20px;
        right: 20px;
        padding: 10px 12px;
    }
    
    .music-toggle {
        width: 36px;
        height: 36px;
    }
    
    .music-icon {
        width: 18px;
        height: 18px;
    }
}

/* ===== 欢迎提示遮罩层 ===== */
.welcome-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
    transition: opacity 0.3s ease;
}

.welcome-content {
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.welcome-btn {
    padding: 15px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.welcome-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.welcome-btn:hover::before {
    opacity: 1;
}

.welcome-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.welcome-btn:active {
    transform: translateY(0);
}

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

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

