/* ==========================================================
   中共泸州市委党校门户样式（依据 www.lzxzxy.cn 复刻）
   ========================================================== */
:root {
  --red: #b3232a;            /* 主红：导航/页脚/强调 */
  --red-dark: #92181e;       /* 导航悬停/激活深红 */
  --red-deeper: #7c1216;
  --red-light: #fdeee9;      /* 侧栏浅粉底 */
  --red-pink: #f8e7e7;       /* 日期块浅粉底 */
  --orange: #efa05d;         /* 侧栏当前项橙色 */
  --border-red: #cf4a4f;     /* 内容卡红边框 */
  --text: #333;
  --text-light: #888;
  --line: #ececec;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 14px/1.7 "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  min-width: 1560px;
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { border: 0; vertical-align: middle; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; outline: none; }
.container { width: 1540px; margin: 0 auto; }

/* ========================= 顶部校名横幅 ========================= */
.site-header {
  position: relative;
  height: 200px;
  background: #fdfdfb url("../img/banner.c5f38cb5.jpg") no-repeat center top;
  background-size: cover;
}
.site-header .header-home {
  position: absolute; left: 0; top: 0;
  width: 62%; height: 100%;
  display: block;
}

/* ========================= 主导航 ========================= */
.main-nav {
  background: #d80110;
  height: 65px;
  position: relative;
  z-index: 100;
}
.nav-inner { display: flex; align-items: center; height: 100%; }
.nav-menu { display: flex; height: 100%; flex: 1; }
.nav-menu > li { position: relative; height: 100%; }
.nav-menu > li > a {
  display: flex; align-items: center;
  height: 100%; padding: 0 38px;
  color: rgba(255, 255, 255, .72);  /* 未选中：粉白，同原版 */
  font-size: 18px; letter-spacing: 2px;
  white-space: nowrap;
}
.nav-menu > li:hover > a { color: #ffd04a; }
/* 激活栏目：无背景色块，金色文字 + 底部金色横条（与原官网一致） */
.nav-menu > li.active > a,
.nav-menu > li:hover > a {
  background: none;
  color: #ffd04a;
  position: relative;
}
.nav-menu > li.active > a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px;
  background: #ffd04a;
}
/* 下拉子菜单：背景与主导航一致，文字粉白、悬停金色（同原版配色逻辑） */
.nav-dropdown {
  display: none;
  position: absolute; left: 50%; top: 100%;
  transform: translateX(-50%);
  min-width: 100%;
  background: #d80110;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .18);
  z-index: 99;
}
.nav-menu > li:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 10px 24px;
  color: rgba(255, 255, 255, .72); font-size: 15px;
  white-space: nowrap; text-align: center;
}
.nav-dropdown li + li a { border-top: 1px solid rgba(255, 255, 255, .12); }
.nav-dropdown a:hover { background: #c0010d; color: #ffd04a; }
/* 搜索框：白色胶囊一体式（同原版） */
.nav-search { margin-left: auto; }
.nav-search form {
  display: flex; align-items: center;
  background: #fff;
  border-radius: 15px;
  padding: 0 6px 0 14px;
}
.nav-search input {
  width: 116px; height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333; font-size: 13px;
}
.nav-search input::placeholder { color: #999; }
.nav-search button {
  height: 30px; width: 24px;
  border: 0;
  background: transparent;
  color: #999;
  display: flex; align-items: center; justify-content: center;
}
.nav-search button:hover { color: var(--red); }
.nav-search button svg { width: 15px; height: 15px; }

/* ========================= 右侧悬浮工具 ========================= */
.float-widgets {
  position: fixed; right: 0; top: 40%;
  z-index: 200;
  display: flex; flex-direction: column;
}
.fw-btn {
  width: 44px; height: 44px;
  background: #3a3a3a;
  color: #fff;
  border: 0; padding: 0;   /* button 默认边框/内边距去除 */
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.fw-btn + .fw-btn { margin-top: 1px; }
.fw-btn:hover { background: var(--red); }
.fw-btn img { width: 20px; height: 20px; }
.fw-btn svg { width: 20px; height: 20px; }
/* 微信弹层：深色面板（同原版），二维码 + 一行文案 */
.fw-qr {
  display: none;
  position: absolute; right: 52px; top: 50%;
  transform: translateY(-50%);
  width: 172px; padding: 16px;
  background: #3f3f3f;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  text-align: center;
  color: #fff; font-size: 13px;
}
.fw-qr img { width: 140px; height: 140px; background: #fff; padding: 2px; }
.fw-qr p { margin: 12px 0 0; }
.fw-btn:hover .fw-qr { display: block; }
/* 电话弹层：深色面板（同原版），列地址与各科室电话 */
.fw-phone {
  display: none;
  position: absolute; right: 52px; top: 50%;
  transform: translateY(-50%);
  width: 180px; padding: 12px 14px;
  background: #3f3f3f;
  color: #fff; font-size: 13px; line-height: 1.7;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.fw-phone .t { display: block; margin-top: 6px; font-weight: normal; }
.fw-phone .t:first-child { margin-top: 0; }
.fw-phone p { margin: 0; word-break: normal; overflow-wrap: break-word; }
.fw-btn:hover .fw-phone { display: block; }

/* ========================= 首页：轮播 + 新闻Tab ========================= */
.home-section { margin-top: 44px; }
.hero-wrap { display: flex; gap: 80px; }
.hero-slider {
  position: relative;
  width: 750px; height: 470px;
  flex-shrink: 0;
  overflow: hidden;
}
.hero-slider .slider-wrapper { width: 100%; height: 100%; }
.hero-slider .slider-item {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .5s;
}
.hero-slider .slider-item.active { opacity: 1; }
.hero-slider .slider-img { width: 100%; height: 100%; background-size: cover; background-position: center; }
.hero-slider .slider-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, .45);
  color: #fff; padding: 10px 16px;
}
.hero-slider .slider-caption h3 { font-size: 15px; font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-slider .slider-prev,
.hero-slider .slider-next,
.gallery-slider .gallery-prev,
.gallery-slider .gallery-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 56px;
  border: 0;
  background: rgba(0, 0, 0, .3);
  color: #fff; font-size: 18px;
  z-index: 5;
}
.hero-slider .slider-prev, .gallery-slider .gallery-prev { left: 0; }
.hero-slider .slider-next, .gallery-slider .gallery-next { right: 0; }
.hero-slider .slider-prev:hover, .hero-slider .slider-next:hover,
.gallery-slider .gallery-prev:hover, .gallery-slider .gallery-next:hover { background: rgba(179, 35, 42, .8); }
.slider-dots {
  position: absolute; right: 16px; bottom: 46px;
  display: flex; gap: 6px; z-index: 5;
}
.slider-dots .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, .5); cursor: pointer;
}
.slider-dots .dot.active { background: #fff; }

/* 新闻 Tab 面板 */
.news-panel { flex: 1; min-width: 0; }
.card-tabs {
  display: flex; align-items: center;
  margin-bottom: 18px;
}
.card-tab-btn {
  padding: 11px 48px;
  font-size: 20px; color: #d80110;
  cursor: pointer;
  border-radius: 4px;
  position: relative;
  white-space: nowrap;
}
.card-tab-btn.active {
  color: #fff;
  background: linear-gradient(180deg, #dd4a2c 0%, #d71c13 100%);
  box-shadow: 0 3px 8px rgba(215, 28, 19, .35);
}
.card-tabs .more-link { margin-left: auto; color: #999; font-size: 13px; }
.card-tabs .more-link:hover { color: var(--red); }
.news-tab-content { display: none; }
.news-tab-content.active { display: block; }
.news-list li {
  display: flex; align-items: center;
  height: 53px;
  border-bottom: 1px solid var(--line);
}
.news-list li a {
  flex: 1; min-width: 0;
  font-size: 15px; color: #333;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-left: 16px;
  position: relative;
}
.news-list li a::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--red);
}
.news-list li a:hover { color: var(--red); }
.news-list .news-date { margin-left: 16px; color: #999; font-size: 14px; flex-shrink: 0; }

/* ========================= 首页：学习专题卡 ========================= */
.study-banners { margin-top: 48px; }
/* 与下方三栏列表共用同一套栅格（同间距同宽度，保证上下对齐） */
.study-row { display: flex; gap: 90px; }
.study-card {
  flex: 1; display: block;
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
  transition: transform .25s;
}
.study-card:hover { transform: translateY(-3px); }
.study-card img { width: 100%; height: 195px; object-fit: cover; display: block; }

/* ========================= 首页：三栏信息卡 ========================= */
.col-section { margin-top: 42px; }
.col-grid { display: flex; gap: 90px; }   /* 与 .study-row 一致，上下两排对齐 */
.col-card {
  flex: 1; min-width: 0;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  padding: 0 20px 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.col-head {
  display: flex; align-items: center;
  padding: 16px 0 12px;
  border-bottom: 1px solid #eee;
}
.col-head .col-icon {
  width: 24px; height: 24px; margin-right: 10px;
  color: var(--red); flex-shrink: 0;
}
.col-head .col-icon svg { width: 100%; height: 100%; display: block; }
.col-head h3 { font-size: 20px; color: var(--red); font-weight: bold; }
.col-head .more { margin-left: auto; color: #999; font-size: 13px; }
.col-head .more:hover { color: var(--red); }
/* 日期块样式（公告通知/培训动态/科研咨政） */
.col-list li {
  display: flex; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.col-list li:last-child { border-bottom: 0; }
.col-list .item-date { width: 60px; flex-shrink: 0; text-align: center; }
.col-list .item-date .d { display: block; font-size: 20px; font-weight: bold; color: #333; line-height: 1.2; }
.col-list .item-date .ym { display: block; font-size: 10px; color: #999; }
.col-list .item-title {
  flex: 1; min-width: 0;
  font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-left: 14px;
}
/* 红色小日期样式（学历教育/党建活动/县区党校） */
.col-list.row-style .item-date { width: auto; text-align: left; }
.col-list.row-style .item-date .d { font-size: 12px; font-weight: normal; color: var(--red); }
.col-list.row-style .item-date .ym { display: none; }

/* ========================= 首页：校训横幅 ========================= */
.hero-banner { margin-top: 30px; }
.hero-banner img { width: 100%; display: block; border-radius: 4px; }

/* ========================= 首页：影像中心 ========================= */
.gallery-panel { margin-top: 30px; }
.gallery-tab-content { display: none; position: relative; }
.gallery-tab-content.active { display: block; }
/* 图片掠影/视频中心：自动横向无缝滚动（列表渲染两份，-50% 循环，悬停暂停） */
.gallery-marquee { overflow: hidden; width: 100%; }
.gallery-track {
  display: flex; width: max-content;
  animation: galleryScroll 60s linear infinite;
}
.gallery-cell { flex: 0 0 auto; margin-right: 20px; display: block; }
.gallery-cell .gallery-img {
  width: 360px; height: 230px;
  background-size: cover; background-position: center;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  transition: transform .3s ease;
}
/* 鼠标悬停：滚动暂停 + 图片轻微放大 */
.gallery-cell { position: relative; }
.gallery-cell:hover { z-index: 5; }
.gallery-cell:hover .gallery-img { transform: scale(1.05); }
.gallery-cell .play-mask {
  position: absolute; inset: 0;
  background: url("../img/playMask.443b56ad.png") no-repeat center / 46px auto, rgba(0, 0, 0, .18);
  border-radius: 4px;
}
.gallery-marquee:hover .gallery-track { animation-play-state: paused; }
@keyframes galleryScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========================= 首页：报刊媒体 ========================= */
.media-links { margin-top: 30px; }
.media-row { display: flex; gap: 24px; }
.media-card {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px 10px 26px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  transition: transform .25s, box-shadow .25s;
}
.media-card:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0, 0, 0, .1); }
/* 红色刊物图标（每个刊物一种，与原官网一致） */
.media-card .media-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 6px auto 18px;
  color: var(--red);
}
.media-card .media-icon svg { width: 100%; height: 100%; }
.media-card p { font-size: 15px; color: #333; }

/* ========================= 友情链接下拉行 ========================= */
.friend-links {
  margin-top: 36px;
  background: #ececec;
  padding: 26px 0;
}
.friend-links .fl-row { display: flex; justify-content: space-between; }
.fl-select {
  flex: 0 0 auto;
  width: 168px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  color: #333; font-size: 14px;
  cursor: pointer;
}

/* ========================= 页脚 ========================= */
.site-footer {
  background: #d80110;   /* 与主导航一致的亮红 */
  color: #fff;
  text-align: center;
  padding: 26px 0 32px;
}
.site-footer .footer-text {
  font-size: 16px;
  font-weight: bold;
  line-height: 2;
  letter-spacing: 1px;
}
.site-footer .footer-text a { color: #fff; font-weight: bold; }
.site-footer .footer-text a:hover { text-decoration: underline; }
/* 后台自定义内容 footer.content 可能携带内联 text-align/left 样式，强制居中 */
.site-footer .footer-text,
.site-footer .footer-text p,
.site-footer .footer-text div,
.site-footer .footer-text span { text-align: center !important; }
.site-footer .footer-text p { margin: 0; }
.footer-badges {
  margin-top: 20px;
  display: flex; justify-content: center; align-items: center; gap: 150px;
}
.footer-badges img { height: 60px; }

/* ========================= 内页布局 ========================= */
.breadcrumb-bar { padding: 18px 0 0; }
.inner-layout {
  display: flex; gap: 24px;
  margin: 16px 0 40px;
  align-items: flex-start;
}
/* 左侧栏目菜单 */
.sidebar { width: 200px; flex-shrink: 0; }
.sidebar-title {
  background: var(--red);
  color: #fff;
  font-size: 18px;
  text-align: center;
  padding: 13px 0;
  letter-spacing: 2px;
}
.sidebar-menu { background: var(--red-light); padding-bottom: 2px; }
.sidebar-menu li { margin-top: 2px; }
.sidebar-menu li:first-child { margin-top: 2px; }
.sidebar-menu a {
  display: block;
  margin: 0 0 0 0;
  padding: 12px 10px;
  text-align: center;
  color: var(--red);
  font-size: 15px;
  background: var(--red-light);
}
.sidebar-menu li { background: #fff; padding: 0 0 2px; }
.sidebar-menu li a { margin: 0; }
.sidebar-menu a.active,
.sidebar-menu a:hover { background: var(--orange); color: #fff; }

/* 右侧主区 */
.content-main { flex: 1; min-width: 0; }
.content-head {
  display: flex; align-items: baseline;
  margin-bottom: 10px;
}
.content-head h1 { font-size: 20px; color: #444; font-weight: bold; }
.crumb { margin-left: auto; font-size: 13px; color: #999; }
.crumb a { color: #999; }
.crumb a:hover { color: var(--red); }
.crumb .sep { margin: 0 8px; color: #ccc; }
.crumb .current { color: var(--red); }

/* 红边框内容卡 */
.red-card {
  border: 1px solid var(--border-red);
  background: #fff;
  padding: 26px 30px;
  min-height: 400px;
}

/* 列表项（日期块） */
.post-list li {
  display: flex; align-items: center;
  padding: 14px 6px;
}
.post-date {
  width: 92px; flex-shrink: 0;
  background: var(--red-pink);
  border-radius: 4px;
  text-align: center;
  padding: 8px 0;
  margin-right: 22px;
}
.post-date .d { display: block; font-size: 30px; line-height: 1.2; color: #555; font-weight: bold; }
.post-date .ym { display: block; font-size: 12px; color: #999; }
.post-title {
  flex: 1; min-width: 0;
  font-size: 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block;
}
.post-title:hover { color: var(--red); }

/* 分页 */
.pagination {
  margin-top: 26px;
  display: flex; justify-content: center; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 34px; height: 34px;
  padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px; color: #666;
  background: #f7f7f7;
}
.pagination a:hover { color: var(--red); border-color: var(--red); }
.pagination a.active { background: var(--red); border-color: var(--red); color: #fff; }
.pagination .page-disabled { color: #bbb; background: #f7f7f7; }
.pagination .dots { border: 0; background: none; color: #999; }

/* 无结果 */
.no-result { text-align: center; padding: 80px 0; color: #999; font-size: 15px; }

/* ========================= 文章详情页 ========================= */
.detail-card { padding: 0; }
.detail-title {
  text-align: center;
  font-size: 24px; color: #333;
  padding: 26px 40px 16px;
  border-bottom: 2px solid var(--red);
}
.detail-meta {
  display: flex; justify-content: center; gap: 30px;
  color: #999; font-size: 13px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
.detail-meta svg { width: 14px; height: 14px; }
.detail-content {
  padding: 26px 34px 34px;
  font-size: 16px; line-height: 2.1;
  color: #333;
  word-break: break-word;
}
.detail-content p { text-indent: 2em; margin-bottom: 8px; }
.detail-content img { max-width: 100%; height: auto; display: block; margin: 10px auto; }
.detail-content .summary { background: var(--red-light); padding: 12px 16px; text-indent: 2em; margin-bottom: 16px; border-radius: 4px; }
.detail-content .picture img { margin: 10px auto; }
.detail-content .video { text-align: center; margin: 14px 0; }
.detail-content .download a { color: var(--red); text-indent: 0; display: inline-block; margin-right: 14px; }
.detail-foot {
  display: flex; align-items: flex-start; gap: 20px;
  border-top: 1px solid var(--line);
  padding: 16px 34px;
  font-size: 14px; color: #666;
}
.detail-foot .pn { flex: 1; min-width: 0; }
.detail-foot .pn p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.detail-foot .pn a:hover { color: var(--red); }
.btn-back {
  flex-shrink: 0;
  background: #eee; color: #666;
  padding: 8px 26px;
  border-radius: 3px;
  font-size: 14px;
}
.btn-back:hover { background: var(--red); color: #fff; }

/* 搜索结果 */
.search-list li { padding: 12px 4px; border-bottom: 1px dashed var(--line); }
.search-list .title a { font-size: 16px; color: var(--red); }
.search-list .description { display: flex; gap: 16px; color: #999; font-size: 13px; margin-top: 4px; }
.search-list .text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-list em { font-style: normal; color: var(--red); font-weight: bold; }

/* ==========================================================
   响应式：移动端适配（≤1280 中屏 / ≤1024 平板 / ≤768 手机）
   ========================================================== */
@media (max-width: 1280px) {
  body { min-width: 0; overflow-x: hidden; }  /* 防溢出保险：残留宽元素不产生横向滚动 */
  .container { width: auto; padding: 0 20px; }
  .study-row, .col-grid { gap: 32px; }
  .hero-wrap { gap: 40px; }
  .hero-slider { width: 56%; height: auto; aspect-ratio: 750 / 470; }
  .site-footer .footer-text { font-size: 15px; }
}

@media (max-width: 1024px) {
  /* 导航：高度收窄 + 横向滑动；搜索框固定右缘，菜单在其左侧滚动 */
  .main-nav { height: 48px; }
  .nav-inner { position: relative; }
  .nav-menu {
    flex: 1; min-width: 0;                     /* 强制可收缩，允许横向滚动 */
    margin-right: 140px;                        /* 滚动盒自身收窄，菜单在搜索框左侧干净截断 */
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-menu::-webkit-scrollbar { display: none; }
  .nav-menu > li > a { height: 48px; padding: 0 16px; font-size: 15px; letter-spacing: 0; }
  .nav-search {
    position: absolute; right: 20px; top: 50%;
    transform: translateY(-50%);
    margin-left: 0; z-index: 30;
  }
  .nav-search input { width: 84px; }
  .nav-dropdown {
    position: fixed; left: 0; right: 0; top: 48px;
    transform: none; min-width: 0;
    display: none; flex-wrap: wrap;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .25);
  }
  .nav-menu > li:hover .nav-dropdown { display: none; }  /* 触屏无 hover，改点击展开 */
  .nav-menu > li.dd-open .nav-dropdown { display: flex; }
  .nav-dropdown a { flex: 0 0 50%; font-size: 14px; padding: 11px 16px; }

  /* 首页：轮播与新闻面板上下堆叠；轮播突破容器内边距横向铺满 */
  .home-section { margin-top: 20px; }
  .hero-wrap { flex-direction: column; gap: 20px; }
  .hero-slider {
    width: calc(100% + 40px); margin: 0 -20px;   /* 抵消 .container 的左右 20px 内边距 */
    aspect-ratio: 16 / 9;
  }
  .hero-slider .slider-caption h3 { font-size: 14px; }
  /* Tab 按钮收缩，防止撑破窄视口（桌面 padding 48px 过大） */
  .card-tab-btn { padding: 9px 20px; font-size: 16px; }
  .news-list li { height: 48px; }
  .news-panel .news-list li a { font-size: 15px; }
  .study-row { gap: 20px; }
  .study-card img { height: auto; aspect-ratio: 451 / 198; }
  .col-grid { gap: 20px; }
  .col-head h3 { font-size: 18px; }
  .col-list .item-title { font-size: 14px; }
  .col-list .item-date { width: 50px; }
  .col-list .item-date .d { font-size: 18px; }
  .gallery-marquee { overflow-x: auto; scrollbar-width: none; }
  .gallery-marquee::-webkit-scrollbar { display: none; }
  .gallery-cell .gallery-img { width: 280px; height: 180px; }
  .media-row { flex-wrap: wrap; }
  .media-card { flex: 0 0 calc(33.33% - 14px); padding: 20px 8px 16px; }
  .media-card .media-icon { width: 40px; height: 40px; margin: 0 auto 10px; }
  .media-card p { font-size: 13px; }

  /* 页脚 */
  .site-footer { padding: 20px 0 24px; }
  .site-footer .footer-text { font-size: 14px; letter-spacing: 0; }
  .footer-badges { gap: 40px; margin-top: 14px; }
  .footer-badges img { height: 48px; }

  /* 右侧悬浮工具收窄 */
  .fw-btn { width: 40px; height: 40px; }
  .fw-qr { right: 46px; width: 150px; }
  .fw-qr img { width: 120px; height: 120px; }
  .fw-phone { right: 46px; width: 168px; }

  /* 内页 */
  .red-card { padding: 18px 16px; }
  .detail-title { font-size: 20px; padding: 20px 16px 12px; }
  .detail-meta { gap: 16px; flex-wrap: wrap; padding: 10px 16px; }
  .detail-content { padding: 18px 16px 22px; }
  .detail-foot { padding: 14px 16px; }
}

@media (max-width: 768px) {
  /* 页头：左对齐显示校名，避免 cover 居中裁掉左侧 logo */
  .site-header { height: 90px; background-position: left top; }

  /* 首页区块全部单列 */
  .study-row { flex-direction: column; gap: 14px; }
  .col-grid { flex-direction: column; gap: 14px; }
  .col-card { padding: 0 14px 6px; }
  .col-head { padding: 12px 0 10px; }
  .col-head h3 { font-size: 17px; }
  .col-head .col-icon { width: 20px; height: 20px; }
  .col-list li { padding: 10px 0; }
  .card-tab-btn { padding: 8px 14px; font-size: 15px; }
  .news-list li { height: 44px; }
  .news-list .news-date { display: none; }  /* 窄屏隐藏日期，标题完整显示 */
  .news-list li a { padding-left: 12px; font-size: 14px; }
  .col-list .item-title { padding-left: 10px; }
  .gallery-cell { margin-right: 14px; }
  .gallery-cell .gallery-img { width: 240px; height: 150px; }
  .media-card { flex: 0 0 calc(50% - 8px); }
  .friend-links { padding: 14px 0; }
  .friend-links .fl-row { flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
  .fl-select { flex: 0 0 calc(50% - 5px); height: 36px; font-size: 12px; }
  .hero-banner { margin-top: 20px; }
  .hero-banner img { border-radius: 0; }

  /* 内页：侧栏堆叠到主区上方 */
  .breadcrumb-bar { padding: 12px 0 0; }
  .inner-layout { flex-direction: column; gap: 14px; margin: 12px 0 24px; }
  .sidebar { width: 100%; }
  .sidebar-title { padding: 11px 0; font-size: 16px; }
  .sidebar-menu { display: flex; flex-wrap: wrap; padding-bottom: 0; background: #fff; }
  .sidebar-menu li { margin: 0; flex: 0 0 33.33%; padding: 0 0 2px; }
  .sidebar-menu a { padding: 10px 6px; font-size: 14px; }
  .content-head h1 { font-size: 17px; }
  .crumb { display: none; }
  .red-card { min-height: 0; padding: 14px 12px; }
  .post-list li { padding: 10px 2px; }
  .post-date { width: 64px; padding: 6px 0; margin-right: 12px; }
  .post-date .d { font-size: 20px; }
  .post-date .ym { font-size: 10px; }
  .post-title { font-size: 14px; }
  .detail-title { font-size: 18px; padding: 16px 12px 10px; }
  .detail-content { font-size: 15px; line-height: 1.9; padding: 14px 12px 18px; }
  .detail-content p { text-indent: 2em; }
  .detail-foot { flex-direction: column; gap: 8px; padding: 12px; font-size: 13px; }
  .btn-back { align-self: flex-start; padding: 7px 18px; font-size: 13px; }
  .search-list .title a { font-size: 15px; }
  .search-list .description { flex-wrap: wrap; gap: 8px; }
  .error-page { padding: 50px 0; }
  .float-widgets { top: auto; bottom: 60px; }
}

/* 错误页 */
.error-page { text-align: center; padding: 100px 0; }
.error-page h1 { font-size: 60px; color: var(--red); margin-bottom: 16px; }
.error-page p { color: #888; margin-bottom: 24px; }
.error-page .btn-back { display: inline-block; }

/* 响应式适配统一见文件上方「响应式：移动端适配」区块（≤1280/≤1024/≤768） */
