/* ========================================
   辉县市城北初级中学 - 主样式表
   ======================================== */

/* ========== 重置与基础 ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    background: #f5f7fa;
    -webkit-font-smoothing: antialiased;
}
a { color: #1a3a6c; text-decoration: none; transition: color .3s; }
a:hover { color: #c8102e; }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.4; color: #1a3a6c; }
h1 { font-size: 28px; } h2 { font-size: 24px; } h3 { font-size: 20px; }
h4 { font-size: 18px; } h5 { font-size: 16px; } h6 { font-size: 14px; }
p { margin-bottom: 12px; }
input, textarea, select, button { font-family: inherit; font-size: inherit; outline: none; }
table { border-collapse: collapse; width: 100%; }
.clearfix::after { content: ''; display: block; clear: both; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.fl { float: left; } .fr { float: right; }
.mt-10 { margin-top: 10px; } .mt-20 { margin-top: 20px; } .mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; } .mb-20 { margin-bottom: 20px; } .mb-30 { margin-bottom: 30px; }
.p-10 { padding: 10px; } .p-20 { padding: 20px; } .p-30 { padding: 30px; }
.hidden { display: none !important; }
.show { display: block !important; }

/* ========== 顶部信息栏 ========== */
.top-bar {
    background: #142952;
    color: #a0b4d0;
    font-size: 13px;
    line-height: 36px;
    border-bottom: 1px solid #1e3a6e;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar .top-left span { margin-right: 20px; }
.top-bar .top-left i { margin-right: 5px; color: #4a90d9; }
.top-bar .top-right a { color: #a0b4d0; margin-left: 15px; }
.top-bar .top-right a:hover { color: #fff; }

/* ========== 头部 ========== */
.header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 90px; }
.logo { display: flex; align-items: center; }
.logo img { width: 60px; height: 60px; margin-right: 15px; border-radius: 50%; }
.logo .logo-text h1 { font-size: 22px; color: #1a3a6c; letter-spacing: 2px; margin: 0; }
.logo .logo-text p { font-size: 12px; color: #888; letter-spacing: 3px; margin: 2px 0 0; }
.header-search { display: flex; align-items: center; }
.header-search input {
    width: 220px; height: 38px; padding: 0 15px;
    border: 1px solid #ddd; border-radius: 20px 0 0 20px;
    font-size: 14px; transition: border-color .3s;
}
.header-search input:focus { border-color: #1a3a6c; }
.header-search button {
    width: 50px; height: 38px; background: #1a3a6c; color: #fff;
    border: none; border-radius: 0 20px 20px 0; cursor: pointer; transition: background .3s;
}
.header-search button:hover { background: #c8102e; }

/* ========== 主导航 ========== */
.main-nav { background: #1a3a6c; }
.main-nav .container { display: flex; position: relative; }
.main-nav ul { display: flex; flex: 1; }
.main-nav > .container > ul > li { position: relative; }
.main-nav > .container > ul > li > a {
    white-space: nowrap;
    display: block; padding: 0 22px; line-height: 52px;
    color: #fff; font-size: 16px; letter-spacing: 1px;
    transition: background .3s;
}
.main-nav > .container > ul > li > a:hover,
.main-nav > .container > ul > li.active > a {
    background: #c8102e; color: #fff;
}
.main-nav .submenu {
    position: absolute; top: 100%; left: 0; min-width: 180px;
    background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.12);
    border-top: 3px solid #c8102e; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: all .3s; z-index: 999;
}
.main-nav li:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .submenu li { border-bottom: 1px solid #f0f0f0; }
.main-nav .submenu li:last-child { border-bottom: none; }
.main-nav .submenu a {
    display: block; padding: 12px 20px; color: #333; font-size: 14px;
    transition: all .3s;
}
.main-nav .submenu a:hover { background: #f5f7fa; color: #c8102e; padding-left: 25px; }

/* ========== 轮播图 ========== */
.banner { position: relative; height: 450px; overflow: hidden; }
.banner .banner-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1s; background-size: cover; background-position: center;
}
.banner .banner-slide.active { opacity: 1; }
.banner .banner-slide::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26,58,108,.7), rgba(200,16,46,.4));
}
.banner .banner-content {
    position: relative; z-index: 2; max-width: 1200px; margin: 0 auto;
    padding: 0 15px; height: 100%; display: flex; flex-direction: column;
    justify-content: center; color: #fff;
}
.banner .banner-content h2 { font-size: 42px; color: #fff; margin-bottom: 15px; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.banner .banner-content p { font-size: 20px; opacity: .95; margin-bottom: 25px; }
.banner .banner-content .btn { display: inline-block; padding: 12px 35px; background: #c8102e; color: #fff; border-radius: 30px; font-size: 16px; transition: all .3s; }
.banner .banner-content .btn:hover { background: #fff; color: #c8102e; transform: translateY(-2px); }
.banner .banner-dots { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.banner .banner-dots span {
    width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.4);
    cursor: pointer; transition: all .3s;
}
.banner .banner-dots span.active { background: #fff; width: 30px; border-radius: 6px; }
.banner .banner-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 50px; height: 50px; background: rgba(0,0,0,.3); color: #fff;
    border: none; border-radius: 50%; font-size: 20px; cursor: pointer;
    transition: background .3s; display: flex; align-items: center; justify-content: center;
}
.banner .banner-arrow:hover { background: #c8102e; }
.banner .banner-prev { left: 30px; }
.banner .banner-next { right: 30px; }

/* ========== 通用区块 ========== */
.section { padding: 50px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 30px; color: #1a3a6c; margin-bottom: 10px; }
.section-title .en { font-size: 14px; color: #999; letter-spacing: 4px; text-transform: uppercase; }
.section-title .line { width: 60px; height: 3px; background: #c8102e; margin: 15px auto 0; }

/* ========== 新闻列表 ========== */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.news-card {
    background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: all .3s;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,.12); }
.news-card .news-img { height: 180px; overflow: hidden; background: #eee; }
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-img img { transform: scale(1.08); }
.news-card .news-body { padding: 20px; }
.news-card .news-tag {
    display: inline-block; padding: 3px 12px; background: #e8f0fe; color: #1a3a6c;
    border-radius: 4px; font-size: 12px; margin-bottom: 10px;
}
.news-card h3 { font-size: 17px; margin-bottom: 10px; line-height: 1.5; }
.news-card h3 a { color: #333; }
.news-card h3 a:hover { color: #c8102e; }
.news-card .news-meta { font-size: 13px; color: #999; display: flex; gap: 15px; }
.news-card .news-meta span { display: flex; align-items: center; }

/* ========== 新闻列表页 ========== */
.news-list { background: #fff; border-radius: 10px; padding: 25px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.news-list-item {
    display: flex; padding: 18px 0; border-bottom: 1px solid #f0f0f0;
    transition: background .3s;
}
.news-list-item:last-child { border-bottom: none; }
.news-list-item:hover { background: #fafbfc; }
.news-list-item .date-box {
    width: 70px; text-align: center; margin-right: 20px; flex-shrink: 0;
    background: #f5f7fa; border-radius: 8px; padding: 10px 0;
}
.news-list-item .date-box .day { font-size: 24px; font-weight: 700; color: #1a3a6c; }
.news-list-item .date-box .month { font-size: 12px; color: #999; }
.news-list-item .news-info { flex: 1; }
.news-list-item h3 { font-size: 17px; margin-bottom: 8px; }
.news-list-item h3 a { color: #333; }
.news-list-item h3 a:hover { color: #c8102e; }
.news-list-item p { font-size: 14px; color: #888; margin-bottom: 8px; }
.news-list-item .meta { font-size: 13px; color: #aaa; }
.news-list-item .meta span { margin-right: 15px; }

/* ========== 分页 ========== */
.pagination { text-align: center; margin-top: 30px; }
.pagination ul { display: inline-flex; gap: 8px; }
.pagination li a, .pagination li span {
    display: inline-block; min-width: 38px; height: 38px; line-height: 38px;
    padding: 0 12px; text-align: center; border: 1px solid #ddd;
    border-radius: 6px; color: #666; transition: all .3s; font-size: 14px;
}
.pagination li a:hover { border-color: #1a3a6c; color: #1a3a6c; }
.pagination li.active span { background: #1a3a6c; color: #fff; border-color: #1a3a6c; }

/* ========== 侧边栏 ========== */
.sidebar { width: 320px; flex-shrink: 0; }
.sidebar-widget {
    background: #fff; border-radius: 10px; padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06); margin-bottom: 25px;
}
.sidebar-widget .widget-title {
    font-size: 18px; color: #1a3a6c; margin-bottom: 18px;
    padding-bottom: 12px; border-bottom: 2px solid #1a3a6c; position: relative;
}
.sidebar-widget .widget-title::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 50px; height: 2px; background: #c8102e;
}
.hot-news li { padding: 12px 0; border-bottom: 1px dashed #eee; display: flex; align-items: flex-start; }
.hot-news li:last-child { border-bottom: none; }
.hot-news .rank {
    width: 22px; height: 22px; line-height: 22px; text-align: center;
    background: #ccc; color: #fff; border-radius: 4px; font-size: 12px;
    margin-right: 10px; flex-shrink: 0; margin-top: 2px;
}
.hot-news li:nth-child(1) .rank { background: #c8102e; }
.hot-news li:nth-child(2) .rank { background: #e67e22; }
.hot-news li:nth-child(3) .rank { background: #f1c40f; }
.hot-news a { font-size: 14px; color: #555; line-height: 1.5; flex: 1; }
.hot-news a:hover { color: #c8102e; }

/* ========== 教师卡片 ========== */
.teacher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.teacher-card {
    background: #fff; border-radius: 10px; overflow: hidden; text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: all .3s;
}
.teacher-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,.12); }
.teacher-card .teacher-photo { height: 220px; overflow: hidden; background: #eee; }
.teacher-card .teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-card .teacher-info { padding: 18px 15px; }
.teacher-card h4 { font-size: 17px; color: #1a3a6c; margin-bottom: 5px; }
.teacher-card .subject { font-size: 13px; color: #c8102e; margin-bottom: 8px; }
.teacher-card .title { font-size: 13px; color: #888; }

/* ========== 面包屑 ========== */
.breadcrumb {
    background: #fff; padding: 15px 0; border-bottom: 1px solid #eee;
    font-size: 14px; color: #888;
}
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #c8102e; }
.breadcrumb span { margin: 0 8px; color: #ccc; }
.breadcrumb .current { color: #1a3a6c; }

/* ========== 页面头部横幅 ========== */
.page-banner {
    height: 220px; background: linear-gradient(135deg, #1a3a6c, #2c5aa0);
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-align: center; position: relative; overflow: hidden;
}
.page-banner::before {
    content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px;
    background: rgba(255,255,255,.05); border-radius: 50%;
}
.page-banner h1 { color: #fff; font-size: 32px; margin-bottom: 10px; position: relative; }
.page-banner p { font-size: 16px; opacity: .85; position: relative; }

/* ========== 文章详情 ========== */
.article { background: #fff; border-radius: 10px; padding: 40px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.article-header { text-align: center; margin-bottom: 30px; padding-bottom: 25px; border-bottom: 1px solid #eee; }
.article-header h1 { font-size: 26px; color: #1a3a6c; margin-bottom: 15px; line-height: 1.5; }
.article-header .article-meta { font-size: 14px; color: #999; }
.article-header .article-meta span { margin: 0 12px; }
.article-content { font-size: 16px; line-height: 2; color: #444; }
.article-content p { margin-bottom: 18px; text-indent: 2em; }
.article-content img { max-width: 100%; border-radius: 8px; margin: 15px 0; }
.article-content h2, .article-content h3 { margin: 25px 0 15px; }
.article-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; display: flex; justify-content: space-between; }
.article-footer .tags a {
    display: inline-block; padding: 4px 12px; background: #f5f7fa;
    border-radius: 4px; font-size: 13px; margin-right: 8px; color: #666;
}

/* ========== 表单 ========== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #444; }
.form-group label .required { color: #c8102e; margin-left: 3px; }
.form-control {
    width: 100%; padding: 10px 15px; border: 1px solid #ddd; border-radius: 6px;
    font-size: 14px; transition: border-color .3s, box-shadow .3s;
}
.form-control:focus { border-color: #1a3a6c; box-shadow: 0 0 0 3px rgba(26,58,108,.1); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 35px; }
.btn {
    display: inline-block; padding: 10px 28px; border: none; border-radius: 6px;
    font-size: 15px; cursor: pointer; transition: all .3s; text-align: center;
}
.btn-primary { background: #1a3a6c; color: #fff; }
.btn-primary:hover { background: #c8102e; color: #fff; }
.btn-danger { background: #c8102e; color: #fff; }
.btn-danger:hover { background: #a00d25; color: #fff; }
.btn-success { background: #67c23a; color: #fff; }
.btn-success:hover { background: #529b2e; color: #fff; }
.btn-default { background: #f5f7fa; color: #666; border: 1px solid #ddd; }
.btn-default:hover { background: #e8ecf1; color: #333; }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 14px 40px; font-size: 17px; }
.btn-block { display: block; width: 100%; }

/* ========== 提示框 ========== */
.alert { padding: 15px 20px; border-radius: 6px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #f0f9eb; color: #67c23a; border: 1px solid #c2e7b0; }
.alert-error { background: #fef0f0; color: #c8102e; border: 1px solid #fbc4c4; }
.alert-warning { background: #fdf6ec; color: #e6a23c; border: 1px solid #f5dab1; }
.alert-info { background: #ecf5ff; color: #409eff; border: 1px solid #b3d8ff; }

/* ========== 友情链接 ========== */
.links { background: #fff; padding: 30px 0; border-top: 1px solid #eee; }
.links .container { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; }
.links .links-title { font-size: 15px; color: #1a3a6c; font-weight: 600; margin-right: 10px; }
.links a { font-size: 14px; color: #666; padding: 5px 12px; border-radius: 4px; transition: all .3s; }
.links a:hover { background: #f5f7fa; color: #c8102e; }

/* ========== 底部 ========== */
.footer { background: #142952; color: #a0b4d0; padding: 50px 0 0; }
.footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .footer-about h3 { color: #fff; font-size: 20px; margin-bottom: 15px; }
.footer .footer-about p { font-size: 14px; line-height: 2; color: #8a9bb5; }
.footer .footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer .footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: #c8102e; }
.footer .footer-col ul li { margin-bottom: 10px; }
.footer .footer-col a { color: #8a9bb5; font-size: 14px; transition: color .3s; }
.footer .footer-col a:hover { color: #fff; }
.footer .footer-contact li { display: flex; align-items: flex-start; margin-bottom: 12px; font-size: 14px; color: #8a9bb5; }
.footer .footer-contact i { margin-right: 10px; color: #4a90d9; margin-top: 3px; }
.footer .footer-bottom {
    border-top: 1px solid #1e3a6e; padding: 20px 0; text-align: center;
    font-size: 13px; color: #6a7b95; line-height: 2;
}
.footer .footer-bottom a { color: #8a9bb5; }
.footer .footer-bottom a:hover { color: #fff; }

/* ========== 回到顶部 ========== */
.back-top {
    position: fixed; right: 30px; bottom: 50px; width: 45px; height: 45px;
    background: #1a3a6c; color: #fff; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; cursor: pointer;
    opacity: 0; visibility: hidden; transition: all .3s; z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: #c8102e; transform: translateY(-3px); }

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .container { padding: 0 12px; }
    .header .container { height: 70px; }
    .logo img { width: 45px; height: 45px; }
    .logo .logo-text h1 { font-size: 18px; }
    .logo .logo-text p { font-size: 10px; }
    .header-search { display: none; }
    .main-nav > .container > ul > li > a { padding: 0 14px; font-size: 14px; }
    white-space: nowrap;
    .banner { height: 300px; }
    .banner .banner-content h2 { font-size: 28px; }
    .banner .banner-content p { font-size: 16px; }
    .news-grid { grid-template-columns: 1fr; }
    .teacher-grid { grid-template-columns: repeat(2, 1fr); }
    .footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
    .sidebar { width: 100%; }
}
@media (max-width: 768px) {
    .top-bar { display: none; }
    .main-nav { overflow-x: auto; }
    .main-nav > .container > ul > li > a { padding: 0 10px; font-size: 13px; line-height: 44px; }
    white-space: nowrap;
    .banner { height: 220px; }
    .banner .banner-content h2 { font-size: 22px; }
    .banner .banner-content p { font-size: 14px; }
    .banner .banner-arrow { display: none; }
    .section { padding: 30px 0; }
    .section-title h2 { font-size: 22px; }
    .teacher-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .article { padding: 20px; }
    .article-header h1 { font-size: 20px; }
    .footer .footer-grid { grid-template-columns: 1fr; }
    .page-banner { height: 150px; }
    .page-banner h1 { font-size: 24px; }
}

/* ========== 导航修复：手机端横向滚动 ========== */
@media (max-width: 992px) {
    .main-nav .container { padding: 0; }
    .main-nav > .container > ul {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .main-nav > .container > ul::-webkit-scrollbar { display: none; }
    .main-nav > .container > ul > li { flex-shrink: 0; }
    .main-nav > .container > ul > li > a {
        padding: 0 14px;
        font-size: 14px;
        line-height: 44px;
    }
    .main-nav .submenu { display: none !important; }
}

/* ========== 首页增强样式 ========== */
.notice-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}
.notice-bar .container {
    display: flex;
    align-items: center;
    gap: 15px;
}
.notice-label {
    background: #c8102e;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    flex-shrink: 0;
}
.notice-scroll {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}
.notice-scroll a {
    color: #555;
    font-size: 14px;
    margin-right: 40px;
}
.notice-scroll a:hover { color: #c8102e; }

.quick-entry {
    background: #fff;
    padding: 30px 0;
}
.quick-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}
.quick-item {
    text-align: center;
    padding: 20px 10px;
    border-radius: 8px;
    transition: all .3s;
    cursor: pointer;
}
.quick-item:hover {
    background: #f5f7fa;
    transform: translateY(-3px);
}
.quick-item .icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #1a3a6c, #2c5aa0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
}
.quick-item span { font-size: 14px; color: #555; }

.home-news-section {
    background: #f5f7fa;
    padding: 40px 0;
}
.home-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}
.home-news-box {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.home-news-box .box-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a3a6c;
}
.home-news-box .box-title h3 {
    font-size: 18px;
    color: #1a3a6c;
    position: relative;
    padding-left: 12px;
}
.home-news-box .box-title h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: #c8102e;
    border-radius: 2px;
}
.home-news-box .box-title a {
    font-size: 13px;
    color: #999;
}
.home-news-box .box-title a:hover { color: #c8102e; }
.home-news-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.home-news-list li:last-child { border-bottom: none; }
.home-news-list li a {
    color: #444;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 15px;
}
.home-news-list li a:hover { color: #c8102e; }
.home-news-list li .date {
    color: #aaa;
    font-size: 13px;
    flex-shrink: 0;
}

.stats-banner {
    background: linear-gradient(135deg, #1a3a6c, #2c5aa0);
    padding: 45px 0;
    color: #fff;
}
.stats-banner .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stats-banner .stat-item .num {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}
.stats-banner .stat-item .label {
    font-size: 14px;
    opacity: .85;
}

@media (max-width: 768px) {
    .quick-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .quick-item { padding: 15px 5px; }
    .quick-item .icon { width: 40px; height: 40px; font-size: 18px; }
    .quick-item span { font-size: 12px; }
    .home-news-grid { grid-template-columns: 1fr; }
    .stats-banner .container { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .stats-banner .stat-item .num { font-size: 26px; }
    .notice-bar .container { padding: 0 15px; }
}

/* ========== 内页手机端布局修复 ========== */
@media (max-width: 768px) {
    .page-layout {
        flex-direction: column !important;
    }
    .sidebar {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important;
    }
    .sidebar .sidebar-menu {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .sidebar .sidebar-menu li {
        flex: 1 1 auto !important;
        text-align: center !important;
    }
    .sidebar .sidebar-menu li a {
        padding: 10px 8px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
        
    }
    .sidebar .sidebar-title {
        
        text-align: center !important;
        padding: 12px !important;
        font-size: 16px !important;
    }
    .main-content {
        width: 100% !important;
        margin-left: 0 !important;
    }
    .main-content p, .main-content div, .main-content span {
        
        word-break: normal !important;
        white-space: normal !important;
    }
    .hot-news {
        width: 100% !important;
    }
    .hot-news li {
        
        white-space: normal !important;
    }
    .content-body {
        padding: 20px 15px !important;
    }
    .content-body p {
        font-size: 15px !important;
        line-height: 1.8 !important;
        text-indent: 2em !important;
    }
}

/* ========== 强制修复：手机端所有内容横排 ========== */
@media (max-width: 768px) {
    * {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }
    .page-layout, .content-wrap, .main-wrap {
        flex-direction: column !important;
        display: flex !important;
    }
    .sidebar, .left-sidebar, .side-nav {
        width: 100% !important;
        float: none !important;
        margin: 0 0 15px 0 !important;
    }
    .sidebar ul, .sidebar-menu ul {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 5px !important;
    }
    .sidebar ul li, .sidebar-menu ul li {
        flex: 1 1 30% !important;
        text-align: center !important;
        display: block !important;
    }
    .sidebar ul li a, .sidebar-menu ul li a {
        display: block !important;
        padding: 8px 5px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }
    .main-content, .content-area, .right-content {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding: 15px !important;
    }
    .main-content p, .content-area p, .article-content p {
        font-size: 15px !important;
        line-height: 1.8 !important;
        text-indent: 2em !important;
        word-break: normal !important;
        white-space: normal !important;
    }
    .hot-news, .widget, .side-box {
        width: 100% !important;
        float: none !important;
    }
    .hot-news li, .widget li {
        white-space: normal !important;
        word-break: break-all !important;
    }
}
