/* =====================================================================
   贵阳人文科技学院 · 建校25周年校庆专题网
   视觉基调：书法校名 + 暖棕金 + 校徽红（参照学校官网风格）
   ===================================================================== */

:root {
  --red: #9c1c1c;
  --red-deep: #6d1010;
  --red-soft: #fbf1ee;
  --gold: #b8912f;
  --gold-light: #e4c977;
  --gold-soft: #f8f1de;
  --brown: #5a3e2b;
  --brown-deep: #3a2a20;
  --ink: #2c2420;
  --ink-soft: #4b403a;
  --muted: #7d726a;
  --line: #e6ddcd;
  --cream: #fbf8f2;
  --cream2: #f3ece0;
  --white: #fff;
  --shadow-sm: 0 2px 12px rgba(58, 42, 32, 0.07);
  --shadow: 0 14px 38px rgba(58, 42, 32, 0.11);
  --shadow-lg: 0 26px 64px rgba(58, 42, 32, 0.18);
  --radius: 12px;
  --kai: "STXingkai", "华文行楷", "KaiTi", "STKaiti", "楷体", "Songti SC", serif;
  --serif: "STZhongsong", "Songti SC", "SimSun", "Noto Serif SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* ---------------- 顶部工具条 ---------------- */
.topbar {
  background: var(--brown-deep);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 34px; }
.topbar-left { display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-light); flex: 0 0 auto; }
.topbar-links { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; }
.topbar-links a:hover { color: var(--gold-light); }

/* ---------------- 导航 ---------------- */
.site-nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251, 248, 242, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(230, 221, 205, 0.9);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-cn {
  font-family: var(--kai); font-size: 30px; color: var(--red); letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand-en { font-size: 9px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-item > a {
  display: block; position: relative; padding: 10px 13px; font-size: 15.5px;
  color: var(--ink-soft); transition: color 0.2s; white-space: nowrap;
}
.nav-item:hover > a, .nav-item.is-active > a { color: var(--red); }
.nav-item.is-active > a { font-weight: 600; }
.nav-item.is-active > a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  background: var(--red); border-radius: 2px;
}
.nav-sub {
  position: absolute; top: 100%; left: 0; min-width: 176px; z-index: 95;
  background: #fff; border: 1px solid var(--line); padding: 6px 0;
  box-shadow: 0 16px 34px rgba(30, 20, 14, 0.13);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-item:hover .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-sub a { display: block; padding: 9px 16px; font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.nav-sub a:hover { background: var(--red-soft); color: var(--red); }
.nav-sub-toggle { display: none; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; padding: 11px; }
.nav-toggle span { display: block; height: 2px; background: var(--brown); border-radius: 2px; }
.nav-toggle span + span { margin-top: 5px; }

/* ---------------- 首页 Hero ---------------- */
.hero { position: relative; height: min(82vh, 720px); min-height: 560px; overflow: hidden; color: #fff; }
.hero-slides { position: absolute; inset: 0; background: var(--brown-deep); }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.05);
  transition: opacity 1.2s ease, transform 8s ease;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30, 18, 12, 0.86) 0%, rgba(40, 22, 14, 0.62) 42%, rgba(30, 18, 12, 0.18) 100%);
}
.hero-inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  width: min(1200px, 100% - 48px); margin-inline: auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  padding: 6px 18px; border: 1px solid rgba(228, 201, 119, 0.6); border-radius: 999px;
  font-size: 12.5px; letter-spacing: 0.3em; color: var(--gold-light);
  background: rgba(0, 0, 0, 0.2);
}
.hero-title {
  margin-top: 26px; font-family: var(--kai);
  font-size: clamp(40px, 6.4vw, 84px); line-height: 1.24; letter-spacing: 0.06em;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
}
.hero-title span { display: block; }
.hero-title span em { font-style: normal; color: var(--gold-light); }
.hero-slogan {
  margin-top: 18px; font-family: var(--kai); font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: 0.3em; color: rgba(255, 255, 255, 0.9);
}
.hero-sub { margin-top: 10px; font-size: 15px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.72); }
.hero-rule { width: 78px; height: 2px; margin: 26px 0 0; background: linear-gradient(90deg, var(--gold-light), transparent); }

.hero-countdown { margin-top: 30px; }
.countdown { display: flex; gap: 12px; flex-wrap: wrap; }
.cd-item {
  min-width: 86px; padding: 12px 8px 9px; text-align: center;
  border: 1px solid rgba(228, 201, 119, 0.35); background: rgba(0, 0, 0, 0.26);
  border-radius: 10px; backdrop-filter: blur(4px);
}
.cd-num { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.1; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.cd-label { display: block; margin-top: 3px; font-size: 12px; letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.66); }
.countdown.is-past .cd-item { display: none; }
.countdown-note { margin-top: 12px; font-size: 13.5px; color: rgba(255, 255, 255, 0.78); letter-spacing: 0.06em; }

.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.hero-dot { width: 30px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.34); border: 0; cursor: pointer; transition: background 0.25s; }
.hero-dot.is-active { background: var(--gold-light); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 16px; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.18);
  transition: background 0.2s, border-color 0.2s;
}
.hero-arrow:hover { background: rgba(156, 28, 28, 0.7); border-color: var(--gold-light); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

/* ---------------- 公告条 ---------------- */
.notice-bar { background: var(--cream2); border-bottom: 1px solid var(--line); }
.notice-inner { display: flex; align-items: center; gap: 14px; height: 52px; overflow: hidden; }
.notice-tag {
  flex: 0 0 auto; padding: 3px 12px; border-radius: 4px;
  background: var(--red); color: #fff; font-size: 12.5px; letter-spacing: 0.12em;
}
.notice-list { display: flex; gap: 40px; white-space: nowrap; font-size: 14px; color: var(--ink-soft); overflow: hidden; }
.notice-list a:hover { color: var(--red); }
.notice-more { margin-left: auto; font-size: 13px; color: var(--muted); flex: 0 0 auto; }
.notice-more:hover { color: var(--red); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 26px; border-radius: 4px; border: 1px solid transparent; cursor: pointer;
  font-size: 15px; letter-spacing: 0.08em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  background: #fff; color: var(--ink);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(156, 28, 28, 0.26); }
.btn-primary:hover { background: var(--red-deep); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #3a2a10; box-shadow: 0 10px 22px rgba(184, 145, 47, 0.3); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink-soft); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-sm { padding: 7px 16px; font-size: 13.5px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------------- 区块 ---------------- */
.section { padding: 72px 0; }
.section--cream { background: var(--cream2); }
.section--white { background: #fff; }
.section--ink { background: linear-gradient(160deg, #2f231b, #3d2d1f 60%, #4a231c); color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-title { display: flex; flex-direction: column; gap: 4px; }
.section-title h2 {
  font-family: var(--serif); font-size: clamp(24px, 2.8vw, 31px); letter-spacing: 0.12em;
  color: var(--brown-deep); line-height: 1.35; position: relative; padding-left: 16px;
}
.section-title h2::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  background: var(--red); border-radius: 2px;
}
.section-title .head-en { padding-left: 16px; font-size: 11px; letter-spacing: 0.28em; color: var(--muted); text-transform: uppercase; }
.section--ink .section-title h2 { color: #fff; }
.section--ink .head-en { color: rgba(255, 255, 255, 0.5); }
.head-more { font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.head-more:hover { color: var(--red); gap: 10px; }
.section--ink .head-more { color: var(--gold-light); }

/* ---------------- 数据 ---------------- */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.14); }
.stat { padding: 30px 16px; text-align: center; background: rgba(0, 0, 0, 0.12); }
.stat-value { font-family: var(--serif); font-size: 36px; color: var(--gold-light); line-height: 1.1; }
.stat-value small { font-size: 16px; margin-left: 2px; }
.stat-label { margin-top: 8px; font-size: 13px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.66); }

/* ---------------- 新闻（图文混排） ---------------- */
.news-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.feature {
  display: block; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: box-shadow 0.3s, transform 0.3s;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream2); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.feature:hover .feature-media img { transform: scale(1.05); }
.feature-badge {
  position: absolute; left: 16px; top: 16px; padding: 4px 12px; font-size: 12px;
  background: rgba(156, 28, 28, 0.92); color: #fff; border-radius: 3px; letter-spacing: 0.08em;
}
.feature-body { padding: 22px 24px 24px; }
.feature-body h3 { font-size: 20px; line-height: 1.6; color: var(--brown-deep); }
.feature-body p { margin-top: 8px; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feature-meta { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

.news-rows { display: grid; background: #fff; border: 1px solid var(--line); }
.news-row {
  display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start;
  padding: 18px 22px; border-bottom: 1px dashed var(--line); transition: background 0.2s;
}
.news-row:last-child { border-bottom: 0; }
.news-row:hover { background: var(--red-soft); }
.news-date-block { text-align: center; border-right: 1px solid var(--line); padding-right: 16px; }
.news-day { font-family: var(--serif); font-size: 24px; line-height: 1.1; color: var(--brown); }
.news-ym { font-size: 11.5px; color: var(--muted); }
.news-row-title { font-size: 15.5px; font-weight: 600; line-height: 1.6; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-row:hover .news-row-title { color: var(--red); }
.news-row-summary { margin-top: 5px; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.news-row-side { display: none; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 3px; font-size: 12px; background: var(--gold-soft); color: #8a6a18; border: 1px solid #eadfbf; }
.pill--red { background: var(--red-soft); color: var(--red); border-color: #f0d5d0; }
.pill--ok { background: #eef7f0; color: #1e7a3c; border-color: #cbe8d3; }
.pill--muted { background: #f2efe9; color: var(--muted); border-color: var(--line); }

/* ---------------- 活动卡片 ---------------- */
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.act {
  background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform 0.28s, box-shadow 0.28s; box-shadow: var(--shadow-sm);
}
.act:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.act-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream2); }
.act-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.act:hover .act-media img { transform: scale(1.05); }
.act-state { position: absolute; left: 14px; top: 14px; }
.act-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.act-title { font-size: 17px; font-weight: 650; line-height: 1.55; color: var(--brown-deep); }
.act:hover .act-title { color: var(--red); }
.act-info { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.act-info i { font-style: normal; color: var(--gold); margin-right: 4px; }
.act-summary { font-size: 13.5px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.act-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quota-bar { flex: 1; height: 4px; background: var(--cream2); overflow: hidden; }
.quota-bar i { display: block; height: 100%; background: var(--gold); }
.quota-text { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------------- 图集 ---------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
.gallery-item { position: relative; overflow: hidden; background: var(--cream2); aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-caption {
  position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(30, 18, 12, 0.78));
  color: #fff; font-size: 13px; letter-spacing: 0.04em;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ---------------- 时间轴 ---------------- */
.timeline { position: relative; display: grid; gap: 6px; }
.timeline::before { content: ""; position: absolute; left: 104px; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 84px 40px 1fr; align-items: start; }
.tl-year { font-family: var(--serif); font-size: 20px; color: var(--red); text-align: right; line-height: 2.2; }
.tl-dot { position: relative; display: grid; place-items: center; padding-top: 20px; }
.tl-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(156, 28, 28, 0.1); }
.tl-content { padding: 14px 0 18px; }
.tl-content h3 { font-size: 16px; color: var(--brown-deep); }
.tl-content p { margin-top: 4px; font-size: 13.5px; color: var(--muted); }

/* ---------------- 院系 / 校友 ---------------- */
.college-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.college { background: #fff; border: 1px solid var(--line); padding: 24px 24px 20px; transition: border-color 0.25s, transform 0.25s; }
.college:hover { border-color: var(--gold); transform: translateY(-3px); }
.college-index { font-family: var(--serif); font-size: 12px; color: var(--gold); letter-spacing: 0.2em; }
.college h3 { margin: 6px 0 8px; font-size: 16px; color: var(--brown-deep); }
.college p { font-size: 13.5px; color: var(--muted); }
.college .majors { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--ink-soft); }

.alumni-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.alumni { background: #fff; border: 1px solid var(--line); padding: 26px 22px 22px; display: flex; flex-direction: column; transition: transform 0.28s, box-shadow 0.28s; }
.alumni:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.alumni-avatar {
  width: 70px; height: 70px; margin-bottom: 14px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--kai); font-size: 28px; color: var(--red);
  background: var(--gold-soft); border: 1px solid rgba(184, 145, 47, 0.35); overflow: hidden;
}
.alumni-avatar img { width: 100%; height: 100%; object-fit: cover; }
.alumni-name { font-size: 17px; font-weight: 650; color: var(--brown-deep); }
.alumni-sub { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.alumni-quote { margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.alumni-more { margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--red); }

/* ---------------- 祝福墙 ---------------- */
.blessing-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 30px; align-items: start; }
.bless-form-card { background: #fff; border: 1px solid var(--line); padding: 28px 26px; box-shadow: var(--shadow-sm); position: sticky; top: 104px; }
.bless-form-card h2 { font-family: var(--serif); font-size: 20px; color: var(--brown-deep); letter-spacing: 0.08em; }
.bless-form-card > p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.bless-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bless-card { background: #fff; border: 1px solid var(--line); padding: 22px 22px 18px; position: relative; transition: box-shadow 0.25s, transform 0.25s; }
.bless-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.bless-card::before { content: "“"; position: absolute; right: 16px; top: 2px; font-family: var(--serif); font-size: 44px; color: rgba(184, 145, 47, 0.2); line-height: 1; }
.bless-text { font-size: 14px; line-height: 1.95; color: var(--ink-soft); }
.bless-meta { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.bless-meta strong { color: var(--red); font-weight: 600; }

/* ---------------- 表单 ---------------- */
.form { display: grid; gap: 15px; margin-top: 18px; }
.field { display: grid; gap: 6px; }
.field > label { font-size: 13.5px; color: var(--ink-soft); }
.field > label .req { color: var(--red); margin-left: 2px; }
.input, .textarea, .select {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line); background: #fff;
  font-size: 14.5px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(156, 28, 28, 0.08); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
.field-hint { font-size: 12.5px; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aside-card .form-row { grid-template-columns: 1fr; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.alert { display: none; padding: 10px 15px; font-size: 13.5px; margin-top: 12px; border-radius: 4px; }
.alert.is-visible { display: block; }
.alert-ok { background: #eef7f0; color: #1e7a3c; border: 1px solid #cbe8d3; }
.alert-err { background: var(--red-soft); color: var(--red); border: 1px solid #f0d5d0; }

/* ---------------- 面包屑 / 页头 ---------------- */
.page-head {
  position: relative; padding: 120px 0 0; background-color: #2b211a;
  background-size: cover; background-position: center;
}
.page-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(22, 14, 10, 0.42), rgba(22, 14, 10, 0.12));
}
.page-head .container { position: relative; z-index: 1; }
.page-head-card {
  background: #fff; border-left: 4px solid var(--red);
  box-shadow: 0 14px 34px rgba(24, 16, 12, 0.2);
  padding: 18px 26px 14px; max-width: 560px; min-width: 300px;
  transform: translateY(34px);
}
.page-head-card h1 {
  font-family: var(--serif); font-size: 21px; line-height: 1.45;
  color: var(--brown-deep); letter-spacing: 0.06em;
}
.page-head-sub {
  margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span.sep { opacity: 0.45; }
.crumb-home { flex: 0 0 auto; color: var(--muted); }

/* ---------------- 文章 ---------------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
.article { background: #fff; border: 1px solid var(--line); padding: 40px 46px 44px; }
.article h1 { font-family: var(--serif); font-size: clamp(23px, 2.8vw, 30px); line-height: 1.55; color: var(--brown-deep); }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.article-body p { margin-bottom: 18px; font-size: 15.5px; line-height: 2.05; color: var(--ink-soft); text-align: justify; }
.article-cover { margin-bottom: 26px; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-nav { display: flex; justify-content: space-between; gap: 18px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.article-nav a { color: var(--muted); max-width: 46%; }
.article-nav a:hover { color: var(--red); }
.article-nav a.next { text-align: right; }
.article-source { margin-top: 26px; padding: 14px 16px; background: var(--gold-soft); border-left: 3px solid var(--gold); font-size: 13.5px; color: #6d5414; }

.aside-card { background: #fff; border: 1px solid var(--line); padding: 22px 22px 10px; }
.aside-card + .aside-card { margin-top: 20px; }
.aside-title { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 16.5px; color: var(--brown-deep); letter-spacing: 0.08em; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.aside-title::before { content: ""; width: 3px; height: 15px; background: var(--red); }
.aside-list { display: grid; gap: 12px; padding: 16px 0 8px; }
.aside-list a { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aside-list a:hover { color: var(--red); }
.aside-list time { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.aside-cta { padding: 16px 0 20px; }
.aside-cta p { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }

/* ---------------- 分页 / 空态 ---------------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 38px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
}
.pager a:hover { border-color: var(--red); color: var(--red); }
.pager .is-current { background: var(--red); border-color: var(--red); color: #fff; }
.pager .is-disabled { opacity: 0.5; pointer-events: none; }
.empty { padding: 56px 20px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #2b211a; color: rgba(255, 255, 255, 0.62); padding: 54px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 34px; padding-bottom: 36px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; }
.footer-brand strong { font-family: var(--kai); font-size: 24px; color: #fff; letter-spacing: 0.04em; }
.footer-col h4 { font-size: 14.5px; color: #fff; margin-bottom: 14px; letter-spacing: 0.1em; }
.footer-col p, .footer-col li { font-size: 13px; line-height: 2.1; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 16px 0; font-size: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: rgba(255, 255, 255, 0.42); }

/* ---------------- 搜索 ---------------- */
.searchbar { display: flex; gap: 10px; max-width: 640px; }
.searchbar .btn { flex: 0 0 auto; white-space: nowrap; }
.searchbar .input { min-width: 0; }
.searchbar .input { background: #fff; }

/* ---------------- 后台 ---------------- */
.admin-body { background: #f5f2ec; }
.admin-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: linear-gradient(180deg, #2b211a, #3d2a22); color: rgba(255, 255, 255, 0.72); padding: 22px 16px; position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 14px; }
.admin-brand img { width: 38px; height: 38px; border-radius: 50%; }
.admin-brand strong { color: #fff; font-size: 14.5px; display: block; }
.admin-brand small { font-size: 11.5px; color: rgba(255, 255, 255, 0.45); }
.admin-nav { display: grid; gap: 2px; }
.admin-nav a { padding: 9px 13px; border-radius: 6px; font-size: 13.5px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.admin-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.admin-nav a.is-active { background: rgba(184, 145, 47, 0.18); color: var(--gold-light); }
.admin-nav .count { font-size: 11.5px; background: rgba(255, 255, 255, 0.14); color: #fff; border-radius: 999px; padding: 1px 8px; }
.admin-main { padding: 26px 30px 60px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-topbar h1 { font-family: var(--serif); font-size: 23px; color: var(--brown-deep); }
.admin-topbar .who { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.admin-card { background: #fff; border: 1px solid var(--line); padding: 22px; }
.admin-card + .admin-card { margin-top: 20px; }
.admin-card h2 { font-size: 16px; color: var(--brown-deep); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); padding: 20px 22px; }
.kpi-label { font-size: 12.5px; color: var(--muted); }
.kpi-value { margin-top: 4px; font-family: var(--serif); font-size: 30px; color: var(--red); }
.kpi-note { font-size: 12px; color: var(--muted); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th, .data-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table th { font-size: 12px; color: var(--muted); font-weight: 600; background: #faf7f1; white-space: nowrap; }
.data-table tbody tr:hover { background: var(--cream); }
.data-table td.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.text-muted { color: var(--muted); font-size: 13px; }
.row-title { font-weight: 600; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: linear-gradient(140deg, #2b211a, #4a231c 60%, #2b211a); }
.login-card { width: min(400px, 100%); background: var(--cream); padding: 36px 32px; border-top: 4px solid var(--red); box-shadow: var(--shadow-lg); }
.login-card h1 { font-family: var(--kai); font-size: 26px; text-align: center; color: var(--red); letter-spacing: 0.06em; }
.login-card p.sub { text-align: center; font-size: 12.5px; color: var(--muted); margin: 6px 0 20px; }
.login-tip { margin-top: 16px; padding: 11px 13px; background: var(--gold-soft); border: 1px solid #eadfbf; font-size: 12.5px; color: #6d5414; line-height: 1.7; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .acts, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .alumni-grid { grid-template-columns: repeat(2, 1fr); }
  .college-grid { grid-template-columns: repeat(2, 1fr); }
  .news-layout, .detail-layout, .blessing-layout { grid-template-columns: minmax(0, 1fr); }
  .bless-form-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .admin-nav { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 8px 16px 16px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-item { width: 100%; }
  .nav-item > a { padding: 11px 14px; }
  .nav-item.is-active > a::after { display: none; }
  .nav-sub-toggle {
    display: block; position: absolute; right: 6px; top: 6px; width: 34px; height: 34px;
    border: 0; background: none; color: var(--muted); font-size: 15px; cursor: pointer;
  }
  .nav-sub {
    position: static; opacity: 1; visibility: visible; transform: none; display: none;
    border: 0; box-shadow: none; padding: 0; margin: 0 0 6px 14px;
    border-left: 2px solid var(--line);
  }
  .nav-item.is-open .nav-sub { display: block; }
  .brand-cn { font-size: 24px; }
  .nav-inner { height: 72px; }
  .hero { height: auto; min-height: 0; padding: 70px 0 56px; }
  .hero-arrow { display: none; }
  .section { padding: 52px 0; }
  .page-head { padding-top: 84px; }
  .page-head-card { transform: translateY(24px); padding: 14px 18px 12px; max-width: none; }
  .page-head-card h1 { font-size: 18px; }
  .article { padding: 26px 20px 30px; }
  .form-row, .form-2col, .form-3col { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: auto; }
}

@media (max-width: 640px) {
  .container { width: min(1200px, 100% - 32px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .acts, .gallery-grid, .alumni-grid, .college-grid, .bless-wall { grid-template-columns: 1fr; }
  .topbar-links { display: none; }
  .brand-en { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .cd-item { min-width: 62px; padding: 9px 5px 7px; }
  .cd-num { font-size: 22px; }
  .countdown { gap: 7px; }
  .hero-title { font-size: 36px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .admin-main { padding: 18px 14px 48px; }
  .notice-list { gap: 24px; overflow: hidden; }
  .notice-list a:nth-child(n+2) { display: none; }
  .notice-more { display: none; }
}

/* =====================================================================
   官网式：左目录 + 右内容
   ===================================================================== */
.with-side {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.catalog {
  background: #f7f8fa;
  border: 1px solid var(--line);
  padding: 18px 0 8px;
  position: sticky;
  top: 104px;
}
.catalog-title {
  font-size: 15px; font-weight: 600; color: var(--brown-deep);
  padding: 0 18px 12px; border-left: 3px solid var(--red); margin-left: 12px;
  letter-spacing: 0.04em;
}
.catalog-list { display: grid; }
.catalog-item {
  display: block; padding: 11px 18px; font-size: 14px; color: var(--ink-soft);
  border-top: 1px solid rgba(229, 231, 235, 0.7);
  transition: background 0.18s, color 0.18s;
}
.catalog-item:hover { background: #fff; color: var(--red); }
.catalog-item.is-current { background: var(--red-soft); color: var(--red); font-weight: 600; box-shadow: inset 3px 0 0 var(--red); }
.catalog-note { padding: 12px 18px 8px; font-size: 12px; color: var(--muted); line-height: 1.7; }

.side-main { min-width: 0; }
.side-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.side-count { font-size: 13.5px; color: var(--muted); }
.side-toolbar .searchbar { max-width: 340px; }

/* 列表条目：缩略图 + 标题 + 元信息 + 查看全文 */
.list { display: grid; }
.list-item {
  display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 22px;
  padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start;
  transition: background 0.18s;
}
.list-item:hover { background: #fcfbf9; }
.li-thumb {
  display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream2); border-radius: 4px;
}
.li-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.list-item:hover .li-thumb img { transform: scale(1.05); }
.li-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.li-title { font-size: 16px; font-weight: 600; line-height: 1.6; color: var(--ink); }
.list-item:hover .li-title { color: var(--red); }
.li-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.li-more { margin-top: auto; font-size: 13.5px; color: var(--red); }
.li-more i { font-style: normal; transition: transform 0.2s; display: inline-block; }
.list-item:hover .li-more i { transform: translateX(4px); }

.related-block { margin-top: 24px; }
.side-main .article { border: 1px solid var(--line); }
.side-main .gallery-grid { grid-template-columns: repeat(3, 1fr); }

/* 学校领导 / 机关部门 */
.leader-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.leader { background: #fff; border: 1px solid var(--line); padding: 20px 18px; border-top: 3px solid var(--red); }
.leader-post { font-size: 12.5px; color: var(--muted); letter-spacing: 0.06em; }
.leader-name { margin-top: 6px; font-family: var(--serif); font-size: 19px; color: var(--brown-deep); letter-spacing: 0.04em; }
.leader-note { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.dept-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.dept-tag {
  padding: 9px 18px; font-size: 14px; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
}
.dept-tags .dept-tag:hover { border-color: var(--red); color: var(--red); }

/* 页脚补充 */
.footer-col ul li { margin-bottom: 2px; }
.footer-col h4 { position: relative; padding-left: 10px; }
.footer-col h4::before { content: ""; position: absolute; left: 0; top: 6px; width: 3px; height: 13px; background: var(--red); }

@media (max-width: 1100px) {
  .with-side { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
  .leader-grid { grid-template-columns: repeat(3, 1fr); }
  .side-main .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .with-side { grid-template-columns: minmax(0, 1fr); }
  .catalog { position: static; }
  .list-item { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
  .leader-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .list-item { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
  .li-title { font-size: 15px; }
  .li-meta { font-size: 12.5px; }
  .side-main .gallery-grid { grid-template-columns: 1fr; }
  .leader-grid { grid-template-columns: 1fr; }
}

/* 移动端：左目录变横向筛选条 */
@media (max-width: 880px) {
  .catalog { position: static; background: transparent; border: 0; padding: 0; margin-bottom: 6px; }
  .catalog-title { display: none; }
  .catalog-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
  .catalog-list::-webkit-scrollbar { height: 0; }
  .catalog-item {
    border: 1px solid var(--line); border-radius: 4px; background: #fff;
    white-space: nowrap; padding: 8px 14px; font-size: 13.5px;
  }
  .catalog-item:hover { background: #fff; }
  .catalog-item.is-current { box-shadow: none; border-color: var(--red); }
  .catalog-note { display: none; }
}
