/* 全局基础设置 */
body {
    background-color: #f5f6f8 !important; /* 浅灰底色，让白色模块更凸显 */
    font-family: "Microsoft YaHei", Arial, sans-serif;
}
.wrap {
    width: 1200px;
    margin: 0 auto;
}

/* 模块通用标题 */
.index-title {
    margin: 0 0 20px;
    border-bottom: 2px solid #ececec;
    position: relative;
    padding-bottom: 10px;
}
.index-title .title h3 {
    font-size: 22px;
    color: #333;
    font-weight: bold;
    padding-left: 12px;
    border-left: 4px solid #ff2a00;
    line-height: 1.2;
    margin: 0;
}
.index-title .more_a {
    color: #888;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
    margin-top: 5px;
}
.index-title .more_a:hover { color: #ff2a00; }

/* 模块白底容器 (带安全护甲) */
.index-section {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: relative;
    z-index: 1;
}

/* ================= 1. 首屏区域 (焦点轮播 + 快讯) ================= */
.g-box-first {
    display: flex;
    justify-content: space-between;
    margin: 20px 0 25px;
}
/* 左侧大图 */
.g-box-first-left {
    width: 65%; 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    height: 380px;
}
.g-box-first-left .banner-slide { width: 100%; height: 380px; }
.g-box-first-left img { width: 100%; height: 100%; object-fit: cover; }

/* 右侧快讯 */
.g-box-first-right {
    width: 33%; 
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.g-box-first-right .g-hotnews-title {
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 15px;
    color: #ff2a00;
}
.g-hotnews-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 15px;
}
.g-hotnews-list li:last-child { border: none; 
        border-bottom: 1px dashed #eee;
}
.g-hotnews-list li a {
    color: #444;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}
.g-hotnews-list li a:hover { color: #ff2a00; }

/* ================= 2. 杂志风资讯区 ================= */
.g-box-magazine {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}
/* 头条 */
.g-box-magazine .g-headline {
    width: 48%;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    display: block;
    height: 300px;
}
.g-box-magazine .g-headline img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.g-box-magazine .g-headline:hover img { transform: scale(1.03); }
.g-box-magazine .g-headline .g-headline-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff;
    font-size: 20px;
    padding: 40px 20px 15px;
    box-sizing: border-box;
    margin: 0;
    font-weight: normal;
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 右侧列表 */
.g-box-list-right { width: 48%; }
.g-box-list-right li {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.g-box-list-right li a {
    color: #333;
    font-size: 16px;
    text-decoration: none;
    width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.g-box-list-right li a:hover { color: #ff2a00; }
.g-box-list-right li span { color: #aaa; font-size: 13px; }

/* 下方三图 */
.g-box-grid-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px dashed #eee;
    padding-top: 20px;
}
.g-box-grid-bottom .g-small-card { width: 31%; }
.g-box-grid-bottom .g-small-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
}
.g-box-grid-bottom .g-small-card h4 { font-size: 16px; margin: 10px 0 5px; line-height: 1.4; }
.g-box-grid-bottom .g-small-card h4 a { color: #333; text-decoration: none; }
.g-box-grid-bottom .g-small-card h4 a:hover { color: #ff2a00; }
.g-box-grid-bottom .g-small-card p { color: #777; font-size: 13px; line-height: 1.5; }

/* ================= 3. 两列宽卡 (攻略/推荐/视频) ================= */
.g-box-grid2 { display: flex; flex-wrap: wrap; justify-content: space-between; }
.g-box-grid2 .g-card {
    width: 48.5%;
    display: flex;
    margin-bottom: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}
.g-box-grid2 .g-card:last-child, .g-box-grid2 .g-card:nth-last-child(2) { margin-bottom: 0; }
.g-box-grid2 .g-card:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.g-box-grid2 .g-card img { width: 220px; height: 140px; object-fit: cover; }
.g-box-grid2 .g-card .g-info { padding: 15px; flex: 1; display: flex; flex-direction: column; justify-content: center;}
.g-box-grid2 .g-card h4 { font-size: 18px; margin-bottom: 10px; line-height: 1.4; }
.g-box-grid2 .g-card h4 a { color: #222; text-decoration: none; }
.g-box-grid2 .g-card h4 a:hover { color: #ff2a00; }
.g-box-grid2 .g-card p { color: #777; font-size: 14px; line-height: 1.6; }

/* ================= 4. 游戏测评卡片 ================= */
.g-review-box { display: flex; justify-content: space-between; }
.g-review-card { 
    width: 23%; 
    background: #fff; 
    border-radius: 8px; 
    overflow: hidden; 
    transition: 0.3s; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); 
    border: 1px solid #f0f0f0;
    position: relative; 
}
.g-review-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.1); transform: translateY(-3px); }
.g-review-card .g-review-cover { position: relative; height: 180px; overflow: hidden;}
.g-review-card .g-review-cover img { width: 100%; height: 100%; object-fit: cover; }
.g-review-card .g-review-info { padding: 12px; display: flex; justify-content: space-between; align-items: center; }
.g-review-card h3 { font-size: 15px; width: 75%; margin: 0;}
.g-review-card h3 a { color: #333; text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-review-card .g-review-score span { background: #ff2a00; color: #fff; font-weight: bold; font-size: 18px; padding: 2px 8px; border-radius: 4px; }
.g-review-card > p { padding: 0 12px 12px; font-size: 13px; color: #666; line-height: 1.5; height: 40px; overflow: hidden; margin: 0;}

/* ================= 5. 友情链接 ================= */
.g-friend-link { font-size: 14px; color: #666; line-height: 2.2; }
.g-friend-link a { margin-right: 15px; color: #777; text-decoration: none; }
.g-friend-link a:hover { color: #ff2a00; }