@charset "utf-8";
/* ==========================================================================
   安徽省颍上第二中学德育网 - 全新 2.0 终极样式表
   设计师重构版 (基于现代 Flexbox & CSS Grid)
   ========================================================================== */

/* =========================================
   1. 基础变量与全局重置
   ========================================= */
:root {
    --primary-blue: #004080;   
    --hover-blue: #0059b3;     
    --bg-light: #f7f9fc;       
    --text-main: #2c3e50;      
    --text-muted: #7f8fa4;     
    --border-color: #e2e8f0;   
    --container-width: 1200px; 
}

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

html { overflow-y: auto !important; }

body { 
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important; 
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", sans-serif; 
    color: var(--text-main); 
    background-color: var(--bg-light); 
    line-height: 1.6; 
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

/* =========================================
   🚀 1.5 移动端原生 App 级体验
   ========================================= */
a, button, .gallery-card, .student-card, .topic-card-slim, .dot, .menu-toggle, .gallery-btn {
    -webkit-tap-highlight-color: transparent; 
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-touch-callout: none;
    user-select: none; 
}
p, h1, h2, h3, h4, span, .news-list li a, .article-content { user-select: text; }
body { -webkit-overflow-scrolling: touch; }
.student-scroll-wrap { -webkit-overflow-scrolling: touch; scroll-behavior: smooth; overscroll-behavior-x: contain; }
.main-nav { -webkit-overflow-scrolling: touch; }

/* =========================================
   2. 顶部导航 (Header)
   ========================================= */
.site-header { background: rgba(255, 255, 255, 0.95); box-shadow: 0 4px 20px rgba(0,0,0,0.03); position: sticky; top: 0; z-index: 1000; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.logo img { height: 45px; display: block; transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 4px 25px rgba(0, 51, 102, 0.08); }
.site-header.is-scrolled .header-inner { height: 60px; }
.site-header.is-scrolled .logo img { height: 36px; }

.main-nav ul { display: flex; gap: 35px; }
.main-nav a { font-size: 16px; font-weight: 500; padding: 28px 0; position: relative; }
.main-nav a::after { content: ''; position: absolute; bottom: 22px; left: 0; width: 100%; height: 3px; background: var(--primary-blue); transition: transform 0.3s ease; transform: scaleX(0); transform-origin: center; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); width: 100%; }
.main-nav a:hover, .main-nav a.active { color: var(--primary-blue); }

.menu-toggle { display: none; background: none; border: none; flex-direction: column; gap: 6px; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--primary-blue); transition: 0.3s; }

/* =========================================
   2.5. 首页：居中画廊轮播
   ========================================= */
.hero-banner-gallery { width: 100%; background: #eef4f9; padding: 20px 0; overflow: hidden; position: relative; }
.gallery-slider-wrap { position: relative; width: 100%; height: 460px; display: flex; align-items: center; justify-content: center; }
.gallery-track { position: relative; width: 100%; height: 100%; }
.gallery-item { position: absolute; top: 50%; left: 50%; width: 1200px; max-width: 65vw; height: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.1); transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); transform: translate(-50%, -50%) scale(0.6); opacity: 0; z-index: 1; pointer-events: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item.active { transform: translate(-50%, -50%) scale(1); opacity: 1; z-index: 3; pointer-events: auto; }
.gallery-item.prev { transform: translate(-105%, -50%) scale(0.85); opacity: 1; z-index: 2; filter: brightness(0.5); pointer-events: auto; cursor: pointer; }
.gallery-item.next { transform: translate(5%, -50%) scale(0.85); opacity: 1; z-index: 2; filter: brightness(0.5); pointer-events: auto; cursor: pointer; }

.gallery-dots { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.gallery-dots .dot { width: 25px; height: 4px; background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: 0.3s; border-radius: 2px; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.gallery-dots .dot.active { background: #fff; width: 40px; box-shadow: 0 2px 6px rgba(0,0,0,0.5); }

.gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.4); border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; z-index: 5; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); backdrop-filter: blur(5px); pointer-events: auto; display: flex; justify-content: center; align-items: center; }
.gallery-btn:hover { background: var(--primary-blue); transform: translateY(-50%) scale(1.15); }
.prev-btn::before { content: ''; width: 14px; height: 14px; border-top: 2px solid #fff; border-left: 2px solid #fff; transform: rotate(-45deg); margin-left: 6px; }
.next-btn::before { content: ''; width: 14px; height: 14px; border-top: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg); margin-right: 6px; }
.prev-btn { left: calc(50% - min(600px, 32.5vw) - 25px); }
.next-btn { right: calc(50% - min(600px, 32.5vw) - 25px); }

/* =========================================
   3. 首页新闻网格布局 (左 40% : 右 60%)
   ========================================= */
.news-section { margin-top: 25px; margin-bottom: 28px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--border-color); padding-bottom: 12px; margin-bottom: 16px; }
.section-header h2 { font-size: 20px; color: var(--primary-blue); position: relative; }
.section-header h2::after { content: ''; position: absolute; bottom: -14px; left: 0; width: 100%; height: 2px; background: var(--primary-blue); }
.section-header .more { font-size: 14px; color: var(--text-muted); transition: color 0.3s ease; }
.section-header .more:hover { color: var(--primary-blue); }

.news-layout-pro { display: grid; grid-template-columns: 4fr 6fr; gap: 30px; }
.news-sidebar { display: flex; flex-direction: column; gap: 30px; }

/* 核心卡片压缩设置 */
.news-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.03); transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 64, 128, 0.06), 0 4px 8px rgba(0, 0, 0, 0.02); }
.main-news-card { padding: 18px 30px 25px; display: flex; flex-direction: column; height: 100%; }
.sub-news-card { padding: 18px 25px 25px; flex: 1; }
.no-header-card { padding: 18px 25px !important; }

/* 🌟 右侧列表极限压紧对齐逻辑 🌟 */
.main-news-card .news-list { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; }
.right-main-card .news-list li { padding: 14px 0; border-bottom: 1px dashed #eee; }

.news-list li { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed #eee; padding: 10px 0; }
.news-list li:last-child { border-bottom: none; padding-bottom: 0; }
.news-list li a { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 20px; font-size: 15px; line-height: 1.5; position: relative; padding-left: 14px; transition: all 0.3s ease; }
.news-list li a::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; background-color: #cbd5e1; border-radius: 50%; transition: all 0.3s ease; }
.news-list li a:hover { color: var(--primary-blue); padding-left: 20px; }
.news-list li a:hover::before { background-color: var(--primary-blue); transform: translateY(-50%) scale(1.5); box-shadow: 0 0 6px rgba(0, 64, 128, 0.4); } 
.news-list li .date { color: var(--text-muted); font-size: 13px; font-family: Tahoma, sans-serif; }

/* --- 🌟 高级日历列表 UI (瘦身版) --- */
.cal-news-list li { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--border-color); }
.cal-news-list li:last-child { border-bottom: none; padding-bottom: 0; }
.calendar-date { flex-shrink: 0; width: 52px; text-align: center; border: 1px solid #e2e8f0; border-radius: 4px; overflow: hidden; margin-right: 15px; background: #fff; transition: transform 0.3s ease; }
.cal-news-list li:hover .calendar-date { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 136, 204, 0.15); }
.calendar-date .cal-week { background: #0088cc; color: #fff; font-size: 11px; padding: 2px 0; }
.calendar-date .cal-md { font-size: 15px; font-weight: 700; color: #1e293b; padding: 4px 0 0px; letter-spacing: -0.5px; }
.calendar-date .cal-year { font-size: 11px; color: #64748b; padding-bottom: 4px; line-height: 1.2; }
.cal-news-list li a { flex: 1; font-size: 15px; line-height: 1.55; color: #334155; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; transition: color 0.3s ease; }
.cal-news-list li:hover a { color: var(--primary-blue); font-weight: 500; }

/* --- 🌟 仪表盘快捷双入口 --- */
.quick-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 0; }
.quick-link-item { display: flex; align-items: center; background: #f8fafc; padding: 12px 15px; border-radius: 6px; transition: all 0.3s ease; border: 1px solid transparent; }
.quick-link-item:hover { background: #fff; border-color: #cbd5e1; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transform: translateY(-2px); }
.ql-icon { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 16px; margin-right: 10px; }
.quick-link-item span { font-size: 14px; color: #334155; font-weight: 600; }

/* =========================================
   4. 其他模块布局
   ========================================= */
.special-topics-section { margin-bottom: 28px; }
.topics-flex-box { display: flex; justify-content: space-between; gap: 20px; }
.topic-card-slim { flex: 1; display: flex; align-items: center; background: #fff; padding: 16px 18px; border-radius: 8px; border-left: 3px solid var(--primary-blue); box-shadow: 0 2px 8px rgba(0,0,0,0.03); transition: all 0.3s ease; gap: 12px; }
.topic-card-slim:hover { background: var(--primary-blue); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 64, 128, 0.15), 0 20px 40px rgba(0, 64, 128, 0.1); }
.topic-icon { font-size: 26px; line-height: 1; transition: transform 0.3s ease; }
.topic-card-slim:hover .topic-icon { transform: scale(1.15) rotate(-5deg); }
.topic-info-slim { flex: 1; } 
.topic-info-slim h3 { font-size: 16px; color: var(--primary-blue); margin-bottom: 2px; font-weight: 600; transition: color 0.3s ease; }
.topic-info-slim p { font-size: 12px; color: var(--text-muted); margin: 0; transition: color 0.3s ease; }
.topic-arrow-slim { font-size: 16px; color: #cbd5e1; transition: all 0.3s ease; }
.topic-card-slim:hover .topic-info-slim h3, .topic-card-slim:hover .topic-info-slim p, .topic-card-slim:hover .topic-arrow-slim { color: #fff; }
.topic-card-slim:hover .topic-arrow-slim { transform: translateX(4px); }

.student-models-section { margin-bottom: 28px; }
.student-scroll-wrap { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.student-scroll-wrap::-webkit-scrollbar { display: none; }
.student-card { flex: 0 0 calc(22.22% - 16px); scroll-snap-align: start; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.04); transition: transform 0.3s ease; border: 1px solid rgba(0,0,0,0.03); }
.student-card:hover { transform: translateY(-6px); box-shadow: 0 15px 25px rgba(0, 64, 128, 0.1), 0 5px 10px rgba(0, 0, 0, 0.03); }
.student-ratio { padding-bottom: 125%; position: relative; }
.honor-badge { position: absolute; top: 10px; right: 10px; background: linear-gradient(135deg, #ff9a44, #fc6076); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 20px; font-weight: bold; box-shadow: 0 2px 5px rgba(252, 96, 118, 0.4); z-index: 2; }
.student-info { padding: 15px 12px; text-align: center; }
.student-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.student-info .class-name { font-size: 13px; color: var(--text-muted); }

.gallery-section { margin-bottom: 30px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.gallery-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.04); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gallery-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0, 51, 102, 0.12), 0 5px 15px rgba(0, 0, 0, 0.04); }
.img-ratio { position: relative; padding-bottom: 133.33%; background: #f0f4f8; overflow: hidden; }
.img-ratio img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-card:hover .img-ratio img { transform: scale(1.08); }
.gallery-card h3 { text-align: center; padding: 16px 10px; font-size: 16px; font-weight: 500; color: var(--text-main); }

/* =========================================
   5. 底部版权区 (Footer)
   ========================================= */
.site-footer { background-color: #002b5e; color: rgba(255, 255, 255, 0.65); font-size: 14px; margin-top: 40px; }
.footer-links { border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 15px 0; }
.footer-links .container { display: flex; align-items: center; flex-wrap: wrap; }
.links-label { color: #fff; font-weight: 500; margin-right: 15px; }
.links-list { display: flex; flex-wrap: wrap; gap: 20px; }
.links-list a:hover { color: #fff; text-decoration: underline; }
.footer-copyright { padding: 15px 0; }
.copyright-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.record-info { display: flex; align-items: center; gap: 12px; }
.record-info a:hover { color: #fff; }
.divider { color: rgba(255, 255, 255, 0.2); }
.police-record { display: flex; align-items: center; gap: 6px; }
.police-record img { width: 16px; height: 16px; display: block; }

/* =========================================
   🌟 进阶特效：原生滚动出场动效
   ========================================= */
.reveal-item { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal-visible { opacity: 1; transform: translateY(0); }

/* =========================================
   7. 内页排版优化 (列表页与详情页)
   ========================================= */
.breadcrumb { font-size: 15px; color: var(--text-muted); padding: 20px 0; margin-bottom: 30px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-main); font-weight: 500; transition: color 0.3s ease; }
.breadcrumb a:hover { color: var(--primary-blue); }
.breadcrumb i { font-style: normal; margin-right: 8px; font-size: 18px; }

.sub-page-banner { background: linear-gradient(135deg, var(--primary-blue), #001a33); color: #fff; text-align: center; padding: 25px 20px; margin-bottom: 40px; position: relative; overflow: hidden; }
.sub-page-banner::after { content: ''; position: absolute; top: -50%; left: -10%; width: 50%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%); transform: rotate(30deg); }
.sub-page-banner h1 { font-size: 24px; letter-spacing: 3px; margin-bottom: 12px; font-weight: 600; position: relative; z-index: 2; }
.sub-page-banner p { font-size: 13px; opacity: 0.8; letter-spacing: 5px; font-weight: 300; position: relative; z-index: 2; }

.sub-page-layout { display: flex; align-items: flex-start; gap: 40px; margin-bottom: 60px; min-height: 500px; }

.sub-sidebar { width: 260px; flex-shrink: 0; background: #fff; border-radius: 8px; box-shadow: 0 8px 25px rgba(0,0,0,0.03); overflow: hidden; position: sticky; top: 100px; }
.sidebar-title { display: none; }
.sidebar-list { padding: 10px 0; }
.sidebar-list li a { display: block; padding: 16px 25px; border-bottom: 1px solid var(--border-color); color: var(--text-main); font-size: 16px; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); position: relative; }
.sidebar-list li:last-child a { border-bottom: none; }
.sidebar-list li a:hover, .sidebar-list li a.active { color: var(--primary-blue); background: #f8fafc; padding-left: 32px; font-weight: 500; }
.sidebar-list li a::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: var(--primary-blue); transform: scaleY(0); transition: transform 0.3s ease; }
.sidebar-list li a:hover::before, .sidebar-list li a.active::before { transform: scaleY(1); }

.sub-content { flex: 1; width: 0; background: #fff; padding: 35px 45px; border-radius: 8px; box-shadow: 0 8px 25px rgba(0,0,0,0.03); }

/* 文章详情 */
.article-header { text-align: center; margin-bottom: 40px; padding-bottom: 25px; border-bottom: 1px dashed #e2e8f0; }
.article-header h1 { font-size: 32px; color: var(--primary-blue); line-height: 1.4; margin-bottom: 16px; font-weight: 600; }
.article-meta { font-size: 13px; color: var(--text-muted); display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; }
.article-content { font-size: 16px; line-height: 2; color: #334155; text-align: justify; padding-bottom: 15px; }
.article-content p { margin-bottom: 20px; text-indent: 2em; }
.article-content img { max-width: 100%; height: auto !important; display: block; margin: 30px auto; border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.article-footer-nav { margin-top: 25px; padding-top: 20px; border-top: 1px dashed #e2e8f0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.article-footer-nav .nav-item { display: flex; align-items: center; }
.article-footer-nav .label { color: var(--text-muted); margin-right: 10px; white-space: nowrap; }
.article-footer-nav a { color: var(--text-main); transition: color 0.3s ease; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-footer-nav a:hover { color: var(--primary-blue); font-weight: 500; }

/* 文章列表 */
.article-list-pro { margin-top: 10px; }
.article-list-pro li { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px dashed var(--border-color); transition: all 0.3s ease; }
.article-list-pro li:last-child { border-bottom: none; }
.article-list-pro li a { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; color: #334155; position: relative; padding-left: 18px; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.article-list-pro li a::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; background-color: #cbd5e1; border-radius: 50%; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.article-list-pro li:hover a { color: var(--primary-blue); padding-left: 26px; font-weight: 500; }
.article-list-pro li:hover a::before { background-color: var(--primary-blue); transform: translateY(-50%) scale(1.6); box-shadow: 0 0 8px rgba(0, 64, 128, 0.45); }
.article-list-pro li .date { color: var(--text-muted); font-size: 14px; margin-left: 30px; min-width: 85px; text-align: right; transition: color 0.3s ease; }
.article-list-pro li:hover .date { color: var(--primary-blue); }

.pagination-wrapper { margin-top: 40px; text-align: center; font-size: 14px; color: var(--text-muted); }
.pagination-wrapper a, .pagination-wrapper b { display: inline-block; padding: 8px 15px; margin: 0 4px; border-radius: 4px; background: #f8fafc; color: var(--text-main); transition: all 0.3s ease; }
.pagination-wrapper a:hover { background: var(--primary-blue); color: #fff; }
.pagination-wrapper b { background: var(--primary-blue); color: #fff; box-shadow: 0 4px 10px rgba(0,64,128,0.2); }

/* ==========================================================================
   6. 响应式规则
   ========================================================================== */
@media (max-width: 992px) {
    .news-layout-pro { grid-template-columns: 1fr; } 
    .topics-flex-box { flex-wrap: nowrap; gap: 12px; } 
    .student-card { flex: 0 0 calc(28.5% - 15px); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    /* 头部菜单 */
    .header-inner { height: 60px; }
    .logo img { height: 35px; }
    .menu-toggle { display: flex; z-index: 1002; position: relative; }
    .main-nav { display: block; position: fixed; top: 0; right: -200px; width: 200px; height: 100vh; background: #fff; box-shadow: -5px 0 20px rgba(0,0,0,0.1); z-index: 1001; padding-top: 70px; transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow-y: auto; }
    .main-nav.is-open { right: 0; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { padding: 15px 20px; border-bottom: 1px solid #f0f5fa; display: block; font-size: 16px; }
    .main-nav a::after { display: none; }
    .menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 990; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
    .menu-overlay.is-active { opacity: 1; visibility: visible; }

    /* 首页画廊及模块 */
    .hero-banner-gallery { padding: 15px 0; } 
    .gallery-slider-wrap { height: 240px; }
    .gallery-item { max-width: 90vw; } 
    .gallery-item.prev, .gallery-item.next { opacity: 0; pointer-events: none; } 
    .gallery-btn { display: none; } 
    .news-section, .special-topics-section, .student-models-section, .gallery-section { margin-bottom: 16px; }
    .news-section { margin-top: 20px; }
    .site-footer { margin-top: 25px; }
    
    /* 手机端新闻布局重塑：洗牌换位 */
    .news-layout-pro { display: flex; flex-direction: column; gap: 15px; }
    .news-sidebar { display: contents; } 
    .news-sidebar .sub-news-card:nth-child(1) { order: 1; } /* 通知公告：排最上 */
    .right-main-card { order: 2; }                          /* 德育动态：排中间 */
    .news-sidebar .sub-news-card:nth-child(2) { order: 3; } /* 快捷按钮：排最下 */

    .main-news-card, .sub-news-card { padding: 18px 15px; }
    .no-header-card { padding: 18px 15px !important; }

    .calendar-date { width: 55px; margin-right: 12px; }
    .calendar-date .cal-week { font-size: 12px; padding: 3px 0; }
    .calendar-date .cal-md { font-size: 15px; padding: 5px 0 1px; }
    .cal-news-list li a { font-size: 15px; }
    
    /* 🌟 手机端：2x2 网格金刚区导航 */
    .topics-flex-box { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .topic-card-slim { padding: 16px 10px; flex-direction: column; text-align: center; border-left: none; gap: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
    .topic-icon { font-size: 28px; }
    .topic-info-slim h3 { font-size: 15px; margin-bottom: 0; }
    .topic-info-slim p, .topic-arrow-slim { display: none; }
    
    .student-card { flex: 0 0 calc(55% - 10px); }
    .student-info { padding: 12px 8px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gallery-card h3 { font-size: 14px; padding: 12px 5px; }

    /* 🌟 手机端：页脚极限瘦身方案 */
    .links-label { display: none; }
    .footer-links { padding: 12px 0; }
    .footer-links .container { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; }
    .links-list { gap: 15px; font-size: 13px; }
    .footer-copyright { padding: 15px 0; }
    .copyright-inner { flex-direction: column; text-align: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, 0.4); }
    .record-info { flex-direction: column; gap: 4px; line-height: 1.4; }
    .police-record { justify-content: center; }
    .police-record img { width: 14px; height: 14px; }
    .divider { display: none; }

    /* 🌟 二级页面适配 */
    .sub-page-banner { display: none; }
    .sub-page-layout { flex-direction: column; gap: 15px; margin-bottom: 30px; margin-top: 15px; }
    .sub-sidebar { width: 100%; box-shadow: none; border-bottom: 1px solid #eee; position: sticky; top: 60px; z-index: 99; border-radius: 0; background: #fff; }
    .sidebar-title { display: none; }
    .sidebar-list { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 12px 15px; gap: 12px; }
    .sidebar-list::-webkit-scrollbar { display: none; }
    .sidebar-list li { flex: 0 0 auto; } 
    .sidebar-list li a { display: block; padding: 8px 18px; color: #64748b; font-size: 14px; background: #f1f5f9 !important; border-radius: 20px; border-bottom: none !important; white-space: nowrap; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
    .sidebar-list li a::before { display: none; }
    .sidebar-list li a:hover, .sidebar-list li a.active { background: linear-gradient(135deg, var(--primary-blue), #005bb5) !important; color: #fff !important; font-weight: 600; padding-left: 18px; box-shadow: 0 4px 12px rgba(0, 64, 128, 0.25); transform: translateY(-1px); }
    
    .sub-content { width: 100%; padding: 20px 15px; }
    .breadcrumb { display: none !important; }

    .article-header h1 { font-size: 24px; }
    .article-meta { gap: 12px; }
    .article-content { font-size: 15px; line-height: 1.8; }
    .article-content img { margin: 20px auto; }

    .article-list-pro li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 0; }
    .article-list-pro li a { width: 100%; white-space: normal; overflow: visible; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.6; padding-left: 0; }
    .article-list-pro li a::before { display: none; }
    .article-list-pro li:hover a { padding-left: 0; }
    .article-list-pro li .date { margin-left: 0; font-size: 13px; }

    .pagination-wrapper { margin-top: 25px; padding: 0 5px; line-height: 2.5; }
    .pagination-wrapper a, .pagination-wrapper b { padding: 8px 14px; margin: 0 3px 10px 3px; border-radius: 6px; font-size: 14px; display: inline-block; }
    .pagination-wrapper a[title="Total record"] { display: none !important; }

    .notice-list li:nth-child(n+3) { display: none !important; }
}

/* =========================================
   纯 CSS 图片兜底魔法
   ========================================= */
.empty-hide img[src=""],
.empty-hide img:not([src]) {
    opacity: 0;
    visibility: hidden;
}