/* 基础样式和变量定义 - 全新配色方案 */
:root {
    /* 白天模式配色 - 鲜艳高级 */
    --primary-color: #4361ee;
    /* 鲜艳蓝色 */
    --secondary-color: #3a0ca3;
    /* 深蓝紫色 */
    --accent-color: #f72585;
    /* 鲜艳粉色 */
    --success-color: #4cc9f0;
    /* 亮青色 */
    --warning-color: #f8961e;
    /* 橙色 */

    --dark-color: #2b2d42;
    /* 深蓝灰 */
    --light-color: #f8f9fa;
    /* 近白色 */
    --background-light: #ffffff;
    /* 纯白背景 */
    --navbar-bg: rgba(67, 97, 238, 0.95);
    /* 导航栏背景 - 白天模式 */
    --navbar-bg-scrolled: rgba(67, 97, 238, 0.95);

    --font-main: 'Noto Sans SC', sans-serif;
    --border-radius: 15px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 夜间模式配色 - 偏暗高级灰 */
.dark-theme {
    --primary-color: #5e60ce;
    /* 柔和的蓝紫色 */
    --secondary-color: #6930c3;
    /* 暗紫色 */
    --accent-color: #ff6b6b;
    /* 柔和的红色 */
    --success-color: #4ecdc4;
    /* 青绿色 */
    --warning-color: #ff9e64;
    /* 柔和的橙色 */

    --dark-color: #e9ecef;
    /* 浅灰，用于文字 */
    --light-color: #1a1b23;
    /* 深灰背景 */
    --background-light: #2d3047;
    /* 中灰卡片背景 */
    --navbar-bg: rgba(30, 30, 46, 0.95);
    /* 导航栏背景 - 夜间模式 */
    --navbar-bg-scrolled: rgba(30, 30, 46, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--light-color);
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* 视频背景基础样式 */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
}

/* 默认显示白天视频，隐藏夜间视频 */
.bg-video:not(.active) {
    opacity: 0;
    visibility: hidden;
}

.bg-video.active {
    opacity: 1;
    visibility: visible;
}

/* 全局遮罩层 - 增强背景融合效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(67, 97, 238, 0.03) 0%,
            rgba(58, 12, 163, 0.05) 50%,
            rgba(247, 37, 133, 0.02) 100%);
    z-index: -1;
    pointer-events: none;
}

.dark-theme::before {
    background: linear-gradient(135deg,
            rgba(30, 30, 46, 0.7) 0%,
            rgba(26, 27, 35, 0.8) 50%,
            rgba(45, 48, 71, 0.6) 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 - 新增毛边效果 */
.navbar {
    background: rgba(67, 97, 238, 0.92);
    backdrop-filter: blur(15px) saturate(180%);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    /* 毛边效果 */
    -webkit-mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 85%,
            rgba(0, 0, 0, 0.7) 90%,
            rgba(0, 0, 0, 0.4) 95%,
            rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 85%,
            rgba(0, 0, 0, 0.7) 90%,
            rgba(0, 0, 0, 0.4) 95%,
            rgba(0, 0, 0, 0) 100%);
}

/* 导航栏滚动状态样式 */
.navbar.scrolled {
    background: var(--navbar-bg-scrolled) !important;
    padding: 0.5rem 0;
    -webkit-mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 95%,
            rgba(0, 0, 0, 0.7) 98%,
            rgba(0, 0, 0, 0.4) 99%,
            rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 95%,
            rgba(0, 0, 0, 0.7) 98%,
            rgba(0, 0, 0, 0.4) 99%,
            rgba(0, 0, 0, 0) 100%);
}

.dark-theme .navbar {
    background: rgba(30, 30, 46, 0.92);
    -webkit-mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 80%,
            rgba(0, 0, 0, 0.6) 90%,
            rgba(0, 0, 0, 0.3) 95%,
            rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 80%,
            rgba(0, 0, 0, 0.6) 90%,
            rgba(0, 0, 0, 0.3) 95%,
            rgba(0, 0, 0, 0) 100%);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: #ffffff !important;
    /* 固定为白色 */
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-logo i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #ffffff !important;
    /* 固定为白色 */
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    position: relative;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 70%;
}

.login-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--light-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* 主页横幅样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    /* 为固定导航栏留出空间 */
}

.hero-content {
    text-align: center;
    color: var(--dark-color);
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease-out;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.dark-theme .hero-content {
    background: rgba(45, 48, 71, 0.85);
    color: var(--dark-color);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-theme .hero-title {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--success-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(247, 37, 133, 0.3);
}

.dark-theme .highlight {
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--dark-color);
}

.dark-theme .hero-subtitle {
    color: rgba(233, 236, 239, 0.9);
}

.server-info {
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark-theme .server-info {
    background: rgba(45, 48, 71, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.server-ip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.server-ip code {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-family: monospace;
    font-size: 1.1rem;
}

.dark-theme .server-ip code {
    background: rgba(233, 236, 239, 0.1);
    color: var(--dark-color);
}

.copy-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.copy-btn:hover {
    transform: scale(1.05);
    background: var(--secondary-color);
}

.server-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.dark-theme .server-stats {
    color: var(--dark-color);
}

.cta-button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(247, 37, 133, 0.4);
    background: #e01a6f;
}

.dark-theme .cta-button {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.dark-theme .cta-button:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

/* 版块通用样式 */
section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.dark-theme .section-title {
    color: var(--dark-color);
}

.dark-theme .section-title::after {
    background: linear-gradient(90deg, var(--accent-color), var(--success-color));
}

/* 轮播图样式 */
.gallery-section {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.5);
}

.dark-theme .gallery-section {
    background: rgba(26, 27, 35, 0.5);
}

.slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 500px;
}

.slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.slide.active {
    opacity: 1;
    position: relative;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--border-radius);
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 25px;
}

.next-btn {
    right: 25px;
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    background: transparent;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.dot.active {
    background: var(--accent-color);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(247, 37, 133, 0.6);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.dark-theme .dot.active {
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.8);
}

/* 排行榜样式 */
.ranking-section {
    background: rgba(255, 255, 255, 0.5);
}

.dark-theme .ranking-section {
    background: rgba(26, 27, 35, 0.5);
}

.ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    color: var(--dark-color);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-color);
    color: white;
}

.dark-theme .tab-btn {
    background: rgba(45, 48, 71, 0.7);
    color: var(--dark-color);
}

.ranking-list {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.ranking-item:hover {
    transform: translateX(5px);
    background: rgba(67, 97, 238, 0.05);
}

.dark-theme .ranking-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .ranking-item:hover {
    background: rgba(94, 96, 206, 0.1);
}

.ranking-item:last-child {
    border-bottom: none;
}

.rank {
    width: 50px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.player-avatar {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1rem;
    font-weight: bold;
}

.player-name {
    flex: 1;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.dark-theme .player-name {
    color: var(--dark-color);
}

.player-value {
    font-weight: bold;
    color: var(--dark-color);
}

.dark-theme .player-value {
    color: var(--dark-color);
}

/* 公告样式 */
.news-section {
    background: rgba(255, 255, 255, 0.5);
}

.dark-theme .news-section {
    background: rgba(26, 27, 35, 0.5);
}

.news-card {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
    display: flex;
    gap: 1.5rem;
    min-height: 100px;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.dark-theme .news-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.news-meta {
    width: 80px;
    flex-shrink: 0;
    text-align: center;
}

.news-date {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.news-tag {
    background: var(--accent-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.dark-theme .news-content h3 {
    color: var(--dark-color);
}

.news-content p {
    color: #555;
    line-height: 1.5;
}

.dark-theme .news-content p {
    color: rgba(233, 236, 239, 0.8);
}

/* 服务器状态样式 */
.status-section {
    background: rgba(255, 255, 255, 0.5);
}

.dark-theme .status-section {
    background: rgba(26, 27, 35, 0.5);
}

.status-card {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    animation: slideInUp 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.server-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(67, 97, 238, 0.1);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.dark-theme .server-header {
    background: rgba(94, 96, 206, 0.1);
}

.server-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.welcome-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.dark-theme .welcome-text {
    color: var(--dark-color);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.dark-theme .status-indicator {
    background: rgba(255, 255, 255, 0.05);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.status-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.status-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.15);
}

.status-item span,
.status-item strong {
    color: var(--dark-color) !important;
    /* 强制使用主题变量 */
}

.dark-theme .status-item {
    background: rgba(255, 255, 255, 0.05);
}

.dark-theme .status-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.motd-container,
.players-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-theme .motd-container,
.dark-theme .players-container {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.motd-container h3,
.players-container h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
}

.dark-theme .motd-container h3,
.dark-theme .players-container h3 {
    color: var(--dark-color);
}

.motd-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
    color: var(--dark-color);
    backdrop-filter: blur(5px);
}

.dark-theme .motd-display {
    background: rgba(255, 255, 255, 0.05);
    color: var(--dark-color);
}

.players-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.player-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.dark-theme .player-tag {
    background: var(--secondary-color);
}

/* 关于我们样式 */
.about-section {
    background: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.dark-theme .about-section {
    background: rgba(26, 27, 35, 0.5);
}

.about-section p {
    font-size: 1.2rem;
    color: var(--dark-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.dark-theme .about-section p {
    color: var(--dark-color);
}

/* QQ群展示容器样式 */
.qq-group-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.qq-group-card {
    display: flex;
    align-items: center;
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.qq-group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.1);
}

.dark-theme .qq-group-card:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.qq-group-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
    flex-shrink: 0;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    /* 备用背景 */
}

.qq-group-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.qq-group-info {
    flex: 1;
}

.qq-group-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-theme .qq-group-name {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--success-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qq-group-number {
    font-size: 1.1rem;
    color: var(--dark-color);
    opacity: 0.8;
    font-family: monospace;
    letter-spacing: 1px;
}

.dark-theme .qq-group-number {
    color: rgba(233, 236, 239, 0.8);
}

.qq-group-arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0.7;
    transition: var(--transition);
}

.qq-group-card:hover .qq-group-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: var(--background-light);
    margin: 10% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: var(--accent-color);
}

.login-form input {
    width: 100%;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--dark-color);
}

.dark-theme .login-form input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--dark-color);
}

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式：移动端菜单 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: 0;
        top: 70px;
        flex-direction: column;
        background: rgba(67, 97, 238, 0.98);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        backdrop-filter: blur(10px);
        /* 修改初始状态为隐藏 */
        opacity: 0;
        visibility: hidden;
        transform: translateX(-100%);
        z-index: 999;
    }

    .dark-theme .nav-menu {
        background: rgba(30, 30, 46, 0.98);
    }

    /* 修改激活状态 */
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
        color: white !important;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    /* 汉堡按钮动画效果 */
    .hamburger span {
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .navbar {
        min-height: 60px;
    }

    .nav-container {
        padding: 0.5rem 1rem;
    }

    /* 菜单激活时的遮罩层 */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 2rem;
        margin: 0 1rem;
    }

    .server-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .server-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .server-icon {
        width: 60px;
        height: 60px;
    }

    .welcome-text {
        font-size: 1.4rem;
    }

    .status-info {
        grid-template-columns: 1fr;
    }

    .slider-container {
        height: 300px;
    }

    .prev-btn,
    .next-btn {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }

    .ranking-tabs {
        flex-direction: column;
        align-items: center;
    }

    .qq-group-card {
        padding: 1rem;
    }

    .qq-group-avatar {
        width: 60px;
        height: 60px;
        margin-right: 1rem;
    }

    .qq-group-name {
        font-size: 1.1rem;
    }

    .qq-group-number {
        font-size: 1rem;
    }
}