/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*!* 强制统一所有图片尺寸 *!*/
img:not(.nav-logo img) {
    width: 400px !important;
    height: 250px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #00b7ee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo img {
    height: 60px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #007acc;
    background-color: #f0f8ff;
}

/* 主要内容区域 */
.main-content {
    min-height: calc(100vh - 140px);
    padding: 20px 0;
}

/* 轮播图区域 */
.banner-section {
    background: linear-gradient(135deg, #00b7ee 0%, #00a0e9 100%);
    padding: 40px 0;
    margin-bottom: 40px;
    min-height: 400px;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.banner-slider {
    position: relative;
    height: 320px;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
}

.banner-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease;
    background: rgba(0, 0, 0, 0.1);
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
}

.banner-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.banner-btn {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.banner-image {
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
}

.banner-image img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}


.placeholder-image {
    /*background: #ddd;*/
    margin: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 500;
    width: 400px;
    height: 200px;
    overflow: hidden;
}


.placeholder-image.large,
.placeholder-image.medium {
    width: 400px !important;
    height: 200px !important;
}

.banner-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.8);
}

.indicator:hover {
    background: rgba(255,255,255,0.9);
    transform: scale(1.1);
}

.indicator.active {
    background: white;
    border-color: white;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(255,255,255,0.8);
}

/* 区块标题 */
.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 3px;
    background: #007acc;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* 导航栏logo不受影响 */
.nav-logo img {
    width: auto !important;
    height: 60px !important;
    border-radius: 0 !important;
}

/* 热门资讯区域 */
.hot-news-section {
    background: white;
    padding: 40px 0;
    margin-bottom: 40px;
    border-radius: 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-card.featured {
    grid-row: span 2;
}

.news-card.featured .news-image .placeholder-image,
.news-card .news-image .placeholder-image {
    padding: 10px;
    width: 100%;
    height: 100%;
    margin: 0;
}

.news-content {
    padding: 20px;
}

.news-category {
    background: #007acc;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 10px;
}

.news-content h3 {
    color: black;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.news-content h3 a:hover {
    color: #007acc;
}

.news-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4; /* 限制行数为4 */
    overflow: hidden;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

/* 游戏推荐区域 */
.recommend-section {
    background: white;
    padding: 40px 0;
    border-radius: 10px;
    margin-bottom: 40px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.game-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.game-card .game-image .placeholder-image {
    min-height: 180px;
}

.game-info {
    padding: 20px;
    text-align: center;
}

.game-info h3 {
    margin-bottom: 8px;
    color: #333;
}

.game-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.game-rating {
    color: #ffd700;
    font-size: 16px;
}

/* 查看更多按钮 */
.view-more {
    text-align: center;
}

.btn-more {
    display: inline-block;
    background: #007acc;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: #0066aa;
    transform: translateY(-2px);
}

/* 资讯列表页样式 */
.news-page {
    background: white;
    border-radius: 10px;
    padding: 20px 0;
}





/* 资讯列表 */
.news-list {
    margin-bottom: 40px;
}

.news-item {
    width: 1200px;
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}


.news-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.news-thumbnail {
    width: 400px;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.news-thumbnail .placeholder-image {
    width: 100%;
    height: 100%;
    min-height: auto;
    margin: 0;
}

.news-info {
    width: 700px !important;
    padding: 20px;
    flex: 1;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.news-item .news-category {
    background: #007acc;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.news-date {
    color: #999;
    font-size: 14px;
}

.news-info h2 {
    color: black;
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.4;
}

.news-info h2 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.news-info h2 a:hover {
    color: #007acc;
}

.news-summary {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4; /* 限制行数为4 */
    overflow: hidden;
}

.news-item .news-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #999;
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

/* 通用按钮样式 */
.pagination .page-btn,
.pagination .page-number {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

/* 页码数字按钮 */
.pagination .page-number {
    min-width: 40px;
    text-align: center;
}

/* 首页/尾页按钮 - 确保不会被误认为选中状态 */
.pagination .page-btn,
.pagination .page-btn.first-page,
.pagination .page-btn.prev,
.pagination .page-btn.next {
    background: #f8f9fa !important;
    color: #666 !important;
    font-weight: 500;
    border-color: #ddd !important;
}

/* 悬停效果 */
.pagination .page-btn:hover {
    background: #007acc !important;
    color: white !important;
    border-color: #007acc !important;
}

.pagination .page-number:hover:not(.active):not(.current-page) {
    background: #007acc;
    color: white;
    border-color: #007acc;
}


/* 禁用状态 */
.pagination .page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-btn:disabled:hover {
    background: white;
    color: #666;
    border-color: #ddd;
}

.page-dots {
    color: #999;
}

/* 分页选中状态 - 只有当前页面的span元素才显示为选中状态 */
.pagination span.page-number.active,
.pagination span.page-number.current-page {
    background: #007acc !important;
    color: white !important;
    border-color: #007acc !important;
    font-weight: bold !important;
    box-shadow: 0 2px 8px rgba(0, 122, 204, 0.3) !important;
    cursor: default !important;
}

/* 确保当前页码不受悬停影响 */
.pagination span.page-number.active:hover,
.pagination span.page-number.current-page:hover {
    background: #007acc !important;
    color: white !important;
    border-color: #007acc !important;
}

/* 资讯详情页样式 */
.news-detail-page {
    background: white;
    border-radius: 10px;
    padding: 20px 0;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #007acc;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
}

/* 文章内容 */
.article-content {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 20px;
}

.article-category {
    background: #007acc;
    color: white;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 15px;
}

.article-title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #333;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.article-image {
    margin: 30px 0;
    text-align: center;
}

.image-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-body h2 {
    font-size: 24px;
    margin: 30px 0 15px 0;
    color: #333;
    border-left: 4px solid #007acc;
    padding-left: 15px;
}

.article-body p {
    text-indent: 2ch;
    margin-bottom: 15px;
    line-height: 2.5;
}

.article-body p img{
    display: block;
    margin: auto;
}

.article-body ul {
    margin: 15px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body blockquote {
    background: #f8f9fa;
    border-left: 4px solid #007acc;
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
    border-radius: 0 5px 5px 0;
}

.article-quote {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
}

.article-quote p {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 15px;
}

.article-quote cite {
    font-size: 14px;
    opacity: 0.9;
}

/* 文章标签 */
.article-tags {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.tag {
    display: inline-block;
    background: #f5f5f5;
    color: #666;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #007acc;
    color: white;
    cursor: pointer;
}

/* 分享按钮 */
.article-share {
    margin: 20px 0;
    text-align: center;
}

.article-share span {
    margin-right: 15px;
    font-weight: 500;
}

.share-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.share-btn.weibo {
    background: #e6162d;
    color: white;
}

.share-btn.wechat {
    background: #1aad19;
    color: white;
}

.share-btn.qq {
    background: #12b7f5;
    color: white;
}

.share-btn.copy-link {
    background: #666;
    color: white;
}

.share-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* 相关文章 */
.related-articles {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.related-articles h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-item {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.related-image .placeholder-image {
    min-height: 120px;
}

.related-content {
    padding: 15px;
}

.related-content h4 {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-content h4 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: #007acc;
}

.related-date {
    font-size: 12px;
    color: #999;
}



/* 页脚样式 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }

    .nav-menu {
        gap: 15px;
        margin-top: 10px;
    }

    .banner-section {
        min-height: 350px;
    }

    .banner-slider {
        height: 280px;
    }

    .banner-slide {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }

    .banner-content h2 {
        font-size: 28px;
    }

    .banner-image img {
        height: 180px !important;
    }

    .news-card img,
    .news-item img,
    .banner-slide img,
    .placeholder-image img,
    .news-thumbnail img,
    .news-image img,
    .banner-image img,
    img:not(.nav-logo img) {
        width: 100% !important;
        height: 150px !important;
    }

    .banner-indicators {
        bottom: 10px;
        padding: 6px 10px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .game-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .news-item {
        flex-direction: column;
    }

    .news-thumbnail {
        width: 100%;
    }

    .article-content {
        padding: 20px;
        margin: 0 10px 20px 10px;
    }

    .article-title {
        font-size: 24px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .filter-tabs {
        flex-wrap: wrap;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container,
    .nav-container {
        padding: 0 15px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .banner-section {
        min-height: 300px;
    }

    .banner-slider {
        height: 240px;
    }

    .banner-slide {
        padding: 15px;
        gap: 15px;
    }

    .banner-content h2 {
        font-size: 24px;
    }

    .banner-image img {
        height: 140px !important;
    }

    .article-title {
        font-size: 20px;
    }

    .article-body h2 {
        font-size: 20px;
    }

    .news-card img,
    .news-item img,
    .banner-slide img,
    .placeholder-image img,
    .news-thumbnail img,
    .news-image img,
    .banner-image img,
    img:not(.nav-logo img) {
        width: 100% !important;
        height: 120px !important;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card,
.game-card,
.news-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #007acc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0066aa;
}
