/* 首页所有栏目标题自定义字号 */
.is-home .section-header h2[data-type] {
  font-size: 32px; 
}
/* 基础主题变量 */
:root {
  --primary: #7b2fb5;
  --primary-strong: #67259a;
  --text: rgb(51, 51, 51);
  --muted:rgb(51, 51, 51);

  --bg: #ffffff;
  --card-bg: #ffffff;
  --font-size-base: 18px;
  --section-header-height: 56px;
  --max-width: 1200px;
  --header-height: 132px;
  --page-padding: 0px;
  --edge-padding: 60px;
  --hero-height: min(100vh, calc(100vw * 9 / 16));
   --overlay-lift: calc(var(--hero-height) - var(--header-height));
}

/* *, */
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  /* line-height: 1.6; */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


.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;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-strong);
}

.headbar {
  max-width: 1750px;
  margin: 0 auto;
  width: 100%;
}

.top-actions-bar {
  color: #fff;
  max-height: none;
  height: 1px;
  position: relative;
  z-index: 30;
  pointer-events: auto;
}

.top-actions-bar .headbar {
  /* padding: 6px var(--edge-padding) 0; */
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 31;
}

.top-actions-bar .top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 15px;
}

.top-actions-bar .search.header-search {
  margin: 0;
  position: relative;
  z-index: 31;
  overflow: hidden;
}

.top-actions-bar .search.header-search input {
  margin: 0;
  min-width: 220px;
  height: 40px;
  line-height: 40px;
  font-size: 16px;
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: none;
  outline: none;
  position: relative;
  z-index: 31;
  pointer-events: auto;
}

.top-actions-bar .search.header-search input::placeholder {
  color: #b4b2b2;
}

.top-actions-bar .search.header-search input:focus::placeholder {
  color: transparent;
}

.top-actions-bar .search.header-search button {
  white-space: nowrap;
}

.top-actions-bar .nav-toggle,
.top-actions-bar .navbar-toggle {
  /* PC 端隐藏“菜单”，仅移动端显示 */
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  outline: none;
}

.top-actions-bar .search-trigger,
.top-actions-bar .nav-toggle,
.top-actions-bar .navbar-toggle {
  height: 34px;
}

.top-actions-bar .nav-toggle,
.top-actions-bar .navbar-toggle {
  padding: 0 10px;
}

.top-actions-bar .navbar-toggle {
  padding: 6px 10px;
}

.site-header {
  position: static;
  width: 100%;
  position: relative;

  background-color: var(--primary);

  z-index: 20;
  box-shadow: var(--shadow);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--top-actions-height, 0px);
  height: calc(100% - var(--main-nav-height, 0px) - var(--top-actions-height, 0px));
  background-image: none;
  background-repeat: no-repeat;
  background-position: right 450px center;
  background-size: 550px 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}


.topbar {
  width: 100%;
  margin: auto;
  min-height: 134px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
  background: none;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.branding {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
 
  color: inherit;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  display: block;
  width: 750px;
  max-width: 100%;
  max-height: none;
  height: auto;
}

.title-lines {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  line-height: 1.3;
  white-space: nowrap;
}

.site-name {
  font-size: 22px;
  color: #fff;
}

.site-sub {
  font-size: 22px;
  opacity: 0.9;
  color: #fff;
}

.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  margin-right: 20px;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  gap: 6px;
  appearance: none;
  -webkit-appearance: none;
  border: none;         
  outline: none;        
  background: transparent; 
  color: inherit;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: none;
  outline: none;
}

.search-trigger:hover {
  background: rgba(255, 255, 255, 0.22); 
}

.search-trigger:focus-visible,
.top-actions-bar .nav-toggle:focus-visible,
.top-actions-bar .navbar-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 2px;
}

.action-link {
  color: inherit;
  font-size: 14px;
}

.main-nav {
  background: var(--primary);
  color: #fff;
  display: block;
  position: static;
  width: 100%;
  position: relative;
  z-index: 1;
}

.nav-inner {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
}

.main-nav .nav-inner.headbar {
  margin-left: auto;
  width: auto;
}

@media (min-width: 769px) {
  .main-nav .nav-inner.headbar {
    margin-right: 200px;
    box-sizing: border-box;
  }
}

.nav-toggle,
.navbar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: inherit;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.navbar-toggle .icon-bar {
  display: block;
  width: 18px;
  height: 2px;
  flex: 0 0 auto;
  background: currentColor;
  border-radius: 2px;
}

.navbar-toggle .icon-bar + .icon-bar {
  margin-top: 0;
}

.navbar-toggle {
  flex-direction: column;
  gap: 4px;
  line-height: 0;
}

.main-nav .nav-inner > ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  margin-left: auto;

}


.main-nav li {
  margin: 0;
  position: relative;
}

.main-nav li a {
  display: block;
  padding: 10px 40px;
  /* 继承头部颜色，使导航链接随头部颜色变化（hero 上为白色，内容区为深色） */
  color: inherit;
  font-weight: 350;
  font-size: 23px;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav .nav-inner > ul > li.active > a,
.main-nav .nav-inner > ul > li > a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.main-nav li.has-children > a::after {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
}


.dropdown{
  position: absolute;
  top: 100%;
  width: 100%;        
  min-width: 0;      
  display: none;
  z-index: 15;
  box-sizing: border-box;
}

.dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown ul {
  display: block;         /* ★关键：覆盖掉顶部 ul 的 flex 影响 */
}

.dropdown li {
  width: 100%;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
}

.dropdown li a {
  display: block;
  padding: 0 14px;
  height: 60px;
  line-height: 60px;
  color: #fff;
  background: color-mix(in srgb, var(--primary) 80%, transparent);
  text-align: center;
}

.dropdown li a:hover {
  background: var(--primary-strong);
  color: #fff;
  border-radius: 0;
}

/* 二级菜单：当前页高亮（与 hover 一致） */
.main-nav .dropdown li.active > a {
  /* background: rgba(208, 4, 4, 0.99); */
   color: #fff; 
}


.main-nav li.open > .dropdown {
  display: block;
}

.main-nav li.open > .dropdown li,
.main-nav li:hover > .dropdown li {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: dropdown-drop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1.2) both;
}

.main-nav li.open > .dropdown li:nth-child(1),
.main-nav li:hover > .dropdown li:nth-child(1) { animation-delay: 0ms; }
.main-nav li.open > .dropdown li:nth-child(2),
.main-nav li:hover > .dropdown li:nth-child(2) { animation-delay: 60ms; }
.main-nav li.open > .dropdown li:nth-child(3),
.main-nav li:hover > .dropdown li:nth-child(3) { animation-delay: 120ms; }
.main-nav li.open > .dropdown li:nth-child(4),
.main-nav li:hover > .dropdown li:nth-child(4) { animation-delay: 180ms; }
.main-nav li.open > .dropdown li:nth-child(5),
.main-nav li:hover > .dropdown li:nth-child(5) { animation-delay: 240ms; }
.main-nav li.open > .dropdown li:nth-child(6),
.main-nav li:hover > .dropdown li:nth-child(6) { animation-delay: 300ms; }
.main-nav li.open > .dropdown li:nth-child(7),
.main-nav li:hover > .dropdown li:nth-child(7) { animation-delay: 360ms; }
.main-nav li.open > .dropdown li:nth-child(8),
.main-nav li:hover > .dropdown li:nth-child(8) { animation-delay: 420ms; }
.main-nav li.open > .dropdown li:nth-child(9),
.main-nav li:hover > .dropdown li:nth-child(9) { animation-delay: 480ms; }
.main-nav li.open > .dropdown li:nth-child(10),
.main-nav li:hover > .dropdown li:nth-child(10) { animation-delay: 540ms; }
.main-nav li.open > .dropdown li:nth-child(11),
.main-nav li:hover > .dropdown li:nth-child(11) { animation-delay: 600ms; }
.main-nav li.open > .dropdown li:nth-child(12),
.main-nav li:hover > .dropdown li:nth-child(12) { animation-delay: 660ms; }
.main-nav li.open > .dropdown li:nth-child(13),
.main-nav li:hover > .dropdown li:nth-child(13) { animation-delay: 720ms; }
.main-nav li.open > .dropdown li:nth-child(14),
.main-nav li:hover > .dropdown li:nth-child(14) { animation-delay: 780ms; }
.main-nav li.open > .dropdown li:nth-child(15),
.main-nav li:hover > .dropdown li:nth-child(15) { animation-delay: 840ms; }

@keyframes dropdown-drop {
  0% {
    opacity: 0;
    transform: translateY(-18px) scale(0.92);
  }
  60% {
    opacity: 1;
    transform: translateY(4px) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* PC：居中到父菜单正下方 */
@media (min-width: 769px) {
  .main-nav li.has-children > .dropdown{
    left: 50%;
    transform: translateX(-50%);
  }
  .main-nav li:hover > .dropdown{
    display: block;
  }
}

/* 移动端：取消绝对定位，变成块级流式布局 */
@media (max-width: 768px) {
  .main-nav li.has-children > .dropdown{
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
  }
}


.search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search input {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d5c7eb;
  color: inherit;
  min-width: 200px;
  color: #020202;
  margin: 35px auto;
}

.search input::placeholder {
  color: #b4b2b2;
}

.search input:focus::placeholder {
  color: transparent;
}

.search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #d5c7eb;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  cursor: pointer;
}

.search-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  place-items: center;
}

.search-modal[hidden] {
  display: none;
}

.search-modal:not([hidden]) {
  display: grid;
}

.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  /* min-width: 300px; */
}

.search-modal-dialog {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  padding: 32px 24px;
  z-index: 1;
  min-height: 220px;
  display: grid;
  place-items: center;
  
}

.search-modal-dialog h2 {
  position: absolute;
  top: 18px;
  left: 24px;
  right: 64px;
  text-align: center;
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.search-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.search-modal .search {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}

.search-modal .search input {
  flex: 1 1 350px;
  width: min(350px, 100%);
  height: 55px;
  margin: 0;
  padding: 0 16px;
  min-width: 0;
  box-sizing: border-box;
  /* border: 1px solid rgba(0,0,0,0.14); */
  background: #fff;
  color: var(--primary);
  font-size: 18px;
  line-height: 55px;
}

.search-modal .search input::placeholder {
  color: var(--primary);
}

.search-modal .search input:focus::placeholder {
  color: transparent;
}

.search-modal .search button {
  border: none;
  background: var(--primary);
  color: #fff;
  width: 120px;
  height: 55px;
  padding: 0 16px;
  box-sizing: border-box;
  font-size: 18px;
}

.search-modal .search button .search-icon {
  width: 18px;
  height: 18px;
}

body.has-scrolled .search-modal .search input {
  /* border-color: rgba(0,0,0,0.14); */
  background: #fff;
  color: var(--primary);
}

body.has-scrolled .search-modal .search input::placeholder {
  color: var(--primary);
}

body.has-scrolled .search-modal .search button {
  border: none;
  background: var(--primary);
  color: #fff;
}

@media (max-width: 520px) {
  .search-modal .search button {
    width: 100%;
  }
}

html.search-modal-open,
body.search-modal-open {
  overflow: hidden;
}

.mobile-search-section {
  display: none;
}


#main-content {
  width: 100%;
  max-width: none;
  padding: 0 var(--page-padding) 0px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  flex: 1;
  box-sizing: border-box; 
}

body:not(.is-home) #main-content {
  max-width: 1750px;
  padding-top: 0;
}

/* 覆盖横幅底部的浮动覆盖层 */
.content-overlay {
  margin-top: 0;
  position: relative;
  z-index: 2;
  transform: translateY(0);
  transition: margin-top 0.35s ease, padding-top 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  background: var(--bg);
}

/* 首页滚动时让内容块上移，贴紧页眉下方 */
body.is-home.has-scrolled .content-overlay {
  transform: none;
  margin-bottom: 0;
  margin-top: 0;
  padding-top: 0;
  box-shadow: none;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: var(--hero-height);
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  margin-top: 0;
  z-index: 1;
}

.hero-spacer {
  display: none;
  height: 0;
}

.hero-slider .slides {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
 
  transform: translateX(100%);
  transition: transform 0.8s ease-in-out;
  z-index: 1;
  display: block; /* 确保显示 */
}

.hero-slider .slide.active {
  transform: translateX(0); /* 在中间显示 */
  z-index: 10; 
}

.hero-slider .slide.slide-out {
  transform: translateX(-100%); /* 移出到左边 */
  z-index: 5; /* 中间层级 */
}

/* 辅助类：禁用动画（用于瞬间重置位置） */
.hero-slider .slide.no-transition {
  transition: none !important;
}

.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slider .slide > a {
  display: block;
  height: 100%;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  width: auto;
  height: auto;
  border-radius: 0;
  cursor: pointer;
  font-size: 80px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  z-index: 12;
}

.slider-btn.prev { left: 5%; }
.slider-btn.next { right: 5%; }

.slider-btn:hover {
  opacity: 1;
}

.slider-dots {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  opacity: 0.7;
  transition: background 0.3s, opacity 0.3s;
}

.slider-dots .dot.active {
  background: #fff;
  border-color: #fff;
  opacity: 1;
}

.section-block.two-col-text {
  --section-bg-inset: 0px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  border: none;
  box-shadow: none;
}

/* 首页：通知公告 / 学术预告（two-col-text）按 4:6 分栏 */
body.is-home .section-block.two-col-text.double-box.home-notice-lecture {
  grid-template-columns: minmax(320px, 4fr) minmax(320px, 6fr);
  gap: 80px;
}

/* 首页：奖助评优/ 办事流程（two-col-text）按 4:6 分栏 */
body.is-home .section-block.two-col-text.double-box.home-awards-guide {
  grid-template-columns: minmax(320px, 4fr) minmax(320px, 6fr);
}

body.is-home .section-block.double-box {
  position: relative;
  max-width: 1750px;
  margin: 0 auto;
  padding: 30px 0;

 
  z-index: 0;
  isolation: isolate; /* 更稳：把内部层叠隔离 */
  background: transparent; 
}

/* 通栏背景（放在本元素内部的“底层”） */
body.is-home .section-block.double-box::before {
  content: "";
  position: absolute;
  inset: 0;                
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;

  /* background-color: #E6EFFF; */
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 1;

  z-index: 0;               /* 不用 -1 */
  pointer-events: none;
}


body.is-home .section-block.double-box > * {
  position: relative;
  z-index: 1;
}


body.is-home .section-block.home-links {
  padding: 30px 0 5px;
  min-height: 200px;
  font-size: 18px;
}

body.is-home .home-links-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1750px;
  margin: 0 auto;
}

body.is-home .section-block.home-links .section-header {
  max-width: 1750px;
  margin: 0 auto 16px;
}

body.is-home .home-links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  position: relative;
  padding: 80px 0;
}

body.is-home .home-links-row::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  background: var(--primary);
  z-index: 0;
}

body.is-home .home-links-row::after {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  width: 0;
  height: 0;
  border-top: 50px solid var(--bg);
  border-left: 80px solid transparent;
  transform: translateX(50vw);
  z-index: 1;
  pointer-events: none;
}

body.is-home .home-links-row > * {
  position: relative;
  z-index: 1;
}

body.is-home .home-links-label {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

body.is-home .home-links-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

body.is-home .home-links-list a {
  color: #fff;
  margin: 0;
  padding: 0 22.5px;
  position: relative;
  display: inline-flex;
  align-items: center;
}

body.is-home .home-links-list a:first-child {
  padding-left: 0;
}

body.is-home .home-links-list a:last-child {
  padding-right: 0;
}

body.is-home .home-links-list a + a::before {
  content: "|";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
}

body.is-home .home-links-list a:hover {
  color: #fff;
}

body.is-home .home-student-work .student-work-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.is-home .home-student-work .student-work-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

body.is-home .home-student-work .student-work-list a {
  color: var(--text);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.is-home .home-student-work .student-work-list .meta {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

body.is-home .home-student-work .student-work-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  max-width: 1750px;
  width: 100%;
  margin: 10px auto 25px;
  position: relative;
}

body.is-home .home-student-work .student-work-cards {
  margin-right: 50px;
}

body.is-home .home-student-work .student-work-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

body.is-home .home-student-work .student-work-card {
  background: #fff;
  border-radius: 0;
}

body.is-home .home-student-work .student-work-card:hover .student-work-card-media img {
  transform: scale(1.28);
}

body.is-home .home-student-work .student-work-card a {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  color: var(--text);
  text-decoration: none;
}

body.is-home .home-student-work .student-work-card-media {
  position: relative;
  width: 300px;
  height: 180px;
  overflow: visible;
  background: #f3f4f6;
}

body.is-home .home-student-work .student-work-card-media-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

body.is-home .home-student-work .student-work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

body.is-home .home-student-work .student-work-date-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  margin-left: -15px;
  margin-bottom: 20px;
  z-index: 5;
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 10px 0 8px;
  text-align: center;
  min-width: 80px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  box-shadow: none;
  border-radius: 0;
}

body.is-home .home-student-work .student-work-date-badge .day {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  color: #ffffff;
}

body.is-home .home-student-work .student-work-date-badge .month {
  display: block;
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.3px;
}


body.is-home .home-student-work .student-work-card-content {
  padding-top: 6px;
}

body.is-home .home-student-work .student-work-card:hover .student-work-card-content {
  /* transform: translateY(-2px); */
}

body.is-home .home-student-work .student-work-card:hover .student-work-card-title,
body.is-home .home-student-work .student-work-card:hover .student-work-card-brief {
  color: var(--primary);
}

body.is-home .home-student-work .student-work-card-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text);
  padding-left: 20px;
}

body.is-home .home-student-work .student-work-card-brief {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 20px;
  opacity: 0.7;
}

body.is-home .home-student-work .student-work-panel {
  background: var(--primary);
  color: #fff;
  padding: 0 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 0;
  position: relative;
  overflow: visible;
}

body.is-home .home-student-work .student-work-panel::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-bottom: 50px solid #fff;
  border-right: 80px solid transparent;
  pointer-events: none;
}

body.is-home .home-student-work .student-work-panel::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 0;
  height: 0;
  border-top: 50px solid #fff;
  border-left: 80px solid transparent;
  pointer-events: none;
}

body.is-home .home-student-work .student-work-panel-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  margin-left: -24px;
  margin-right: -24px;
  align-self: flex-start;
  font-weight: 600;
  width: calc(100% + 48px);
}

body.is-home .home-student-work .student-work-panel-tabs .tab {
  font-size: 20px;
  padding: 12px 0;
  background: #ffffff;
  color:var(--primary);
  position: relative;
  cursor: pointer;
  flex: 1 1 50%;
  text-align: center;
}

body.is-home .home-student-work .student-work-panel-tabs .tab-active {
  background: var(--primary);
  color: #ffffff;
}

body.is-home .home-student-work .student-work-panel-tabs .tab::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 80px;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
  opacity: 0.7;
}

body.is-home .home-student-work .student-work-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.is-home .home-student-work .student-work-panel-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

body.is-home .home-student-work .student-work-panel-list li:last-child {
  border-bottom: none;
}

body.is-home .home-student-work .student-work-panel-list li:hover {
  background: rgba(243, 230, 200, 0.5);
  transform: translateY(-6px);
}

body.is-home .home-student-work .student-work-panel-list a {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  color: #fff;
  text-decoration: none;
  align-items: center;
}

body.is-home .home-student-work .student-work-panel-list .panel-date {
  font-size: 15px;
  line-height: 1.2;
  opacity: 1;
  letter-spacing: 0.3px;
  text-align: center;
  color: #ffffff;
  background: transparent;
  border: none;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

body.is-home .home-student-work .student-work-panel-list .panel-date .day {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

body.is-home .home-student-work .student-work-panel-list .panel-date .month {
  display: block;
  font-size: 15px;
  color: #ffffff;
}

body.is-home .home-student-work .student-work-panel-list .panel-title {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  padding-left: 10px;
  padding-right: 60px;
}


.text-column {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.text-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.text-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.text-list a {
  color: var(--text);
  flex: 1;
  /* font-weight: 600; */
}

.text-list .meta {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

body.is-home .home-notice-lecture .text-list li {
  transition: transform 0.2s ease, background-color 0.2s ease;
}

body.is-home .home-notice-lecture .text-list li:hover {
  background-color: var(--primary);
  transform: translate(-2px, -2px);
}

body.is-home .home-notice-lecture .text-list li:hover a,
body.is-home .home-notice-lecture .text-list li:hover .meta {
  color: #fff;
}

body.is-home .home-notice-lecture .text-list li:hover {
  position: relative;
  overflow: hidden;
}

body.is-home .home-notice-lecture .text-column:first-child .text-list li:hover {
  overflow: visible;
}

body.is-home .home-notice-lecture .text-column:last-child .text-list li:hover::before,
body.is-home .home-notice-lecture .text-column:last-child .text-list li:hover::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 1;
}

body.is-home .home-notice-lecture .text-column:last-child .text-list li:hover::before {
  top: 0;
  right: 0;
  border-top: 15px solid var(--bg);
  border-left: 20px solid transparent;
}

body.is-home .home-notice-lecture .text-column:last-child .text-list li:hover::after {
  bottom: 0;
  left: 0;
  border-bottom: 15px solid var(--bg);
  border-right: 20px solid transparent;
}

body.is-home .home-notice-lecture .text-column:first-child .text-list li:hover {
  transform: none;
}

body.is-home .home-notice-lecture .text-column:first-child .text-list li > a,
body.is-home .home-notice-lecture .text-column:first-child .text-list li > .meta {
  transition: transform 0.2s ease;
}

body.is-home .home-notice-lecture .text-column:first-child .text-list li:hover > a,
body.is-home .home-notice-lecture .text-column:first-child .text-list li:hover > .meta {
  transform: translate(-2px, -2px);
}


.two-col-text .text-column:first-child .text-list {
  position: relative;
  padding-left: 34px;
}

.two-col-text .text-column:first-child .text-list::before {
  content: none;
}

.two-col-text .text-column:first-child .text-list li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 15px 0 15px 15px;
  border-bottom: none;
  min-width: 0;
}

body.is-home .home-notice-lecture .text-column:first-child .text-list li {
  padding: 30px 0 30px 15px;
  border-bottom: 1px dashed var(--primary);
  border-bottom-color: color-mix(in srgb, var(--primary) 50%, transparent);
}

.two-col-text .text-column:first-child .text-list li::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #343196;
  background: #ffffff;
}

.two-col-text .text-column:first-child .text-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -22px;
  top: 34px;
  bottom: -18px;
  width: 1px;
  background: #343196;
}

.two-col-text .text-column:first-child .text-list a {
  order: 1;
  display: block;
  width: 100%;
  min-width: 0;
  font-size: 18px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.two-col-text .text-column:first-child .text-list a:hover {
  color: var(--primary-strong);
}

body.is-home .home-notice-lecture .text-column:first-child .text-list li:hover a {
  color: #fff;
}

.two-col-text .text-column:first-child .text-list .meta {
  order: 5px;
  font-size: 18px;
  font-weight: 700;
  color: #202020;

}


.two-col-text .text-column:last-child .text-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 992px) {
  .two-col-text .text-column:last-child .text-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.two-col-text .text-column:last-child .text-list li {
  display: block;
  border-bottom: none;
  background: #e2c5f3;

}

.two-col-text a.two-col-card-link {
  display: flex;
  padding: 15px;
  border-radius: 6px;
  /* height: 90px; */
  overflow: hidden;
  color: inherit;
  min-width: 0;
}

.two-col-text .text-column:last-child .text-list li:hover {
  
  color: #fff;
  background-color: var(--primary);
  
}


.two-col-text a.two-col-card-link:hover .two-col-card-title {
  color: #fff;
}

.two-col-text .two-col-card-date {
  flex: 0 0 80px;
  /* background-color:  var(--primary); */
}

.two-col-text .two-col-card-date .day {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
  color: #333;
}

.two-col-text .two-col-card-date .month {
  font-size: 15px;
  color: #6b7280;
  text-align: center;
}

.two-col-text .two-col-card-date .month:hover {
  /* font-size: 15px; */
  color: #ffffff;
  /* text-align: center; */
}

.two-col-text .two-col-card-title {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  line-height: 30px;
  padding-left: 20px;
  border-left: 1px solid rgba(107, 114, 128, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.is-home .home-notice-lecture .text-column:last-child .text-list li:hover .two-col-card-date .day,
body.is-home .home-notice-lecture .text-column:last-child .text-list li:hover .two-col-card-date .month,
body.is-home .home-notice-lecture .text-column:last-child .text-list li:hover .two-col-card-title {
  color: #fff;
}

/* 列表与详情页 */
.page-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.page-container-full {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 32px 60px 48px;
}

.breadcrumb {
  font-size: 16px;
  color: var(--muted);
  margin: 12px 0 20px;
}

.breadcrumb a {
  color: var(--text);
}

.crumb-split {
  margin: 0 6px;
  color: var(--muted);
}

.crumb-current {
  color: var(--primary-strong);
}

.sidebar-toggle {
  display: none;
}

.list-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
}

.detail-layout {
  display: block;
}

.list-sidebar {
  background: #f9f7ff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 0;

}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center; 
}

.sidebar-title {
  padding: 12px 20px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  font-size: 24px;
}

.sidebar-title a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.sidebar-title.active {
  border-left: 4px solid #fff;
}

.list-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-sidebar li {
  min-height: 50px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.list-sidebar li a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: 18px;
}

.list-sidebar li:hover {
  background: color-mix(in srgb, var(--primary) 50%, transparent);
  transform: translate(-2px, -2px);
}


.list-sidebar li a:hover {
  color: var(--primary-strong);
}

.list-sidebar li.active a {
  color: var(--primary);
}

.list-sidebar li.active a:hover {
  color: var(--primary);
}

.list-main {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px 24px;
}

.column-section {
  display: none;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.sub-anchor {
  position: absolute;
  top: 0;
  left: 0;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.column-section.active {
  display: block;
}

.list-header h1 {
  margin: 0 0 12px;
  font-size: 22px;
  color: var(--primary-strong);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
}

.news-listing {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-listing li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(107, 114, 128, 0.6);
  gap: 12px;
  position: relative;
  transition: background-color 0.2s ease;
}

.list-layout .news-listing li {
  min-height: 50px;
  border-bottom: 1px dashed var(--primary);
  border-bottom-color: color-mix(in srgb, var(--primary) 50%, transparent);
  cursor: pointer;
}

body.search-results .news-listing li {
  min-height: 50px;
  border-bottom: 1px dashed var(--primary);
  border-bottom-color: color-mix(in srgb, var(--primary) 50%, transparent);
}

body.search-results .news-listing li:hover {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  transform: translate(-2px, -2px);
}

.news-listing li:hover {
  /* background-color: rgba(149, 150, 153, 0.1); */
  background-color: rgba(0, 0, 0, 0.02);
}

.list-layout .news-listing li:hover {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  transform: translate(-2px, -2px);
}

.news-listing .title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-listing .dot {
  display: none;
}

.news-listing a {
  color: var(--text);
  font-size: 18px;
}

.news-listing a:hover {
  color: var(--primary-strong);
}

.news-listing .date {
  font-size: 16px;
  color:  rgb(0, 0, 0,0.6);
}

.news-listing.article-list .title {
  gap: 12px;
}

.news-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 8px;
  background: #e64545;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding-top: 14px;
  font-size: 16px;
  gap: 8px;
  margin-top: 20px;
}

.pager-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 16px;
  color: var(--muted);
}

.pager-stats {
  margin-left: auto;
  display: inline-flex;
  gap: 0;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.pager-buttons {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  
  
}

.pager-buttons button {
  position: relative;
  padding: 6px 10px;
  border: 1px solid rgba(107, 114, 128, 0.6);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  font-weight: inherit;
  
}

.pager-buttons button:hover {
  background: var(--bg);
  color: var(--primary);
  border-color: var(--primary);
}

.pager-hint {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: calc(100% + 6px);
  padding: 4px 8px;
  border: 1px solid rgba(107, 114, 128, 0.35);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 18px 22px 20px;
}

.detail-header h1 {
  margin: 0 0 10px;
  font-size: 36px;
  text-align: center;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 16px;
  justify-content: center;
}

.detail-body p {
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.8;
}

.detail-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
}

.detail-attachments {
  margin-top: 20px;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.detail-attachments-title {
  margin: 0;
  padding: 10px 15px;
  font-size: 16px;
  color: var(--text);
  background: #f5f5f5;
  border-bottom: 1px solid #e2e2e2;
}

.detail-attachments-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-attachments-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 8px 15px;
  border-top: 1px solid #ededed;
  background: #fff;
}

.detail-attachments-item:first-child {
  border-top: none;
}

.detail-attachments-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
  word-break: break-all;
  line-height: 30px;
}

.detail-attachments-link:hover {
  text-decoration: underline;
}

.detail-attachments-size {
  color: #666;
  background: #dddddd;
  font-size: 12px;
  white-space: nowrap;
  padding: 0 6px;
  height: 20px;
  line-height: 20px;
  display: inline-block;
}

.detail-attachments-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  height: 20px;
  line-height: 20px;
  border: 1px solid #5bc0de;
  border-radius: 4px;
  color: #fff;
  background: #5bc0de;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.detail-attachments-btn:hover {
  background: #31b0d5;
  border-color: #31b0d5;
}

.audit-info {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  text-align: right;
}

.audit-info.is-empty {
  display: none;
}

.audit-info [data-info-auditor] {
  white-space: pre-wrap;
}

.detail-footer .audit-info {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}

.detail-footer {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 12px;
}

.pager-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 18px;
  align-items: center;
  justify-content: center;

}

.pager-links a {
  color: var(--text);
  text-decoration: none;
}

/* 上一页/下一页 链接样式 */
.pager-links a.pager-nav {
  width: 100%;
  padding: 10px 0;
  color: var(--muted);
  border-bottom: 1px dashed var(--border);
  text-align: left;
}

.pager-links a.pager-nav:hover {
  color: var(--primary);
}

/* 按钮样式 (返回列表/首页/关闭) */
.pager-links a.pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  border: 1px solid rgba(26, 26, 26, 0.6);
  border-radius: 4px;
  background: #fff;
  color: var(--muted);
  transition: all 0.2s;
  margin-top: 12px;
}

.pager-links a.pager-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--bg);
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid var(--primary);
  font-weight: 600;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.ghost {
  background: #fff;
  color: var(--primary);
}

.grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* 页脚布局 */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--primary);
  color: #f3eaff;
  min-height: 250px;
  position: relative;
  overflow: hidden;
}

.site-footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-bottom: 50px solid var(--bg);
  border-right: 80px solid transparent;
  pointer-events: none;
  z-index: 2;
}


body:not(.is-home) .site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 50px solid var(--bg);
  border-left: 80px solid transparent;
  pointer-events: none;
  z-index: 2;
}

.footer-inner {
  width: 100%;
  margin: 0 auto;
  padding: 5px var(--edge-padding) 40px;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-left: auto;
  text-align: left;
  align-items: flex-start;
  padding-right: 100px;
  margin-top: 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.footer-links-label {
  font-weight: 700;
  color: #f3eaff;
}

.footer-links-list {
  display: contents;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-logo img {
  display: block;
  max-height: 64px;
  height: auto;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
  margin: 0;
}

.footer-links a {
  color: #f3eaff;
  margin: 0 8px;
}

.footer-meta {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 0;
  font-size: 16px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15px;
}

.footer-meta-link {
  margin-left: 30px;
  color: #ffd84d;
}

.footer-meta-link:hover {
  color: #ffe680;
}

@media (max-width: 768px) {
  .footer-meta-link {
    display: none;
  }
}

.footer-brand .footer-text {
  white-space: nowrap;
  font-size: 22px;
}

.footer-contact .footer-text {
  text-align: left;
  padding-right: 0;
  font-size: 20px;
  margin-block-end:5px;
  margin-block-start: 5px;
}

.footer-contact-title {
  position: relative;
  padding-bottom: 8px;
}

.footer-contact-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: calc((var(--edge-padding) + 100px) * -1);
  bottom: 0;
  height: 2px;
  background: #fff;
}

.footer-contact .contact-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact {
  align-items: flex-start;
  text-align: left;
}

.footer-logo-left {
  position: absolute;
  top: 50%;
  left: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  z-index: 1;
}

.footer-logo-left img {
  display: block;
  width: 650px;
  max-width: 650px;
  height: auto;
}

/* 桌面端：压缩页脚高度（不改字号） */
@media (min-width: 769px) {
  .footer-inner {
    padding-top: 0;
    padding-bottom: 40px;
    gap: 6px;
  }

  .footer-top {
    gap: 10px;
  }

  .footer-contact {
    gap: 4px;
  }

  .footer-links-group {
    gap: 4px;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-links a {
    margin: 0 4px;
  }

  .footer-contact-title {
    margin: 5px 0;
    line-height: 1.2;
  }

  .footer-contact .footer-text {
    margin-block-start: 0;
    margin-block-end: 0;
  }

  .footer-inner .contact-lines div {
    line-height: 1.3;
  }
  .footer-meta {
    height: auto;
    display: block;
    overflow: visible;
    margin-bottom: 0;
  }
}


@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .footer-contact {
    width: 100%;
    align-items: flex-start;
    text-align: left;
    padding-right: 0;
  }

  .footer-contact .footer-text {
    text-align: left;
  }

  .footer-links-group {
    width: 100%;
    flex: 0 0 auto;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer-links a {
    margin: 0;
  }
}

@media (max-width: 768px) {
  .footer-logo-left {
    position: static;
    display: flex;
    justify-content: center;
    padding: 16px;
    transform: none;
    width: 100%;
    margin-bottom: 8px;
  }

  .footer-logo-left img {
    width: 100%;
    max-width: 320px;
  }

  .footer-inner {
    padding: 0 16px 32px;
    font-size: 16px;
    gap: 16px;
  }

  .footer-meta {
    margin-top: 0.6em;
    position: static;
  }
}

.contact-lines div {
  line-height: 1.6;
  font-size: 16px;
}

.section-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px auto 0 ;
  /* margin: 0 0 28px; */
}

@media (hover: none) and (pointer: coarse) {
  body.search-results .news-listing li:hover,
  .list-layout .news-listing li:hover,
  .news-listing li:hover,
  .news-listing li:active,
  .news-listing li:focus-within {
    background-color: transparent !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .news-listing li:hover .title,
  .news-listing li:hover .date,
  .news-listing li:hover a {
    color: inherit !important;
  }

  body.is-home .home-notice-lecture .text-list li:hover,
  body.is-home .home-notice-lecture .text-list li:active,
  body.is-home .home-notice-lecture .text-list li:focus-within {
    background-color: transparent !important;
    transform: none !important;
  }

  body.is-home .home-notice-lecture .text-list li:hover a,
  body.is-home .home-notice-lecture .text-list li:hover .meta,
  body.is-home .home-notice-lecture .text-list li:active a,
  body.is-home .home-notice-lecture .text-list li:active .meta,
  body.is-home .home-notice-lecture .text-list li:focus-within a,
  body.is-home .home-notice-lecture .text-list li:focus-within .meta {
    color: inherit !important;
  }

  body.is-home .home-notice-lecture .text-column:last-child .text-list li:hover,
  body.is-home .home-notice-lecture .text-column:last-child .text-list li:active,
  body.is-home .home-notice-lecture .text-column:last-child .text-list li:focus-within {
    background-color: rgb(226, 197, 243) !important;
    transform: none !important;
  }


  body.is-home .home-notice-lecture .text-column:last-child .text-list a:active,
  body.is-home .home-notice-lecture .text-column:last-child .text-list a:focus,
  body.is-home .home-notice-lecture .text-column:last-child .text-list a:focus-visible {
    color: inherit !important;
  }



  body.is-home .home-notice-lecture .text-column:last-child .text-list li:hover,
  body.is-home .home-notice-lecture .text-column:last-child .text-list li:active,
  body.is-home .home-notice-lecture .text-column:last-child .text-list li:focus-within {
    background-color: rgb(226, 197, 243) !important;
    transform: none !important;
  }


  body.is-home .home-notice-lecture .text-column:last-child .text-list .two-col-card-title,
  body.is-home .home-notice-lecture .text-column:last-child .text-list .two-col-card-date,
  body.is-home .home-notice-lecture .text-column:last-child .text-list .two-col-card-date .day,
  body.is-home .home-notice-lecture .text-column:last-child .text-list .two-col-card-date .month {
    color: var(--text) !important;
  }

  body.is-home .home-notice-lecture .text-column:last-child .text-list li{
    background-color: rgb(226, 197, 243) !important ; 
  }
}


body.is-home .section-block {
  position: relative;
  box-shadow: none;
  --section-bg-image: none;
  --section-bg-opacity: 0;
  --section-bg-inset: 1px; /* 预留边框位置，避免背景图盖住 border */
  --section-bg-size: cover;
  --section-bg-position: center;
}

body.is-home .section-block:not(.two-col-text) {
  background-color: #fff; /* 背景图为空时默认白色填充 */
}

body.is-home .section-block::before {
  content: "";
  position: absolute;
  inset: var(--section-bg-inset, 1px);
  border-radius: calc(var(--radius) - var(--section-bg-inset, 1px));
  background-image: var(--section-bg-image, none);
  background-repeat: no-repeat;
  background-size: var(--section-bg-size, cover);
  background-position: var(--section-bg-position, center);
  opacity: var(--section-bg-opacity, 0);
  pointer-events: none;
  z-index: 0;
}

body.is-home .section-block > * {
  position: relative;
  z-index: 1;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  height: var(--section-header-height);
  box-sizing: border-box;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin: 16px auto;   

  max-width: 1750px;
  width: 100%;          
}

.section-header h2 {
  margin: 0;
  font-size: 18px;
  color: #3a1c63;
}

.section-header .more {
  color: var(--primary);
  font-size: 14px;
}

.section-header--motto {
 
  background-image: url(../images/xiaoxun.png);
  background-position-x: center;
  background-position-y: center;
  background-size: initial;
  background-repeat: no-repeat;
  background-attachment: initial;
  background-origin: initial;
  background-clip: initial;
  background-color: initial;
    
}

.section-header--motto .section-motto {
  display: none;
}

.section-header--motto .more {
  margin-left: auto;
}

@media (max-width: 768px) {
  .section-header--motto {
    height: auto;
    min-height: var(--section-header-height);
    background-image: none;
  }
}


:root {
  --home-section-title-font: inherit;
  --home-section-title-size: 25px;
  --home-section-title-color: #830cb2;
  --home-section-more-font: inherit;
  --home-section-more-size: 18px;
  --home-section-more-color: #a79d0a;
  --home-section-more-hover-color: var(--primary-strong);
}

body.is-home .section-header [data-type],
body.is-home .section-header [data-type0] {
  margin: 0;
  font-family: var(--home-section-title-font);
  font-size: var(--home-section-title-size);
  color: var(--home-section-title-color);
  line-height: 1.2;
}

body.is-home .section-header h2[data-type="dysy0100"],
body.is-home .section-header h2[data-type="dysy0500"],
body.is-home .section-header h2[data-type="dysy0400"],
body.is-home .section-header h2[data-type="dysy0800"],
body.is-home .section-header h2[data-type0="dysy06"] {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}


body.is-home .section-header h2[data-type="dysy0100"]::after,
body.is-home .section-header h2[data-type="dysy0500"]::after,
body.is-home .section-header h2[data-type="dysy0400"]::after,
body.is-home .section-header h2[data-type="dysy0800"]::after,
body.is-home .section-header h2[data-type0="dysy06"]::after {
  font-size: 18px;
  color: var(--primary-strong);
  opacity: 0.7;
  font-weight: 400;
}

/* 恢复栏目英文标识加粗（不影响导航） */
body.is-home .section-header h2[data-type]::after,
body.is-home .section-header h2[data-type0]::after {
  font-weight: 500;
}

body.is-home .section-header h2[data-type="dysy0100"]::after { content: "News"; }
body.is-home .section-header h2[data-type="dysy0500"]::after { content: "Party and league activities"; }
body.is-home .section-header h2[data-type="dysy0400"]::after { content: "Academic Announcement"; }
body.is-home .section-header h2[data-type="dysy0800"]::after { content: "Links"; }
body.is-home .section-header h2[data-type0="dysy06"]::after { content: "Student Affairs"; }


/* 首页：栏目标识icon（路径写在CSS中）*/
body.is-home .section-header h2[data-type],
body.is-home .section-header h2[data-type0] {
  position: relative;
  padding-left: 44px;
}

body.is-home .section-header h2[data-type]::before,
body.is-home .section-header h2[data-type0]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  background: no-repeat center/contain;
}

body.is-home .section-header h2[data-type="dysy0100"]::before { content: none; } /* 书院新闻 */
body.is-home .section-header h2[data-type="dysy0500"]::before { content: none; } /* 党团活动 */
body.is-home .section-header h2[data-type="dysy0200"]::before { content: none; } /* 通知公告 */
body.is-home .section-header h2[data-type="dysy0400"]::before { content: none; } /* 学术预告 */
body.is-home .section-header h2[data-type="dysy0800"]::before { content: none; } /* 友情链接 */
body.is-home .section-header h2[data-type0="dysy06"]::before { content: none; } /* 学生工作 */

body.is-home .section-header h2[data-type="dysy0100"],
body.is-home .section-header h2[data-type="dysy0500"],
body.is-home .section-header h2[data-type="dysy0400"],
body.is-home .section-header h2[data-type="dysy0800"] {
  padding-left: 0;
}
body.is-home .section-header h2[data-type0="dysy06"] {
  padding-left: 0;
}
body.is-home .section-header h2[data-type="dysy0600"]::before { content: none;} /* 奖助评优 */
body.is-home .section-header h2[data-type="dysy0700"]::before { content: none; } /* 办事流程 */

body.is-home .home-notice-lecture .section-header,
body.is-home .home-links .section-header {
  position: relative;
  border-bottom: none;
  padding-bottom: 10px;
}

body.is-home .home-notice-lecture .section-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary);
}

body.is-home .home-student-work .section-header {
  position: relative;
  border-bottom: none;
  padding-bottom: 10px;
}

body.is-home .home-student-work .section-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary);
}

body.is-home .home-news .section-header {
  position: relative;
  border-bottom: none;
  padding-bottom: 10px;
}

body.is-home .home-news .section-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary);
}

body.is-home .home-links .section-header::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  bottom: 0;
  height: 2px;
  background: var(--primary);
}

/* 首页：党团活动沿用通知公告图标样式 */
body.is-home .section-header h2.notice-style::before { content: none; }

body.is-home .section-header .more {
  font-family: var(--home-section-more-font);
  font-size: var(--home-section-more-size);
  color: var(--home-section-more-color);
  font-weight: 400;   /* 加粗 */
}

body.is-home .section-header .more:hover {
  color: var(--home-section-more-hover-color);
}

/* 恢复 more 按钮加粗（不影响导航） */
body.is-home .section-header .more {
  font-weight: 500;
}

.section-body {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  max-width: 1750px;
  margin: 10px auto 25px auto;
}

.cover-card {
  background: #faf7ff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.cover-card .cover-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  box-shadow: inset 0 -1px 0 var(--border);
}

.cover-1 { background: linear-gradient(135deg, #7ec8ff, #3f78ff); }
.cover-2 { background: linear-gradient(135deg, #ffc77e, #ff7b6b); }
.cover-3 { background: linear-gradient(135deg, #93f3c3, #3ec6a1); }
.cover-4 { background: linear-gradient(135deg, #7ec8ff, #3f78ff); }
.cover-5 { background: linear-gradient(135deg, #8fd3ff, #5a8dff); }
.cover-6 { background: linear-gradient(135deg, #3ec6a1, #0c8b72); }
.cover-7 { background: linear-gradient(135deg, #f8c53a, #f59e00); }
.cover-8 { background: linear-gradient(135deg, #77b6ff, #2b7bfd); }
.cover-9 { background: linear-gradient(135deg, #c89bff, #8d42c6); }

.cover-card .card-body {
  padding: 10px 12px 12px;
}

.cover-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cover-card:hover h3 {
  color: var(--primary-strong);
}

.cover-card .meta {
  font-size: 13px;
  color: var(--muted);
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border);
  padding-left: 14px;
  min-width: 0;
  width: 100%;
}

.news-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
  border-bottom: 1px solid rgba(107, 114, 128, 0.6);
  color: var(--muted);
}

.news-list a {
  color: var(--muted);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.news-list a:hover {
  color: var(--primary-strong);
}

.news-list .meta {
  font-size: 13px;
  color: rgb(0, 0, 0,0.7);
  white-space: nowrap;
}

.anchor-section {
  margin-bottom: 28px;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.anchor-section:last-child {
  margin-bottom: 0;
}

.anchor-placeholder {
  height: 1px;
  overflow: hidden;
}

/* 网站变灰设置 - 通过 JS 动态控制 */
html.gray-mode {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
  -o-filter: grayscale(100%);
}

@media (max-width: 768px) {
  :root {
    --header-height: 66px;
  }

  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
    overscroll-behavior-x: none;
    touch-action: pan-y;
  }

  #main-content {
    transition: padding-top 0.25s ease;
  }

#header-container,
#footer-container {
  overflow-x: hidden;
}


  #main-content,
  .content-overlay {
    max-width: 100vw;
    overflow-x: hidden;
  }

  body.mobile-nav-open #main-content {
    margin-top: 0;
  }

  body.is-home.mobile-nav-open #main-content {
    padding-top: var(--header-height);
  }

  .topbar {
    padding: 6px 16px;
    margin: 0;
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    min-height: 66px;
  }

  .nav-toggle,
  .navbar-toggle {
    display: inline-block;
    position: static;
  }

  .top-actions-bar .nav-toggle,
  .top-actions-bar .navbar-toggle {
    display: inline-flex;
  }

  .top-actions-bar .top-actions {
    padding-top: 6px;
  }

  body.is-home .top-actions-bar .search.header-search,
  body:not(.is-home) .top-actions-bar .search.header-search {
    display: none;
  }

  /* 修复页眉显示 */
  .branding {
    flex: 1;
    min-width: 0;
    width: 100%;
    margin-right: 0;
    padding-right: 0;
    flex-direction: column; 
    align-items: flex-start;
    gap: 6px;
  }
  
  .logo img {
    max-height: 40px;
    width: auto;
    max-width: 100%;
  }

  .title-lines {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    white-space: normal;
    width: 100%;
    min-width: 0;
  }

  .site-sub {
    font-size: 16px;
    line-height: 1.2;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 修复导航显示 */
  /* .main-nav.nav-open {
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  } */

  .main-nav {
  position: absolute;     
  left: 0;
  top: 100%;             
  width: 100vw;           /* 关键：横向铺满 */
  background: var(--primary);
  z-index: 1000;
}

.main-nav.nav-open {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

  /* 移动端：让菜单参与文档流，展开时把正文往下推 */
  .main-nav {
    position: static;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    left: auto;
    top: auto;
    flex: 0 0 auto;
    background: var(--primary);
  }

  /* 展开菜单时，让导航背景真正贴边铺满（不受 topbar 左右 padding 影响*/
  body.mobile-nav-open .topbar {
    padding-left: 0;
    padding-right: 0;
  }

  body.mobile-nav-open .topbar .branding {
    padding-left: 16px;
    padding-right: 16px;
  }

  .main-nav.nav-open .nav-inner {
    display: flex;
  }

  .nav-inner {
    padding: 10px 16px 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .main-nav ul {
    display: block;
    width: 100%;
    padding: 0;
  }

  .main-nav li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .main-nav li a {
    padding: 12px 0;
    color: #fff;
  }

  .main-nav li.has-children > .dropdown {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    border: none;
    box-shadow: none;
    background: rgba(0,0,0,0.1);
    padding: 0;
    display: none;
  }

  .main-nav li.open > .dropdown {
    display: block;
  }

  .dropdown li a {
    padding-left: 20px;
    background: transparent;
    color: rgba(255,255,255,0.9);
    text-align: center;
  }

  .search {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .search input {
    flex: 1;
    min-width: 0;
  }

  .search button {
    flex-shrink: 0;
    white-space: nowrap;
    background: var(--primary);
    color: #fff;
    border: none;
  }

  .mobile-search-section {
    display: block !important;
    position: relative;
    z-index: 10;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 5vw;
    padding-right: 5vw;
    background: var(--primary);
    /* margin: 15px; */
    /*border-bottom: 1px solid var(--border);*/
    box-sizing: border-box;
  }

  .mobile-search-section .search input {
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #333;
  }

  .slider-btn {
    display: inline-flex;
  }

  .slider-btn {
    font-size: 44px;
  }

  .slider-btn.prev {
    left: 3%;
  }

  .slider-btn.next {
    right: 3%;
  }

  .mini-slider-btn {
    font-size: 40px;
  }

  .mini-slider-btn.prev {
    left: 6px;
  }

  .mini-slider-btn.next {
    right: 6px;
  }

  .hero-slider {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .content-overlay {
    overflow-x: hidden;
  }

  .section-block {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
    padding: 20px 0;
    overflow-x: hidden;
  }

  /* 首页双栏（two-col-text）：移动端强制单列，避免 minmax(320px, 1fr) 导致小屏溢出 */
  body.is-home .section-block.two-col-text {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 覆盖 4:6 固定分栏规则，移动端强制单列 */
  body.is-home .section-block.two-col-text.double-box.home-notice-lecture,
  body.is-home .section-block.two-col-text.double-box.home-awards-guide {
    grid-template-columns: minmax(0, 1fr);
  }

  
  body.is-home .section-block.two-col-text .text-column {
    min-width: 0;
    max-width: 100%;
  }

  body.is-home .section-block.two-col-text .text-list {
    max-width: 100%;
    overflow-x: hidden;
  }

  .section-header {
    padding-left: 16px;
    padding-right: 16px;
    min-width: 0;
    overflow: hidden;
  }

  .section-header h2 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .section-header .more {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  /* 首页双栏（two-col-text double-box）：移动端避免挤出边*/
  .cover-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

.cover-card .cover-img {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* 首页书院新闻封面切角：右上角、左下角 */
body.is-home .home-news .cover-img,
body.is-home .home-news .news-slider-container,
body.is-home .home-news-feature .cover-img,
body.is-home .home-news-feature .news-slider-container {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

body.is-home .home-news .news-slider-container .mini-slide,
body.is-home .home-news .news-slider-container .mini-slide img,
body.is-home .home-news-feature .news-slider-container .mini-slide,
body.is-home .home-news-feature .news-slider-container .mini-slide img {
  /* 移除 clip-path，使用伪元素遮罩实现切角，保持与页脚一致 */
}

body.is-home .home-news .cover-img::before,
body.is-home .home-news .cover-img::after,
body.is-home .home-news .news-slider-container::before,
body.is-home .home-news .news-slider-container::after,
body.is-home .home-news-feature .cover-img::before,
body.is-home .home-news-feature .cover-img::after,
body.is-home .home-news-feature .news-slider-container::before,
body.is-home .home-news-feature .news-slider-container::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 30;
}

body.is-home .home-news .cover-img::before,
body.is-home .home-news .news-slider-container::before,
body.is-home .home-news-feature .cover-img::before,
body.is-home .home-news-feature .news-slider-container::before {
  top: 0;
  right: 0;
  border-top: 50px solid var(--bg);
  border-left: 80px solid transparent;
}

body.is-home .home-news .cover-img::after,
body.is-home .home-news .news-slider-container::after,
body.is-home .home-news-feature .cover-img::after,
body.is-home .home-news-feature .news-slider-container::after {
  bottom: 0;
  left: 0;
  border-bottom: 50px solid var(--bg);
  border-right: 80px solid transparent;
}

body.is-home .home-news .news-slider-container {
  z-index: 0;
}

body.is-home .home-news .news-slider-container::before,
body.is-home .home-news .news-slider-container::after {
  z-index: 20;
}

body.is-home .home-news .news-slider-container::before,
body.is-home .home-news .news-slider-container::after {
  z-index: 20;
}

body.is-home .home-news .news-slider-container::before {
  background: linear-gradient(225deg, transparent 50%, #ffffff 0);
}

body.is-home .home-news .news-slider-container::after {
  background: linear-gradient(45deg, transparent 50%, #ffffff 0);
}

  .news-list {
    border-left: none;
    padding-left: 16px;
    padding-right: 16px;
  }

  .news-listing {
    padding-left: 16px;
    padding-right: 16px;
  }

  .text-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* 首页双栏（two-col-text double-box）：移动端防header / 列表内容挤出边界 */
  body.is-home .section-block.two-col-text .section-header h2[data-type] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.is-home .section-block.two-col-text .text-list li {
    min-width: 0;
  }

  body.is-home .section-block.two-col-text .text-list a:not(.two-col-card-link) {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.is-home .section-block.two-col-text a.two-col-card-link {
    min-width: 0;
  }

  body.is-home .section-block.two-col-text .two-col-card-title {
    min-width: 0;
  }

  
  #main-content {
        overflow-x: hidden;
  }

  .page-container {
    padding: 20px 16px 32px;
  }

  .page-container-full {
    padding: 20px 0 32px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .page-container-full .breadcrumb {
    padding: 0 16px;
    margin-top: 0;
    margin-bottom: 20px;
  }

  .detail-card,
  .list-main,
  .list-sidebar {
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }

  /* 覆盖横幅底部的浮动覆盖层 */
  .content-overlay {
    margin-top: 0;
  }

  .section-body {
    grid-template-columns: 1fr;
  }

  .list-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .detail-layout {
    margin: 0;
  }

  .list-sidebar {
    width: 100%;
    margin-bottom: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  /* level2.html：移动端栏目导航改为可折叠（默认隐藏，点击按钮展开*/
  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 32px);
    margin: 0 16px 12px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
  }

  .sidebar-toggle::after {
    content: "";
    font-size: 14px;
    opacity: 0.9;
  }

  .list-layout.column-list .list-sidebar {
    display: none;
  }

  .list-layout.column-list.is-sidebar-open .list-sidebar {
    display: block;
    margin: 0 16px 16px;
    width: calc(100% - 32px);
  }

  /* level2.html：移动端隐藏左侧导航，仅显示内容单列 */
  .sidebar-toggle {
    display: none !important;
  }

  .list-layout.column-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .list-layout.column-list .list-sidebar {
    display: none !important;
  }

  .footer-inner {
    padding: 24px 16px;
  }

  .two-col-text {
    grid-template-columns: 1fr;
  }

  .page-container {
    padding: 20px 16px 32px;
  }

  .page-container-full .section-block {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
}

/* level2.html：部分移动端/平板浏览器会以较大布局宽度渲染（如 980px），需要扩大断点以显示栏目导航折叠按钮 */
@media (max-width: 1024px) {
  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 32px);
    margin: 0 16px 12px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
  }

  .sidebar-toggle::after {
    content: "";
    font-size: 14px;
    opacity: 0.9;
  }

  .list-layout.column-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .list-layout.column-list .list-sidebar {
    display: none;
  }

  .list-layout.column-list.is-sidebar-open .list-sidebar {
    display: block;
    margin: 0 16px 16px;
    width: calc(100% - 32px);
  }

  /* level2.html：部分移动端/平板浏览器会以较大布局宽度渲染（如 980px），需要扩大断点以隐藏左侧导航，仅显示内容单列 */
  @media (hover: none) and (pointer: coarse) {
    .sidebar-toggle {
      display: none !important;
    }

    .list-layout.column-list {
      grid-template-columns: 1fr;
      gap: 0;
    }

    .list-layout.column-list .list-sidebar {
      display: none !important;
    }
  }
}

/* 首页书院新闻双栏混合布局调整 */
@media (min-width: 769px) {
  body.is-home .section-body.index-mix-layout {
    height: clamp(360px, 33vw, 615px);
    max-height: 615px;
    overflow: hidden;
  }

  body.is-home .section-body.index-mix-layout .news-list {
    flex: 1;
    overflow: auto;
    min-height: 0;
  }

  body.is-home .section-body.index-mix-layout .cover-card {
    flex: 0 0 50%;
    height: 100%;
    min-height: 0;
  }

  body.is-home .section-body.index-mix-layout .cover-card .cover-img {
    min-height: 0;
  }
}

/* 首页头部样式 */
body.is-home .site-header {
  position: absolute;
  /* top: 0; */
  left: 0;
  right: 0;
  background: transparent;
  box-shadow: none;
  z-index: 40;
}

@media (max-width: 768px) {
  body.is-home.mobile-nav-open .site-header {
    background: var(--primary);
    box-shadow: var(--shadow);
  }
}

body.is-home .topbar,
body.is-home .action-link {
  color: #fff;
}

body.is-home .top-actions-bar,
body.is-home .main-nav {
  background: transparent;
}

body.is-home .main-nav a {
  color: #fff;
}

body.is-home .main-nav {
  background: transparent;
}

/* 取消首页滚动后页眉变色效果，保持顶部样式一致 */




.leader-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.leader-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.leader-photo {
  height: 204px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 12px;
  background: transparent;
  display: block;
}

.leader-photo a {
  display: block;
  width: 100%;
  height: 100%;
}

.leader-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.leader-photo:hover img {
  transform: scale(1.05);
}

.leader-name {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.leader-name a {
  color: var(--primary);
  text-decoration: none;
}

.leader-name a:hover {
  text-decoration: underline;
}

.leader-title {
  font-size: 16px;
  color: var(--muted);
}

@media (max-width: 992px) {
  .leader-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .leader-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 767px) {
  /* 手机端：头像统一满框显示，避免不同尺寸导致视觉不一致（iPad Mini 768px 不裁切） */
  .leader-photo {
    background: #f3f4f6;
  }

  .leader-photo img {
    object-fit: cover;
    object-position: 50% 20%;
  }
}



.index-mix-layout {
  display: flex !important; 
  gap: 24px;
  align-items: stretch;
}

.home-news .index-mix-layout {
  gap: 50px;
}

.news-slider-container {
  flex: 0 0 50%; /* 轮播区域宽度 */
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #000; /* 兜底背景 */
  min-height: 479px;
}

.news-list-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mini-slides {
  position: absolute;
  inset: 0;
}

.mini-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
  z-index: 1;
}

.mini-slide.active {
  opacity: 1;
  z-index: 2;
  transform: translateX(0);
}

.mini-slide.slide-out {
  opacity: 0;
  transform: translateX(-100%);
}

.mini-slide.no-transition {
  transition: none;
}

.mini-slide a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.mini-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-news .news-slider-container {
  flex: 0 0 915px;
  max-width: 915px;
}

.home-news .mini-slide img {
  width: 915px;
}

.home-news .news-list-container {
  height: 100%;
  min-height: 479px;
}

.home-news .news-list {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  list-style: none;
  padding-left: 0;
}

.home-news .news-list li {
  flex: 1 1 0;
  align-items: center;
  border-bottom: 1px dashed rgba(123, 47, 181, 0.25);
}

.home-news .news-list li a,
.home-news .news-list li .meta {
  line-height: 1.4;
}

.home-news .news-list li {
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.home-news .news-list li:hover {
  background-color: var(--primary);
  transform: translate(-2px, -5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  padding-left: 15px;
  padding-right: 15px;
}

.home-news .news-list li:hover a,
.home-news .news-list li:hover .meta {
  color: #fff;
}

/* 首页书院新闻封面切角：右上角、左下角 */
body.is-home .home-news .news-slider-container,
body.is-home .home-news-feature .news-slider-container {
  position: relative;
  overflow: hidden;
  -webkit-clip-path: none !important;
  clip-path: none !important;
  isolation: isolate;
  background: var(--bg);
}

body.is-home .home-news .news-slider-container::before,
body.is-home .home-news .news-slider-container::after,
body.is-home .home-news-feature .news-slider-container::before,
body.is-home .home-news-feature .news-slider-container::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 30;
}

body.is-home .home-news .news-slider-container::before,
body.is-home .home-news-feature .news-slider-container::before {
  top: 0;
  right: 0;
  border-top: 50px solid var(--bg);
  border-left: 80px solid transparent;
}

body.is-home .home-news .news-slider-container::after,
body.is-home .home-news-feature .news-slider-container::after {
  bottom: 0;
  left: 0;
  border-bottom: 50px solid var(--bg);
  border-right: 80px solid transparent;
}


body.is-home .home-news-feature {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 20px 0 30px;
}

.mini-slide .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(151, 137, 137, 0);
  color: #fff;
  padding: 10px 15px;
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* 迷你轮播控制 */
.mini-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: #fff;
  border: none;
  width: auto;
  height: auto;
  border-radius: 0;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  line-height: 1;
  transition: opacity 0.3s;
}

.mini-slider-btn:hover {
  opacity: 1;
}

.mini-slider-btn.prev { left: 10px; }
.mini-slider-btn.next { right: 10px; }

.mini-slider-dots {
  position: absolute;
  bottom: 40px;      /* 保持在标题上方 */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}


.mini-slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
}

.mini-slider-dots .dot.active {
  background: #fff;
}

/* 首页书院新闻双栏混合布局调整 - 大屏幕 */
@media (min-width: 769px) {
  /* 避免 cover-card 封面随屏幕变得过高，撑开卡片 */
  body.is-home .section-body.index-mix-layout .cover-card .cover-img {
    aspect-ratio: auto;
    height: clamp(360px, 33vw, 600px);
  }


  body.is-home .section-body.index-mix-layout .news-slider-container {
    height: 100%;
    min-height: 0;
   
  }

  /* 列表右侧日期固定宽度 */
  .index-mix-layout .news-list {
    border-left: none;
    padding-left: 0;
  }

  .index-mix-layout .news-list li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    /* padding-left: 15px; */
    position: relative;
    overflow: hidden;
  }

  .index-mix-layout .news-list li::before {
    content: none;
  }

  .index-mix-layout .news-list li a {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 571px;
    display: block;
    line-height: 50px;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .index-mix-layout .news-list li .meta {
    flex: 0 0 124px;
    flex-grow: 0;
    flex-shrink: 0;
    margin-left: auto;
    line-height: 50px;
    font-size: 18px;
    text-align: right;
  }
}

/* 首页书院新闻双栏混合布局调整 - 小屏幕 */
@media (max-width: 768px) {
  .index-mix-layout {
    flex-direction: column;
  }
  
  .news-slider-container {
    flex: auto;
    width: 100%;
    min-height: 240px;
  }

  .home-news .news-slider-container {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .home-news .mini-slide img {
    width: 100%;
    height: 100%;
  }

  .home-news .news-list-container {
    height: auto;
    min-height: 0;
  }

  .home-news .news-list {
    height: auto;
    justify-content: flex-start;
    gap: 8px;
    padding-left: 5vw;
    padding-right: 5vw;
    box-sizing: border-box;
  }

  .home-news .news-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    width: 100%;
  }

  .home-news .news-list li a {
    width: 100%;
    max-width: 100%;
    display: block;
  }

  .home-news .news-list li .meta {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  body.is-home .home-student-work .student-work-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 10px 0 25px;
  }

  body.is-home .home-student-work .student-work-cards {
    margin-right: 0;
  }

  body.is-home .home-student-work .student-work-card a {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.is-home .home-student-work .student-work-card-media {
    width: 100%;
    height: auto;
  }

  body.is-home .home-student-work .student-work-card-media-inner {
    aspect-ratio: 16 / 9;
  }

  body.is-home .home-student-work .student-work-date-badge {
    margin-left: 0;
    left: 12px;
    bottom: 12px;
    min-width: 68px;
  }

  body.is-home .home-student-work .student-work-card-title,
  body.is-home .home-student-work .student-work-card-brief {
    padding-left: 0;
  }

  body.is-home .home-student-work .student-work-card-content {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  body.is-home .home-student-work .student-work-panel {
    padding: 12px 16px 16px;
  }

  body.is-home .home-student-work .student-work-panel-list li {
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  body.is-home .home-student-work .student-work-panel-list a {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: flex-start;
  }

  body.is-home .home-student-work .student-work-panel-list .panel-title {
    padding-left: 0;
    padding-right: 0;
  }

  body.is-home .section-header h2[data-type]::after,
  body.is-home .section-header h2[data-type0]::after {
    content: none;
    display: none;
  }

  body.is-home .home-student-work .student-work-card:hover .student-work-card-media img {
    transform: none;
  }

  body.is-home .home-student-work .student-work-card:hover .student-work-card-title,
  body.is-home .home-student-work .student-work-card:hover .student-work-card-brief {
    color: var(--text);
  }

  body.is-home .home-student-work .student-work-panel-list li:hover {
    background: transparent;
    transform: none;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  #main-content,
  .site-header,
  .hero-slider,
  .content-overlay,
  .section-block,
  .home-news .news-slider-container {
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero-slider,
  .home-news .news-slider-container {
    touch-action: pan-y;
  }

  .slider-btn,
  .mini-slider-btn {
    display: none;
  }

  .hero-slider img,
  .home-news .mini-slide img {
    width: 100%;
    height: 100%;
    display: block;
  }
}

@media (hover: none) and (pointer: coarse) {
  .home-news .news-list li:hover {
    background-color: transparent;
    transform: none;
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
  }

  .home-news .news-list li:hover a,
  .home-news .news-list li:hover .meta {
    color: inherit;
  }

  body.is-home .home-notice-lecture .text-list li:hover {
    background-color: transparent;
    transform: none;
  }

  body.is-home .home-notice-lecture .text-list li:hover a,
  body.is-home .home-notice-lecture .text-list li:hover .meta {
    color: inherit;
  }

  body.is-home .home-notice-lecture .text-column:first-child .text-list li:hover > a,
  body.is-home .home-notice-lecture .text-column:first-child .text-list li:hover > .meta {
    transform: none;
  }

  body.is-home .home-notice-lecture .text-column:last-child .text-list li:hover::before,
  body.is-home .home-notice-lecture .text-column:last-child .text-list li:hover::after {
    display: none;
  }

  body.is-home .home-notice-lecture .text-column:last-child .text-list li:hover .two-col-card-date .day,
  body.is-home .home-notice-lecture .text-column:last-child .text-list li:hover .two-col-card-date .month,
  body.is-home .home-notice-lecture .text-column:last-child .text-list li:hover .two-col-card-title {
    color: inherit;
  }

  .two-col-text .text-column:first-child .text-list a:hover {
    color: inherit;
  }

  body.is-home .home-notice-lecture .text-column:first-child .text-list a:visited {
    color: inherit;
  }

  .two-col-text .text-column:last-child .text-list li:hover {
    background-color: transparent;
  }

  .two-col-text a.two-col-card-link:hover .two-col-card-title {
    color: inherit;
  }

  body.is-home .home-notice-lecture .text-column:last-child .text-list a:visited {
    color: inherit;
  }

  body.is-home .home-student-work .student-work-panel-list li:hover {
    background: transparent;
    transform: none;
  }

  body.is-home .home-student-work .student-work-card:hover .student-work-card-media img {
    transform: none;
  }

  body.is-home .home-student-work .student-work-card:hover .student-work-card-title,
  body.is-home .home-student-work .student-work-card:hover .student-work-card-brief {
    color: inherit;
  }

  body.is-home .home-links-list a:hover {
    color: #fff !important;
  }

  body.is-home .home-links-list a:visited,
  body.is-home .home-links-list a:active,
  body.is-home .home-links-list a:focus,
  body.is-home .home-links-list a:focus-visible {
    color: #fff !important;
  }

  .news-listing li:hover {
    transform: none;
    background-color: transparent;
  }

  .news-listing li:hover .title,
  .news-listing li:hover .date,
  .news-listing li:hover a {
    color: inherit;
  }

  .news-listing li:active {
    background-color: transparent;
  }

  .news-listing li:focus-within {
    background-color: transparent;
  }

  .news-listing a:visited {
    color: inherit;
  }

  .home-news .news-list li:active,
  body.is-home .home-notice-lecture .text-list li:active,
  body.is-home .home-student-work .student-work-panel-list li:active,
  .two-col-text .text-column:last-child .text-list li:active {
    background-color: transparent;
  }
}

@media (max-width: 768px) {
  body.is-home .section-block.two-col-text.double-box.home-notice-lecture {
    gap: 20px;
  }

  .two-col-text .text-column:first-child .text-list {
    padding-left: 16px;
  }

  body.is-home .home-notice-lecture .text-column:first-child .text-list li {
    padding: 16px 0 16px 12px;
  }

  .two-col-text .text-column:first-child .text-list a,
  .two-col-text .text-column:first-child .text-list .meta {
    font-size: 16px;
  }

  .two-col-text a.two-col-card-link {
    padding: 12px;
  }

  .two-col-text .two-col-card-date {
    flex: 0 0 64px;
  }

  .two-col-text .two-col-card-title {
    font-size: 16px;
    line-height: 1.4;
    padding-left: 12px;
  }

  body.is-home .home-links-row {
    padding: 28px 16px;
    gap: 8px;
  }

  body.is-home .home-links-list a {
    padding: 4px 12px;
  }

  body.is-home .home-links-row::after {
    border-top: 28px solid var(--bg);
    border-left: 44px solid transparent;
  }
}

@media (max-width: 768px) {
  body.is-home .home-news .cover-img::before,
  body.is-home .home-news .cover-img::after,
  body.is-home .home-news .news-slider-container::before,
  body.is-home .home-news .news-slider-container::after,
  body.is-home .home-news-feature .cover-img::before,
  body.is-home .home-news-feature .cover-img::after,
  body.is-home .home-news-feature .news-slider-container::before,
  body.is-home .home-news-feature .news-slider-container::after {
    display: none;
  }

  body.is-home .home-links-row::after {
    display: none;
  }

  .site-footer::after,
  .site-footer::before {
    display: none;
  }

  body.is-home .home-student-work .student-work-panel::before,
  body.is-home .home-student-work .student-work-panel::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .two-col-text .text-column:first-child .text-list li::before,
  .two-col-text .text-column:first-child .text-list li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .section-block {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (min-width: 769px) {
 
  .main-nav .nav-inner > ul > li.has-children > .dropdown{
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
}

