* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    background: #f5f7fa;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

a:hover {
    color: #165DFF;
}

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

/* ========== 站点头部 ========== */
.site-header {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
}

/* 顶部信息栏 */
.top-header {
    background: #fff;
}

.top-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    gap: 20px;
}

.logo h1 {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.2;
}

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

.slogan {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 36px;
    font-family: "STKaiti", "KaiTi", serif;
    color: #c00;
    font-weight: bold;
    font-style: italic;
}

.slogan .line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff9999, #c00, #ff9999, transparent);
}

.search-box form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    width: 200px;
    padding: 8px 12px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-box button {
    width: 40px;
    border: none;
    background: #165DFF;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

/* 导航栏 */
.nav-bar {
    background: #c00;
}

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

.nav-item a {
    display: block;
    padding: 12px 22px;
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

.nav-item.active a,
.nav-item a:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px 0;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
    border-radius: 2px;
}

/* ========== 移动端导航 ========== */
.mobile-nav {
    display: none;
    background: #fff;
    border-top: 1px solid #eee;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav li.active a {
    color: #165DFF;
    border-left: 3px solid #165DFF;
    background: #F0F7FF;
}

/* ========== 主体区域 ========== */
.main {
    padding: 20px 0;
    min-height: calc(100vh - 200px);
}

/* ========== 首页主体轮播区 ========== */
.main-banner-section {
    margin-bottom: 25px;
}

.main-banner-wrap {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* 左侧轮播 */
.banner-box {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #ddd;
    height: 380px;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.banner-item.active {
    opacity: 1;
}

.banner-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.banner-placeholder {
    width: 100%;
    height: 380px;
    background: linear-gradient(135deg, #165DFF 0%, #4080FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.banner-text h2 {
    font-size: 18px;
    font-weight: 500;
}

.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    background: rgba(0,0,0,0.3);
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.banner-btn:hover {
    background: rgba(0,0,0,0.5);
}

.banner-btn.prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.banner-btn.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.banner-dots {
    position: absolute;
    bottom: 15px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dots .dot.active {
    background: #fff;
    width: 24px;
    border-radius: 5px;
}

/* 右侧新闻列表 */
.news-side {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.side-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #165DFF;
}

.side-title h3 {
    font-size: 18px;
    color: #165DFF;
    font-weight: 600;
}

.side-news-list {
    list-style: none;
    flex: 1;
    overflow-y: auto;
}

.side-news-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

.side-news-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.side-news-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.side-news-list .news-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.5;
}

.side-news-list .news-date {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

/* ========== 精彩推荐 ========== */
.recommend-section {
    margin-bottom: 25px;
}

.recommend-wrap {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.recommend-title {
    width: 50px;
    background: #165DFF;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    gap: 10px;
}

.recommend-title .icon {
    font-size: 20px;
}

.recommend-title p {
    writing-mode: vertical-rl;
    letter-spacing: 4px;
    font-size: 16px;
    font-weight: 500;
}

.recommend-slider {
    flex: 1;
    position: relative;
    padding: 20px;
    overflow: hidden;
}

.rec-list {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.rec-item {
    flex-shrink: 0;
    width: 25%;
    padding: 0 10px;
}

.rec-item a {
    display: block;
}

.rec-img {
    width: 100%;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.rec-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.rec-item:hover .rec-img img {
    transform: scale(1.05);
}

.rec-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f5ff;
}

.rec-title {
    font-size: 13px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rec-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 40px;
    background: rgba(22, 93, 255, 0.8);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
}

.rec-btn:hover {
    background: #165DFF;
}

.rec-btn.prev {
    left: 10px;
}

.rec-btn.next {
    right: 10px;
}

/* ========== 分类文章区块 ========== */
.section {
    margin-bottom: 25px;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.section-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(22, 93, 255, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0d307e;
}

.card-header h3 {
    font-size: 18px;
    color: #0d3aa3;
    font-weight: 600;
}

.more {
    font-size: 12px;
    color: #999;
    transition: color 0.3s;
}

.more:hover {
    color: #165DFF;
}

.article-list {
    list-style: none;
}

.article-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.article-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.article-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.article-list .title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.article-list .date {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

/* ========== 列表页 ========== */
.list-header {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.list-header h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #165DFF;
    font-weight: 600;
}

.breadcrumb {
    font-size: 13px;
    color: #999;
}

.breadcrumb a {
    color: #666;
}

.article-list-full ul {
    list-style: none;
}

.article-item {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.article-item:hover {
    box-shadow: 0 6px 16px rgba(22, 93, 255, 0.08);
}

.article-thumb {
    width: 200px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-item:hover .article-thumb img {
    transform: scale(1.05);
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #99b8ff;
    font-size: 14px;
}

.article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 500;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.cate-tag {
    color: #165DFF;
    background: #E8F3FF;
    padding: 2px 8px;
    border-radius: 4px;
}

.desc {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.page-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    transition: all 0.3s;
}

.page-btn:hover {
    border-color: #165DFF;
    color: #165DFF;
}

.page-btn.active {
    background: #165DFF;
    color: #fff;
    border-color: #165DFF;
}

.empty {
    text-align: center;
    padding: 60px 0;
    color: #999;
}

/* ========== 详情页 ========== */
.article-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.article-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-title {
    font-size: 26px;
    margin: 15px 0;
    line-height: 1.4;
    font-weight: 600;
}

.article-cover {
    margin-bottom: 25px;
    text-align: center;
}

.article-cover img {
    max-width: 100%;
    border-radius: 6px;
}

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

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.prev-next {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.prev-next span {
    color: #999;
    margin-right: 5px;
}

.media-type {
    padding: 2px 8px;
    background: #E8F3FF;
    color: #165DFF;
    border-radius: 4px;
    font-size: 12px;
}

/* ========== 底部 ========== */
.footer {
    background: #333;
    color: rgba(255,255,255,0.8);
    padding: 40px 0 20px;
    margin-top: 30px;
}

.footer-info {
    margin-bottom: 20px;
}

.footer-item h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.footer-item p {
    font-size: 13px;
    margin-bottom: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #fff;
}
.footer-links .link-list a {
    color: #fff; /* 纯白色文字 */
    font-size: 13px;
    transition: all 0.3s;
    white-space: nowrap;
}

.footer-links .link-list a:hover {
    color: #fff;
    text-decoration: underline; /* 悬浮时显示下划线，增强交互感 */
}
/* ========== 响应式适配 ========== */
@media (max-width: 992px) {
    .section-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-banner-wrap {
        grid-template-columns: 1fr;
    }
    
    .banner-box,
    .banner-img img,
    .banner-placeholder {
        height: 320px;
    }

    .slogan {
        font-size: 28px;
    }
    
    .slogan .line {
        width: 40px;
    }

    .rec-item {
        width: 33.33%;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .mobile-nav.show {
        display: block;
    }
    
    .top-header-inner {
        height: 70px;
    }
    
    .slogan {
        display: none;
    }
    
    .search-box {
        display: none;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .logo img {
        max-height: 45px;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-box,
    .banner-img img,
    .banner-placeholder {
        height: 220px;
    }
    
    .banner-text {
        padding: 15px;
    }
    
    .banner-text h2 {
        font-size: 15px;
    }
    
    .article-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-thumb {
        width: 100%;
        height: 180px;
    }
    
    .article-section {
        padding: 20px 15px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-content {
        font-size: 15px;
    }

    .recommend-title {
        width: 40px;
    }
    
    .recommend-title p {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .rec-item {
        width: 50%;
    }
    
    .rec-img {
        height: 100px;
    }
    /* 红色装饰通栏 */
/*.red-banner {
    margin-bottom: 25px; /* ✅ 在这里调整和下方板块的间距，单位px */
 /*   border-radius: 8px;
    overflow: hidden;
}

.red-banner-inner {
    height: 80px;
    background: linear-gradient(180deg, #d90000 0%, #b80000 100%);
    position: relative;
}

/* 金色烟花纹理效果 */
/*.red-banner-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(255,215,0,0.3) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.6;
}*/
/* 页脚主体布局 */
.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 25px;
}

.footer-links .link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
}

.footer-links .link-list a {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    transition: color 0.3s;
    white-space: nowrap;
}

.footer-links .link-list a:hover {
    color: #fff;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

}