:root {
  --blue: #0067ca;
  --blue-deep: #0f4791;
  --blue-badge: #144188;
  --blue-nav: #1d54a8;
  --blue-line: #2b6fd6;
  --plus: #3b8fd9;
  --text: #222222;
  --text-secondary: #666666;
  --text-muted: #8a8a8a;
  --bg: #f6f6f6;
  --bg-soft: #f8f8f8;
  --card: #ffffff;
  --border: #e6e6e6;
  --shadow: 0 8px 24px rgba(20, 40, 80, 0.06);
  --container: min(1600px, calc(100% - 48px));
  --header-h: 168px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: var(--bg-soft);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: 430px;
}

.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.25, 0.6, 0.25, 1);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-position: center 62%;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 45, 100, 0.58) 0%, rgba(26, 78, 163, 0.26) 38%, rgba(42, 102, 184, 0.06) 58%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

.hero-bar {
  position: relative;
  z-index: 2;
  padding: 28px 0 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  flex-shrink: 0;
  max-height: 48px;
  width: auto;
  height: auto;
}

.brand svg {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-uni {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.15;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.75);
}

.brand-center {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 1px;
}

.brand-en {
  font-size: 11px;
  letter-spacing: 0.6px;
  opacity: 0.92;
  font-weight: 400;
  margin-left: 2px;
}

.nav-wrap {
  display: flex;
  justify-content: center;
  padding: 18px 0 8px;
}

.nav {
  display: flex;
  gap: clamp(28px, 5vw, 72px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #fff;
  font-size: 16px;
  letter-spacing: 1px;
  padding: 6px 2px 10px;
  position: relative;
  opacity: 0.95;
}

.nav a:hover,
.nav a.is-active {
  opacity: 1;
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 2px;
  background: #fff;
  transform: translateX(-50%);
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px 9px;
  position: absolute;
  right: 18px;
  top: 28px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
}

.hero-spacer {
  position: relative;
  z-index: 2;
  height: 230px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 64px;
  border: 0;
  background: rgba(15, 45, 100, 0.32);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.hero:hover .hero-arrow,
.hero-arrow:focus-visible {
  opacity: 1;
}

.hero-arrow:hover {
  background: rgba(15, 45, 100, 0.55);
}

.hero-prev {
  left: 0;
  border-radius: 0 4px 4px 0;
}

.hero-next {
  right: 0;
  border-radius: 4px 0 0 4px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-dots button.is-active {
  background: #fff;
  transform: scale(1.2);
}

/* ========== Sections ========== */
.section {
  position: relative;
  padding: 8px 0 36px;
}

.section-news {
  padding-top: 0;
  margin-top: -36px;
}

.poly-bg {
  position: relative;
  padding-top: 48px;
  background:
    linear-gradient(180deg, rgba(246, 247, 249, 0.2), var(--bg-soft) 80%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 160' preserveAspectRatio='none'%3E%3Cpolygon fill='%23ececee' points='0,40 180,0 320,55 0,90'/%3E%3Cpolygon fill='%23f4f4f5' points='180,0 520,20 420,90 120,80'/%3E%3Cpolygon fill='%23e7e7ea' points='480,8 820,0 900,70 560,95'/%3E%3Cpolygon fill='%23f2f2f3' points='800,0 1120,18 1040,88 740,70'/%3E%3Cpolygon fill='%23e9e9ec' points='1100,6 1400,0 1600,50 1280,90 1000,70'/%3E%3Cpolygon fill='%23f7f7f8' points='1380,0 1600,0 1600,90 1320,80'/%3E%3C/svg%3E") top center / 100% 120px no-repeat;
}

.section-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-bottom: 22px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: #2a2a2a;
}

.section-title svg,
.tab-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.more {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 1px;
}

.more:hover {
  color: var(--blue);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 42px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  font-size: 28px;
  font-weight: 600;
  color: #9a9a9a;
  padding: 0;
}

.tab-btn.is-active {
  color: var(--blue);
}

.tab-btn svg {
  stroke: currentColor;
}

/* ========== News ========== */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}

.feature-card {
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-thumb {
  position: relative;
  aspect-ratio: 16 / 9.2;
  overflow: hidden;
}

.feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.date-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  min-width: 72px;
  padding: 8px 10px 6px;
  background: var(--blue-badge);
  color: #fff;
  text-align: center;
  line-height: 1.1;
}

.date-badge .day {
  display: block;
  font-size: 28px;
  font-weight: 700;
}

.date-badge .ym {
  display: block;
  font-size: 12px;
  opacity: 0.92;
  margin-top: 2px;
}

.feature-body {
  padding: 18px 18px 22px;
  background: #fff;
}

.feature-body h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.feature-body h3:hover {
  color: var(--blue);
}

.accent-line {
  width: 42px;
  height: 2px;
  background: var(--blue-line);
  margin-bottom: 14px;
}

.feature-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.75;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  min-height: 76px;
  background: #fff;
  border: 1px solid #efefef;
  padding: 10px 16px 10px 12px;
  gap: 8px;
}

.news-item:hover {
  border-color: #d7e4f4;
}

.news-item.is-featured {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: #fff;
}

.news-item .n-day {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--blue-deep);
}

.news-item.is-featured .n-day {
  color: #fff;
}

.news-item .n-ym {
  display: block;
  font-size: 12px;
  color: #9aa7b8;
  margin-top: 4px;
}

.news-item.is-featured .n-ym {
  color: rgba(255, 255, 255, 0.8);
}

.news-item .n-title {
  font-size: 14px;
  line-height: 1.55;
  color: #333;
}

.news-item.is-featured .n-title {
  color: #fff;
}

.news-item .n-date {
  text-align: center;
  border-right: 0;
}

/* ========== Notices ========== */
.notice-panel[hidden] {
  display: none;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.notice-card {
  position: relative;
  background: #fff;
  border: 1px solid #ececec;
  min-height: 118px;
  padding: 18px 44px 18px 20px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.notice-card:hover {
  border-color: #d3e4f7;
  box-shadow: var(--shadow);
}

.notice-plus {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 22px;
  height: 22px;
  color: var(--plus);
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
}

.notice-date {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #4a4a4a;
  margin-bottom: 10px;
}

.notice-date svg {
  width: 18px;
  height: 18px;
  color: #6a6a6a;
  transform: translateY(2px);
}

.notice-date .md {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.notice-date .year {
  font-size: 12px;
  color: #9a9a9a;
}

.notice-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  line-height: 1.65;
}

/* ========== College ========== */
.college-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.college-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111;
  min-height: 210px;
  aspect-ratio: 16 / 9.4;
}

.college-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.college-card:hover img {
  transform: scale(1.05);
}

.college-card .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.college-card.no-caption .caption {
  display: none;
}

/* ========== Footer ========== */
.footer {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 28px 16px 32px;
  font-size: 13px;
  line-height: 1.9;
}

.footer .org {
  font-size: 14px;
  margin-bottom: 4px;
}

.footer a:hover {
  text-decoration: underline;
}

/* ========== Inner pages (栏目页 / 内容页) ========== */
.crumb {
  background: #fff;
  border-bottom: 1px solid #ececec;
}

.crumb .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  font-size: 13px;
  color: #888;
}

.crumb a {
  color: #888;
}

.crumb a:hover {
  color: var(--blue);
}

.crumb .crumb-cur {
  color: var(--blue);
  font-size: 14px;
}

.page-body {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 22px 0 48px;
}

.side-col {
  width: 200px;
  flex-shrink: 0;
}

.side-title {
  background: var(--blue);
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 14px 10px;
}

.side-menu {
  background: #fff;
  border: 1px solid #ececec;
  border-top: 0;
}

.side-menu a {
  position: relative;
  display: block;
  padding: 11px 16px 11px 24px;
  font-size: 14px;
  color: #444;
  border-bottom: 1px solid #f2f2f2;
}

.side-menu a:last-child {
  border-bottom: 0;
}

.side-menu a::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: #c3c3c3;
}

.side-menu a:hover {
  color: var(--blue);
}

.side-menu a.is-on {
  color: var(--blue);
  font-weight: 600;
  background: #f4f8fd;
}

.side-menu a.is-on::before {
  background: var(--blue);
}

.main-col {
  flex: 1;
  min-width: 0;
}

/* --- 栏目页：图文列表 --- */
.post-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid #eee;
  padding: 16px;
  margin-bottom: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-item:hover {
  border-color: #d3e4f7;
  box-shadow: var(--shadow);
}

.post-date {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--blue-line);
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  line-height: 1.15;
  z-index: 2;
}

.post-date .d {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.post-date .ym {
  display: block;
  font-size: 11px;
  opacity: 0.9;
  margin-top: 2px;
}

.post-thumb {
  position: relative;
  height: 112px;
  overflow: hidden;
  background: #f2f2f2;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-item:hover .post-thumb img {
  transform: scale(1.05);
}

.post-info h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--blue);
}

.post-info p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.pager a {
  min-width: 34px;
  height: 34px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #ddd;
  color: #555;
  font-size: 14px;
}

.pager a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.pager a.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* --- 内容页：正文 --- */
.article-card {
  background: #fff;
  border: 1px solid #ececec;
  padding: 34px 42px 42px;
}

.article-title {
  margin: 0 0 14px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.55;
  color: #1c4c8c;
}

.article-meta {
  text-align: center;
  font-size: 13px;
  color: #999;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 26px;
}

.article-body {
  border: 1px solid #ececec;
  padding: 26px 28px;
  font-size: 15px;
  line-height: 2.05;
  color: #333;
}

.article-body p {
  margin: 0 0 14px;
  text-indent: 2em;
}

.article-body p.pic {
  text-indent: 0;
  text-align: center;
  margin: 8px 0 20px;
}

.article-body p.pic img {
  display: inline-block;
  max-width: 62%;
}

.article-credit {
  margin-top: 26px;
  text-align: right;
  font-size: 14px;
  color: #333;
  line-height: 1.9;
}

.article-credit p {
  margin: 0;
}

@media (max-width: 1100px) {
  .post-item {
    grid-template-columns: 210px 1fr;
  }

  .article-card {
    padding: 26px 24px 32px;
  }

  .article-body p.pic img {
    max-width: 86%;
  }
}

@media (max-width: 768px) {
  .page-body {
    flex-direction: column;
  }

  .side-col {
    width: 100%;
  }

  .post-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .post-thumb {
    display: block;
    height: 180px;
  }

  .article-title {
    font-size: 19px;
  }

  .article-body {
    padding: 16px;
    font-size: 14px;
  }

  .article-body p.pic img {
    max-width: 100%;
  }
}

/* ========== Responsive ========== */
@media (max-width: 1100px) {
  :root {
    --container: min(100% - 32px, 960px);
  }

  .hero {
    min-height: 360px;
  }

  .hero-spacer {
    height: 170px;
  }

  .news-layout,
  .notice-grid,
  .college-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-list {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --container: calc(100% - 28px);
  }

  .hero {
    min-height: 0;
  }

  .hero-slide {
    background-position: center 70%;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(15, 45, 100, 0.62) 0%, rgba(37, 96, 179, 0.28) 46%, rgba(37, 96, 179, 0.06) 70%, rgba(37, 96, 179, 0) 100%);
  }

  .hero-bar {
    padding: 18px 0 8px;
  }

  .brand img {
    max-height: 36px;
  }

  .brand svg {
    width: 48px;
    height: 48px;
  }

  .brand-uni {
    font-size: 18px;
  }

  .brand-center {
    font-size: 16px;
  }

  .brand-en {
    font-size: 9px;
  }

  .brand-divider {
    height: 20px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-wrap {
    display: none;
    padding: 0 0 16px;
  }

  .nav-wrap.is-open {
    display: block;
  }

  .nav {
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(16, 56, 120, 0.72);
    border-radius: 8px;
    overflow: hidden;
  }

  .nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 8px;
  }

  .hero-spacer {
    height: 150px;
  }

  .section-title,
  .tab-btn {
    font-size: 22px;
  }

  .tabs {
    gap: 18px;
  }

  .news-layout,
  .notice-grid,
  .college-grid {
    grid-template-columns: 1fr;
  }

  .section-news {
    margin-top: -20px;
  }

  .footer {
    font-size: 12px;
    padding: 22px 16px;
  }
}

@media (max-width: 480px) {
  .brand-row {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .brand-divider {
    display: none;
  }

  .hero-spacer {
    height: 120px;
  }

  .more {
    font-size: 12px;
  }
}
