/* ========================================
   YP Theme - 高校招生网站风格
   红色主调 #b2141a / #A12038
   ======================================== */

html { font-size: 62.5%; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif; font-size: 1.4rem; color: #333; background: #fafafb; line-height: 1.6; }
a { color: #333; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { text-decoration: none !important; }
a:hover { color: #b2141a; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; }
.text-center { text-align: center; }

/* ====== Header ====== */
.header-box { background: #b2141a; height: 180px; position: relative; overflow: hidden; }
.header-top { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.nav-logo { display: block; }
.nav-logo img { max-height: 120px; width: auto; }
.header-right { display: flex; align-items: center; gap: 20px; }
.login-box { color: rgba(255,255,255,0.9); font-size: 1.3rem; }
.login-box a { color: rgba(255,255,255,0.9); }
.login-box a:hover { color: #fff; }
.header-search-form { display: flex; align-items: center; }
.header-search-form .layui-inline { margin: 0; }
.header-search-form .layui-input-wrap { background: rgba(255,255,255,0.2); border-radius: 20px; border: 1px solid rgba(255,255,255,0.4); overflow: hidden; }
.header-search-form .layui-input-prefix { color: rgba(255,255,255,0.8); padding: 0 12px; display: flex; align-items: center; }
.header-search-form .layui-input-prefix i { font-size: 1.6rem; }
.header-search-form .layui-input { width: 180px; height: 36px; border: none; background: transparent; color: #fff; font-size: 1.3rem; padding: 0 10px; }
.header-search-form .layui-input::placeholder { color: rgba(255,255,255,0.7); }
.header-search-form .layui-input:focus { border-color: transparent; }

/* ====== Button Colors ====== */
.layui-bg-red { background-color: #b2141a !important; }
.layui-bg-red:hover { background-color: #8a0f14 !important; }

/* ====== Navigation ====== */
.pc-nav { background: #f4f5f8; border-bottom: 1px solid #e8e8e8; }
.pc-nav-in { max-width: 1000px; margin: 0 auto; display: flex; padding: 0 20px; }
.pc-nav-item { position: relative; }
.pc-nav-item > a { display: block; padding: 0 24px; height: 50px; line-height: 50px; font-size: 1.5rem; color: #333; font-weight: 500; border-bottom: 3px solid transparent; transition: all 0.2s; }
.pc-nav-item > a:hover { color: #b2141a; }
.pc-nav-item.current > a { color: #b2141a; border-bottom-color: #b2141a; }
.sub-nav-dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 160px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 100; border-top: 2px solid #b2141a; }
.sub-nav-dropdown a { display: block; padding: 10px 18px; color: #333; font-size: 1.4rem; white-space: nowrap; border-bottom: 1px solid #f0f0f0; }
.sub-nav-dropdown a:hover { background: #fdf2f2; color: #b2141a; }
.pc-nav-item:hover .sub-nav-dropdown { display: block; }

/* ====== Breadcrumb ====== */
.page-location { background: #fff; border-bottom: 1px solid #eee; padding: 12px 0; font-size: 1.3rem; }
.page-location .section-in { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.page-location a { color: #666; }
.page-location a:hover { color: #b2141a; }
.page-location .sep { color: #ccc; margin: 0 8px; }

/* ====== Section Layout ====== */
.section { max-width: 1000px; margin: 0 auto; padding: 20px 20px 40px; }
.section-in { max-width: 1000px; margin: 0 auto; }

/* List Layout - sidebar + content */
.list-layout { display: flex; gap: 20px; align-items: flex-start; }
.list-layout .news-content { flex: 1; min-width: 0; }

/* ====== Section Title ====== */
.section-in-title { display: flex; align-items: center; padding: 16px 0; border-bottom: 2px solid #b2141a; margin-bottom: 20px; }
.section-in-title i { font-size: 2rem; color: #b2141a; margin-right: 8px; }
.section-title-cn { font-size: 1.8rem; font-weight: 700; color: #333; margin-right: 8px; }
.section-title-en { font-size: 1.2rem; color: #999; text-transform: uppercase; flex: 1; }
.section-title-more { font-size: 1.2rem; color: #999; }
.section-title-more:hover { color: #b2141a; }

/* ====== News Box (Homepage) ====== */
.news-box { background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); padding: 20px; display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; }
.news-box > .section-in-title { width: 100%; flex-basis: 100%; }

/* Hot News Swiper */
.hot-news-swiper-box { width: 460px; height: 300px; flex-shrink: 0; border-radius: 4px; overflow: hidden; position: relative; }
.hot-news-swiper-box .layui-carousel { width: 100%; height: 100%; }
.hot-news-swiper-box .layui-carousel > [carousel-item] { width: 100%; height: 100%; }
.hot-news-swiper-box .layui-carousel > [carousel-item] > div { width: 100%; height: 100%; position: relative; }
.hot-news-swiper-box .layui-carousel > [carousel-item] > div img { width: 100%; height: 100%; object-fit: cover; }
.hot-news-swiper-box .layui-carousel-ind { position: absolute; top: auto; bottom: 10px; height: auto; z-index: 10; }
.hot-news-swiper-box .layui-carousel-ind ul { background: rgba(0,0,0,0.3); border-radius: 10px; }
.hot-news-swiper-box .layui-carousel-ind ul li { background: rgba(255,255,255,0.6); }
.hot-news-swiper-box .layui-carousel-ind ul li.layui-this { background: #b2141a; }
.hot-news-title { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); padding: 30px 16px 12px; z-index: 5; }
.hot-news-title span { color: #fff; font-size: 1.5rem; font-weight: 600; }

/* Hot News List */
.hot-news-list { width: 480px; flex: 1; min-width: 300px; }
.hot-item { border-bottom: 1px dashed #eee; }
.hot-item:last-child { border-bottom: none; }
.hot-item a { display: flex; align-items: center; padding: 12px 0; color: #333; }
.hot-item a:hover { color: #b2141a; }
.news-arr { color: #b2141a; margin-right: 10px; font-size: 1.6rem; flex-shrink: 0; }
.news-intro { font-size: 1.4rem; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ====== Announcement Box ====== */
.announcement-box { display: flex; gap: 20px; margin-bottom: 0; }
.announcement-box-left { width: 610px; flex: 1; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); padding: 0 20px 8px; }
.announcement-box-left > .section-in-title { margin-left: -20px; margin-right: -20px; margin-bottom: 12px; padding: 13px 20px; }
.announcement-list { }
.announcement-item { display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px dashed #eee; }
.announcement-item:last-child { border-bottom: none; }
.announcement-time { width: 70px; flex-shrink: 0; text-align: center; background: #f8f8f8; border-radius: 4px; padding: 8px 0; }
.announcement-time .date { font-size: 2.4rem; font-weight: 700; color: #b2141a; line-height: 1; }
.announcement-time .month { font-size: 1.2rem; color: #999; margin-top: 4px; }
.announcement-text { flex: 1; min-width: 0; }
.announcement-title { margin-bottom: 6px; }
.announcement-title a { font-size: 1.5rem; font-weight: 600; color: #333; }
.announcement-title a:hover { color: #b2141a; }
.announcement-intro { font-size: 1.3rem; color: #888; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ====== Quick Entry Panel（首页右侧「快捷入口」） ====== */
.announcement-box-right {
    width: 360px; flex-shrink: 0;
    display: flex; flex-direction: column;
    background: #fff; border-radius: 4px; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    padding: 0;
}
.section-in-title .section-title-ico { width: 20px; height: 20px; color: #b2141a; margin-right: 8px; flex-shrink: 0; display: block; }
/* 右栏尺寸自洽：格子由 aspect-ratio 定高，不随左栏内容伸缩 */
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 6px; }

.quick-card {
    --qk: 27, 108, 176;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 0;
    padding: 12px;
    border-radius: 0;
    aspect-ratio: 1 / 1;
    background-color: rgb(var(--qk));
    /* 右上角极淡白光，实心块上拉一点层次，不改变整体纯色观感 */
    background-image: radial-gradient(circle at 116% -16%, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 60%);
    color: #fff;
    overflow: hidden;
    transition: transform .38s cubic-bezier(.16, 1, .3, 1), filter .38s;
}
.quick-card:hover,
.quick-card:focus {
    color: #fff; text-decoration: none;
    filter: brightness(1.06);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}
.quick-card:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

.quick-card-icon {
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    background: transparent;
    transition: transform .38s cubic-bezier(.34, 1.56, .64, 1);
}
.quick-card-icon svg { width: 46px; height: 46px; display: block; stroke-width: 1.25; }
.quick-card:hover .quick-card-icon { transform: translateY(-2px); }

.quick-card-arrow { display: none; }

.quick-card-text { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.quick-card-title {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 1.75rem; font-weight: 600; color: #fff;
    letter-spacing: .06em; line-height: 1.25;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .12);
}
/* 标题两侧短横线：— 用户中心 — */
.quick-card-title::before,
.quick-card-title::after { content: ''; flex: none; width: 14px; height: 1px; background: currentColor; opacity: .6; }
/* 黄底白字对比偏弱，单独加重阴影 */
.quick-card.login .quick-card-title { text-shadow: 0 1px 2px rgba(120, 78, 0, .3); }

.quick-card.apply { --qk: 27, 108, 176; }
.quick-card.message { --qk: 84, 164, 42; }
.quick-card.login { --qk: 234, 166, 20; }
.quick-card.contact { --qk: 16, 152, 132; }

/* ====== Friendly Links ====== */
.friendly-list { padding: 10px 0; }
.friendly-list .section-in-title { margin-bottom: 10px; }

/* ====== News Sidebar (List pages) ====== */
.news-sidebar { width: 250px; flex-shrink: 0; margin-bottom: 20px; }
.news-sidebar-list { background: #b2141a; border-radius: 4px; overflow: hidden; margin-bottom: 20px; }
.news-sidebar-title { display: flex; align-items: center; gap: 10px; padding: 20px 16px; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.2); }
.news-sidebar-title i { font-size: 2.4rem; }
.news-sidebar-ico { width: 24px; height: 24px; flex-shrink: 0; display: block; }
.news-sidebar-title strong { font-size: 1.8rem; display: block; }
.news-sidebar-title span { font-size: 1.2rem; opacity: 0.8; }
.news-sidebar-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.news-sidebar-item a { display: flex; align-items: center; padding: 14px 16px; color: rgba(255,255,255,0.9); font-size: 1.4rem; transition: all 0.2s; }
.news-sidebar-item a:hover,
.news-sidebar-item.current a { background: rgba(255,255,255,0.15); color: #fff; }
.news-sidebar-item .arr { margin-left: auto; font-size: 1.2rem; opacity: 0.6; }

/* Recommend sidebar */
.recommend-sidebar-title { font-size: 1.6rem; font-weight: 700; color: #333; padding: 14px 0; border-bottom: 2px solid #b2141a; margin-bottom: 10px; }
.recommend-sidebar-item { padding: 10px 0; border-bottom: 1px dashed #eee; }
.recommend-sidebar-item:last-child { border-bottom: none; }
.recommend-sidebar-item p { font-size: 1.4rem; line-height: 1.5; margin-bottom: 4px; }
.recommend-sidebar-item p a { color: #333; }
.recommend-sidebar-item p a:hover { color: #b2141a; }
.recommend-sidebar-item .date { font-size: 1.2rem; color: #999; }

/* ====== News Content (List pages) ====== */
.news-content { background: #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); padding: 20px; min-height: 400px; margin-bottom: 20px; }
.news-list { }
.news-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed #eee; }
.news-item:last-child { border-bottom: none; }
.news-item > a { display: block; width: 120px; height: 120px; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.news-item > a img { width: 100%; height: 100%; object-fit: cover; }
.news-text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.news-title { margin-bottom: 8px; }
.news-title a { font-size: 1.6rem; font-weight: 600; color: #333; line-height: 1.4; }
.news-title a:hover { color: #b2141a; }
.news-intro { font-size: 1.3rem; color: #888; line-height: 1.6; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; word-break: break-word; }
.news-time { font-size: 1.2rem; color: #bbb; }

/* ====== 内容标记：头条(flag 2) / 特荐(flag 3) / 热点(flag 5) ====== */
.news-title.is-headline a,
.announcement-title.is-headline a { color: #b2141a; font-weight: 700; }
.news-title.is-headline a:hover { color: #8f0f16; }
.hot-item .news-intro.is-headline { color: #b2141a; font-weight: 700; }
.title-hot-ico,
.title-rec-ico { width: 15px; height: 15px; margin-left: 5px; vertical-align: -2px; flex: none; }
.title-hot-ico { color: #f04b23; }
.title-rec-ico { color: #d99a00; }
.recommend-sidebar-empty { padding: 4px 0 2px; font-size: 1.3rem; color: #9aa0a8; }
.news-title .title-hot-ico,
.news-title .title-rec-ico { vertical-align: -1px; }

/* ====== Simple Article (Detail page) ====== */
.simple-article { padding: 10px 0; }
.news-article-title { font-size: 2.4rem; font-weight: 700; color: #222; text-align: center; padding: 20px 0 16px; line-height: 1.4; }
.news-article-time { text-align: center; font-size: 1.3rem; color: #999; padding-bottom: 20px; border-bottom: 1px solid #eee; margin-bottom: 24px; }
.article-body { font-size: 1.5rem; line-height: 1.8; color: #444; }
.article-body img { max-width: 100%; height: auto; margin: 10px 0; border-radius: 4px; }
/* 正文图片所在段落若带 text-indent:2em，会把图片推出容器造成横向滚动 */
.article-body p:has(> img) { text-indent: 0 !important; }
.article-body p { margin-bottom: 14px; }
.article-body table { width: 100%; max-width: 100%; border-collapse: collapse; margin: 14px 0; }
.article-body td, .article-body th { border: 1px solid #dcdfe4; padding: 8px 10px; vertical-align: middle; }
.article-body table p { margin-bottom: 0; }
.article-body a { color: #1a5fb4; }
.article-body .pdf-embed iframe { width: 100%; height: 820px; border: 0; background: #f6f7f9; }
.article-body .pdf-dl { font-size: 13px; color: #8a9099; }

.signature { margin-top: 30px; padding: 16px; background: #f8f9fa; border-radius: 4px; font-size: 1.3rem; color: #999; text-align: center; }

/* ====== Pagination ====== */
.wp-pagenavi { margin-top: 30px; text-align: center; padding: 20px 0; }
.wp-pagenavi ul.pagination { display: flex !important; justify-content: center !important; align-items: center !important; gap: 8px !important; list-style: none !important; padding: 0 !important; margin: 0 !important; }
.wp-pagenavi ul.pagination li { display: inline-flex !important; }
.wp-pagenavi ul.pagination li a,
.wp-pagenavi ul.pagination li span { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-width: 36px !important; height: 36px !important; padding: 0 12px !important; border: 1px solid #e0e0e0 !important; border-radius: 4px !important; font-size: 1.4rem !important; color: #666 !important; background: #fff !important; text-align: center !important; transition: all 0.2s !important; text-decoration: none !important; }
.wp-pagenavi ul.pagination li a:hover { border-color: #b2141a !important; color: #b2141a !important; background: #fdf2f2 !important; }
.wp-pagenavi ul.pagination li.active span,
.wp-pagenavi ul.pagination li.current span { background: #b2141a !important; color: #fff !important; border-color: #b2141a !important; }
.wp-pagenavi ul.pagination li.disabled span { color: #ccc !important; cursor: not-allowed !important; }
.layui-laypage { margin: 30px 0 !important; text-align: center !important; display: flex !important; justify-content: center !important; align-items: center !important; gap: 8px !important; flex-direction: row !important; }
.layui-laypage a,
.layui-laypage span { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-width: 36px !important; height: 36px !important; margin: 0 !important; border: 1px solid #e0e0e0 !important; border-radius: 4px !important; font-size: 1.4rem !important; color: #666 !important; background: #fff !important; text-align: center !important; transition: all 0.2s !important; }
.layui-laypage a:hover { border-color: #b2141a !important; color: #b2141a !important; background: #fdf2f2 !important; }
.layui-laypage .layui-laypage-curr em { background: #b2141a !important; color: #fff !important; font-style: normal !important; }
.layui-laypage .layui-laypage-prev,
.layui-laypage .layui-laypage-next { padding: 0 16px !important; }

/* ====== Footer ====== */
.section-footer { padding-top: 0; padding-bottom: 0; }
.section-footer .friendly-list { padding-bottom: 0; }
.section-footer .friendly-links { padding-bottom: 0; }
.footer { background: #dedfe4; padding: 30px 0 20px; margin-top: 12px; }
.footer-in { max-width: 640px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 16px; }
.footer-logo { flex: none; width: 60px; height: 60px; margin: 0; }
.footer-text p { font-size: 1.3rem; color: #666; line-height: 2; }
.footer-text a { color: #666; }
.footer-text a:hover { color: #b2141a; }

/* ====== Friendly Links ====== */
/* 一行排 5 个：每个宽度 = (100% - 4×gap)/5，图片等比缩放填满，避免第 5 个换行 */
.friendly-links { padding: 16px 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.friendly-links a { display: block; flex: 0 0 calc((100% - 40px) / 5); min-width: 0; background: #fff; border-radius: 4px; border: 1px solid #eee; transition: all 0.2s; overflow: hidden; }
.friendly-links a:hover { background: #b2141a; border-color: #b2141a; }
.friendly-links a img { width: 100%; height: auto; vertical-align: middle; display: block; }

/* ====== Tag Cloud ====== */
.tag-cloud { padding: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud a.tag,
.tag-cloud .tag { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: #fdf2f2; color: #b2141a; font-size: 1.3rem; border-radius: 4px; }
.tag-cloud a.tag:hover,
.tag-cloud .tag:hover { background: #b2141a; color: #fff; }
.tag-cloud .tag h2 { font-size: 1.4rem; color: inherit; margin: 0; }
.tag-cloud .tag .count { font-size: 1.2rem; opacity: 0.7; }
.tag-cloud-list { padding: 20px; }

/* ====== Search ====== */
.search-box { padding: 30px 0; }
.search-form-row { display: flex; gap: 10px; max-width: 700px; margin: 0 auto; }
.search-select { height: 44px; padding: 0 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 1.4rem; outline: none; }
.search-input-lg { flex: 1; height: 44px; padding: 0 16px; border: 1px solid #ddd; border-radius: 4px; font-size: 1.4rem; outline: none; }
.search-input-lg:focus { border-color: #b2141a; }
.search-btn-lg { height: 44px; padding: 0 28px; background: #b2141a; color: #fff; border: none; border-radius: 4px; font-size: 1.5rem; cursor: pointer; }
.search-btn-lg:hover { background: #A12038; }

/* ====== Product Grid ====== */
.product-grid { padding: 10px 0; display: flex; flex-wrap: wrap; gap: 16px; }
.product-card { display: block; width: calc(33.33% - 11px); background: #fff; border: 1px solid #eee; border-radius: 4px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
.product-thumb { height: 180px; background: #f8f8f8; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb .placeholder { color: #ccc; font-size: 1.3rem; }
.product-detail { padding: 14px; }
.product-detail h4 { font-size: 1.5rem; font-weight: 600; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-detail p { font-size: 1.2rem; color: #999; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.product-meta { font-size: 1.2rem; color: #bbb; }

/* ====== Download List ====== */
.down-list { padding: 10px 0; }
.down-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed #eee; }
.down-item:last-child { border-bottom: none; }
.down-name { font-size: 1.4rem; color: #333; }
.down-name:hover { color: #b2141a; }
.down-date { font-size: 1.2rem; color: #bbb; }

/* ====== Rank List ====== */
.rank-list { padding: 10px 0; }
.rank-list li { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px dashed #f0f0f0; }
.rank-list li:last-child { border-bottom: none; }
.rank-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: #ddd; color: #fff; font-size: 1.2rem; font-weight: 700; border-radius: 3px; margin-right: 10px; flex-shrink: 0; }
.rank-num.hot { background: #b2141a; }
.rank-list li a { font-size: 1.4rem; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list li a:hover { color: #b2141a; }

/* ====== Clearfix ====== */
.news-sidebar::after { content: ''; display: table; clear: both; }
.announcement-box::after { content: ''; display: table; clear: both; }
.news-box::after { content: ''; display: table; clear: both; }

/* ====== Responsive ====== */
@media (max-width: 1060px) {
    .hot-news-swiper-box { width: 100%; }
    .hot-news-list { width: 100%; }
    .announcement-box { flex-direction: column; }
    .announcement-box-left { width: 100%; }
    /* 平板：四张入口卡片横排一行 */
    .announcement-box-right { width: 100%; }
    .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; }
    .quick-card { aspect-ratio: auto; min-height: 132px; padding: 16px; }
    .quick-card-title { font-size: 1.6rem; }
}
@media (max-width: 768px) {
    /* ===== 顶部区域 ===== */
    .header-box { height: auto; padding: 10px 0; }
    .header-top { flex-direction: column; gap: 8px; padding: 0 16px; }
    .nav-logo img { max-height: 46px; }
    .header-right { flex-direction: column; gap: 10px; width: 100%; }
    .login-box { font-size: 1.3rem; }
    .header-search-form,
    .header-search-form .layui-inline,
    .header-search-form .layui-input-wrap { width: 100%; }
    .header-search-form .layui-input { width: 100%; height: 32px; }

    /* ===== 导航：换行显示，避免横向滚动时最后一项被“切掉” ===== */
    .pc-nav-in { flex-wrap: wrap; padding: 0 6px; }
    .pc-nav-item { flex: 0 0 auto; }
    .pc-nav-item > a { padding: 0 12px; height: 42px; line-height: 42px; font-size: 1.4rem; white-space: nowrap; }

    /* ===== 面包屑 / 容器 ===== */
    .page-location { padding: 10px 0; font-size: 1.2rem; }
    .page-location .section-in { padding: 0 16px; }
    .section { padding: 12px 12px 28px; }

    /* ===== 列表页布局 =====
       列方向必须 stretch：原来继承 align-items:flex-start，
       内容会按 max-content 撑开到 1385px，造成整页横向滚动 */
    .list-layout { flex-direction: column; align-items: stretch; gap: 12px; }
    /* 手机端拆开侧栏，让「栏目 / 正文 / 推荐」三段可以重排 */
    .news-sidebar { display: contents; }

    /* 栏目标签：横向胶囊，替代原来占半屏的红色大块 */
    .news-sidebar-list { order: 0; display: flex; gap: 8px; overflow-x: auto; margin: 0;
        padding: 10px 12px; background: #fff; border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05); scrollbar-width: none; }
    .news-sidebar-list::-webkit-scrollbar { display: none; }
    /* 栏目下没有子级时不留空白卡片 */
    .news-sidebar-list:not(:has(.news-sidebar-item)) { display: none; }
    .news-sidebar-title { display: none; }
    .news-sidebar-item { flex: 0 0 auto; border-bottom: none; }
    .news-sidebar-item a { padding: 6px 14px; border-radius: 999px; background: #f4f5f8;
        color: #555; font-size: 1.35rem; white-space: nowrap; }
    .news-sidebar-item a i,
    .news-sidebar-item .arr { display: none; }
    .news-sidebar-item.current a { background: #b2141a; color: #fff; }

    /* 正文卡片 */
    .news-content { order: 1; width: 100%; min-height: 0; margin-bottom: 0;
        padding: 4px 14px 10px; border-radius: 8px; }

    /* 列表项：小缩略图 + 文字并排，比整宽大图更适合手机 */
    .news-item { flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px 0; }
    .news-item > a { width: 96px; height: 96px; border-radius: 6px; }
    .news-title { margin-bottom: 6px; }
    .news-title a { font-size: 1.5rem; line-height: 1.45; }
    .news-intro { font-size: 1.25rem; line-height: 1.55; margin-bottom: 6px; -webkit-line-clamp: 2; }
    .news-time { font-size: 1.15rem; }

    /* 推荐资讯移到正文之后 */
    .news-recommend { order: 2; background: #fff; border-radius: 8px; padding: 2px 14px 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
    .recommend-sidebar-title { font-size: 1.5rem; padding: 12px 0 10px; margin-bottom: 0; }
    .recommend-sidebar-item p { font-size: 1.35rem; }

    /* 分页可换行，避免页码多时溢出 */
    .wp-pagenavi { padding: 14px 0 4px; }
    .wp-pagenavi ul.pagination { flex-wrap: wrap !important; gap: 6px !important; }
    .wp-pagenavi ul.pagination li a,
    .wp-pagenavi ul.pagination li span { min-width: 32px !important; height: 32px !important; font-size: 1.3rem !important; }

    /* ===== 首页其它区块 ===== */
    /* 入口卡片：改为横向「图标 + 文字」，两列排布 */
    .announcement-box-right { padding: 0; }
    .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 6px; }
    .quick-card { aspect-ratio: auto; min-height: 0; padding: 14px 12px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; border-radius: 0; }
    .quick-card-icon { width: 32px; height: 32px; flex-shrink: 0; }
    .quick-card-icon svg { width: 25px; height: 25px; }
    .quick-card-text { align-items: flex-start; }
    .quick-card-title { font-size: 1.5rem; }
    .quick-card-title::before, .quick-card-title::after { display: none; }
    .quick-card-desc, .quick-card-arrow { display: none; }
    .quick-card::after { display: none; }
    .friendly-links { gap: 8px; }
    .friendly-links a { flex: 0 0 calc((100% - 8px) / 2); }
    .footer-in { max-width: 100%; padding: 0 20px; gap: 10px; }
    .footer-logo { width: 44px; height: 44px; }
}

.announcement-empty { padding: 48px 10px; text-align: center; color: #9aa0a8; font-size: 14px; background: #fafbfc; border: 1px dashed #e6e9ee; border-radius: 6px; }

.announcement-box-left { display: flex; flex-direction: column; }
.announcement-list { flex: 1; display: flex; flex-direction: column; }
.announcement-empty { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 180px; margin-bottom: 0; }
/* 焦点图标题：浅色图片上也看得清 */
.hot-news-title { background: linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(0,0,0,.55) 40%, rgba(0,0,0,.85) 100%); padding: 38px 16px 14px; }
.hot-news-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.55); }

/* ====== Reduced motion ====== */
@media (prefers-reduced-motion: reduce) {
    .quick-card, .quick-card-icon, .quick-card-arrow { transition: none !important; }
    .quick-card:hover, .quick-card:focus { transform: none; }
    .quick-card:hover .quick-card-icon,
    .quick-card:hover .quick-card-arrow { transform: none; }
}
