/* 基础样式 */
: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: 100px;
    height: 50px;
    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;
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color);
}

.download-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 移动端导航 */
.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: 80px;
    height: 47px;
    border-radius: 0px;
}

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

/* 游戏海报区域 */
.game-banner {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0));
    padding: 40px 0;
}

.banner-overlay .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.qrcode-section {
    text-align: center;
    color: white;
}

.qrcode-section img {
    width: 120px;
    height: 120px;
    background: white;
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.qrcode-section p {
    color:black;
}

.download-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.btn:hover {
    transform: translateY(-3px);
}

.android-btn {
    background-color: #3DDC84;
    color: #333;
}

.ios-btn {
    background-color: #007AFF;
    color: white;
}

/* 文章区域 */
.section-title {
    text-align: center;
    margin: 40px 0 30px;
    font-size: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

.articles-container {
    display: grid;
    grid-template-columns: 1fr; /* 改为单列布局 */
    gap: 15px;
}

.article-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    display: flex; /* 使用flex布局实现单行显示 */
    align-items: center;
    padding: 10px;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card img {
    width: 30%; /* 固定封面宽度 */
    height: 200px; /* 固定封面高度 */
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
    flex-shrink: 0; /* 防止图片被压缩 */
}

.article-info {
    flex: 1; /* 占据剩余空间 */
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px; /* 与图片高度一致 */
}

.article-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.article-preview {
    font-size: 1rem;
    color: #666;
    margin: 0 0 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.meta {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 0.8rem;
    margin-top: auto; /* 将元信息推到底部 */
}

.read-more {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    margin-left: 10px;
}

/* 类型标签 */
.article-card.guide .read-more { background-color: #27ae60; }
.article-card.announcement .read-more { background-color: #e74c3c; }
.article-card.gift .read-more { background-color: #f39c12; }

/* 截图轮播 */
.screenshots {
    padding: 0px 0px;
    margin:30px;
}

.screenshot-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

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

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

.carousel-item img {
    width: 100%;
    height: 600px;
    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;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    color: #777;
    font-size: 0.9rem;
}

.copyright .ca{
    text-decoration: none;
    color:#777;
}

/* 移动端底部导航 */
.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: 1rem;
        -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: 60px;
    }
    
    .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;
    }
}

/* 游戏攻略列表页 */
.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 {
    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.6rem;
    color: #777;
    margin-bottom: 0px;
}

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

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

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

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

.article-meta {
    margin-bottom: 25px;
    color: #777;
    display: flex;
    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;
}
