/* 基础样式 */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --text-color: #333;
    --bg-color: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

a {
            text-decoration: none;
            color: inherit;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background: linear-gradient(70deg,#CCEEFF, pink);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.pc-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-area img {
    width: 60px;
    height:60px;
    margin-right: 15px;
    border-radius: 0px;
}

.game-info h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: bold;
    /*text-shadow: #008888 1px 0 10px; /*主页标题阴影*/
    color:#0098EF/*主页标题颜色*/
}

.game-info p {
    font-size: 0.9rem;
    color: #777;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color:#000000;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    font-size: 1rem;
    /*font-weight: bold;*/
}

.main-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}


/* 移动端导航 */
.mobile-nav {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-weight: bold;
    font-size: 1.2rem;
    color:#0098EF;
    /*text-shadow: #666666 1px 0 10px;*/
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-logo img {
    width: 60px;
    height: 60px;
    border-radius: 0px;
}

.mobile-download img {
    width: 130px;
    height: 50px;
    margin-top:8px;
}

/* 游戏海报区域 */
/* 主视觉区域 */
        .game-banner {
            height: 100vh;
            background: url('/images/wlwz.webp') no-repeat center center/cover;
            position: relative;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            padding-bottom: 100px;
        }
        
        .download-section {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(8px);
            border-radius: 15px;
            padding: 25px;
            width: 90%;
            max-width: 450px;
            display: flex;
            gap: 40px;
            align-items: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            animation: float 3s ease-in-out infinite;
        }
        
        .qrcode-container {
            position: relative;
            flex-shrink: 0;
        }
        
        .qrcode {
            width: 150px;
            height: 150px;
            background: #fff;
            padding: 10px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
        }
        
        .qrcode::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.5), transparent);
            transform: rotate(30deg);
            animation: scan 2s linear infinite;
        }
        
        .qrcode img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: relative;
            z-index: 2;
        }
        
        .download-buttons {
            display: flex;
            flex-direction: column;
            gap: 25px;
            width: 100%;
        }
        
        .download-btn {
            display: flex;
            align-items: center;
            padding: 15px 25px;
            border-radius: 10px;
            background: linear-gradient(90deg, #4e9eff, #9a4eff);
            color: white;
            font-weight: bold;
            font-size: 18px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .download-btn:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }
        
        .download-btn i {
            font-size: 15px;
            margin-right: 15px;
            color: inherit;
        }
        
        .download-btn a {
            text-decoration: none;
        }
        

/* 手机端适配 */
     @media (max-aspect-ratio: 1/1) {
           /* 手机端竖屏图片 */
            .game-banner {
                background-image: url('/images/wlwzm.webp'); /* 替换为你的竖屏图片路径 */
                height: 100vh; /* 手机端全屏高度 */
                padding-bottom: 50px;
            }
            nav ul {
                display: none;
            }
            
            .mobile-menu-btn {
                display: block;
            }
            
            .section-title {
                font-size: 28px;
            }
            
            .download-section {
                 visibility: hidden;
    position: absolute;
                padding: 20px;
            }
            
            .download-btn {
                visibility: hidden;
                position: absolute;
                font-size: 13px;
                padding: 12px 20px;
            }
            
            .new-banner {
            background:white;
        }
            
            .carousel-nav {
                display: none;
            }
        }

/* 文章区域 */
        .new-banner {
            height: 100vh;
            background: url('/images/bg-3_5832007.jpg') no-repeat center center/cover;
            position: relative;
            /*display: flex;*/
            /*align-items: flex-end;*/
            justify-content: center;
            
            
        }
        .container-new {
            background: #FFFFFF;
            max-width: 1000px;
            margin:0 auto;
            top:20px;
        }
        
        .section-header {
            margin:20px;
            text-align: center;
            color: black;
            padding: 15px 20px;
            font-size: 1.5rem;
        }
        
        .content-wrapper {
            display: flex;
            padding: 20px;
        }
        
        .news-section {
            flex: 3;
            padding-right: 30px;
            border-right: 1px solid #eee;
        }
        
        .server-section {
            flex: 1;
            padding-left: 30px;
        }
        
        .tabs {
            display: flex;
            background: #f0f4f8;
            border-radius: 6px;
            margin-bottom: 20px;
        }
        
        .tab {
            padding: 12px 25px;
            cursor: pointer;
            font-weight: 500;
            border-bottom: 3px solid transparent;
            transition: all 0.3s ease;
        }
        
        .tab.active {
            border-bottom: 3px solid #2575fc;
            background: white;
            color: #2575fc;
            border-radius: 6px 6px 0 0;
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        .article-list {
            
            list-style: none;
        }
        
        .article-item {
            padding: 15px 0;
            border-bottom: 1px solid #eee;
            transition: background-color 0.2s;
        }
        
        .article-item:hover {
            background-color: #f8fafd;
            cursor: pointer;
        }
        
        .article-title {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
            font-weight: 500;
        }
        
        .article-prefix {
            display: inline-block;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 0.85em;
            margin-right: 8px;
        }
        
        .guide .article-prefix {
            background-color: #e6f7ff;
            color: #1890ff;
        }
        
        .announcement .article-prefix {
            background-color: #f6ffed;
            color: #52c41a;
        }
        
        .article-date {
            right: 0;
            color: #888;
            font-size: 0.9em;
            white-space: nowrap;
        }
        
        .article-preview {
            color: #666;
            font-size: 0.95em;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        
        .view-more {
            display: block;
            margin-top: 15px;
            padding: 8px 15px;
            background: #f0f4f8;
            border-radius: 4px;
            text-align: center;
            font-weight: 500;
            color: #2575fc;
            transition: background-color 0.3s;
        }
        
        .view-more:hover {
            background: #e0e8f0;
            text-decoration: none;
        }
        
        .server-section h3 {
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #eee;
            color: #444;
        }
        
        .server-table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .server-table th {
            background: #f0f4f8;
            padding: 12px 15px;
            text-align: left;
            font-weight: 500;
            color: #666;
        }
        
        .server-table td {
            padding: 12px 15px;
            border-bottom: 1px solid #eee;
        }
        
        .server-table tr:last-child td {
            border-bottom: none;
        }
        
        .server-name {
            font-weight: 500;
        }
        
        .server-time {
            color: #666;
            font-size: 0.9em;
        }
        
        @media (max-width: 768px) {
            .content-wrapper {
                flex-direction: column;
            }
            
            .news-section, .server-section {
                width: 100%;
                padding: 0;
                border: none;
            }
            
            .server-section {
                margin-top: 30px;
                padding-top: 20px;
                border-top: 1px solid #eee;
            }
        }

/* 截图轮播 */
.screenshots {
    width: 100%;
    height:100%;
            background: url('/images/bg-4_6f07e43.jpg') no-repeat center center/cover;
            position: relative;
            /*display: flex;*/
            /*align-items: flex-end;*/
            justify-content: center;
            top: -30px;
}

.screenshot-carousel {
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    top: -10px;
}

.section-title{
    margin-top:0px;
    text-align: center;
    text-size:2em bold;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
}

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

.carousel-prev, 
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* 底部样式 */
.footer {
    background-color: var(--footer-bg);
    padding: 40px 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.link-group h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.link-group h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.link-group a {
    display: block;
    margin-bottom: 10px;
    color: var(--text-color);
    text-decoration: none;
}

.link-group a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* 移动端底部导航 */
.mobile-bottom-nav {
    display: none;
    background-color: var(--header-bg);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-bottom-nav a {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-bottom-nav a i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.mobile-bottom-nav a.active {
    color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .banner-overlay .container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .articles-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .pc-nav {
        display: none;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    .game-banner {
        height: 60vh;
    }
    
    .download-buttons {
        flex-direction: column;
        width: 50%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .carousel-item img {
        height: 220px;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    .article-card {
        padding: 8px;
    }
    
    .article-card img {
        width: 40%;
        height: 80px;
        margin-right: 5px;
    }
    
    .article-info {
        min-height: 60px;
    }
    
    .article-info h3 {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
    }
    
    .article-preview {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
    }
    
    .read-more {
        padding: 3px 8px;
        font-size: 0.7rem;
    }
    
    .footer {
        padding-bottom: 100px;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .link-group {
        flex: 0 0 calc(50% - 15px); /* 两列布局，减去间隙 */
        margin-bottom: 0;
        text-align: left;
    }
    
    .link-group h3 {
        padding-bottom: 5px;
        margin-bottom: 10px;
    }
    
    .link-group a {
        display: inline-block;
        margin: 0 5px 5px;
    }
    
    .social-links i {
        margin-left: 10px;
        margin-top: 10px;
    }
    
    /* 如果希望单行横排所有链接（不分组） */
    /*
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .link-group {
        display: contents; /* 取消分组容器 */
    }
    
    /*.link-group h3 {*/
        /*display: none; /* 隐藏分组标题 */
    /*}*/
    
    .link-group a {
        margin: 0 0px;
        white-space: nowrap;
    }
    */
}

@media (max-width: 576px) {
    .articles-container {
        grid-template-columns: 1fr;
    }
    
    .carousel-item img {
        height: 200px;
    }
    
    .article-meta {
    display: flex;
    gap: 15px;
    font-size: 0.4rem;
    color: #777;
    margin-bottom: 0px;
    }
}

/* 游戏攻略列表页 */
.page-title {
    text-align: center;
    margin: 30px 0;
    font-size: 1.5rem;
}

.articles-list {
    margin-bottom: 0px;
}

.article-item {
    display: flex;
    padding: 0px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s;
    margin: 0px;
    flex-wrap: wrap;
}

.article-item:hover {
    background-color: rgba(0,0,0,0.03);
}

.article-cover {
    flex: 0 0 100px;
    margin-right: 0px;
}

.article-cover img {
    width: 130px;
    height: 90px;
    object-fit: cover;
    border-radius: 2px;
}

.article-info {
    font-size: 1rem;
    flex: 1;
}

.article-info h3 {
    margin: 0 0 0px;
    font-size: 1rem;
}

.article-preview {
    font-size: 0.9rem;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 0.3rem;
    color: #777;
    margin-bottom: 0px;
}

.no-articles {
    text-align: center;
    padding: 30px;
    color: #777;
}

/* 文章详情页 */
.main-content{
    margin-top: 0px;
}

.back-button {
    display: inline-block;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-decoration: none;
}

.article-title {
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    margin-bottom: 25px;
    color: #777;
    gap: 15px;
    font-size: 0.95rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
}

/* 点赞按钮 */
.like-button-container {
    text-align: center;
    margin: 30px 0;
}

.like-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s, background-color 0.2s;
}

.like-button:hover {
    transform: scale(1.05);
}

.like-button.liked {
    background-color: #e74c3c;
}

.like-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.like-button i {
    margin-bottom: 5px;
}

#like-count {
    font-size: 0.8rem;
}

/* 评论区域 */
.comments-section {
    margin-top: 50px;
}

.comment-form {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.comments-list {
    margin-top: 20px;
}

.comment {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.comment-content {
    margin-bottom: 10px;
}

.reply-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
}

.alert {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* 礼包详情页特定样式 */
.gift-exchange {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.gift-exchange h3 {
    margin-bottom: 15px;
    color: #f39c12;
}

.gift-code {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 3px;
    color: #e74c3c;
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 5px;
    font-family: monospace;
}

.copy-btn {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, background-color 0.2s;
}

.copy-btn:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
}

.copy-btn i {
    font-size: 1.2rem;
}

        /* 动画效果 */
        @keyframes scan {
            0% { transform: rotate(30deg) translate(-50%, -50%); }
            100% { transform: rotate(30deg) translate(50%, 50%); }
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        
        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(78, 158, 255, 0.5); }
            70% { box-shadow: 0 0 0 15px rgba(78, 158, 255, 0); }
            100% { box-shadow: 0 0 0 0 rgba(78, 158, 255, 0); }
        }