/* fzxx 主题补丁样式:列表/详情/分页等 CMF 模板专用组件
   色彩只引用 entry.css 的 @theme 令牌,不引入新色值 */

/* ── 栏目文章列表(news-plain-list:分区内纯文字列表)── */
.news-plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-paper-2);
}
.news-plain-list li + li {
  border-top: 1px solid var(--color-paper-2);
}
.news-plain-list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 4px;
  color: var(--color-ink);
}
.news-plain-list time {
  flex: none;
  font-size: 13px;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}
.news-plain-list strong {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-plain-list a:hover strong {
  color: var(--color-accent);
}

/* ── 图文列表(news-list-item:无子分类分类页)── */
.news-list-item {
  border-bottom: 1px solid var(--color-paper-2);
}
.news-list-item a {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 18px 0;
  color: var(--color-ink);
}
.news-list-item figure {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: var(--color-paper-2);
}
.news-list-item figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-list-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}
.news-list-item p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--color-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-list-item time {
  font-size: 13px;
  color: var(--color-muted-soft);
}
.news-list-item a:hover h3 {
  color: var(--color-accent);
}
@media (max-width: 640px) {
  .news-list-item a {
    grid-template-columns: 1fr;
  }
}

/* ── 文章详情 ── */
.article-detail {
  max-width: 860px;
  margin: 0 auto;
}
.article-head {
  margin-bottom: 18px;
}
.article-title {
  font-size: 26px;
  line-height: 1.4;
  margin: 0 0 10px;
}
.article-meta {
  display: flex;
  gap: 18px;
  margin: 0;
  font-size: 13px;
  color: var(--color-muted-soft);
}
.article-cover {
  margin: 0 0 18px;
}
.article-content,
.section-page-content {
  line-height: 2;
  font-size: 16px;
  color: var(--color-ink-2);
  text-align: justify;
}
.article-content p,
.section-page-content p {
  margin: 0 0 18px;
}
.article-content h2,
.section-page-content h2,
.article-content h3,
.section-page-content h3 {
  margin: 30px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--color-accent);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
  text-align: left;
}
.article-content h3,
.section-page-content h3 {
  font-size: 18px;
}
.article-content img,
.section-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.article-content video,
.section-page-content video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 0 18px;
  border-radius: 10px;
  background: #000;
}
.article-content div[data-w-e-type="video"],
.section-page-content div[data-w-e-type="video"] {
  margin: 0 0 18px;
}
.article-content ul,
.section-page-content ul {
  list-style: none;
  padding-left: 4px;
  margin: 0 0 18px;
}
.article-content ul > li,
.section-page-content ul > li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 20px;
}
.article-content ul > li::before,
.section-page-content ul > li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}
.article-content ol,
.section-page-content ol {
  padding-left: 26px;
  margin: 0 0 18px;
}
.article-content blockquote,
.section-page-content blockquote {
  margin: 0 0 16px;
  padding: 10px 16px;
  border-left: 3px solid var(--color-accent);
  background: var(--color-accent-wash);
  border-radius: 0 8px 8px 0;
}

/* 栏目正文表格(design.md §4.6):13px 表头、主紫下边框、行悬停浅紫 */
.section-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
}
.section-page-content th,
.section-page-content td {
  padding: 10px 12px;
  border-bottom: 1px solid rgb(26 16 31 / 9%);
  text-align: left;
  vertical-align: top;
}
.section-page-content th {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
  border-bottom: 2px solid var(--color-accent);
}
.section-page-content tbody tr:hover {
  background: var(--color-accent-wash);
}
.section-content-card .section-page-content a {
  color: var(--color-accent);
}
.section-content-card .section-page-content a:hover {
  color: var(--color-accent-deep);
}
.section-page-content .table-scroll {
  margin: 0 0 18px;
  overflow-x: auto;
}
.section-page-content .table-scroll table {
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .section-page-content .table-scroll table {
    min-width: 520px;
  }
}
.section-page-content > h2:first-child,
.section-page-content > h3:first-child {
  margin-top: 0;
}

/* ── 上一篇 / 下一篇 ── */
.article-sibling {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--color-paper-2);
}
.article-sibling a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--color-paper-2);
  border-radius: 10px;
  color: var(--color-ink);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-sibling a small {
  display: block;
  font-size: 12px;
  color: var(--color-muted-soft);
  margin-bottom: 4px;
}
.article-sibling a:hover {
  border-color: var(--color-accent-mid);
  color: var(--color-accent);
}
.article-sibling a.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}
.article-sibling .next {
  text-align: right;
}

/* ── 分页 ── */
.fz-pagination {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.fz-pagination ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fz-pagination a,
.fz-pagination span {
  display: inline-block;
  min-width: 34px;
  padding: 6px 10px;
  text-align: center;
  border: 1px solid var(--color-paper-2);
  border-radius: 8px;
  font-size: 13px;
  color: var(--color-ink-2);
}
.fz-pagination .active span,
.fz-pagination span.current {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.fz-pagination a:hover {
  border-color: var(--color-accent-mid);
  color: var(--color-accent);
}

/* 首页新闻要闻轮播(theme.js 驱动) */
.news-feature {
  position: relative;
}
.news-feature .news-feature-slide {
  display: none;
  position: absolute;
  inset: 0;
}
.news-feature .news-feature-slide.is-active {
  display: block;
  position: relative;
}

/* 桌面双栏时右侧列表与左侧要闻大图等高,空余高度均分到条目之间 */
@media (min-width: 1100px) {
  .band-news .news-grid {
    align-items: stretch;
  }
  .band-news .news-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

/* 首页新闻第 5 篇起:头条大图下方的三列标题条 */
.news-more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 40px;
  margin-top: 28px;
  border-top: 1px solid var(--color-paper-2);
}
.news-more-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  padding: 12px 0;
}
.news-more-item time {
  flex: none;
  font-size: 13px;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}
.news-more-item h4 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--color-ink);
}
.news-more-item:hover h4 {
  color: var(--color-accent);
}
@media (max-width: 759px) {
  .news-more {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .news-more-item + .news-more-item {
    border-top: 1px solid var(--color-paper-2);
  }
}

/* ── 示例内容 pill(待学校核实)── */
.pill-sample {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--color-accent-wash);
  color: var(--color-accent);
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
}
.news-feature-copy .pill-sample {
  margin-bottom: 10px;
  background: var(--color-white);
}
.news-side-item .pill-sample {
  margin-left: 6px;
  padding: 0 8px;
  font-size: 11px;
}
.news-more-item .pill-sample {
  flex: none;
  padding: 0 8px;
  font-size: 11px;
}
.news-plain-list .pill-sample {
  flex: none;
  align-self: center;
  padding: 0 8px;
  font-size: 11px;
}

/* ── 列表行 meta(日期 · 分类 · 状态)── */
.item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  color: var(--color-muted-soft);
}
.item-meta time {
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}
.item-meta .sep {
  color: var(--color-muted-soft);
}

/* ── 分页(ThinkPHP paginate 输出裸 li.page-item)── */
.fz-pagination {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.fz-pagination .page-item {
  list-style: none;
}
.fz-pagination .page-item .page-link,
.fz-pagination .page-item span.page-link {
  display: inline-block;
  min-width: 34px;
  padding: 6px 10px;
  text-align: center;
  border: 1px solid var(--color-paper-2);
  border-radius: 8px;
  font-size: 13px;
  color: var(--color-ink-2);
  background: #fff;
}
.fz-pagination .page-item.active .page-link {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.fz-pagination .page-item.disabled .page-link {
  opacity: 0.45;
  pointer-events: none;
}
.fz-pagination a.page-link:hover {
  border-color: var(--color-accent-mid);
  color: var(--color-accent);
}

/* ── 详情页(nbpu 版式:标题/meta 居中,正文卡片包裹)── */
.article-detail {
  max-width: 1200px;
  margin: 0 auto;
}
.article-head {
  max-width: 1000px;
  margin: 6px auto 22px;
  text-align: center;
}
.article-title {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.5;
  margin: 0 0 14px;
  text-align: center;
}
.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  color: var(--color-muted);
}
.article-meta .sep {
  color: var(--color-muted-soft);
}
.article-meta a {
  color: var(--color-accent);
}
.article-bodycard {
  max-width: none;
  margin: 0 auto;
  background: var(--color-mat);
  border: 1px solid rgb(26 16 31 / 9%);
  border-radius: 10px;
  padding: clamp(24px, 4vw, 56px) clamp(24px, 5vw, 64px);
  box-shadow: 0 6px 24px rgb(26 16 31 / 8%);
}
.article-cover {
  margin: 0 0 20px;
}
.article-sibling {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 640px) {
  .article-bodycard {
    padding: 18px 16px;
  }
  .article-meta {
    flex-wrap: wrap;
  }
}

/* ── 分区标题类型标签(对应复刻站 h2 small)── */
.section-card > h2 small {
  margin-left: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-muted-soft);
}

/* ── 面包屑"当前位置:"标签 ── */
.sub-crumb .crumb-label {
  opacity: 0.75;
  margin-right: 4px;
}

/* ── 页头校徽反白:深紫校徽在品牌紫页头上对比不足,统一转纯白剪影 ── */
.site-header .brand img {
  filter: brightness(0) invert(1);
}

/* ── 移动端抽屉:当前栏目高亮 ── */
.drawer-group.is-active > a,
.drawer-group.is-active > button,
.drawer-sub a.is-active {
  color: var(--color-accent-soft);
}


/* ── 单页正文图片网格(导入内容用,后台编辑可复用)── */
.fz-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0 0 18px;
}
.fz-gallery p,
.fz-gallery img {
  margin: 0;
}
.fz-gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.fz-gallery--wide {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 640px) {
  .fz-gallery,
  .fz-gallery--wide {
    grid-template-columns: 1fr;
  }
}

/* ── 单页正文 UI 精修(学校简介等)── */
/* 标题与正文间距 */
.section-card .section-page-content {
  margin-top: 4px;
}
/* 首段强调(导语感) */
.section-page-content > p:first-of-type {
  font-size: 17px;
  color: var(--color-ink);
  font-weight: 500;
  text-align: justify;
}
/* 图片网格:hover 轻微上浮 */
.fz-gallery p {
  overflow: hidden;
  border-radius: 10px;
}
.fz-gallery img {
  height: 220px;
  transition: transform 0.4s ease;
}
.fz-gallery p:hover img {
  transform: scale(1.04);
}
/* 单页正文里的视频自适应圆角 */
.section-page-content video {
  width: 100%;
  border-radius: 10px;
  background: var(--color-ink);
}

/* ── 专业设置聚合页:专业卡片目录 ── */
.program-directory .content-card__description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.program-directory .more-link {
  margin-top: auto;
  padding-top: 4px;
}

/* ── 搜索条(复刻站 search-bar:输入框 + 提交按钮)── */
.search-bar {
  display: flex;
  gap: 10px;
}
.search-bar input {
  flex: 1;
  min-width: 0;
}
.search-bar .btn {
  flex: none;
  min-height: 52px;
}

/* ── 页脚友情链接(后台「友情链接」有数据才显示)── */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  padding: 10px 0 14px;
  border-bottom: 1px solid rgb(26 16 31 / 9%);
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--color-muted);
}
.friend-links > span:first-child {
  color: var(--color-muted-soft);
}
.friend-links a {
  color: var(--color-muted);
}
.friend-links a:hover {
  color: var(--color-accent-mid);
}

/* 升学专业表:描述限单行,避免长文案撑高整排并放大裁切海报 */
.edu-grid > * {
  min-width: 0;
}
.edu-table table {
  table-layout: fixed;
}
.edu-table th:first-child,
.edu-table td:first-child {
  width: 34%;
}
.edu-table .edu-desc {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ── 三级导航:桌面 mega 面板(二级分组 + 三级链接)── */
.submenu--mega {
  display: flex;
  gap: 28px;
  padding: 18px 24px;
  min-width: 0;
  max-width: min(760px, calc(100vw - 32px));
}
.submenu-group {
  min-width: 112px;
}
.submenu--mega .submenu-head {
  display: block;
  padding: 4px 10px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
}
.submenu--mega .submenu-head:hover,
.submenu--mega .submenu-head.is-active {
  color: var(--color-accent);
}
.submenu-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(108px, 1fr));
  gap: 2px 6px;
}
.submenu-links a {
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-muted);
}
.submenu-links a:hover,
.submenu-links a.is-active {
  background: var(--color-accent-wash);
  color: var(--color-accent);
}
.submenu > a.is-active {
  background: var(--color-accent-wash);
  color: var(--color-accent);
}

/* ── 三级导航:移动抽屉二级/三级展开 ── */
.drawer-node__head {
  display: flex;
  align-items: center;
}
.drawer-node__head > a {
  flex: 1;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 6px 16px;
  font-size: 14px;
  color: color-mix(in oklab, var(--color-paper) 72%, transparent);
}
.drawer-node__head > button {
  flex: none;
  width: 44px;
  height: 40px;
  font-size: 18px;
  color: color-mix(in oklab, var(--color-paper) 72%, transparent);
}
.drawer-node__head a.is-active,
.drawer-node__head a:hover {
  color: var(--color-accent-soft);
}
.drawer-sub2 {
  padding-bottom: 6px;
}
.drawer-sub2 a {
  padding-left: 32px;
  font-size: 13px;
  color: color-mix(in oklab, var(--color-paper) 60%, transparent);
}
.drawer-sub2 a:hover,
.drawer-sub2 a.is-active {
  color: var(--color-accent-soft);
}

/* ── 子页横幅实景底图:加深底边压暗,保证标签与面包屑在亮部仍可读 ── */
.sub-banner:after {
  background-image: linear-gradient(
    180deg,
    color-mix(in oklab, var(--color-ink) 32%, transparent) 0,
    transparent 32%,
    color-mix(in oklab, var(--color-ink) 88%, transparent) 100%
  );
}
.sub-crumb {
  text-shadow: 0 1px 3px color-mix(in oklab, var(--color-ink) 55%, transparent);
}

/* ── 导航响应式:一级横排宽度不足时提前收进抽屉,避免横向溢出 ── */
@media (max-width: 1279px) {
  .main-nav > li > a {
    padding-inline: 9px;
    font-size: 15px;
  }
  /* 悬浮二维码仅桌面 hover 有用,窄屏隐藏以消除横向溢出 */
  .share-qr {
    display: none;
  }
}
@media (max-width: 1159px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ── 专业卡片:正文容器默认 span 为行内盒,块级标题/描述会脱离其左右内边距 ── */
.program-card__body {
  display: block;
}

/* ── 首页栏目卡:卡片数量不固定,末行居中而不是靠左留下孤卡 ── */
.program-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.program-grid > .program-card,
.program-grid > .content-card {
  flex: 0 1 calc((100% - 48px) / 3);
  min-width: 0;
}
@media (max-width: 1099px) {
  .program-grid > .program-card,
  .program-grid > .content-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}
@media (max-width: 759px) {
  .program-grid > .program-card,
  .program-grid > .content-card {
    flex-basis: 100%;
  }
}

/* ── 图集:照片墙 ── */
.gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.gallery-intro {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
}
.gallery-count {
  flex: none;
  font-family: var(--font-num);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--color-muted-soft);
}
.photo-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.photo-wall--article {
  margin-top: 32px;
}
.photo-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: var(--color-paper-2);
  box-shadow: 0 12px 32px rgba(26, 16, 31, .14);
  transition: transform 240ms cubic-bezier(.4, 0, .2, 1);
}
.photo-tile:hover {
  transform: translateY(-4px);
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 240ms cubic-bezier(.4, 0, .2, 1);
}
.photo-tile:hover img {
  opacity: .92;
}
.photo-tile:focus-visible {
  outline: 3px solid var(--color-accent-wash);
  outline-offset: 3px;
}
.photo-tile__cap {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 40px 18px 14px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--color-ink) 85%, transparent));
  color: var(--color-white);
}
.photo-tile__cap strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.photo-tile__cap small {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.6;
  color: color-mix(in oklab, var(--color-paper) 72%, transparent);
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .photo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}
@media (max-width: 767px) {
  .photo-wall {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .gallery-head {
    flex-direction: column;
    gap: 8px;
  }
}

/* ── 图集:照片灯箱 ── */
.photo-box {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px clamp(16px, 4vw, 72px);
  background: color-mix(in oklab, var(--color-ink) 92%, transparent);
}
.photo-box[hidden],
.photo-box__nav[hidden] {
  display: none;
}
.photo-box__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(1180px, 100%);
  max-height: 100%;
  margin: 0;
}
.photo-box__figure img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border-radius: 8px;
  background: var(--color-paper-2);
  box-shadow: 0 12px 32px rgba(26, 16, 31, .14);
}
.photo-box__figure figcaption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  text-align: center;
}
.photo-box__figure strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
}
.photo-box__figure small {
  font-size: 13px;
  color: color-mix(in oklab, var(--color-paper) 70%, transparent);
}
.photo-box__figure small:empty {
  display: none;
}
.photo-box__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in oklab, var(--color-paper) 18%, transparent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--color-ink) 24%, transparent);
  color: var(--color-white);
  font-family: var(--font-num);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms, border-color 150ms;
}
.photo-box__nav:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
}
.photo-box__nav:focus-visible {
  outline: 3px solid var(--color-accent-wash);
  outline-offset: 2px;
}
.photo-box__close {
  top: 20px;
  right: 20px;
}
.photo-box__prev {
  top: 50%;
  left: clamp(12px, 2vw, 32px);
  transform: translateY(-50%);
}
.photo-box__next {
  top: 50%;
  right: clamp(12px, 2vw, 32px);
  transform: translateY(-50%);
}
.photo-box__count {
  position: absolute;
  right: 24px;
  bottom: 20px;
  font-family: var(--font-num);
  font-size: 13px;
  letter-spacing: .08em;
  color: color-mix(in oklab, var(--color-paper) 60%, transparent);
}
body.is-photo-open {
  overflow: hidden;
}

/* 升学专业表：首列固定，方向列单行省略，避免长文案撑高整行 */
.edu-table table { table-layout: fixed; }
.edu-table th:first-child,
.edu-table td:first-child { width: 36%; }
.edu-table td:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edu-table td:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 单条视频时全宽展示，避免固定网格留空 ── */
.mm-grid.is-single {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(360px, auto);
}
.mm-grid.is-single .mm-card:first-child {
  grid-row: auto;
  grid-column: auto;
  min-height: 420px;
}

/* 卡片内容均为绝对定位，跨出两行后的隐式行需要显式给最小高度，否则塌成 0 */
.mm-grid {
  grid-auto-rows: minmax(180px, auto);
}

/* ── 无障碍:视觉隐藏但保留给读屏与搜索引擎的标题 ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── 视频栏目:内嵌播放器与缩略卡 ── */
button.mm-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}
button.mm-card:focus-visible,
button.mm-card.is-active {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.video-feature {
  margin-bottom: 28px;
}
.video-feature__stage {
  aspect-ratio: var(--video-ratio, 16 / 9);
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 16px 36px rgb(20 12 40 / 18%);
}
.video-feature__stage video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}
.video-feature__stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.video-feature__stage [hidden] {
  display: none !important;
}
.mm-card__tag {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgb(0 0 0 / 62%);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
}
.video-feature__title {
  margin: 14px 0 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-ink);
}
.video-feature__title:empty {
  display: none;
}

/* ── 数说东华:线性图标,描边继承 .text-accent ── */
.band-stats .stats-item .icon svg {
  width: 34px;
  height: 34px;
}

