 :root {
            --primary-color: #4a00e0;
            --secondary-color: #8e2de2;
            --accent-color: #f50057;
            --light-color: #f8f9fa;
            --dark-color: #212529;
            --success-color: #28a745;
            --info-color: #17a2b8;
            --warning-color: #ffc107;
            --danger-color: #dc3545;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            color: var(--dark-color);
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header Styles */
        header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 20px 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-size: 28px;
            font-weight: 700;
            display: flex;
            align-items: center;
        }
        
        .logo i {
            margin-right: 10px;
            color: var(--accent-color);
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 25px;
        }
        
        nav ul li a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            padding: 5px 10px;
            border-radius: 4px;
        }
        
        nav ul li a:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }
        
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
        }
        
        /* Hero Section */
        .hero {
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/img/pg.jpg') center/cover no-repeat;
            height: 500px;
            display: flex;
            align-items: center;
            text-align: center;
            color: white;
            margin-bottom: 50px;
        }
        
        .hero-content {
            max-width: 800px;
            margin: 0 auto;
        }
        
        .hero h1 {
            font-size: 48px;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }
        
        .hero p {
            font-size: 20px;
            margin-bottom: 30px;
        }
        
        .btn {
            display: inline-block;
            background-color: var(--accent-color);
            color: white;
            padding: 12px 30px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            font-size: 16px;
        }
        
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }
        
        .btn-outline {
            background-color: transparent;
            border: 2px solid white;
            margin-left: 15px;
        }
        
        .btn-outline:hover {
            background-color: white;
            color: var(--primary-color);
        }
        
        /* Sections */
        section {
            padding: 60px 0;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 50px;
            position: relative;
        }
        
        .section-title h2 {
            font-size: 36px;
            display: inline-block;
            padding-bottom: 10px;
        }
        
        .section-title h2::after {
            content: '';
            position: absolute;
            width: 80px;
            height: 4px;
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 2px;
        }
        
        /* Game Info Section */
        .game-info {
            background-color: white;
            border-radius: 10px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }
        
        .game-info h3 {
            font-size: 24px;
            margin-bottom: 20px;
            color: var(--primary-color);
        }
        
        .game-info p {
            margin-bottom: 15px;
        }
        
        .game-info ul {
            margin-left: 20px;
            margin-bottom: 20px;
        }
        
        /* Characters Section */
        .character-filter {
            display: flex;
            justify-content: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }
        
        .filter-btn {
            padding: 8px 20px;
            margin: 0 10px 10px 0;
            background-color: white;
            border: 1px solid #ddd;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .filter-btn:hover, .filter-btn.active {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        
        .characters-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 30px;
        }
        
        .character-card {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }
        
        .character-card:hover {
            transform: translateY(-10px);
        }
        
        .character-img {
            height: 200px;
            overflow: hidden;
        }
        
        .character-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .character-card:hover .character-img img {
            transform: scale(1.1);
        }
        
        .character-info {
            padding: 20px;
        }
        
        .character-info h3 {
            font-size: 20px;
            margin-bottom: 10px;
        }
        
        .character-rarity {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 50px;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 10px;
        }
        
        .rarity-3 { background-color: #6c757d; color: white; }
        .rarity-4 { background-color: #17a2b8; color: white; }
        .rarity-5 { background-color: #ffc107; color: var(--dark-color); }
        .rarity-6 { background-color: #fd7e14; color: white; }
        .rarity-7 { background-color: #dc3545; color: white; }
        
        .character-stats {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            font-size: 14px;
        }
        
        .character-stats span {
            display: flex;
            align-items: center;
        }
        
        .character-stats i {
            margin-right: 5px;
            color: var(--primary-color);
        }
        
        /* Codes Section */
        .codes-list {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .code-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            border-bottom: 1px solid #eee;
        }
        
        .code-item:last-child {
            border-bottom: none;
        }
        
        .code {
            font-family: monospace;
            font-size: 18px;
            font-weight: 600;
            color: var(--primary-color);
        }
        
        .reward {
            color: var(--success-color);
            font-weight: 600;
        }
        
        .copy-btn {
            background-color: var(--light-color);
            border: none;
            padding: 5px 10px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .copy-btn:hover {
            background-color: var(--primary-color);
            color: white;
        }
        
        /* Guides Section */
        .guides-container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .guide-card {
        flex: 1 1 calc(33% - 1.5rem);
        min-width: 280px;
        max-width: 320px;
    }
        .guide-img {
            height: 200px;
            overflow: hidden;
        }
        
        .guide-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .guide-content {
            padding: 20px;
        }
        
        .guide-content h3 {
            font-size: 20px;
            margin-bottom: 10px;
            color: var(--primary-color);
        }
        
        .guide-content p {
            margin-bottom: 15px;
            color: #666;
        }
        
        .guide-meta {
            display: flex;
            justify-content: space-between;
            font-size: 14px;
            color: #888;
        }
        
        /* Newsletter Section */
        .newsletter {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 60px 0;
            text-align: center;
        }
        
        .newsletter h2 {
            font-size: 36px;
            margin-bottom: 20px;
        }
        
        .newsletter p {
            max-width: 600px;
            margin: 0 auto 30px;
            font-size: 18px;
        }
        
        .newsletter-form {
            display: flex;
            max-width: 500px;
            margin: 0 auto;
        }
        
        .newsletter-form input {
            flex: 1;
            padding: 15px;
            border: none;
            border-radius: 50px 0 0 50px;
            font-size: 16px;
        }
        
        .newsletter-form button {
            padding: 15px 30px;
            background-color: var(--accent-color);
            color: white;
            border: none;
            border-radius: 0 50px 50px 0;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .newsletter-form button:hover {
            background-color: #d5004b;
        }
        
        /* Footer */
        footer {
            background-color: var(--dark-color);
            color: white;
            padding: 60px 0 20px;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }
        
        .footer-column h3 {
            font-size: 20px;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }
        
        .footer-column h3::after {
            content: '';
            position: absolute;
            width: 50px;
            height: 3px;
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            bottom: 0;
            left: 0;
        }
        
        .footer-column ul {
            list-style: none;
        }
        
        .footer-column ul li {
            margin-bottom: 10px;
        }
        
        .footer-column ul li a {
            color: #aaa;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .footer-column ul li a:hover {
            color: white;
            padding-left: 5px;
        }
        
        .social-links {
            display: flex;
            margin-top: 20px;
        }
        
        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            margin-right: 10px;
            color: white;
            transition: all 0.3s ease;
        }
        
        .social-links a:hover {
            background-color: var(--accent-color);
            transform: translateY(-3px);
        }
        
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #aaa;
            font-size: 14px;
        }
        
        /* Responsive Styles */
        @media (max-width: 992px) {
            .hero h1 {
                font-size: 36px;
            }
            
            .hero p {
                font-size: 18px;
            }
        }
        
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                text-align: center;
            }
            
            .logo {
                margin-bottom: 15px;
            }
            
            nav ul {
                flex-direction: column;
                align-items: center;
            }
            
            nav ul li {
                margin: 5px 0;
            }
            
            .hero {
                height: 400px;
            }
            
            .btn {
                display: block;
                width: 100%;
                margin-bottom: 10px;
            }
            
            .btn-outline {
                margin-left: 0;
            }
            
            .newsletter-form {
                flex-direction: column;
            }
            
            .newsletter-form input {
                border-radius: 50px;
                margin-bottom: 10px;
            }
            
            .newsletter-form button {
                border-radius: 50px;
            }
        }
        
        @media (max-width: 576px) {
            .hero {
                height: 350px;
            }
            
            .hero h1 {
                font-size: 28px;
            }
            
            .section-title h2 {
                font-size: 28px;
            }
            
            .characters-grid {
                grid-template-columns: 1fr;
            }
            
         
    .guides-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        justify-content: center;
    }

    .guide-card {
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: transform 0.3s ease;
    }

    .guide-card:hover {
        transform: translateY(-5px);
    }

    .guide-card .guide-img img {
        width: 100%;
        height: auto;
    }

    .guide-card .guide-content {
        padding: 1rem;
    }

    .guide-card .guide-meta {
        padding: 0 1rem 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}
/* 保持 Logo 的默认样式 */
.header-content .logo a {
    text-decoration: none; /* 移除下划线 */
    color: inherit; /* 继承父元素的颜色 */
    display: flex; /* 使用 Flexbox 布局 */
    align-items: center; /* 垂直居中对齐 */
}

/* 保持 Logo 图片和文本的默认样式 */
.header-content .logo a img,
.header-content .logo a span {
    display: inline-block;
}
/* 额外 */
.character-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
    margin: 1rem; /* 增加卡片间距 */
}

.character-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.character-img img {
    width: 280px; /* 增大图片宽度 */
    height: auto; /* 保持图片比例 */
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.character-info h3 {
    font-size: 1.2rem; /* 增大字体大小 */
    margin: 0.5rem 0;
}

.character-tier {
    font-size: 1rem; /* 增大字体大小 */
}
/* 自适应 */
/* 默认情况下显示完整导航 */
#mainNav {
    display: flex;
}

.mobile-menu-btn {
    display: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    #mainNav {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    #mainNav ul {
        flex-direction: column;
    }

    #mainNav.active {
        max-height: 300px; /* 可根据内容调整 */
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 15px;
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
    }
}