/* 游戏新闻列表页面样式 - 绿色主题 */

/* 新闻页面布局 */
.newsListPage {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    width: 1480px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.newsListPage .center {
    flex: 1;
    width: 1080px;
    max-width: 1080px;
}

/* 新闻列表容器 */
.newsListContainer {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 页面标题 */
.pageTitle {
    background: #f8f9fa;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
}

.pageTitle h1 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* 新闻列表 */
.newsList {
    padding: 20px 30px;
}

/* 新闻项目 */
.newsItem {
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.newsItem:last-child {
    border-bottom: none;
}

.newsItem:hover {
    background: #f8f9fa;
    margin: 0 -30px;
    padding: 20px 30px;
    border-radius: 8px;
}

.newsLink {
    display: flex;
    text-decoration: none;
    color: inherit;
    gap: 20px;
}

/* 新闻图片 */
.newsImg {
    width: 280px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.newsImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.newsItem:hover .newsImg img {
    transform: scale(1.05);
}

/* 新闻内容 */
.newsContent {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsTitle {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.newsItem:hover .newsTitle {
    color: #03b752;
}

.newsDesc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.newsMeta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #999;
    margin: 5px 0;
}

.newsExcerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.readMore {
    margin-top: auto;
}

.readMoreLink {
    color: #03b752;
    font-size: 14px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.newsItem:hover .readMoreLink {
    color: #028a42;
}

/* 侧边栏 */
.newsSidebar {
    width: 380px;
    flex-shrink: 0;
}

/* 侧边栏盒子 */
.sidebarBox {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.boxTitle {
    background: #03b752;
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

/* 推荐阅读列表 */
.recommendedList,
.rankingList {
    padding: 15px;
}

.recommendedItem,
.rankingItem {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.recommendedItem:last-child,
.rankingItem:last-child {
    border-bottom: none;
}

.recommendedItem:hover,
.rankingItem:hover {
    background: #f8f9fa;
    margin: 0 -15px;
    padding: 10px 15px;
    border-radius: 6px;
}

.recommendedItem a,
.rankingItem a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.recommendedImg,
.rankingImg {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.recommendedImg img,
.rankingImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommendedItem:hover .recommendedImg img,
.rankingItem:hover .rankingImg img {
    transform: scale(1.1);
}

.recommendedInfo,
.rankingInfo {
    flex: 1;
    min-width: 0;
}

.recommendedInfo h5,
.rankingInfo h5 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.recommendedItem:hover .recommendedInfo h5,
.rankingItem:hover .rankingInfo h5 {
    color: #03b752;
}

.recommendedDate,
.rankingDate {
    font-size: 12px;
    color: #999;
}

/* 推荐下载列表 */
.downloadList {
    padding: 15px;
}

.downloadItem {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.downloadItem:last-child {
    border-bottom: none;
}

.downloadItem:hover {
    background: #f8f9fa;
    margin: 0 -15px;
    padding: 10px 15px;
    border-radius: 6px;
}

.downloadItem a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.downloadIcon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.downloadIcon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.downloadInfo {
    flex: 1;
    min-width: 0;
}

.downloadInfo h5 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.downloadItem:hover .downloadInfo h5 {
    color: #03b752;
}

.downloadMeta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.downloadVersion,
.downloadRating {
    font-size: 12px;
    color: #666;
}

.downloadRating {
    color: #ffa500;
}

/* 侧边栏广告 */
.sidebarAd {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebarAd img {
    width: 100%;
    height: auto;
    display: block;
}

/* 分页样式 */
.pageCode {
    padding: 30px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

/* 响应式设计 */
@media (max-width: 1480px) {
    .newsListPage {
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }
}

@media (max-width: 1200px) {
    .newsListPage {
        flex-direction: column;
        gap: 30px;
    }
    
    .newsListPage .center {
        width: 100%;
        max-width: none;
    }
    
    .newsSidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .newsLink {
        flex-direction: column;
        gap: 15px;
    }
    
    .newsImg {
        width: 100%;
        height: 200px;
    }
    
    .newsList {
        padding: 15px 20px;
    }
    
    .pageTitle {
        padding: 15px 20px;
    }
    
    .newsItem:hover {
        margin: 0 -20px;
        padding: 20px 20px;
    }
}

@media (max-width: 480px) {
    .newsList {
        padding: 15px;
    }
    
    .pageTitle {
        padding: 15px;
    }
    
    .pageTitle h1 {
        font-size: 20px;
    }
    
    .newsTitle {
        font-size: 18px;
    }
    
    .newsImg {
        height: 180px;
    }
    
    .newsItem:hover {
        margin: 0 -15px;
        padding: 20px 15px;
    }
    
    .newsSidebar {
        grid-template-columns: 1fr;
    }
} 