/* ============================================================
   人大附中苏州学校 · 校园工作台
   共享样式：顶栏 / 门户首页 / 页脚 / 404
   ============================================================ */

:root {
  --navy: #1a3a5c;
  --navy-deep: #122c47;
  --navy-2: #2e5a8a;
  --gold: #c9a227;
  --gold-soft: #e7c55a;
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #1b2430;
  --muted: #6b7785;
  --line: #e3e8ef;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px rgba(16, 24, 40, .06);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 18px 50px rgba(16, 24, 40, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------------- 站点顶栏 ---------------- */
header.sitebar { margin: 0; text-align: left; }

.sitebar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(18, 44, 71, .96);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sitebar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: .4px;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(145deg, #e7c55a, #c9a227);
  color: #14304d;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(201, 162, 39, .3);
}

.site-brand .name { font-size: 14.5px; }
.site-brand .sub {
  font-size: 11px;
  color: rgba(255, 255, 255, .55);
  font-weight: 400;
  margin-left: 4px;
  letter-spacing: .5px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  color: rgba(255, 255, 255, .72);
  font-size: 13.5px;
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .18s, background .18s;
}

.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.site-nav a.active { color: #f3d98a; background: rgba(201, 162, 39, .16); }

/* ---------------- 首页 Hero ---------------- */
.portal-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 560px at 82% -12%, #2a5482 0%, transparent 62%),
    linear-gradient(160deg, #122c47 0%, #18395c 55%, #1a3a5c 100%);
  color: #fff;
}

.portal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(720px 440px at 26% 18%, #000 15%, transparent 72%);
  mask-image: radial-gradient(720px 440px at 26% 18%, #000 15%, transparent 72%);
  pointer-events: none;
}

.portal-hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -140px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, .22), transparent 66%);
  pointer-events: none;
}

.portal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 68px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 56px;
  align-items: center;
}

.portal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 2.4px;
  color: var(--gold-soft);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.portal-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-soft);
  opacity: .8;
}

.portal-hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.22;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: .5px;
}

.portal-hero h1 span { color: var(--gold-soft); }

.portal-hero-lead {
  color: rgba(255, 255, 255, .72);
  max-width: 560px;
  margin: 0 0 28px;
  font-size: 15.5px;
}

.portal-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .18s, box-shadow .18s, background .18s;
}

.site-btn svg { width: 16px; height: 16px; }

.site-btn-gold {
  background: linear-gradient(135deg, #e7c55a, #c9a227);
  color: #14304d;
  box-shadow: 0 8px 22px rgba(201, 162, 39, .28);
}

.site-btn-gold:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(201, 162, 39, .36); }

.site-btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.site-btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* Hero 右侧数据卡 */
.portal-hero-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  padding: 22px 24px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.portal-hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, .62);
  letter-spacing: .6px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.portal-hero-card-head b { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .4px; }

.donut {
  width: 170px;
  height: 170px;
  margin: 22px auto 18px;
  border-radius: 50%;
  background: conic-gradient(#e7c55a calc(var(--p, 94) * 1%), rgba(255, 255, 255, .1) 0);
  display: grid;
  place-items: center;
  position: relative;
}

.donut::before {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: #163553;
}

.donut-hole { position: relative; text-align: center; line-height: 1.2; }
.donut-hole b { display: block; font-size: 28px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.donut-hole span { font-size: 11.5px; color: rgba(255, 255, 255, .6); }

.portal-hero-card-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, .1);
  border-radius: 12px;
  overflow: hidden;
}

.portal-hero-card-rows > div {
  background: rgba(18, 44, 71, .55);
  padding: 12px 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.portal-hero-card-rows span { font-size: 12px; color: rgba(255, 255, 255, .6); }
.portal-hero-card-rows b { font-size: 19px; font-weight: 700; color: #fff; }

/* ---------------- 数据速览 ---------------- */
.portal-statband { position: relative; z-index: 2; margin-top: -30px; }

.portal-statband-inner {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(16, 24, 40, .1);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
}

.portal-stat {
  padding: 20px 18px 18px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.portal-stat:last-child { border-right: none; }
.portal-stat b { display: block; font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.2; letter-spacing: .5px; }
.portal-stat span { font-size: 12px; color: var(--muted); }
.portal-stat small { display: block; font-size: 10.5px; color: #a3adb9; margin-top: 2px; }

/* ---------------- 通用区块 ---------------- */
.portal-section { padding: 64px 0 8px; }

.portal-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.kicker {
  font-size: 11px;
  letter-spacing: 2.2px;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.portal-section-head h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: .4px; color: var(--navy); }
.portal-section-head p { margin: 0; color: var(--muted); font-size: 14px; max-width: 520px; }

/* ---------------- 模块卡片 ---------------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.module-card {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--navy-2) 55%, var(--gold));
  opacity: .9;
}

.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(16, 24, 40, .05), 0 20px 44px rgba(16, 24, 40, .12);
  border-color: #cfd9e6;
}

.module-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eef3f9;
  color: var(--navy);
}

.module-card:nth-child(2) .module-icon { background: #fbf3dc; color: #a67c12; }
.module-card:nth-child(3) .module-icon { background: #edf6f1; color: #2d7d46; }
.module-card:nth-child(4) .module-icon { background: #f3eefc; color: #6b46c1; }

.module-icon svg { width: 26px; height: 26px; }

.module-body { flex: 1; min-width: 0; }
.module-body h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: .2px; }
.module-body p { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); line-height: 1.65; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 6px;
  background: #f1f4f8;
  color: #5b6878;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.chip.gold { background: #fbf3dc; color: #9a7410; }
.chip.green { background: #e9f5ef; color: #2d7d46; }
.chip.lock { background: #fff3e0; color: #c05621; }

.module-arrow {
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #f1f4f8;
  transition: background .18s, color .18s, transform .18s;
}

.module-card:hover .module-arrow { background: var(--navy); color: #fff; transform: translateX(2px); }

/* ---------------- 简历库来源直达 ---------------- */
.resume-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.resume-hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.resume-hub-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--navy-2) 60%, var(--gold));
}

.resume-hub-card:hover {
  transform: translateY(-3px);
  border-color: #cfd9e6;
  box-shadow: 0 2px 4px rgba(16, 24, 40, .05), 0 20px 44px rgba(16, 24, 40, .12);
}

.resume-hub-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.resume-hub-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .3px;
}

.resume-hub-count {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  letter-spacing: .3px;
}

.resume-hub-count small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 3px;
  letter-spacing: 0;
}

.resume-hub-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.resume-hub-stats span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 9px;
  border-radius: 9px;
  background: #f5f7fa;
  color: var(--muted);
  font-size: 11px;
}

.resume-hub-stats b {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.resume-hub-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11.5px;
}

.resume-hub-foot b { color: var(--ink); font-weight: 600; }

.resume-hub-go {
  color: var(--navy-2);
  font-weight: 600;
  white-space: nowrap;
  transition: color .18s;
}

.resume-hub-card:hover .resume-hub-go { color: var(--gold); }

.resume-hub-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.resume-hub-actions .site-btn { box-shadow: 0 8px 20px rgba(201, 162, 39, .22); }
.resume-hub-note { color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .resume-hub-grid { grid-template-columns: 1fr; }
}

/* ---------------- 说明区 ---------------- */
.about {
  margin-top: 64px;
  padding: 44px 0 56px;
  background: linear-gradient(180deg, #eef2f7 0%, #f4f6f9 100%);
  border-top: 1px solid var(--line);
}

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

.about-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.about-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-card h3::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.about-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.75; }
.about-card a { color: var(--navy-2); border-bottom: 1px solid rgba(46, 90, 138, .25); }
.about-card a:hover { border-bottom-color: var(--navy-2); }

/* ---------------- 页脚 ---------------- */
.site-foot {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .62);
  padding: 40px 0 34px;
  font-size: 13px;
}

.site-foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; letter-spacing: .3px; }
.site-foot-brand .mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(145deg, #e7c55a, #c9a227);
  color: #14304d; display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
}
.site-foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot-links a:hover { color: #fff; }
.site-foot-note { width: 100%; padding-top: 18px; margin-top: 6px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: rgba(255, 255, 255, .4); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------------- 404 ---------------- */
.error-page {
  min-height: calc(100vh - 58px - 120px);
  display: grid;
  place-items: center;
  padding: 60px 24px;
  text-align: center;
}

.error-code {
  font-size: 92px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2) 55%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.error-page h1 { margin: 0 0 10px; font-size: 22px; color: var(--navy); }
.error-page p { margin: 0 0 24px; color: var(--muted); }

/* ---------------- 动效 ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .portal-hero-inner > div > * { animation: rise .6s cubic-bezier(.2, .7, .3, 1) both; }
  .portal-hero-inner > div > *:nth-child(2) { animation-delay: .06s; }
  .portal-hero-inner > div > *:nth-child(3) { animation-delay: .12s; }
  .portal-hero-inner > div > *:nth-child(4) { animation-delay: .18s; }
  .portal-hero-card { animation: rise .7s .1s cubic-bezier(.2, .7, .3, 1) both; }
  .module-card { animation: rise .55s cubic-bezier(.2, .7, .3, 1) both; }
  .module-card:nth-child(2) { animation-delay: .05s; }
  .module-card:nth-child(3) { animation-delay: .1s; }
  .module-card:nth-child(4) { animation-delay: .15s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .portal-hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 52px 24px 56px; }
  .portal-hero-card { max-width: 460px; width: 100%; }
  .portal-hero h1 { font-size: clamp(28px, 6vw, 38px); }
  .about-grid { grid-template-columns: 1fr; }
  .portal-statband-inner { grid-template-columns: repeat(3, 1fr); }
  .portal-stat:nth-child(3) { border-right: none; }
  .portal-stat:nth-child(4), .portal-stat:nth-child(5) { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .sitebar-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 9px 16px 6px;
    gap: 2px 12px;
  }
  .site-brand { min-height: 32px; }
  .site-brand .name { font-size: 13.5px; }
  .site-brand .sub { display: none; }
  .site-nav { width: 100%; margin-left: 0; padding: 4px 0 2px; }
  .site-nav a { padding: 6px 10px; font-size: 12.5px; }
  .module-grid { grid-template-columns: 1fr; }
  .portal-section { padding-top: 48px; }
  .portal-section-head h2 { font-size: 22px; }
  .portal-statband { margin-top: -22px; }
  .portal-statband-inner { grid-template-columns: repeat(2, 1fr); }
  .portal-stat { padding: 16px 12px; }
  .portal-stat b { font-size: 22px; }
  .portal-stat:nth-child(2n) { border-right: none; }
  .portal-stat:nth-child(3) { border-right: 1px solid var(--line); }
  .portal-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .portal-stat:last-child { grid-column: 1 / -1; border-right: none; }
  .module-card { padding: 20px; gap: 14px; }
  .module-icon { width: 44px; height: 44px; border-radius: 12px; }
  .module-icon svg { width: 22px; height: 22px; }
  .module-arrow { display: none; }
  .portal-hero-card-rows b { font-size: 17px; }
  .site-foot-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ===== 可访问性 / 减少动效 ===== */
:focus-visible {
  outline: 3px solid rgba(201, 162, 39, .55);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
