:root {
            --primary: #6a11cb;
            --secondary: #2575fc;
            --accent: #ff2d75;
            --dark: #0f0c29;
            --light: #f8f9fa;
            --card-bg: rgba(25, 25, 35, 0.8);
            --glow: 0 0 15px rgba(106, 17, 203, 0.7);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        #background-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background-color: var(--dark);
            opacity: 0;
            transition: opacity 0.5s ease;
        }
        
        body {
            min-height: 100vh;
            background: linear-gradient(135deg, var(--dark), #24243e);
            background-attachment: fixed;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
            color: var(--light);
            line-height: 1.6;
            overflow-x: hidden;
            position: relative;
        }
        
        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('Images/background.jpg') no-repeat center center/cover;
            opacity: 0.15;
            z-index: -1;
        }
        
        /* 顶部导航 */
        .navbar {
            background: rgba(15, 12, 41, 0.9);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(106, 17, 203, 0.5);
            padding: 1rem 5%;
            position: sticky;
            top: 0;
            z-index: 1000;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .logo h1 {
            font-size: 1.8rem;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: var(--glow);
            letter-spacing: 1px;
        }
        
        .nav-links {
            display: flex;
            gap: 2rem;
        }
        
        .nav-links a {
            color: var(--light);
            text-decoration: none;
            font-weight: 500;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .nav-links a:hover {
            background: rgba(106, 17, 203, 0.2);
        }
        
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.3s ease;
        }
        
        .nav-links a:hover::after {
            width: 100%;
        }
        
        /* 主容器 */
        .container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 1.5rem;
        }
        
        /* 公告区域 */
        .announcement-section {
            margin-bottom: 3rem;
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid rgba(106, 17, 203, 0.5);
        }
        
        .section-title {
            font-size: 2rem;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .notice-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 1.5rem;
        }
        
        .notice-card {
            background: var(--card-bg);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid rgba(106, 17, 203, 0.3);
            position: relative;
        }
        
        .notice-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(to right, var(--primary), var(--secondary));
        }
        
        .notice-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 40px rgba(106, 17, 203, 0.4);
        }
        
        .card-content {
            padding: 1.5rem;
        }
        
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1rem;
        }
        
        .card-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: #fff;
        }
        
        .card-date {
            font-size: 0.85rem;
            color: #aaa;
            background: rgba(0, 0, 0, 0.3);
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
        }
        
        .card-body {
            margin-bottom: 1.2rem;
            color: #ddd;
        }
        
        .card-link {
            display: inline-block;
            padding: 0.5rem 1.2rem;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            text-decoration: none;
            border-radius: 4px;
            font-weight: 500;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(106, 17, 203, 0.4);
        }
        
        .card-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(106, 17, 203, 0.6);
        }
        
        .card-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-bottom: 1px solid rgba(106, 17, 203, 0.3);
        }
        
        /* 分页 */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 2.5rem;
        }
        
        .page-link {
            display: inline-block;
            padding: 0.6rem 1.2rem;
            background: rgba(37, 117, 252, 0.15);
            color: #ddd;
            border-radius: 4px;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .page-link.disabled {
            pointer-events: none;
            opacity: 0.5;
         }
        
        .page-link:hover {
            background: rgba(37, 117, 252, 0.3);
            color: white;
        }
        
        .page-link.active {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            box-shadow: var(--glow);
        }
        
        /* 页脚 */
        footer {
            text-align: center;
            padding: 2rem 0;
            margin-top: 3rem;
            color: #aaa;
            font-size: 0.9rem;
            border-top: 1px solid rgba(106, 17, 203, 0.3);
        }
        
        footer a {
            color: #6a99ff;
            text-decoration: none;
        }
        
        footer a:hover {
            text-decoration: underline;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .navbar {
                flex-direction: column;
                gap: 1rem;
            }
            
            .nav-links {
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .notice-list {
                grid-template-columns: 1fr;
            }
        }

        .login-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            justify-content: center;
            align-items: center;
        }
        
        .login-content {
            background: rgba(25, 25, 35, 0.95);
            border-radius: 10px;
            width: 350px;
            padding: 2rem;
            box-shadow: 0 0 30px rgba(106, 17, 203, 0.8);
            border: 1px solid rgba(106, 17, 203, 0.5);
            position: relative;
        }
        
        .close-login {
            position: absolute;
            top: 15px;
            right: 15px;
            color: var(--accent);
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        .login-form .form-group {
            margin-bottom: 1.2rem;
        }
        
        .login-form label {
            display: block;
            margin-bottom: 0.5rem;
            color: #ddd;
        }
        
        .login-form input {
            width: 100%;
            padding: 10px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(106, 17, 203, 0.4);
            border-radius: 4px;
            color: white;
        }
        
        .login-btn {
            width: 100%;
            padding: 12px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border: none;
            border-radius: 4px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 1rem;
        }
        
        .login-error {
            color: var(--accent);
            text-align: center;
            margin-top: 1rem;
            display: none;
        }
        
        .user-info {
            display: none;
            align-items: center;
            gap: 10px;
        }
        
        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }

        /* 添加活动详情弹窗样式 */
    .event-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 2000;
        justify-content: center;
        align-items: center;
        overflow-y: auto;
    }
    
    .event-content {
        background: rgba(25, 25, 35, 0.95);
        border-radius: 10px;
        width: 85%;
        max-width: 800px;
        padding: 2rem;
        box-shadow: 0 0 30px rgba(106, 17, 203, 0.8);
        border: 1px solid rgba(106, 17, 203, 0.5);
        position: relative;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .close-event {
        position: absolute;
        top: 15px;
        right: 15px;
        color: var(--accent);
        font-size: 1.8rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .close-event:hover {
        transform: scale(1.2);
    }
    
    .event-details {
        padding: 0 1rem;
    }
    
    .event-section {
        margin-bottom: 1.8rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px dashed rgba(106, 17, 203, 0.3);
    }
    
    .event-section h3 {
        color: var(--secondary);
        margin-bottom: 0.8rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .event-table {
        width: 100%;
        border-collapse: collapse;
        margin: 1rem 0;
        background: rgba(15, 12, 41, 0.5);
    }
    
    .event-table th, .event-table td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid rgba(106, 17, 203, 0.2);
    }
    
    .event-table th {
        background: rgba(106, 17, 203, 0.3);
        color: var(--accent);
    }
    
    .event-table tr:hover {
        background: rgba(37, 117, 252, 0.1);
    }
    
    .event-list {
        list-style-type: none;
        padding-left: 0;
    }
    
    .event-list li {
        padding: 8px 0;
        position: relative;
        padding-left: 25px;
    }
    
    .event-list li:before {
        content: '•';
        color: var(--accent);
        font-size: 1.5rem;
        position: absolute;
        left: 0;
        top: -2px;
    }
    
    .highlight {
        color: var(--accent);
        font-weight: bold;
    }
    
    .exchange-grid {
        display: grid;
        grid-template-columns: auto auto;
        gap: 10px;
        margin: 15px 0;
    }
    
    .exchange-grid div:nth-child(odd) {
        background: rgba(106, 17, 203, 0.1);
        padding: 8px 12px;
        border-radius: 4px;
    }
    
    .exchange-grid div:nth-child(even) {
        text-align: center;
        padding: 8px;
        color: var(--secondary);
        font-weight: bold;
    }
    
    .event-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(106, 17, 203, 0.5);
    }
    
    .event-btn {
        padding: 12px 25px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: white;
        border: none;
        border-radius: 4px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(106, 17, 203, 0.4);
    }
    
    .event-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(106, 17, 203, 0.6);
    }

    .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    }
    
    .feature-card {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        overflow: hidden;
        transition: transform 0.3s ease;
    }
    
    .feature-card:hover {
        transform: translateY(-5px);
    }
    
    .feature-image img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
    
    .feature-content {
        padding: 1.5rem;
    }
    
    .feature-content h3 {
        color: var(--accent);
        margin-bottom: 0.5rem;
    }
    
    .feature-content p {
        color: var(--text-color);
        line-height: 1.6;
    }

    @media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-image img {
        height: 250px;
    }
    }

    :root {
            --primary: #6a11cb;
            --secondary: #2575fc;
            --accent: #ff2d75;
            --dark: #0f0c29;
            --light: #f8f9fa;
            --card-bg: rgba(25, 25, 35, 0.8);
            --glow: 0 0 15px rgba(106, 17, 203, 0.7);
            --text-color: #ddd;
        }
        
        /* 游戏特色区域样式 */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            padding: 2rem 0;
        }
        
        .feature-card {
            background: rgba(25, 25, 35, 0.8);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            transition: all 0.4s ease;
            border: 1px solid rgba(106, 17, 203, 0.3);
            position: relative;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(to right, var(--primary), var(--secondary));
        }
        
        .feature-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 40px rgba(106, 17, 203, 0.4);
        }
        
        .feature-image {
            position: relative;
            overflow: hidden;
            height: 200px;
        }
        
        .feature-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .feature-card:hover .feature-image img {
            transform: scale(1.05);
        }
        
        .feature-content {
            padding: 1.5rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .feature-content h3 {
            color: var(--accent);
            font-size: 1.4rem;
            margin-bottom: 0.8rem;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .feature-content p {
            color: var(--text-color);
            line-height: 1.7;
            margin-bottom: 1rem;
            flex-grow: 1;
        }
        
        .feature-zoom {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            cursor: pointer;
            z-index: 10;
        }
        
        .feature-card:hover .feature-zoom {
            opacity: 1;
        }
        
        .feature-btn {
            display: inline-block;
            padding: 8px 16px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            text-decoration: none;
            border-radius: 4px;
            font-size: 0.9rem;
            text-align: center;
            transition: all 0.3s ease;
        }
        
        .feature-btn:hover {
            background: linear-gradient(135deg, var(--secondary), var(--primary));
        }
        
        /* 大图模态框 */
        .feature-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 3000;
            justify-content: center;
            align-items: center;
        }
        
        .modal-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
        }
        
        .modal-content img {
            max-width: 100%;
            max-height: 90vh;
            border-radius: 10px;
            box-shadow: 0 0 40px rgba(106, 17, 203, 0.8);
        }
        
        .close-modal {
         position: fixed; /* 改为固定定位 */
         top: 20px;
         right: 20px;
         color: white;
         font-size: 2.5rem;
         cursor: pointer;
         transition: all 0.3s ease;
         z-index: 4000; /* 确保在最顶层 */
        }
        
        .close-modal:hover {
            color: var(--accent);
            transform: scale(1.2);
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .features-grid {
                grid-template-columns: 1fr;
            }
            
            .feature-image {
                height: 180px;
            }
            
            .feature-content h3 {
                font-size: 1.3rem;
            }
        }
        
        @media (max-width: 480px) {
            .feature-image {
                height: 160px;
            }
        }
