/* 导入公共样式 */
@import url('index.css');

/* 新闻页面专属样式 */
.banner {
    height: 400px;
}

.main-content {
    padding: 50px;
}

/* 新闻部分通用样式 */
.news-section {
    margin-bottom: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-section h2 {
    font-size: 36px;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.news-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #e6c068;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* 游戏新闻时间轴样式 */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e6c068;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
    padding-left: 100px;
}

.time-tag {
    position: absolute;
    left: 0;
    top: 0;
    background: #1a1a1a;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
}

.news-card img {
    width: 200px;
    height: 150px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    flex: 1;
}

.news-content h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.news-type {
    display: inline-block;
    background: #e6c068;
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 10px;
}

.news-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: #e6c068;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.read-more:hover {
    color: #c4a050;
}

/* 分页样式 */
.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: #e6c068;
    color: #fff;
    border-color: #e6c068;
}

/* 游戏活动样式 */
.event-container {
    display: block;
    overflow: hidden;
}

.event-category {
    width: 31.33%;
    float: left;
    margin: 0 1%;
}

.event-category h3 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
}

.event-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-info {
    padding: 20px;
}

.event-info h4 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.event-time {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.event-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.event-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    color: #fff;
}

.event-status.active {
    background: #4CAF50;
}

.event-status.upcoming {
    background: #2196F3;
}

.event-status.ended {
    background: #9E9E9E;
}

/* 游戏攻略样式 */
.guide-grid {
    display: block;
    overflow: hidden;
}

.guide-item {
    width: 31.33%;
    float: left;
    margin: 0 1%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.guide-item:hover {
    transform: translateY(-5px);
}

.guide-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.guide-content {
    padding: 20px;
}

.guide-content h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.guide-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.guide-topics {
    list-style: none;
    margin-bottom: 15px;
}

.guide-topics li {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.guide-topics li::before {
    content: '•';
    color: #e6c068;
    position: absolute;
    left: 0;
    top: 0;
}

/* 社区互动样式 */
.community-grid {
    display: block;
    overflow: hidden;
}

.community-item {
    width: 31.33%;
    float: left;
    margin: 0 1%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.community-item:hover {
    transform: translateY(-5px);
}

.community-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.community-content {
    padding: 20px;
}

.community-content h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.community-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.work-preview,
.video-preview {
    display: block;
    overflow: hidden;
    margin-bottom: 15px;
}

.work-preview img,
.video-preview img {
    width: 31.33%;
    height: 80px;
    float: left;
    margin: 0 1%;
    border-radius: 5px;
    object-fit: cover;
}

.story-preview {
    margin-bottom: 15px;
}

.story-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.story-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.story-item h4 {
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.story-item p {
    font-size: 12px;
    color: #666;
    margin-bottom: 0;
}

.view-more {
    display: inline-block;
    color: #e6c068;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.view-more:hover {
    color: #c4a050;
}

/* 响应式布局 */
@media screen and (max-width: 1200px) {
    .main-content {
        width: 95%;
        padding: 20px;
    }

    .news-card img {
        width: 150px;
    }

    .event-category,
    .guide-item,
    .community-item {
        width: 48%;
        margin: 1%;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 768px) {
    .timeline-item {
        padding-left: 70px;
    }

    .news-card {
        flex-direction: column;
    }

    .news-card img {
        width: 100%;
        height: 200px;
    }

    .event-category,
    .guide-item,
    .community-item {
        width: 98%;
        margin: 1%;
        margin-bottom: 20px;
    }

    .work-preview img,
    .video-preview img {
        height: 60px;
    }
} 