/* study-note: pages/home.css
 * 作用：首页主体栏目样式：轮播、学院新闻、通知公告、教学科研、新传风采、快速链接。
 * 注意：页头、导航、页脚已经移到 layout.css，不在本文件重复维护。
 */
.hero-section {
  width: 100%;
  background: #fff;
}

.hero-slider {
  position: relative;
  width: 100%;
  max-width: none;
  height: min(56.25vw, calc(100svh - var(--site-header-height, 116px) - var(--hero-first-screen-gap, 6px)));
  min-height: var(--hero-min-height);
  max-height: var(--hero-max-height);
  margin: 0;
  overflow: hidden;
  background: #eee8e0;
  --slider-cell-width: 100%;
}

.slider-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform var(--motion-slider);
  will-change: transform;
  backface-visibility: hidden;
}

.slider-track.is-jump {
  transition: none;
}

.slide {
  position: relative;
  flex: 0 0 var(--slider-cell-width, 100%);
  width: var(--slider-cell-width, 100%);
  height: 100%;
  overflow: hidden;
  background: #ddd;
}

.slide-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
}

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.08);
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.slide.is-active::before {
  opacity: 0;
}

.slide::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 38%;
  background: linear-gradient(180deg, rgba(18, 12, 12, 0) 0%, rgba(16, 14, 14, 0.12) 28%, rgba(16, 14, 14, 0.58) 100%);
  pointer-events: none;
}

.slide img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: var(--hero-image-fit, cover);
  object-position: var(--hero-object-position, center center);
}

.slide-caption {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 2.2vw, 30px);
  transform: translateX(-50%);
  width: min(1100px, calc(100% - clamp(28px, 5vw, 72px)));
  z-index: 3;
  text-align: center;
  color: #fff;
}

.slide-caption p {
  font-size: var(--font-size-hero-eyebrow);
  line-height: 1.2;
  letter-spacing: 0.4px;
  margin-bottom: clamp(3px, 0.55vw, 6px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.slide-caption h2 {
  font-size: var(--font-size-hero-title);
  line-height: var(--line-hero-title);
  font-weight: 800;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.42);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(32px, 3.2vw, 44px);
  height: clamp(32px, 3.2vw, 44px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.16);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  z-index: 4;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
  opacity: 0.94;
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
  opacity: 1;
  background: rgba(0, 0, 0, 0.24);
}

.slider-arrow svg {
  width: clamp(13px, 1.2vw, 16px);
  height: clamp(19px, 1.8vw, 24px);
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slider-arrow.prev {
  left: clamp(8px, 1.45vw, 20px);
}

.slider-arrow.next {
  right: clamp(8px, 1.45vw, 20px);
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(8px, 1.2vw, 18px);
  transform: translateX(-50%);
  display: flex;
  gap: clamp(7px, 0.75vw, 10px);
  z-index: 4;
}

.dot {
  width: clamp(7px, 0.75vw, 10px);
  height: clamp(7px, 0.75vw, 10px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.36);
}

.dot.is-active {
  width: clamp(18px, 2vw, 28px);
  background: #fff;
}

.hero-slider.has-single-slide .slider-arrow,
.hero-slider.has-single-slide .slider-dots {
  display: none;
}

.content-section {
  padding: var(--section-gap) 0;
}

.section-with-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section-with-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: var(--section-bg-opacity);
  pointer-events: none;
}

.section-with-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.section-bg-news::before {
  background-image: url("../images/bg-news.png");
}

.section-bg-notice::before {
  background-image: url("../images/bg-notice.png");
  /* 通知公告背景的主体更靠上时，用 center top 锁住顶部；cover 裁切时优先裁掉下方。 */
  background-position: center top;
}

.section-bg-campus::before {
  background-image: url("../images/bg-campus.png");
}

.section-with-bg > .wrap {
  position: relative;
  z-index: 1;
}

.news-section .section-head,
.notice-section .section-head,
.teaching-section .section-head,
.campus-section .section-head {
  margin-bottom: clamp(14px, 1.55vw, 22px);
}

.news-section {
  padding-top: clamp(30px, 3vw, 42px);
  padding-bottom: clamp(28px, 2.8vw, 40px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
    linear-gradient(135deg, rgba(94, 80, 70, 0.04) 0%, rgba(94, 80, 70, 0.01) 100%);
}

.news-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: 22px;
  align-items: stretch;
}

.news-feature {
  position: relative;
  z-index: 1;
  overflow: visible;
  transition: background var(--motion-normal), transform var(--motion-normal), box-shadow var(--motion-normal);
}

.news-feature.is-active {
  transform: perspective(900px) rotateX(calc(var(--hover-y, 0) * -2.4deg)) rotateY(calc(var(--hover-x, 0) * 2.4deg));
  box-shadow: 0 20px 38px rgba(var(--color-primary-rgb), 0.18);
}

.news-feature:focus-within {
  z-index: 3;
  box-shadow: 0 20px 38px rgba(var(--color-primary-rgb), 0.18);
}

.news-feature.is-active > a {
  background: var(--color-primary);
  color: #fff;
}

.news-feature.is-active .news-image img {
  filter: brightness(0.84) saturate(0.92);
}

.news-feature.is-active .news-copy h3,
.news-feature.is-active .news-copy p {
  color: #fff;
}

.news-feature > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.news-feature-slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(280px, 32vw, 420px);
}

.news-feature-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
  transform: translateX(20px);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.news-feature-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 2;
}

.news-feature-slide:first-child {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 1;
}

.news-feature-slide.is-active ~ .news-feature-slide {
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
}

.news-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(36px, 3.4vw, 48px);
  height: clamp(36px, 3.4vw, 48px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.24);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
  opacity: 0.85;
}

.news-arrow:hover,
.news-arrow:focus-visible {
  opacity: 1;
  background: rgba(0, 0, 0, 0.36);
  transform: translateY(-50%) scale(1.08);
}

.news-arrow svg {
  width: clamp(14px, 1.4vw, 18px);
  height: clamp(14px, 1.4vw, 18px);
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.news-arrow-prev {
  left: clamp(10px, 2vw, 16px);
}

.news-arrow-next {
  right: clamp(10px, 2vw, 16px);
}

.news-dots {
  position: absolute;
  bottom: clamp(10px, 1.5vw, 16px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(8px, 1vw, 12px);
  z-index: 5;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
}

.news-dot {
  width: clamp(8px, 1vw, 12px);
  height: clamp(8px, 1vw, 12px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.news-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.15);
}

.news-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

.news-feature-slide:first-child {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.news-feature-slide.is-active ~ .news-feature-slide {
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
}

.news-feature-slide .news-image {
  flex: 0 0 auto;
}

.news-feature-slide .news-image img {
  filter: brightness(0.84) saturate(0.92);
}

.news-feature-slide .news-copy h3,
.news-feature-slide .news-copy p {
  color: #fff;
}

.news-image {
  aspect-ratio: var(--ratio-section-image);
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-feature-body {
  display: grid;
  grid-template-columns: var(--date-card-width) minmax(0, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
  align-items: center;
  padding: clamp(12px, 1.1vw, 14px) clamp(12px, 1.35vw, 16px) clamp(14px, 1.35vw, 16px);
}

.date-badge,
.news-list-date,
.notice-date {
  min-width: 0;
}

.date-badge {
  align-self: center;
  background: var(--color-primary);
  color: #fff;
  min-height: clamp(78px, 7vw, 96px);
  border-radius: 1px;
}

.date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 0.7vw, 8px);
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}

.date-block-date,
.date-block-year {
  display: block;
  font-family: var(--font-date);
  font-weight: 900;
  line-height: 1;
  max-width: 100%;
  white-space: nowrap;
}

.date-block-date {
  font-size: var(--font-size-date-day);
  letter-spacing: -0.03em;
}

.date-block-year {
  font-size: var(--font-size-date-year);
}

.news-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.news-copy h3 {
  font-size: var(--font-size-news-title-large);
  line-height: var(--line-news-title-large);
  font-weight: 700;
  color: #2d2623;
}

.news-copy h3.is-long-title {
  font-size: var(--font-size-news-title);
  line-height: var(--line-news-title);
}

.news-copy p {
  margin-top: 8px;
  font-size: var(--font-size-news-summary);
  line-height: var(--line-news-summary);
  color: var(--color-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  height: 100%;
}

.news-list-item {
  padding: 0;
}

.news-list-item a {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) var(--date-card-width-small);
  grid-template-areas: 'diamond title date';
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.12);
  border-radius: 2px;
  font-size: var(--font-size-news-title);
  line-height: var(--line-news-title);
  color: #403633;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.diamond {
  grid-area: diamond;
  width: 10px;
  height: 10px;
  border: 2px solid var(--color-primary);
  transform: rotate(45deg);
  margin-left: 2px;
  transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.news-title {
  grid-area: title;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: font-size 0.22s ease, line-height 0.22s ease, color 0.22s ease;
}

.news-list time {
  grid-area: date;
  justify-self: stretch;
  color: var(--color-primary);
  min-width: 0;
  padding-left: 8px;
  border-left: 1px solid rgba(var(--color-primary-rgb), 0.12);
  transition: color 0.22s ease, border-color 0.22s ease, padding 0.22s ease;
}

.news-list time .date-block-date {
  font-size: var(--font-size-date-list);
}

.news-list time .date-block-year {
  font-size: var(--font-size-date-year-small);
}

.news-list-item.is-active a {
  grid-template-columns: var(--date-card-width) minmax(0, 1fr);
  grid-template-areas: 'date title';
  align-items: stretch;
  min-height: clamp(74px, 5.8vw, 86px);
  transform: translateX(4px);
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(var(--color-primary-rgb), 0.18);
  padding: 9px 12px;
}

.news-list-item.is-active .diamond {
  display: none;
}

.news-list-item.is-active .news-title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: var(--font-size-news-title-large);
  line-height: var(--line-news-title-large);
  font-weight: 700;
  color: #fff;
}

.news-list-item.is-active time {
  align-self: stretch;
  justify-self: stretch;
  padding: 0 10px 0 0;
  border-left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.news-list-item.is-active time .date-block-date {
  font-size: var(--font-size-date-day);
}

.news-list-item.is-active time .date-block-year {
  font-size: var(--font-size-date-year);
  color: rgba(255, 255, 255, 0.92);
}

.news-list-item:hover a {
  grid-template-columns: var(--date-card-width) minmax(0, 1fr);
  grid-template-areas: 'date title';
  align-items: stretch;
  min-height: clamp(74px, 5.8vw, 86px);
  transform: translateX(4px);
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(var(--color-primary-rgb), 0.18);
  padding: 9px 12px;
}

.news-list-item:hover .diamond {
  display: none;
}

.news-list-item:hover .news-title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: var(--font-size-news-title-large);
  line-height: var(--line-news-title-large);
  font-weight: 700;
  color: #fff;
}

.news-list-item:hover time {
  align-self: stretch;
  justify-self: stretch;
  padding: 0 10px 0 0;
  border-left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.news-list-item:hover time .date-block-date {
  font-size: var(--font-size-date-day);
}

.news-list-item:hover time .date-block-year {
  font-size: var(--font-size-date-year);
  color: rgba(255, 255, 255, 0.92);
}

.notice-section {
  padding-top: clamp(30px, 3vw, 42px);
  padding-bottom: clamp(30px, 3vw, 42px);
  background:
    linear-gradient(180deg, rgba(247, 245, 242, 0.95), rgba(247, 245, 242, 0.95)),
    linear-gradient(135deg, rgba(126, 95, 80, 0.08) 0%, rgba(126, 95, 80, 0) 65%);
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.notice-card > a {
  display: grid;
  grid-template-columns: var(--date-card-width) minmax(0, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
  align-items: center;
  min-height: clamp(82px, 7vw, 96px);
  padding: clamp(12px, 1.35vw, 18px);
  border: 1px solid rgba(var(--color-primary-rgb), 0.08);
  background: #fff;
  transition: transform var(--motion-normal), background var(--motion-normal), color var(--motion-normal), border-color var(--motion-normal), box-shadow var(--motion-normal), padding var(--motion-normal);
}

.notice-card.is-active > a {
  transform: translateY(-2px);
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 12px 24px rgba(var(--color-primary-rgb), 0.2);
}

.notice-card.is-active .notice-date,
.notice-card.is-active .notice-pin,
.notice-card.is-active .notice-title {
  color: #fff;
}

.notice-date {
  border-right: 1px solid rgba(var(--color-primary-rgb), 0.14);
  padding-right: clamp(8px, 1vw, 14px);
  min-height: clamp(58px, 5.7vw, 70px);
  color: var(--color-primary);
  transition: color var(--motion-normal), border-color var(--motion-normal), transform var(--motion-normal);
}

.notice-card.is-active .notice-date {
  border-right-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.02);
}

.notice-card.is-pinned > a {
  border-color: rgba(var(--color-primary-rgb), 0.18);
}

.notice-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.notice-pin {
  flex: none;
  padding: 2px 6px;
  border: 1px solid rgba(var(--color-primary-rgb), 0.28);
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.06);
  transition: color var(--motion-normal), border-color var(--motion-normal), background var(--motion-normal);
}

.notice-card.is-active .notice-pin {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.12);
}

.notice-title {
  min-width: 0;
  font-size: var(--font-size-notice-title);
  line-height: var(--line-notice-title);
  font-weight: 700;
  color: #26231f;
  transition: color var(--motion-normal), font-size var(--motion-normal), line-height var(--motion-normal);
}

.notice-card.is-active .notice-title {
  font-size: clamp(15px, 1.16vw, 18px);
  line-height: 1.5;
}

.teaching-section {
  padding-top: clamp(32px, 3.2vw, 44px);
  padding-bottom: clamp(32px, 3.2vw, 44px);
  background:
    linear-gradient(180deg, rgba(var(--color-primary-rgb), 0.95), rgba(var(--color-primary-rgb), 0.95)),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.06) 0 18%, transparent 19% 100%);
  color: #fff;
}

.teaching-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.teaching-card {
  position: relative;
  overflow: visible;
  transition: transform var(--motion-normal), box-shadow var(--motion-normal);
}

.teaching-card > a {
  display: grid;
  grid-template-columns: 56% 44%;
  align-items: start;
  background: #fff;
  color: #26221f;
}

.teaching-image {
  position: relative;
  aspect-ratio: var(--ratio-teaching-image);
  width: 100%;
  overflow: hidden;
  z-index: 2;
  background: #ddd;
  transition: transform var(--motion-normal);
}

.teaching-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-normal);
}

.teaching-card:hover,
.teaching-card:focus-within {
  transform: translateY(-6px) perspective(900px) rotateX(calc(var(--hover-y, 0) * -1.6deg)) rotateY(calc(var(--hover-x, 0) * 1.6deg));
  box-shadow: 0 18px 34px rgba(31, 95, 159, 0.24);
}

.teaching-card:hover .teaching-copy,
.teaching-card:focus-within .teaching-copy {
  background: var(--color-hover-blue);
  color: #fff;
}

.teaching-card:hover .teaching-image,
.teaching-card:focus-within .teaching-image {
  transform: translate(-4px, -4px);
}

.teaching-card:hover .teaching-image img,
.teaching-card:focus-within .teaching-image img {
  transform: scale(1.025);
}

.teaching-card:hover .tag,
.teaching-card:focus-within .tag {
  background: #fff;
  color: var(--color-hover-blue);
}

.teaching-card:hover .teaching-copy h3,
.teaching-card:focus-within .teaching-copy h3,
.teaching-card:hover .teaching-copy time,
.teaching-card:focus-within .teaching-copy time {
  color: #fff;
}

.teaching-copy {
  position: relative;
  min-height: 100%;
  padding: clamp(18px, 1.8vw, 28px) clamp(16px, 1.55vw, 22px);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1vw, 14px);
  transition: background var(--motion-normal), color var(--motion-normal);
}

.teaching-copy::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 10px;
  width: 48px;
  height: 74px;
  border-left: 8px solid rgba(var(--color-primary-rgb), 0.08);
  border-top: 8px solid rgba(var(--color-primary-rgb), 0.06);
  transform: skewY(-8deg);
}

.tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 14px;
  background: var(--color-primary);
  color: #fff;
  font-size: clamp(12px, 0.95vw, 16px);
  line-height: 1;
}

.teaching-copy h3 {
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  font-weight: 800;
  min-height: clamp(64px, 5.8vw, 96px);
}

.teaching-copy p {
  display: none;
  font-size: 15px;
  line-height: 1.7;
  color: #68625c;
}

.teaching-copy time {
  margin-top: auto;
  font-size: clamp(12px, 0.95vw, 15px);
  color: #7a706b;
}

.campus-section {
  padding-top: clamp(32px, 3.2vw, 44px);
  padding-bottom: clamp(32px, 3.2vw, 44px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
    linear-gradient(135deg, rgba(100, 85, 76, 0.06) 0%, rgba(100, 85, 76, 0.02) 100%);
}

.campus-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(14px, 1.6vw, 22px);
  align-items: center;
}

.campus-side {
  display: grid;
  grid-template-rows: auto auto;
  gap: clamp(14px, 1.6vw, 22px);
}

.campus-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.campus-card {
  position: relative;
  --campus-title-size: clamp(12px, 3.2cqw, 17px);
  --campus-title-max-width: 72%;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.campus-card a {
  display: block;
  position: relative;
  height: 100%;
  overflow: hidden;
  container-type: inline-size;
}

.campus-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.campus-card a::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(31, 95, 159, 0.32);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.campus-overlay {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  z-index: 2;
  width: fit-content;
  max-width: min(var(--campus-title-max-width), calc(100% - 12px));
  padding: clamp(5px, 1.7cqw, 9px) clamp(8px, 2.2cqw, 14px);
  background: linear-gradient(90deg, rgba(18, 18, 18, 0.72) 0%, rgba(18, 18, 18, 0.48) 78%, rgba(18, 18, 18, 0.10) 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.campus-card:hover,
.campus-card:focus-within {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 18px 34px rgba(31, 95, 159, 0.24);
}

.campus-card:hover img,
.campus-card:focus-within img {
  transform: scale(1.045);
}

.campus-card:hover a::before,
.campus-card:focus-within a::before {
  opacity: 1;
}

.campus-card-large {
  --campus-title-size: clamp(14px, 2.35cqw, 22px);
  --campus-title-max-width: 58%;
}

.campus-card-top {
  --campus-title-size: clamp(13px, 2.15cqw, 18px);
  --campus-title-max-width: 74%;
}

.campus-mini-grid .campus-card {
  --campus-title-size: clamp(12px, 4.1cqw, 15px);
  --campus-title-max-width: 76%;
}

.campus-overlay span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: var(--campus-title-size);
  line-height: 1.22;
  font-weight: 750;
  color: #fff;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.58);
  overflow-wrap: anywhere;
}

.quicklinks-section {
  padding-top: 12px;
  padding-bottom: 32px;
  background: #f7f5f2;
}

.quicklinks-panel {
  position: relative;
  /* 快速链接统一参数区：只改这里就能同步控制外框宽度、卡片宽度、图标、间距和移动端适配。 */
  /* 文字字号：下面的 8em 会跟随这个字号计算，所以字号越大，统一卡片也会越宽。 */
  --quicklink-font-size: clamp(12px, 0.9vw, 15px);
  /* 文字区宽度：8em 约等于 8 个当前字号的字符宽度，用来保证四个链接方块统一宽度。 */
  --quicklink-text-width: 7em;
  /* 图标外框宽高：单个链接总宽度会把这个值算进去。 */
  --quicklink-icon-size: 36px;
  /* 图标和文字之间的横向距离。 */
  --quicklink-gap: 5px;
  /* 单个链接方块的左右内边距；上下内边距仍在 .quicklinks-list a 里单独设置。 */
  --quicklink-x-padding: 14px;
  /* 单个链接方块最终宽度 = 图标 + 间距 + 8 字文字区 + 左右内边距。 */
  --quicklink-card-width: calc(var(--quicklink-icon-size) + var(--quicklink-gap) + var(--quicklink-text-width) + (var(--quicklink-x-padding) * 2));
  /* fit-content 只收窄外层面板，不让面板继续铺满正文宽度；每个链接方块仍使用统一宽度。 */
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: clamp(14px, 1.6vw, 20px);
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(var(--color-primary-rgb), 0.10) 0 12%, transparent 13% 100%),
    radial-gradient(circle at 92% 14%, rgba(31, 95, 159, 0.08) 0 14%, transparent 15% 100%),
    linear-gradient(135deg, #ffffff 0%, #fff7f8 48%, #f7f9ff 100%);
}

.quicklinks-panel::after {
  content: '';
  position: absolute;
  right: -44px;
  top: -44px;
  width: clamp(120px, 14vw, 210px);
  height: clamp(120px, 14vw, 210px);
  border-radius: 50%;
  background: rgba(var(--color-primary-rgb), 0.06);
  pointer-events: none;
}

.quicklinks-head {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}

.quicklinks-head h2 {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  font-weight: 800;
  color: #2e2d2b;
}

.quicklinks-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, var(--quicklink-card-width));
  gap: 10px;
  justify-content: center;
  justify-items: center;
}

.quicklinks-list a {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  gap: var(--quicklink-gap);
  align-items: center;
  justify-content: center;
  width: var(--quicklink-card-width);
  max-width: 100%;
  min-height: 66px;
  padding: 12px var(--quicklink-x-padding);
  border: 1px solid rgba(var(--color-primary-rgb), 0.12);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76)),
    radial-gradient(circle at 100% 0, rgba(var(--color-primary-rgb), 0.11), transparent 40%);
  color: #2d2926;
  font-size: var(--quicklink-font-size);
  box-shadow: 0 8px 20px rgba(66, 36, 36, 0.08);
  transition: background var(--motion-fast), color var(--motion-fast), transform var(--motion-fast), box-shadow var(--motion-fast), border-color var(--motion-fast);
}

.quicklinks-list a:hover,
.quicklinks-list a:focus-visible {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(var(--color-primary-rgb), 0.18);
}

.quicklink-icon {
  width: var(--quicklink-icon-size);
  height: var(--quicklink-icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--color-primary);
  background:
    linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.12), rgba(31, 95, 159, 0.08));
  transition: background var(--motion-fast), color var(--motion-fast), transform var(--motion-fast);
}

.quicklinks-list a:hover .quicklink-icon,
.quicklinks-list a:focus-visible .quicklink-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.04);
}

.quicklink-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quicklink-text {
  width: auto;
  overflow: visible;
}

.quicklink-name {
  display: block;
  font-size: 1em;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
}

@media (max-width: 1024px) {
  .news-layout,
  .campus-grid,
  .teaching-grid {
    grid-template-columns: 1fr;
  }

  .campus-grid {
    align-items: stretch;
  }

  .quicklinks-list {
    grid-template-columns: repeat(2, var(--quicklink-card-width));
  }
}

@media (max-width: 767px) {

  .news-feature-slides{
    height:400px;
  }

  .section-with-bg::before {
    opacity: var(--section-bg-opacity-mobile);
  }

  .section-with-bg::after {
    background: rgba(255, 255, 255, 0.94);
  }

  .hero-slider {
    width: 100%;
    height: min(56.25vw, calc(100svh - var(--site-header-height, 60px)));
    min-height: 180px;
  }

  .slide-caption {
    bottom: clamp(12px, 3.6vw, 18px);
    width: calc(100% - 28px);
  }

  .slider-dots {
    bottom: 8px;
  }

  .content-section {
    padding: 38px 0;
  }

  .news-section,
  .notice-section,
  .teaching-section,
  .campus-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .news-section .section-head,
  .notice-section .section-head,
  .teaching-section .section-head,
  .campus-section .section-head {
    margin-bottom: 14px;
  }

  .news-layout {
    gap: 12px;
  }

  .news-list {
    justify-content: flex-start;
    gap: 6px;
    height: auto;
  }

  .news-feature-body {
    grid-template-columns: var(--date-card-width) minmax(0, 1fr);
    gap: 10px;
    padding: 12px 12px 14px;
  }

  .date-badge {
    min-height: 78px;
  }

  .news-copy p {
  margin-top: 6px;
  -webkit-line-clamp: 2;
  }

  .news-list-item a {
    grid-template-columns: 10px minmax(0, 1fr) var(--date-card-width-small);
    gap: 6px;
    padding: 7px 8px;
  }

  .news-list-item.is-active a {
    grid-template-columns: var(--date-card-width) minmax(0, 1fr);
    gap: 8px;
    min-height: 72px;
    padding: 8px 8px;
    transform: translateX(3px);
  }

  .news-list-item.is-active time {
    padding-right: 8px;
  }

  .notice-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .notice-card > a {
    grid-template-columns: var(--date-card-width) minmax(0, 1fr);
    gap: 10px;
    min-height: 76px;
    padding: 12px;
  }

  .notice-date {
    padding-right: 8px;
    min-height: 56px;
  }

  .notice-card.is-active > a {
    transform: translateX(3px);
  }

  .notice-card.is-active .notice-title {
    font-size: 14px;
    line-height: 1.45;
  }

  .notice-title-wrap {
    gap: 6px;
  }

  .notice-pin {
    padding: 2px 5px;
    font-size: 11px;
  }

  .teaching-grid {
    gap: 14px;
  }

  .teaching-card > a {
    grid-template-columns: 1fr;
  }

  .teaching-image {
    aspect-ratio: 16 / 9;
  }

  .teaching-copy {
    padding: 12px 14px 13px;
    gap: 6px;
  }

  .tag {
    font-size: 12px;
    padding: 5px 10px;
  }

  .teaching-copy h3 {
    min-height: 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.42;
  }

  .teaching-copy time {
    margin-top: 0;
    font-size: 12px;
  }

  .campus-grid,
  .campus-mini-grid {
    gap: 12px;
  }

  .campus-side {
    gap: 12px;
  }

  .campus-card-large a,
  .campus-card-top a,
  .campus-mini-grid .campus-card a {
    aspect-ratio: 16 / 9;
  }

  .campus-overlay {
  max-width: calc(100% - 10px);
  padding: 7px 10px;
  }

.campus-overlay span {
  font-size: 15px;
  line-height: 1.25;
  }

  .quicklinks-section {
    padding-top: 2px;
    padding-bottom: 20px;
  }

  .quicklinks-panel {
    --quicklink-font-size: clamp(11px, 3.1vw, 13px);
    --quicklink-icon-size: 28px;
    --quicklink-gap: 4px;
    --quicklink-x-padding: 8px;
    width: 100%;
    padding: 12px 10px;
  }

  .quicklinks-list {
    grid-template-columns: repeat(2, minmax(0, var(--quicklink-card-width)));
    gap: 8px;
    justify-content: center;
    justify-items: center;
  }

  .quicklinks-list a {
    gap: var(--quicklink-gap);
    justify-self: center;
    justify-content: center;
    min-height: 56px;
    padding: 8px var(--quicklink-x-padding);
  }

  .quicklink-icon {
    width: var(--quicklink-icon-size);
    height: var(--quicklink-icon-size);
  }

  .quicklink-name {
    font-size: 1em;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }
}