
/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    color: #333;
    line-height: 1.6;
}
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 主体容器 */
.wrap-1200 {
    width: 1200px;
    margin: 0 auto;
    position: relative;
    background: #fff;
    min-height: 100vh;
}

/* ========== 广告区域样式 ========== */
.ad-section {
    width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding-top: 10px;
}

.ad-item {
    position: relative;
    display: block;
    overflow: hidden;
}

.ad-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    padding: 3px 6px;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-weight: normal;
    letter-spacing: 0.5px;
    backdrop-filter: blur(2px);
    z-index: 10;
    pointer-events: none;  
    border-radius: 0 4px 0 0;
    box-shadow: none;
}

@supports not (backdrop-filter: blur(2px)) {
    .ad-badge {
        background: rgba(0, 0, 0, 0.65);
    }
}

/* 通栏广告 - 1200×125px */
.ad-full {
    width: 1200px;
    height: 125px;
    margin: 0 auto 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;  
}
.ad-full:last-child {
    margin-bottom: 0;
}
.ad-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========== 广告区域样式结束 ========== */

/* 头部样式 */
.index_head {
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    transition: all 0.2s ease;
}
.logo_area {
    display: flex;
    align-items: center;
    padding: 20px 0;
    width: 1200px;
    margin: 0 auto;
}
.logo-left {
    height: 50px;
    display: flex;
    align-items: center;
}
.logo-link {
    display: block;
    width: 180px;
    height: 40px;
    background: url('http://cms-bucket.ws.126.net/2026/0525/ba5d5973p00tfl54f000ic0007s0024c.png') no-repeat left center;
    background-size: contain;
    transition: transform 0.2s ease;
}
.logo-link:hover {
    transform: scale(1.03);
}

/* 主内容区 */
.main-content {
    display: flex;
    gap: 20px;
    margin: 20px 0 30px 0;
    padding: 0 20px;
}
.col-l {
    width: 860px;
}
.col-r {
    width: 300px;
}

/* ========== 焦点图区域 - 左右分栏：左侧大图 + 右侧标题/来源/时间/指示条 ========== */
.focus-area {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    height: 280px;
    position: relative;
}

/* 左侧图片区域 */
.focus-left {
    flex: 2;
    overflow: hidden;
    position: relative;
}

.focus-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.focus-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.focus-slide.active {
    opacity: 1;
    z-index: 1;
}

.focus-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.focus-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.focus-slide:hover img {
    transform: scale(1.03);
}

/* 右侧信息区域 */
.focus-right {
    flex: 1;
    padding: 24px 28px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    position: relative;
}

.focus-right-item {
    display: none;
    flex-direction: column;
    justify-content: center;
    animation: fadeInRight 0.4s ease;
}

.focus-right-item.active {
    display: flex;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.focus-right-title {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 16px;
}

.focus-right-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.focus-right-title a:hover {
    color: #ba2636;
}

.focus-right-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.focus-right-meta .source {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.focus-right-meta .time {
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 指示条 - 右下角横向短线 */
.focus-dots-bar {
    position: absolute;
    bottom: 15px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 6px;
}

.focus-dots-bar span {
    width: 24px;
    height: 3px;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.focus-dots-bar span.active {
    background: #ba2636;
    width: 32px;
}

.focus-dots-bar span:hover {
    background: #999;
}

/* ========== 焦点图区域结束 ========== */

/* 信息流模块样式 */
.s-yaowen {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.s-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5f5f5;
    position: relative;
}
.s-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #ba2636;
}
.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    min-height: 200px;
}
.news-item {
    display: flex;
    gap: 15px;
    transition: transform 0.2s ease;
    position: relative;
}
.news-item:hover {
    transform: translateX(5px);
}
.news-poster {
    flex-shrink: 0;
    width: 138px;
    height: 86px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.news-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.news-poster img:hover {
    transform: scale(1.08);
}
.news-detail {
    flex: 1;
    min-width: 0;
}
.news-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.4;
}
.news-title a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.news-title a:hover {
    color: #ba2636;
}
.news-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}
.news-info .source {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    color: #666;
}
.loading-tip {
    text-align: center;
    padding: 30px 0;
    color: #666;
    font-size: 15px;
    grid-column: 1 / -1;
}
.load-more-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    background: #f9f9f9;
    color: #666;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}
.load-more-btn:hover {
    background: #ba2636;
    color: white;
    border-color: #ba2636;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(186,38,54,0.3);
}
.load-more-tip {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 12px;
    grid-column: 1 / -1;
}

/* 右侧侧边栏样式 */
.sidebar .s-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}
.sidebar .s-sidebar:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.s-sidebar-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.s-sidebar-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}
.s-sidebar-title a:hover {
    color: #ba2636;
}
.red-circle {
    width: 6px;
    height: 6px;
    background: #ba2636;
    border-radius: 50%;
}

.side-card-overlay {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}
.side-card-overlay img {
    width: 100%;
    height: auto;
    display: block;
}
.side-card-overlay .overlay-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.side-card-overlay .overlay-title a {
    color: #fff;
    text-decoration: none;
}

.side-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.side-news-item-first {
    margin-bottom: 15px;
}
.side-news-item {
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.2s ease;
}
.side-news-item:hover {
    transform: translateX(4px);
}
.side-news-item a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}
.side-news-item a:hover {
    color: #ba2636;
}

/* 隐藏的数据容器 */
.hidden-data-container {
    display: none;
}

/* 右侧栏内嵌矩形广告 */
.sidebar-ad {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}
.sidebar-ad .ad-item {
    position: relative;
    display: block;
    width: 100%;
    background: #fff;
}
.sidebar-ad .ad-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
.sidebar-ad .ad-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    padding: 3px 6px;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-weight: normal;
    letter-spacing: 0.5px;
    backdrop-filter: blur(2px);
    z-index: 10;
    pointer-events: none;
    border-radius: 0 4px 0 0;
}
@supports not (backdrop-filter: blur(2px)) {
    .sidebar-ad .ad-badge {
        background: rgba(0, 0, 0, 0.65);
    }
}

/* 尾部样式 */
.index-footer {
    width: 100%;
    background-color: #f3f3f3;
    border-top: 1px solid #ccc;
}
.footer-main {
    width: 1200px;
    margin: 0 auto;
    background-color: #f3f3f3;
    position: relative;
    top: 0;
    left: 0;
    min-height: auto;
    padding: 20px 0;
}
