:root {
  --primary: #2f95df;
  --primary-dark: #237fc6;
  --primary-light: #63b9f3;
  --primary-mid: #46a9ed;
  --accent: #c8960c;
  --bg: #ffffff;
  --panel-bg: #f5f9fb;
  --panel-bg-hover: #effaff;
  --list-item-bg: #ffffff;
  --list-item-gap: 10px;
  --text: #333333;
  --text-muted: #666666;
  --line: #dedede;
  --card-border: #e0e6eb;
  --stripe: #f5f9fb;
  --page-padding: 16px;
  --content-max: 1500px;
  --nav-max: 1500px;
  --section-sidebar-width: 240px;
  --section-sidebar-sticky-gap: 12px;
  --section-layout-gap: 12px;
  --nav-height: 44px;
  --nav-padding-x: 18px;
  --header-height: 140px;
  --brand-height: 96px;
  --title-bar-bg: #007fd4;
  --block-header-bg: color-mix(in srgb, var(--title-bar-bg) 88%, #000000);
  --block-header-bg-hover: color-mix(in srgb, var(--title-bar-bg) 76%, #000000);
  --block-header-row-bg: color-mix(in srgb, var(--title-bar-bg) 97%, #ffffff);
  --block-header-height: 32px;
  --title-bar-height: 96px;
  --logo-max-height: calc(var(--title-bar-height) - 36px);
  --logo-max-width: min(320px, 34vw);
  --font-site-title: clamp(26px, 2.55vw, 34px);
  --footer-height: 48px;
  --hero-height: 470px;
  --about-row-height: 423px;
  --video-height: 280px;
  --section-row-height: 320px;
  --news-row-height: 200px;
  --list-row-height: 50px;
  --bar-row-height: 72px;
  --nav-bar-bg: #ffffff;
  --footer-bg: #237fc6;
  --grad-blue: linear-gradient(180deg, #46a9ed 0%, #2f95df 100%);
  --grad-blue-h: linear-gradient(90deg, #237fc6 0%, #2f95df 100%);
  --grad-orange: linear-gradient(180deg, #d4a017 0%, #c8960c 100%);
  --grad-block-base: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  --grad-block-intro: linear-gradient(180deg, #f8fbff 0%, #edf5fb 100%);
  --grad-block-panel: linear-gradient(180deg, #ffffff 0%, #f4f9fe 100%);
  --grad-block-news: linear-gradient(180deg, #f9fcff 0%, #eef6fc 100%);
  --block-shadow: 0 1px 4px rgba(0, 70, 140, 0.08);
  /* 字体字号（对齐 gjsbxy.xiyi.edu.cn） */
  --font-family: "Microsoft YaHei", "微软雅黑", SimSun, "宋体", sans-serif;
  --font-base: 16px;
  --font-nav: 20px;
  --font-block-title: 20px;
  --font-more: 16px;
  --font-intro: 18px;
  --font-intro-lead: 21px;
  --font-list: 20px;
  --font-news: 19px;
  --font-news-date: 15px;
  --font-footer: 17px;
  --font-page-title: 26px;
  --line-intro: 36px;
  --line-list: 34px;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--font-base);
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  max-width: 100%;
}

/* ── 页眉 ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

/* 仅品牌区（无菜单栏），用于后台登录等页面 */
.site-header.site-header-brand-only {
  position: static;
  flex-shrink: 0;
}

body.admin-site .site-header.site-header-has-actions {
  position: relative;
}

body.admin-site .site-header .admin-header-actions {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.header-brand-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: var(--title-bar-height);
  padding: 0;
  display: flex;
  align-items: center;
  background: var(--title-bar-bg);
}

.site-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  max-width: var(--nav-max);
  margin: 0 auto;
  padding: 0 var(--page-padding);
  min-width: 0;
  min-height: var(--title-bar-height);
}

.site-brand-text {
  text-align: left;
  min-width: 0;
}

.logo {
  flex-shrink: 0;
  width: auto;
  min-width: 0;
  max-height: var(--logo-max-height);
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  background: transparent;
  overflow: visible;
}

.logo-image {
  width: auto;
  height: auto;
  max-height: var(--logo-max-height);
  max-width: var(--logo-max-width);
  object-fit: contain;
  background: transparent;
  display: none;
}

.logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-subtitle {
  margin: 0 0 2px;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
}

.site-title {
  margin: 0;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: var(--font-site-title);
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.35;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-nav-wrap {
  position: relative;
  overflow: hidden;
  background: var(--nav-bar-bg);
  border-top: 4px solid var(--title-bar-bg);
}

.header-nav-wrap::before {
  display: none;
}

.header-nav-inner {
  position: relative;
  z-index: 1;
  max-width: var(--nav-max);
  margin: 0 auto;
  padding: 0 var(--page-padding);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--nav-height);
}

.header-nav-toolbar {
  display: contents;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  align-items: stretch;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid #c8d4de;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: #f5f9fb;
  border-color: var(--primary-light);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: #333333;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.header-nav-wrap.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header-nav-wrap.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.header-nav-wrap.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-btn {
  flex-shrink: 0;
  white-space: nowrap;
  border: none;
  border-radius: 0;
  background: #ffffff;
  color: #000000;
  height: auto;
  min-height: var(--nav-height);
  line-height: var(--nav-height);
  padding: 0 calc(var(--nav-padding-x) - 2px);
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: var(--font-nav);
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.main-nav .nav-btn:first-child {
  flex: 0 0 auto;
}

.main-nav .nav-btn:not(:first-child) {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 0 8px;
}

@media (max-width: 1360px) {
  .nav-btn {
    padding: 0 12px;
    font-size: 19px;
  }

  .site-search {
    width: 190px;
  }
}

.nav-btn.active {
  background: var(--title-bar-bg);
  color: #ffffff;
  transform: none;
  box-shadow: none;
  font-weight: 700;
}

.nav-btn:hover {
  background: var(--title-bar-bg);
  color: #ffffff;
  transform: none;
  box-shadow: none;
  font-weight: 700;
}

/* 鼠标在菜单栏内时，仅当前悬浮项高亮，其余（含当前页）恢复默认 */
.main-nav:hover .nav-btn:not(:hover) {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  transform: none;
  box-shadow: none;
}

.site-search {
  position: relative;
  flex-shrink: 0;
  align-self: center;
  width: 220px;
  height: 30px;
  margin: 0 0 0 12px;
  border: 1px solid #c8d4de;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
}

.site-search input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  color: #333333;
  padding: 0 40px 0 15px;
  font-family: var(--font-family);
  font-size: var(--font-base);
  outline: none;
}

.site-search input::placeholder {
  color: #999999;
}

.site-search button {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: opacity 0.2s;
}

.site-search button:hover {
  opacity: 0.75;
}

.site-search button svg {
  width: 16px;
  height: 16px;
  stroke: #666666;
  fill: none;
  stroke-width: 2.2;
}

/* ── 上课场景背景（首页与后台共用） ── */
.site-scene-background,
.page-body {
  background-color: #f3f9ff;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1200' viewBox='0 0 1600 1200'%3E%3Cg fill='none' stroke='%236f93b6' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round' opacity='0.2'%3E%3Cpath d='M96 170H356V244H96Z'/%3E%3Cpath d='M82 244H370V280H82Z'/%3E%3Cpath d='M130 298H322V388H130Z'/%3E%3Cpath d='M500 180L732 180L732 368L500 368Z'/%3E%3Cpath d='M732 180L964 180L964 368L732 368Z'/%3E%3Cpath d='M732 180V368'/%3E%3Cpath d='M548 236H688M548 268H702M548 300H680'/%3E%3Cpath d='M778 236H918M778 268H934M778 300H904'/%3E%3Crect x='1030' y='250' width='214' height='214'/%3E%3Cpath d='M1062 302H1212M1062 342H1212M1062 382H1158'/%3E%3Cpath d='M430 640H640V860H430Z'/%3E%3Cpath d='M640 640H850V860H640Z'/%3E%3Cpath d='M640 640V860'/%3E%3Cpath d='M634 674H646M634 710H646M634 746H646M634 782H646'/%3E%3Cpath d='M458 688H608M458 722H618M458 756H588'/%3E%3Cpath d='M670 688H820M670 722H830M670 756H800'/%3E%3Cpath d='M1040 700H1360V724H1040Z'/%3E%3Cpath d='M1080 724H1320V854H1080Z'/%3E%3Cpath d='M1070 854H1330'/%3E%3Cpath d='M1264 710H1516V768H1264Z'/%3E%3Cpath d='M1252 768H1528V794H1252Z'/%3E%3Cpath d='M1292 794H1488V874H1292Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23000000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round' opacity='0.14'%3E%3Crect x='180' y='900' width='520' height='160'/%3E%3Cpath d='M200 930H680M200 965H540M220 1000H510'/%3E%3Crect x='360' y='1018' width='160' height='108'/%3E%3Cpath d='M392 1048H488M392 1080H470'/%3E%3Cpath d='M350 1126H530'/%3E%3C/g%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1' stroke-linecap='round' stroke-linejoin='round' opacity='0.26'%3E%3Crect x='184' y='904' width='512' height='152'/%3E%3Cpath d='M206 936H674M206 971H536'/%3E%3Crect x='364' y='1022' width='152' height='100'/%3E%3C/g%3E%3C/svg%3E"),
    repeating-linear-gradient(
      25deg,
      rgba(109, 157, 205, 0.05) 0,
      rgba(109, 157, 205, 0.05) 1px,
      transparent 1px,
      transparent 18px
    ),
    repeating-linear-gradient(
      -25deg,
      rgba(140, 188, 228, 0.035) 0,
      rgba(140, 188, 228, 0.035) 1px,
      transparent 1px,
      transparent 24px
    ),
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.96), rgba(241, 249, 255, 0.92) 62%, rgba(227, 241, 252, 0.9));
  background-size: 1250px 920px, 200px 200px, 240px 240px, 100% 100%;
  background-position: center top, 0 0, 0 0, 0 0;
  background-repeat: repeat;
}

/* ── 页面主体 ── */
.page-body {
  flex: 1 0 auto;
  min-height: 0;
  padding-top: var(--header-height);
  padding-bottom: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

/* ── 全宽轮播 ── */
.hero-banner {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 2px;
  background: var(--panel-bg);
  overflow: visible;
  --photo-gap: 0px;
}

.hero-banner.is-hover-floating {
  position: relative;
  z-index: 40;
  overflow: visible;
}

.hero-track {
  position: relative;
  min-height: calc(var(--hero-height) * 0.4);
  overflow: visible;
  max-width: 100%;
  padding: 6px 0 4px;
}

.hero-track.is-hover-floating {
  overflow: visible;
  z-index: 41;
}

.hero-slide {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  background: var(--slide-bg);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(26, 90, 158, 0.18);
  box-shadow: 0 3px 10px rgba(0, 70, 140, 0.1);
}

.photo-wall-slide {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  top: auto;
  flex: 0 0 auto;
  display: block;
  width: 100%;
  height: var(--thumb-height, 120px);
  min-height: 0;
  box-sizing: border-box;
  padding: 5px 5px 7px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.95);
  outline: none;
  transform: scale(var(--depth-scale, 0.78));
  transform-origin: center center;
  transition:
    transform 0.28s ease,
    box-shadow 0.35s ease;
  box-shadow:
    inset 0 0 0 1px rgba(0, 48, 96, 0.06),
    0 4px 10px rgba(0, 48, 96, 0.1),
    0 10px 22px rgba(0, 48, 96, 0.12);
}

.photo-wall-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  background: #f3f3f0;
  border-radius: 2px;
  transition: object-fit 0.2s ease;
}

.photo-wall-empty {
  min-height: calc((var(--hero-height) - 56px) * 0.3);
  transform: none;
  border-radius: 0;
}

.photo-wall-item {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  width: var(--thumb-width, 152px);
  height: auto;
  min-height: var(--thumb-height, 120px);
  z-index: var(--photo-stack, 1);
  pointer-events: auto;
  opacity: var(--depth-opacity, 0.88);
  will-change: opacity;
  border: none;
  padding: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
  overflow: visible;
  transition: opacity 0.28s ease;
}

.photo-wall-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.photo-wall-item:hover {
  z-index: 100;
}

.photo-wall-item.is-hover-enlarged {
  z-index: 200;
  opacity: 1 !important;
}

.photo-wall-item.is-hover-enlarged .photo-wall-slide {
  transform: scale(2) !important;
  transform-origin: bottom center;
  overflow: visible;
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 48, 96, 0.08),
    0 12px 24px rgba(0, 48, 96, 0.18),
    0 20px 40px rgba(0, 0, 0, 0.12);
}

.photo-wall-item.is-hover-enlarged .photo-wall-image {
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.photo-wall-viewport {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  --photo-wall-caption-space: 0;
  padding: var(--photo-wall-caption-space) 0 8px;
}

.photo-wall-viewport.is-hover-floating {
  overflow: visible;
  z-index: 42;
}

.photo-wall-track {
  display: flex;
  align-items: flex-end;
  gap: var(--photo-gap, 32px);
  width: max-content;
  padding: 2px 0 4px;
  animation: photoWallScroll var(--photo-wall-duration, 24s) linear infinite;
  will-change: transform;
}

.photo-wall-viewport:hover .photo-wall-track,
.photo-wall-viewport.is-paused .photo-wall-track {
  animation-play-state: paused;
}

@keyframes photoWallScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.photo-wall-caption {
  position: static;
  flex: 0 0 auto;
  order: -1;
  width: 100%;
  max-width: 100%;
  margin: 0 0 4px;
  padding: 0 2px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  background: transparent;
  border-radius: 0;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.hero-dots:empty {
  display: none;
}

.photo-wall-dots-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 6px var(--page-padding) 10px;
}

.photo-wall-dots-bar[hidden] {
  display: none !important;
}

.photo-wall-dots-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(520px, 72%);
  min-width: 140px;
  height: 10px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(232, 240, 248, 0.95) 100%);
  border: 1px solid rgba(26, 90, 158, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.photo-wall-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--title-bar-bg) 28%, transparent);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.photo-wall-dot:hover:not(.is-current):not(.active) {
  background: color-mix(in srgb, var(--title-bar-bg) 45%, transparent);
  transform: scale(1.1);
}

.photo-wall-dot.is-current,
.photo-wall-dot.active {
  width: 9px;
  height: 9px;
  background: var(--title-bar-bg);
  transform: scale(1.35);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--title-bar-bg) 28%, transparent);
}

.photo-wall-dot:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.photo-wall-viewport.is-dot-mode {
  overflow-x: hidden;
  overflow-y: visible;
}

.photo-wall-track.is-manual-position {
  animation: none !important;
  will-change: transform;
  transition: transform 0.45s ease;
}

.photo-wall-track.is-js-scrolling {
  animation: none !important;
  will-change: transform;
}

.photo-wall-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.photo-wall-lightbox.is-open {
  display: flex;
}

.photo-wall-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.photo-wall-lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.photo-wall-lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.photo-wall-lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: calc(92vh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.photo-wall-lightbox-image {
  display: block;
  max-width: 96vw;
  max-height: calc(92vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.photo-wall-lightbox-image.is-linkable {
  cursor: pointer;
}

.photo-wall-lightbox-image.is-linkable:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 0 2px rgba(255, 255, 255, 0.45);
}

.photo-wall-lightbox-caption {
  margin: 0;
  color: #fff;
  font-size: 14px;
  text-align: center;
  max-width: 96vw;
}

.photo-wall-lightbox-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  text-align: center;
}

.photo-wall-lightbox-link {
  color: #fff;
  font-size: 14px;
  text-decoration: underline;
}

body.photo-wall-lightbox-open {
  overflow: hidden;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #c8d4de;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.hero-dot:hover {
  background: #9eb8cc;
}

.hero-dot.active,
.hero-dot[aria-current="true"] {
  background: var(--primary);
  transform: scale(1.15);
}

/* ── 内容区 ── */
.container {
  width: 100%;
  max-width: min(var(--content-max), 100%);
  margin: 0 auto;
  padding: 0 var(--page-padding) 28px;
  min-width: 0;
}

main.container.container--section-layout {
  width: min(var(--nav-max), 100%);
  max-width: min(var(--nav-max), 100%);
  margin-inline: auto;
  padding-inline: var(--page-padding);
  padding-bottom: 28px;
  box-sizing: border-box;
}

main.container.container--section-layout .section-workspace {
  grid-template-columns: minmax(0, var(--section-sidebar-width)) minmax(0, 1fr);
  gap: var(--section-layout-gap);
  width: 100%;
  max-width: none;
}

main.container.container--section-layout .section-main-panel {
  width: 100%;
}

.home-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 53.6%) minmax(0, 46.4%);
  gap: 20px;
  align-items: stretch;
}

.home-row-two {
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  align-items: stretch;
}

.home-row-two .home-block-video {
  height: auto;
  align-self: start;
}

.home-row-two .home-block-panel {
  height: 100%;
  min-height: calc(var(--block-header-height) + var(--video-height));
}

.home-row-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-row-about {
  width: 100%;
  margin: 40px 0 30px;
  min-height: auto;
}

.home-row-panel {
  width: 100%;
  min-height: auto;
  margin: 0 0 40px;
  padding: 0 0 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fb 72%, #e8f0f6 100%);
}

.home-row-panel-plain {
  background: none;
  margin-bottom: 40px;
  padding-bottom: 0;
}

.home-row-news {
  width: 100%;
  grid-template-columns: 1fr;
  margin: 10px 0 60px;
}

.home-row-single {
  grid-template-columns: 1fr;
}

.home-block {
  background: var(--grad-block-base);
  border: 1px solid rgba(26, 90, 158, 0.14);
  box-shadow: var(--block-shadow);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-block-intro {
  background: var(--grad-block-intro);
  min-height: var(--about-row-height);
  transition: background 0.3s, box-shadow 0.3s;
}

.home-block-intro:hover {
  background: linear-gradient(180deg, #f6faff 0%, #e8f2fb 100%);
  box-shadow: 0 3px 10px rgba(0, 70, 140, 0.12);
}

.home-block-panel .block-body {
  padding-top: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-block-panel .block-body-stripe {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-block-panel {
  background: var(--grad-block-panel);
}

.home-block-news {
  background: var(--grad-block-news);
  min-height: auto;
  border: 1px solid rgba(26, 90, 158, 0.14);
}

/* ── 区块标题 ── */
.block-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: transparent;
}

.block-header-dark,
.block-header-stripe {
  background: var(--block-header-row-bg);
  min-height: var(--block-header-height);
  height: var(--block-header-height);
  align-items: stretch;
}

.block-header-dark::before,
.block-header-stripe::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--block-header-bg);
}

.block-header-light {
  border-bottom: 2px solid var(--primary-light);
  min-height: 56px;
}

.block-header-light .block-title {
  background: none;
  color: var(--primary);
  clip-path: none;
  padding: 10px 16px;
  margin: 0;
  font-size: var(--font-block-title);
  height: auto;
  min-height: 56px;
}

.block-header-light .block-title-icon svg {
  stroke: var(--primary);
}

.block-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 44px 0 14px;
  height: var(--block-header-height);
  color: #fff;
  font-size: var(--font-block-title);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  background: var(--block-header-bg);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 100%, 0 100%);
}

.block-title-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}

.block-title-icon svg {
  width: 100%;
  height: 100%;
  stroke: #fff;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.block-title-text {
  white-space: nowrap;
}

.block-header-light .block-more {
  background: none;
  color: var(--accent);
  clip-path: none;
  padding: 10px 14px;
  height: auto;
  font-size: var(--font-more);
}

.block-more {
  display: flex;
  align-items: center;
  height: var(--block-header-height);
  padding: 0 16px 0 22px;
  color: #fff;
  font-size: var(--font-more);
  text-decoration: none;
  background: var(--block-header-bg);
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
}

.block-more:hover {
  background: var(--block-header-bg-hover);
}

.block-body {
  padding: 0;
  flex: 1;
}

.block-body-stripe {
  background: transparent;
}

.block-body-with-pdf {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 4px 10px 8px;
}

.home-menu-item--with-pdf-preview {
  flex: 0 0 auto !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

.home-block-panel .block-body-stripe .arrow-list > li {
  min-height: var(--list-row-height);
  margin-bottom: 0;
}

.home-block-panel .block-body-stripe .arrow-list > li:last-child {
  margin-bottom: 0;
}

.home-secondary-menu-intro {
  margin: 0;
  padding: 0 14px 6px 28px;
  font-size: calc(var(--font-list) * 0.88);
  line-height: 1.45;
  color: rgba(53, 53, 51, 0.72);
  white-space: pre-wrap;
  word-break: break-word;
  flex: 0 0 auto;
}

.home-block-panel .block-body-stripe .arrow-list > li.has-secondary-intro {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
}

.home-block-panel .block-body-stripe .arrow-list > li.has-secondary-intro > a {
  flex: 0 0 auto;
}

.home-block-panel .arrow-list .home-menu-item,
.home-block-panel .arrow-list .home-menu-item:hover {
  box-shadow: none !important;
}

.home-section-pdf-strip {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  margin-top: 2px;
  margin-bottom: 0;
  padding: 4px;
  border: 1px solid rgba(26, 90, 158, 0.14);
  border-radius: 4px;
  background: #f5f5f2;
  box-shadow: 0 1px 4px rgba(0, 70, 140, 0.08);
  overflow: hidden;
}

.home-section-pdf-strip.is-loading {
  align-items: center;
  justify-content: center;
}

.home-section-pdf-page {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 210 / 297;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(26, 90, 158, 0.06);
}

.home-section-pdf-page canvas {
  flex-shrink: 0;
  pointer-events: none;
  image-rendering: auto;
}

.home-section-pdf-page-loading {
  color: var(--text-muted);
  font-size: 12px;
}

.home-section-pdf-error {
  margin: 0;
  padding: 12px;
  width: 100%;
  color: #b42318;
  font-size: 13px;
  text-align: center;
}

.block-body-text {
  padding: 16px;
  line-height: var(--line-intro);
  font-size: var(--font-intro);
}

.intro-highlight {
  margin: 0 0 10px;
  font-size: var(--font-intro-lead);
  font-weight: 700;
  line-height: 1.3;
  color: #0070c0;
}

.intro-text {
  margin: 0 0 10px;
  color: var(--text);
  text-indent: 2em;
  font-size: var(--font-intro);
  line-height: var(--line-intro);
}

.intro-more {
  color: #d20000;
  font-size: var(--font-intro);
  text-decoration: none;
}

.intro-more:hover {
  text-decoration: underline;
}

/* ── 视频区 ── */
.home-row-two .home-block-video {
  height: auto;
}

.home-block-video .block-body-media {
  flex: none;
  height: var(--video-height);
  max-height: var(--video-height);
}

.home-block-video .media-frame,
.home-block-video .home-native-video-wrap {
  height: 100%;
  max-height: var(--video-height);
}

.home-block-video .home-native-video-wrap .media-video {
  display: block;
  width: 100%;
  height: 100%;
}

.block-body-media {
  padding: 0;
  flex: 1;
  display: flex;
  min-height: 0;
}

.media-frame {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.media-carousel {
  position: relative;
  flex: 1;
  min-height: 0;
}

.media-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.media-slide.active {
  display: block;
}

.media-video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: cover;
}

.wechat-browser .media-video,
.wechat-browser #page-content video {
  object-fit: contain;
  background: #111;
}

.wechat-browser .home-block-video .home-native-video-wrap {
  background: #111;
}

.wechat-browser .video-wechat-play-hint {
  left: 50%;
  right: auto;
  bottom: 50%;
  transform: translate(-50%, 50%);
  min-width: 96px;
  text-align: center;
}

.video-autoplay-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-unmute-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  .video-unmute-hint {
    right: 8px;
    bottom: 8px;
    padding: 8px 14px;
    font-size: 14px;
  }

  #page-content video {
    object-fit: contain;
  }

  .home-block-video .home-native-video-wrap .media-video {
    object-fit: contain;
  }
}

.video-unmute-hint:hover {
  background: rgba(0, 0, 0, 0.85);
}

.media-video-pager {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 4px 8px;
  background: rgba(7, 19, 35, 0.42);
  border-radius: 999px;
}

.media-video-dot {
  min-width: 28px;
  height: 28px;
  border: 1px solid #9ab3cf;
  background: #fff;
  color: #1f4c80;
  font-size: 13px;
  cursor: pointer;
}

.media-video-dot.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.media-placeholder {
  height: 100%;
  min-height: 0;
  width: 100%;
  background: #000;
  display: grid;
  place-items: center;
}

.media-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  position: relative;
  cursor: pointer;
  opacity: 0.85;
}

.media-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
}

/* ── 箭头列表 ── */
.arrow-list {
  list-style: none;
  margin: 0;
  padding: 0 3%;
}

.arrow-list-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.arrow-list li {
  background: var(--list-item-bg);
  margin-bottom: var(--list-item-gap);
  min-height: var(--list-row-height);
  overflow: hidden;
  transition: box-shadow 0.2s, color 0.2s;
}

.arrow-list li:last-child {
  margin-bottom: 0;
}

.arrow-list li:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.07);
}

.arrow-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--list-row-height);
  padding: 0 14px;
  text-decoration: none;
  color: var(--text);
  font-size: var(--font-list);
  line-height: var(--list-row-height);
}

.arrow-list a:hover {
  color: var(--accent);
  background: transparent;
}

.arrow-mark {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  position: relative;
}

.arrow-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent #fff;
}

/* ── 竖条双列 ── */
.bar-grid {
  list-style: none;
  margin: 0;
  padding: 0 3%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2%;
}

.bar-grid li {
  background: var(--list-item-bg);
  margin-bottom: var(--list-item-gap);
  min-height: var(--bar-row-height);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.bar-grid li:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.07);
}

.bar-grid a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--bar-row-height);
  padding: 0 10px 0 12px;
  text-decoration: none;
  color: var(--text);
  font-size: var(--font-list);
  line-height: 1.4;
}

.bar-grid a:hover {
  color: var(--accent);
}

.bar-mark {
  flex-shrink: 0;
  width: 3px;
  height: 14px;
  background: var(--primary);
}

/* ── 相关新闻（左侧竖标签） ── */
.home-block-news {
  border: none;
}

.news-layout {
  display: grid;
  grid-template-columns: 68px 1fr;
  min-height: var(--news-row-height);
}

.news-tab {
  position: relative;
  background: var(--primary-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 6px;
}

.news-tab::before,
.news-tab::after {
  content: "";
  position: absolute;
  left: -8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent var(--primary-dark) transparent transparent;
}

.news-tab::before {
  top: 0;
  border-width: 8px 8px 0 0;
}

.news-tab::after {
  bottom: 0;
  border-width: 0 8px 8px 0;
}

.news-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.news-tab-icon svg {
  width: 100%;
  height: 100%;
  stroke: #fff;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.news-tab-text {
  writing-mode: vertical-rl;
  letter-spacing: 4px;
  color: #fff;
  font-size: var(--font-block-title);
  font-weight: 700;
}

.news-content {
  padding: 15px 14px 0;
  background: transparent;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.news-list li {
  margin: 10px 0;
}

.news-list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 4px;
  text-decoration: none;
  color: var(--text);
  font-size: var(--font-news);
  line-height: 22px;
}

.news-list a:hover {
  color: var(--accent);
}

.news-date {
  flex-shrink: 0;
  min-width: 40px;
  padding: 2px 5px;
  background: #96b9d1;
  color: #fff;
  font-size: var(--font-news-date);
  text-align: center;
  line-height: 1.3;
}

.news-list a:hover .news-date {
  background: var(--accent);
}

/* ── 子页面 ── */
.section-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.section-page-head {
  margin: 40px 0 20px;
  padding: 20px 5%;
  background: var(--grad-block-intro);
  border: 1px solid rgba(26, 90, 158, 0.14);
  box-shadow: var(--block-shadow);
}

.section-page-head h2,
.section-page-title {
  margin: 0 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-page-title);
  font-weight: 700;
  color: var(--primary);
}

.section-page-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
}

.section-page-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-page-head p {
  margin: 0;
  font-size: var(--font-intro);
  color: var(--text-muted);
  line-height: var(--line-intro);
}

.section-workspace {
  display: grid;
  grid-template-columns: minmax(0, var(--section-sidebar-width)) minmax(0, 1fr);
  gap: var(--section-layout-gap);
  margin-top: 36px;
  margin-bottom: 32px;
  width: 100%;
  min-width: 0;
}

.section-sidebar {
  min-width: 0;
  max-width: 100%;
  position: sticky;
  top: calc(var(--header-height) + var(--section-sidebar-sticky-gap));
  align-self: start;
  max-height: calc(100vh - var(--header-height) - var(--section-sidebar-sticky-gap) * 2);
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 5;
  background: linear-gradient(180deg, #f5fbff 0%, #e6f3ff 100%);
  border: 1px solid rgba(44, 130, 196, 0.28);
  box-shadow: var(--block-shadow);
}

.section-sidebar-head {
  min-height: 52px;
  padding: 10px 14px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  background: var(--grad-blue-h);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.section-sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.section-sidebar-menu li {
  padding: 0 10px 8px;
}

.section-menu-btn {
  width: 100%;
  border: 1px solid rgba(26, 90, 158, 0.18);
  background: #fff;
  color: var(--text);
  min-height: 44px;
  height: auto;
  text-align: left;
  padding: 8px 14px;
  font-size: 19px;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.section-menu-btn:hover {
  background: #f2f8ff;
  color: var(--primary);
  border-color: rgba(26, 90, 158, 0.3);
}

.section-menu-btn.active {
  background: var(--grad-blue-h);
  border-color: rgba(70, 169, 237, 0.64);
  color: #fff;
}

.section-main-panel {
  min-width: 0;
  max-width: 100%;
  background: var(--grad-block-base);
  border: 1px solid rgba(26, 90, 158, 0.16);
  box-shadow: var(--block-shadow);
  padding: 14px 16px 18px;
}

.news-location-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 127, 212, 0.18);
  background: color-mix(in srgb, var(--title-bar-bg) 14%, #ffffff);
  color: #333333;
  font-size: 16px;
}

.news-location-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: #333333;
}

.news-location-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.news-location-label {
  color: #333333;
}

.news-location-bar a {
  color: #333333;
  text-decoration: none;
}

.news-location-bar a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.news-location-sep {
  color: #333333;
}

.section-links-head {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-links-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.section-links-list-single {
  grid-template-columns: 1fr;
}

.section-link-btn {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px dashed rgba(0, 70, 140, 0.3);
  background: #fff;
  color: var(--text);
  text-align: left;
  padding: 8px 12px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.search-result-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6f8299;
}

.section-link-btn:hover {
  color: var(--primary);
  border-color: var(--primary-light);
  background: #f5faff;
}

.section-link-btn.active {
  color: #fff;
  border-color: rgba(0, 70, 140, 0.4);
  background: var(--grad-blue-h);
}

.section-home-card {
  border: 1px solid rgba(26, 90, 158, 0.16);
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  padding: 14px 16px;
  margin-bottom: 12px;
  line-height: 1.8;
}

.section-home-card h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 18px;
}

.section-home-card p {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 15px;
}

.section-content-card {
  border: 1px solid rgba(26, 90, 158, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 16px;
  line-height: 1.85;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.section-content-card h4 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
}

.section-content-card h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 22px;
  text-align: center;
}

.section-content-card p {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 17px;
}

.news-meta-line {
  margin: 0 0 10px;
  color: #6f8299;
  font-size: 14px;
  text-align: center;
}

.news-rich-body {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.8;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-rich-body img,
.news-rich-body video,
.news-rich-body embed,
.news-rich-body object {
  display: block;
  max-width: 100%;
  height: auto;
}

.news-rich-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 10px 0;
}

.news-inline-pdf,
.news-rich-body iframe.news-inline-pdf,
.news-rich-body div.news-inline-pdf[data-pdf-src] {
  width: 100%;
  aspect-ratio: 210 / 297;
  height: auto;
  min-height: 240px;
  border: 1px solid #d6e0ed;
  background: #fff;
  color-scheme: light;
  box-sizing: border-box;
}

.news-rich-body div.news-inline-pdf[data-pdf-src]:empty::before {
  content: "PDF 加载中…";
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  color: #6f8299;
  font-size: 14px;
}

.news-inline-pdf-shell {
  width: 100%;
  min-height: 240px;
  overflow: visible;
  border: 1px solid #d6e0ed;
  background: #fff;
  margin: 10px 0;
  box-sizing: border-box;
  border-radius: 4px;
}

.news-inline-pdf-viewport {
  width: 100%;
  min-height: 240px;
  overflow: visible;
  background: #fff;
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.news-inline-pdf-pages {
  transform-origin: top center;
  margin: 0 auto;
}

.news-inline-pdf-viewport.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6f8299;
  font-size: 14px;
}

.news-inline-pdf-page {
  display: block;
  margin: 0 auto 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 76, 128, 0.08);
  image-rendering: auto;
}

.news-inline-pdf-page-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  background: #f7fbff;
  border: 1px dashed rgba(26, 90, 158, 0.18);
  box-sizing: border-box;
}

.news-inline-pdf-page-loading,
.news-inline-pdf-page-error {
  color: #6f8299;
  font-size: 13px;
}

.news-inline-pdf-page-error {
  color: #b54747;
}

.news-inline-pdf-fallback {
  padding: 24px 16px;
  text-align: center;
  color: #6f8299;
  font-size: 14px;
  line-height: 1.8;
  background: #fff;
}

.news-inline-pdf-fallback a {
  color: var(--primary, #1f4c80);
}

.news-inline-word,
.news-rich-body .news-inline-word {
  width: 100%;
  min-height: 240px;
  overflow: visible;
  border: 1px solid #d6e0ed;
  background: #fff;
  margin: 10px 0;
  box-sizing: border-box;
  border-radius: 4px;
}

.news-inline-word.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6f8299;
  font-size: 14px;
  min-height: 240px;
  background: #fff;
}

.news-inline-word-shell {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 240px;
  background: #fff;
}

.news-inline-word-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f5f8fc;
  border-bottom: 1px solid #d6e0ed;
  color: #1f4c80;
  font-size: 13px;
  flex-shrink: 0;
}

.news-inline-word-label {
  font-weight: 700;
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-inline-word-toolbar-spacer {
  flex: 1;
}

.news-inline-word-zoom-level {
  min-width: 44px;
  text-align: center;
  color: #6f8299;
  font-size: 12px;
}

.news-inline-word-zoom-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #c8d8ea;
  border-radius: 4px;
  background: #fff;
  color: #1f4c80;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.news-inline-word-zoom-btn:hover {
  background: #eef4fb;
}

.news-inline-word-viewport {
  flex: 0 0 auto;
  overflow: visible;
  background: #fff;
  padding: 16px;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.news-inline-word-canvas {
  transform-origin: top center;
  transition: transform 0.15s ease;
  margin: 0 auto;
  width: fit-content;
  max-width: none;
}

.news-inline-word .docx-wrapper {
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 76, 128, 0.08);
}

.news-inline-word-fallback {
  padding: 24px 16px;
  text-align: center;
  color: #6f8299;
  font-size: 14px;
  line-height: 1.8;
  background: #fff;
  border-radius: 4px;
}

.news-inline-word-fallback a {
  color: var(--primary, #1f4c80);
}

.news-rich-body th,
.news-rich-body td {
  border: 1px solid #d6e0ed;
  padding: 6px 8px;
}

.news-attachments p {
  margin: 10px 0 6px;
  color: var(--text-muted);
}

.news-attachments ul {
  margin: 0;
  padding-left: 20px;
}

.news-attachments li {
  margin: 4px 0;
}

.news-pdf-preview-list {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.news-pdf-preview-item p {
  margin: 0 0 6px;
  color: var(--text-muted);
}

.news-pdf-preview-item iframe {
  width: 100%;
  min-height: 520px;
  border: 1px solid #d6e0ed;
  background: #fff;
}

.section-pager {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.section-page-link {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  border: 1px solid rgba(26, 90, 158, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f1f7ff 100%);
  color: var(--primary);
  font-size: 14px;
  text-align: left;
  padding: 0 12px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-page-link:hover:not(:disabled) {
  background: linear-gradient(180deg, #f4f9ff 0%, #eaf3ff 100%);
  border-color: rgba(26, 90, 158, 0.35);
}

.section-page-link:disabled {
  color: #9aa7b7;
  border-color: rgba(154, 167, 183, 0.35);
  background: #f8fafc;
  cursor: not-allowed;
}

/* ── 页脚上方校园图 ── */
.site-campus-banner {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
}

.site-campus-banner-skyline {
  width: 100%;
  padding: 14px 0 6px;
  background: #fafaf8;
  line-height: 0;
}

.site-campus-banner-skyline-svg {
  display: block;
  width: 100%;
  height: 80px;
}

.site-campus-banner-visual {
  position: relative;
  display: grid;
  width: 100%;
  overflow: hidden;
  line-height: normal;
}

.site-campus-banner-visual > .site-campus-banner-image,
.site-campus-banner-visual > .site-stats-board {
  grid-area: 1 / 1;
}

.site-campus-banner-image {
  display: block;
  width: 100%;
  min-height: 300px;
  max-height: 380px;
  margin: 0;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* ── 页脚图片上的数据统计看板 ── */
.site-stats-board {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.site-stats-board--overlay {
  z-index: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px var(--page-padding);
  min-height: 300px;
  background: linear-gradient(
    180deg,
    rgba(250, 250, 248, 0.78) 0%,
    rgba(250, 250, 248, 0.52) 42%,
    rgba(250, 250, 248, 0.58) 100%
  );
  pointer-events: none;
}

.site-stats-board--overlay .site-stats-board-inner {
  pointer-events: auto;
}

.site-stats-board-inner {
  position: relative;
  z-index: 1;
  width: min(1280px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.site-stats-board-row {
  display: grid;
  align-items: center;
  gap: 18px 24px;
}

.site-stats-board-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-stats-board-row--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-stats-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(1px);
}

.site-stats-board--animated .site-stats-item {
  opacity: 1;
  transform: none;
  filter: none;
}

.site-stats-board--animated .site-stats-label {
  opacity: 1;
}

.site-stats-board--animated .site-stats-value {
  display: inline-block;
  transform-origin: left center;
  min-width: 1.2em;
}

.site-stats-board--animated .site-stats-value.is-animating {
  animation: site-stats-value-pop 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes site-stats-value-pop {
  0% {
    transform: scale(0.72);
    opacity: 0.2;
  }
  70% {
    transform: scale(1.06);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-stats-board--animated .site-stats-value.is-animating {
    animation: none !important;
  }
}

.site-stats-label {
  margin: 0;
  flex: 0 1 auto;
  max-width: 12em;
  text-align: right;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: #000;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.92);
}

.site-stats-value {
  margin: 0;
  flex: 0 0 auto;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", "Source Han Serif SC", serif;
  font-size: clamp(34px, 3.8vw, 50px);
  font-weight: 700;
  line-height: 1;
  color: #510082;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.88);
}

.site-stats-empty {
  margin: 0;
  text-align: center;
  padding: 24px 12px;
  color: #6f8299;
  font-size: 15px;
}

@media (max-width: 1100px) {
  .site-stats-board-row--3,
  .site-stats-board-row--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── 页脚 ── */
.site-footer {
  position: static;
  flex-shrink: 0;
  margin-top: auto;
  min-height: var(--footer-height);
  padding: 6px var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--font-footer);
  background: var(--footer-bg);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffe29a;
  text-decoration: underline;
}

/* ── 系统管理后台（与首页共用配色变量） ── */
body.admin-site {
  font-family: var(--font-family);
  font-size: var(--font-base);
  color: var(--text);
}

body.admin-site .admin-photo-wall-thumb {
  display: inline-block;
  padding: 0;
  margin: 0;
  border: 1px solid #d8e3f0;
  border-radius: 4px;
  background: #fff;
  cursor: zoom-in;
  line-height: 0;
  vertical-align: top;
}

body.admin-site .admin-photo-wall-thumb:hover {
  border-color: #8aa8c8;
  box-shadow: 0 2px 8px rgba(0, 70, 140, 0.12);
}

body.admin-site .admin-photo-wall-hover-preview {
  position: fixed;
  z-index: 12000;
  max-width: min(560px, 72vw);
  max-height: 72vh;
  padding: 6px;
  border: 1px solid #d8e3f0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 48, 96, 0.18);
  pointer-events: none;
}

body.admin-site .admin-photo-wall-hover-preview img {
  display: block;
  max-width: min(548px, calc(72vw - 12px));
  max-height: calc(72vh - 12px);
  width: auto;
  height: auto;
  object-fit: contain;
}

body.admin-site .admin-photo-wall-lightbox {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

body.admin-site .admin-photo-wall-lightbox.is-open {
  display: flex;
}

body.admin-site .admin-photo-wall-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

body.admin-site .admin-photo-wall-lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

body.admin-site .admin-photo-wall-lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

body.admin-site .admin-photo-wall-lightbox-image {
  display: block;
  max-width: 96vw;
  max-height: calc(92vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  background: #fff;
}

body.admin-site .admin-photo-wall-lightbox-caption {
  margin: 0;
  color: #fff;
  font-size: 15px;
  text-align: center;
}

body.admin-site.admin-photo-wall-lightbox-open {
  overflow: hidden;
}

body.admin-site .topbar {
  height: var(--nav-height);
  background: var(--grad-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-padding);
  box-shadow: 0 2px 6px rgba(0, 58, 140, 0.2);
}

body.admin-site .topbar h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

body.admin-site .topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.admin-site .topbar-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
}

body.admin-site .topbar-home-link:hover {
  background: rgba(255, 255, 255, 0.24);
}

body.admin-site .wrap {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}

body.admin-site .admin-login-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

body.admin-site .admin-login-title {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 22px;
}

body.admin-site .admin-login-desc {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
}

body.admin-site .admin-form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--primary-dark);
}

body.admin-site .admin-text-link {
  color: var(--primary);
  text-decoration: none;
}

body.admin-site .admin-text-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

body.admin-site .console {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex: 1;
}

body.admin-site .sidebar {
  background: var(--primary-dark);
  color: #fff;
  padding: 12px;
}

body.admin-site .sidebar-title {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 16px;
  font-weight: 700;
}

body.admin-site .sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.admin-site .sidebar-menu > li {
  margin-bottom: 8px;
}

body.admin-site .sidebar-menu a {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

body.admin-site .sidebar-menu a:hover {
  background: rgba(255, 255, 255, 0.16);
}

body.admin-site .sidebar-menu a.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: var(--grad-blue);
}

body.admin-site .sidebar-submenu {
  list-style: none;
  margin: 6px 0 0;
  padding: 0 0 0 12px;
}

body.admin-site .sidebar-submenu li {
  margin-bottom: 6px;
}

body.admin-site .sidebar-submenu a {
  padding: 8px 10px;
  font-size: 14px;
}

body.admin-site .console-main {
  padding: 18px 18px 24px;
}

body.admin-site .console-head {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 14px;
  background: var(--grad-block-panel);
  border: 1px solid rgba(26, 90, 158, 0.14);
  border-bottom: 2px solid var(--primary-light);
  box-shadow: var(--block-shadow);
}

body.admin-site .console-head h2 {
  margin: 0;
  font-size: 19px;
  color: var(--primary);
  font-weight: 700;
}

body.admin-site .console-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
}

body.admin-site .card {
  background: var(--grad-block-panel);
  border: 1px solid rgba(26, 90, 158, 0.14);
  padding: 16px;
  box-shadow: var(--block-shadow);
}

body.admin-site .card h2 {
  color: var(--primary);
}

body.admin-site .admin-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

body.admin-site .admin-tile-link {
  display: flex;
  min-height: 82px;
  padding: 10px 12px;
  border: 1px solid rgba(26, 90, 158, 0.14);
  background: var(--grad-block-panel);
  text-decoration: none;
  color: var(--primary-dark);
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-align: center;
  border-radius: 4px;
  box-shadow: var(--block-shadow);
  transition: background 0.2s, box-shadow 0.2s;
}

body.admin-site .admin-tile-link:hover {
  background: var(--grad-block-intro);
  box-shadow: 0 3px 10px rgba(0, 70, 140, 0.12);
  color: var(--primary);
}

body.admin-site .admin-brand-preview-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

body.admin-site .admin-brand-preview-box {
  min-width: 72px;
  min-height: 72px;
  max-height: 96px;
  border: 1px solid rgba(26, 90, 158, 0.14);
  background: var(--grad-block-intro);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

body.admin-site .flash {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid;
  font-size: 14px;
}

body.admin-site .flash.success {
  color: #0d6b2d;
  background: #edfdf2;
  border-color: #bcecc9;
}

body.admin-site .flash.error {
  color: #8c1717;
  background: #fff1f1;
  border-color: #ffd4d4;
}

body.admin-site .logout {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 6px 12px;
  cursor: pointer;
}

body.admin-site table {
  width: 100%;
  border-collapse: collapse;
}

body.admin-site th,
body.admin-site td {
  border: 1px solid var(--card-border);
  padding: 8px;
  font-size: 14px;
  vertical-align: top;
}

body.admin-site th {
  background: var(--panel-bg);
  text-align: left;
  color: var(--primary-dark);
}

body.admin-site input,
body.admin-site select {
  height: 34px;
  border: 1px solid var(--card-border);
  padding: 0 8px;
  font-size: 14px;
  width: 100%;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}

body.admin-site textarea {
  border: 1px solid var(--card-border);
  padding: 8px;
  font-size: 14px;
  width: 100%;
  font-family: Consolas, "Courier New", monospace;
  color: var(--text);
  background: #fff;
}

body.admin-site .inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body.admin-site .inline-form .field {
  min-width: 140px;
  flex: 1;
}

body.admin-site .field-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

body.admin-site .btn {
  height: 34px;
  border: none;
  padding: 0 12px;
  color: #fff;
  cursor: pointer;
  background: var(--grad-blue);
  font-family: inherit;
  font-size: 14px;
}

body.admin-site .btn:hover {
  filter: brightness(1.04);
}

body.admin-site .btn.danger {
  background: linear-gradient(180deg, #c53434 0%, #9e1e1e 100%);
}

body.admin-site .btn.secondary {
  color: var(--primary-dark);
  background: var(--grad-block-intro);
  border: 1px solid rgba(26, 90, 158, 0.2);
}

body.admin-site .muted {
  color: var(--text-muted);
  font-size: 13px;
}

body.admin-site .confirm-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  background: rgba(10, 24, 44, 0.45);
}

body.admin-site .confirm-modal.is-open {
  display: flex;
}

body.admin-site .confirm-modal-card {
  width: min(900px, calc(100vw - 40px));
  min-height: 420px;
  max-height: min(80vh, 760px);
  background: #fff;
  border: 1px solid rgba(26, 90, 158, 0.18);
  box-shadow: 0 24px 48px rgba(0, 39, 82, 0.28);
  border-radius: 8px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

body.admin-site .confirm-modal-head {
  margin: 0;
  padding: 14px 18px;
  font-size: 20px;
  color: var(--primary);
  border-bottom: 1px solid var(--card-border);
  background: var(--panel-bg);
}

body.admin-site .confirm-modal-body {
  margin: 0;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow: auto;
  color: var(--text);
  background: #fff;
}

body.admin-site .confirm-modal-actions {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--panel-bg);
}

@media (max-width: 980px) {
  body.admin-site .console {
    grid-template-columns: 1fr;
  }

  body.admin-site .confirm-modal-card {
    width: calc(100vw - 24px);
    min-height: 360px;
  }
}

@media (max-width: 960px) {
  .home-row {
    grid-template-columns: 1fr;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .bar-grid {
    grid-template-columns: 1fr;
  }

  .section-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-links-list {
    grid-template-columns: 1fr;
  }

  .section-pager {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 168px;
    --mobile-nav-strip-height: 42px;
    --video-height: 220px;
  }

  html {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    overflow-x: clip;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .page-body {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    padding-top: 0;
  }

  .site-footer,
  .site-campus-banner {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .site-campus-banner-skyline-svg {
    height: 64px;
  }

  .site-campus-banner-skyline {
    padding: 10px 0 4px;
  }

  .site-campus-banner-visual {
    min-height: 260px;
  }

  .site-campus-banner-image {
    min-height: 260px;
  }

  .site-stats-board--overlay {
    padding: 16px;
  }

  .site-stats-board-inner {
    gap: 20px;
  }

  .site-stats-board-row--3,
  .site-stats-board-row--4 {
    grid-template-columns: 1fr;
  }

  .site-stats-item {
    justify-content: flex-start;
    gap: 12px;
  }

  .site-stats-label {
    max-width: none;
    flex: 1 1 auto;
    font-size: 15px;
  }

  .site-stats-value {
    font-size: clamp(30px, 9vw, 40px);
  }

  .container {
    padding-inline: 12px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .news-rich-body,
  .section-content-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .home-row,
  .home-row-two,
  .home-row-three {
    grid-template-columns: 1fr;
  }

  main.container.container--section-layout .section-workspace,
  .section-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-list,
  .bar-grid,
  .section-links-list,
  .arrow-list-2col {
    grid-template-columns: 1fr;
  }

  .home-row-panel {
    margin-bottom: 16px;
  }

  .home-menu-item--with-pdf-preview {
    flex: 0 0 auto !important;
  }

  .home-section-pdf-strip {
    flex-direction: column;
    overflow: visible;
  }

  .home-section-pdf-page {
    flex: none;
    width: 100%;
  }

  .home-section-pdf-page canvas {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
  }

  .news-inline-pdf-viewport {
    padding: 12px 8px;
  }

  .news-inline-pdf-pages {
    width: 100%;
    max-width: 100%;
  }

  .news-inline-pdf-page {
    max-width: 100%;
    width: 100% !important;
    height: auto !important;
  }

  .section-pager {
    flex-direction: column;
  }

  .header-nav-wrap {
    position: relative;
  }

  .header-nav-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-height: 0;
    padding: 6px 12px 8px;
  }

  .header-nav-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    order: 2;
  }

  .nav-toggle {
    display: none;
  }

  .site-search {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
  }

  .main-nav {
    order: 1;
    display: flex;
    position: static;
    flex: none;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    background: transparent;
    border-top: none;
    box-shadow: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .header-nav-wrap.is-nav-open .main-nav {
    display: flex;
  }

  .main-nav .nav-btn {
    flex: 0 0 auto;
    width: auto;
    min-height: var(--mobile-nav-strip-height);
    line-height: 1.3;
    padding: 8px 14px;
    text-align: center;
    white-space: nowrap;
    border: 1px solid transparent;
    border-bottom: none;
  }

  .main-nav .nav-btn:last-child {
    border-bottom: none;
  }

  .main-nav:hover .nav-btn:not(:hover) {
    background: #ffffff;
    color: var(--text);
  }

  .main-nav .nav-btn.active,
  .main-nav .nav-btn:hover {
    background: var(--title-bar-bg);
    color: #ffffff;
  }

  .home-block-panel .block-header-dark {
    height: auto;
    min-height: var(--block-header-height);
    align-items: center;
  }

  .home-block-panel .block-title {
    height: auto;
    min-height: var(--block-header-height);
    max-width: calc(100% - 96px);
  }

  .home-block-panel .block-title-text {
    white-space: normal;
    line-height: 1.35;
  }

  .home-block-video .block-header-dark {
    height: auto;
    min-height: var(--block-header-height);
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 168px;
    --brand-height: 72px;
    --title-bar-height: 72px;
    --nav-height: 40px;
    --font-site-title: 26px;
  }

  .header-brand-wrap {
    padding: 0;
  }

  .site-brand {
    padding: 0 16px;
  }

  .header-nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 6px 16px 8px;
  }

  .header-nav-toolbar {
    width: 100%;
  }

  .main-nav {
    width: 100%;
    max-width: 100%;
  }

  .nav-btn {
    min-height: var(--mobile-nav-strip-height, 42px);
    line-height: 1.3;
    padding: 8px 14px;
    font-size: 16px;
  }

  .site-search {
    width: auto;
    height: 32px;
    margin: 0;
  }

  .site-search button {
    width: 36px;
    height: 28px;
  }

  .hero-track {
    min-height: 220px;
    padding: 4px 0 2px;
    --photo-gap: 0px;
  }

  .photo-wall-slide {
    min-height: calc((var(--hero-height) - 32px) * 0.38);
  }

  .photo-wall-track {
    padding: 2px 0;
  }

  .photo-wall-dots-bar {
    padding: 6px 16px 10px;
  }

  .photo-wall-dots-track {
    width: min(420px, 88%);
    gap: 10px;
  }

  .home-row-about {
    min-height: auto;
  }

  .home-block-intro {
    min-height: auto;
  }

  .media-placeholder {
    height: var(--video-height);
    max-height: var(--video-height);
  }

  .home-row-panel {
    min-height: auto;
  }
}
