@charset "UTF-8";
/* =============================================================================
   金未来校园招聘就业网 · 设计系统
   色彩主张：墨蓝（专业·高效·可信） + 暖金（品牌·书卷气） + 宣纸米白（校园文化）
   高效体现：高对比、细边框、克制圆角、紧凑信息密度、160ms 快反馈、无装饰性动效
   文化体现：衬线标题、书签细金线、章节序号、留白与横线分割
   ============================================================================= */

:root {
  /* 墨蓝主色 */
  --ink-900: #101F33;
  --ink-800: #162C47;
  --ink-700: #1D3A5C;
  --ink-600: #2B5480;
  --ink-500: #4A6B8A;
  --ink-100: #E8EFF5;
  /* 暖金强调 */
  --gold-700: #8C6318;
  --gold-600: #A8781F;
  --gold-500: #C8963E;
  --gold-400: #D9AE5C;
  --gold-100: #F5EAD2;
  --gold-50:  #FBF5E8;
  /* 宣纸中性 */
  --paper:      #FAF8F3;
  --paper-2:    #F4F1E9;
  --surface:    #FFFFFF;
  --line:       #E4DFD3;
  --line-2:     #D3CCBC;
  --text:       #1B2733;
  --text-2:     #52606E;
  --text-3:     #8A94A0;
  /* 功能色 */
  --ok:    #2E7D5B;
  --ok-bg: #E8F4ED;
  --warn:  #B4701F;
  --warn-bg:#FBF0DE;
  --err:   #B3403A;
  --err-bg:#FAECEA;

  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --text-xs: 12px; --text-sm: 13px; --text-base: 15px; --text-lg: 17px;
  --text-xl: 20px; --text-2xl: 24px; --text-3xl: 30px; --text-4xl: 38px; --text-5xl: 48px;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px;

  --radius-sm: 3px; --radius-md: 6px; --radius-lg: 10px; --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 31, 51, .05);
  --shadow-md: 0 4px 14px rgba(16, 31, 51, .08);
  --shadow-lg: 0 14px 36px rgba(16, 31, 51, .13);
  --dur: 160ms;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --header-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--text);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(0deg, rgba(16,31,51,.012) 0 1px, transparent 1px 4px);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.35; margin: 0; font-weight: 700; letter-spacing: .01em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
::selection { background: var(--gold-100); color: var(--ink-900); }

/* ---------- Layout ---------- */
.container { max-width: 1220px; margin: 0 auto; padding: 0 var(--space-6); }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 var(--space-6); }
.bookmark-line { height: 3px; background: linear-gradient(90deg, var(--gold-600), var(--gold-400) 55%, var(--ink-700)); }
.section { padding: var(--space-16) 0; }
.section-head { margin-bottom: var(--space-8); }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); letter-spacing: .18em; color: var(--gold-700);
  font-weight: 700; margin-bottom: var(--space-2);
}
.section-head .eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold-500); }
.section-head h2 { font-size: var(--text-3xl); color: var(--ink-900); }
.section-head p { color: var(--text-2); margin: var(--space-2) 0 0; font-size: var(--text-base); }
.muted { color: var(--text-2); }
.tiny { font-size: var(--text-xs); color: var(--text-3); }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink-800); color: #fff; }
.header-inner {
  max-width: 1220px; margin: 0 auto; padding: 0 var(--space-6);
  height: var(--header-h); display: flex; align-items: center; gap: var(--space-8);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-seal {
  width: 34px; height: 34px; border: 1px solid var(--gold-400); color: var(--gold-400);
  display: grid; place-items: center; font-family: var(--font-serif); font-size: 19px;
  border-radius: 2px; line-height: 1;
}
.brand-name { font-family: var(--font-serif); font-size: 19px; font-weight: 700; letter-spacing: .06em; }
.brand-sub { font-size: 11px; color: #A9BDD0; letter-spacing: .08em; margin-left: 8px; }
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.main-nav a {
  padding: 8px 14px; font-size: var(--text-sm); color: #CFDCE8; border-radius: var(--radius-sm);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.main-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.main-nav a.active { color: var(--gold-400); background: rgba(200,150,62,.14); }
.header-tools { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.role-switch {
  display: flex; align-items: center; gap: 6px; font-size: var(--text-xs);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-md); padding: 4px 8px 4px 10px; color: #CFDCE8;
}
.role-switch select {
  background: var(--ink-700); color: #fff; border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm); padding: 4px 6px; font-size: var(--text-xs);
}
.role-switch select option { color: #fff; }
.header-btn {
  padding: 7px 14px; font-size: var(--text-sm); border-radius: var(--radius-md);
  border: 1px solid var(--gold-500); color: var(--gold-400); background: transparent;
  transition: all var(--dur) var(--ease);
}
.header-btn:hover { background: var(--gold-500); color: var(--ink-900); }
.header-btn.solid { background: var(--gold-500); color: var(--ink-900); font-weight: 600; }
.header-btn.solid:hover { background: var(--gold-400); }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 22px; padding: 4px 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #A9BDD0; padding: var(--space-12) 0 var(--space-6); margin-top: var(--space-20); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-10); }
.footer-brand h3 { color: #fff; font-size: var(--text-xl); margin-bottom: var(--space-2); }
.footer-brand p { font-size: var(--text-sm); max-width: 320px; line-height: 1.8; }
.footer-col h4 { color: var(--gold-400); font-size: var(--text-sm); margin-bottom: var(--space-3); font-family: var(--font-sans); }
.footer-col li { margin-bottom: 6px; font-size: var(--text-sm); }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom {
  margin-top: var(--space-10); padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: var(--text-xs); color: #7F95AA;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 600;
  border: 1px solid transparent; background: var(--ink-700); color: #fff;
  transition: all var(--dur) var(--ease); white-space: nowrap;
}
.btn:hover { background: var(--ink-600); }
.btn-gold { background: var(--gold-500); color: var(--ink-900); border-color: var(--gold-500); }
.btn-gold:hover { background: var(--gold-400); border-color: var(--gold-400); }
.btn-outline { background: transparent; color: var(--ink-700); border-color: var(--line-2); }
.btn-outline:hover { background: var(--paper-2); border-color: var(--ink-500); }
.btn-ghost { background: transparent; color: var(--ink-600); padding: 6px 10px; }
.btn-ghost:hover { background: var(--ink-100); }
.btn-danger { background: transparent; color: var(--err); border-color: #E8C6C3; }
.btn-danger:hover { background: var(--err-bg); }
.btn-sm { padding: 5px 11px; font-size: var(--text-xs); }
.btn-lg { padding: 12px 26px; font-size: var(--text-base); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }

/* ---------- Cards / Panels ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--space-6); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card.hoverable:hover { border-color: var(--gold-400); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.panel-head {
  padding: 14px var(--space-6); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap;
}
.panel-head h3 { font-size: var(--text-lg); color: var(--ink-900); }
.panel-body { padding: var(--space-6); }
.panel-foot { padding: 12px var(--space-6); border-top: 1px solid var(--line); }

/* ---------- Badges / Tags ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: var(--radius-sm); font-size: var(--text-xs); font-weight: 600; }
.badge-ink { background: var(--ink-100); color: var(--ink-700); }
.badge-gold { background: var(--gold-100); color: var(--gold-700); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-err { background: var(--err-bg); color: var(--err); }
.tag { display: inline-block; padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: var(--text-xs); color: var(--text-2); background: var(--paper); }
.chapter-no { font-family: var(--font-serif); color: var(--gold-600); font-size: var(--text-sm); letter-spacing: .1em; }

/* ---------- Forms ---------- */
.field { margin-bottom: var(--space-4); }
.field:last-child { margin-bottom: 0; }
.label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--ink-800); margin-bottom: 6px; }
.label .req { color: var(--err); margin-left: 2px; }
.hint { font-size: var(--text-xs); color: var(--text-3); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; padding: 9px 12px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius-md); font-size: var(--text-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--ink-600); box-shadow: 0 0 0 3px rgba(43,84,128,.10);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-4); }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--space-4); }
.check-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface);
  font-size: var(--text-sm); color: var(--text-2); cursor: pointer; user-select: none;
  transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--ink-500); color: var(--ink-700); }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip.checked { border-color: var(--ink-700); background: var(--ink-700); color: #fff; }
.chip.checked::before { content: "✓"; font-size: 11px; }
.chip:focus-within { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 6px; }
.radio-chip {
  padding: 5px 13px; border: 1px solid var(--line-2); border-radius: var(--radius-full);
  font-size: var(--text-sm); color: var(--text-2); background: var(--surface); cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.radio-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-chip.checked,
.radio-chip.active { border-color: var(--gold-600); background: var(--gold-50); color: var(--gold-700); font-weight: 600; }
.radio-chip:focus-within { outline: 2px solid var(--gold-500); outline-offset: 2px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.data-table { font-size: var(--text-sm); min-width: 720px; }
.data-table th {
  text-align: left; padding: 11px 14px; background: var(--paper-2); color: var(--ink-700);
  font-weight: 600; font-size: var(--text-xs); letter-spacing: .04em; border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--gold-50); }
.data-table td strong { color: var(--ink-900); font-weight: 600; }
.table-empty { padding: var(--space-12) var(--space-6); text-align: center; color: var(--text-3); }
.table-empty .icon { font-size: 30px; color: var(--line-2); margin-bottom: 8px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding: 12px var(--space-6); border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--text-2); }
.page-btns { display: flex; gap: 4px; }
.page-btns button { min-width: 30px; height: 30px; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--radius-sm); font-size: var(--text-xs); color: var(--text-2); }
.page-btns button:hover:not(:disabled) { border-color: var(--ink-600); color: var(--ink-700); }
.page-btns button.current { background: var(--ink-700); border-color: var(--ink-700); color: #fff; }
.page-btns button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { background: var(--ink-800); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -140px; width: 520px; height: 520px;
  border: 1px solid rgba(217,174,92,.16); border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(217,174,92,.04), 0 0 0 140px rgba(217,174,92,.03);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-12); align-items: center; padding: var(--space-16) 0; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-400); font-size: var(--text-xs); letter-spacing: .2em; margin-bottom: var(--space-5); }
.hero-kicker::before { content: ""; width: 26px; height: 1px; background: var(--gold-400); }
.hero h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.25; color: #fff; margin-bottom: var(--space-5); }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero p { color: #C2D1DF; font-size: var(--text-lg); max-width: 540px; line-height: 1.85; margin-bottom: var(--space-8); }
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero-search { background: rgba(255,255,255,.06); border: 1px solid rgba(217,174,92,.28); border-radius: var(--radius-lg); padding: var(--space-6); }
.hero-search h3 { color: var(--gold-400); font-size: var(--text-lg); margin-bottom: var(--space-4); }
.quick-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,.14); }
.quick-stat .num { font-family: var(--font-serif); font-size: var(--text-3xl); color: var(--gold-400); line-height: 1.2; }
.quick-stat .lbl { font-size: var(--text-xs); color: #A9BDD0; letter-spacing: .06em; }

/* ---------- Home sections ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.feature-card { border-left: 2px solid var(--gold-500); }
.feature-card .no { font-family: var(--font-serif); color: var(--gold-600); font-size: var(--text-sm); }
.feature-card h3 { font-size: var(--text-xl); margin: 6px 0 var(--space-2); }
.feature-card p { font-size: var(--text-sm); color: var(--text-2); line-height: 1.8; margin: 0; }
.feature-card a { display: inline-flex; align-items: center; gap: 4px; margin-top: var(--space-4); color: var(--ink-700); font-size: var(--text-sm); font-weight: 600; }
.feature-card a:hover { color: var(--gold-700); }
.job-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.job-mini-item { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); padding: 14px var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: border-color var(--dur) var(--ease); }
.job-mini-item:hover { border-color: var(--gold-400); }
.job-mini-item .t { font-weight: 600; color: var(--ink-900); font-size: var(--text-sm); }
.job-mini-item .c { font-size: var(--text-xs); color: var(--text-2); margin-top: 3px; }
.job-mini-item .s { color: var(--gold-700); font-size: var(--text-sm); font-weight: 700; white-space: nowrap; }
.cta-band { background: var(--gold-50); border-top: 1px solid var(--gold-100); border-bottom: 1px solid var(--gold-100); padding: var(--space-12) 0; }
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.cta-band h2 { font-size: var(--text-2xl); color: var(--ink-900); }
.cta-band p { color: var(--text-2); font-size: var(--text-sm); margin: 6px 0 0; }

/* ---------- Page head (inner pages) ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--space-8) 0; }
.page-head h1 { font-size: var(--text-3xl); color: var(--ink-900); }
.page-head p { color: var(--text-2); font-size: var(--text-sm); margin: 6px 0 0; }
.breadcrumb { font-size: var(--text-xs); color: var(--text-3); margin-bottom: var(--space-3); }
.breadcrumb a:hover { color: var(--gold-700); }
.breadcrumb span { margin: 0 6px; }

/* ---------- Filter + results ---------- */
.search-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: var(--space-5); align-items: start; }
/* 筛选面板：顶部动作 + 常用项固定，折叠组在面板内部滚动，整页不再被拉长 */
.filter-panel {
  position: sticky; top: calc(var(--header-h) + 16px);
  display: flex; flex-direction: column;
  max-height: calc(100dvh - var(--header-h) - 32px);
  overflow: hidden;
}
.filter-pin { flex: 0 0 auto; background: var(--surface); }
.filter-scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.filter-scroll::-webkit-scrollbar { width: 6px; }
.filter-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.filter-scroll::-webkit-scrollbar-track { background: transparent; }
.filter-group { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h4 { font-family: var(--font-sans); font-size: var(--text-sm); color: var(--ink-800); margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.filter-group h4 small { font-size: 11px; color: var(--text-3); font-weight: 400; }
/* 标题与控件同一行（排序） */
.f-inline { display: flex; align-items: center; gap: 10px; }
.f-inline h4 { margin-bottom: 0; flex: none; }
.f-inline .select { flex: 1 1 auto; min-width: 0; height: 36px; padding: 0 30px 0 10px; font-size: 12.5px; }
.filter-actions {
  flex: 0 0 auto; padding: var(--space-4) var(--space-5);
  display: flex; gap: var(--space-2);
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.filter-actions .btn { flex: 1; }

/* 折叠筛选组：点标题展开，收起时右侧显示当前选择 */
.f-acc { border-bottom: 1px solid var(--line); }
.f-acc:last-child { border-bottom: 0; }
.f-acc-h {
  display: flex; align-items: center; gap: 8px;
  padding: 13px var(--space-5); cursor: pointer; list-style: none;
  font-size: var(--text-sm); font-weight: 600; color: var(--ink-800);
  transition: background var(--dur) var(--ease);
}
.f-acc-h::-webkit-details-marker { display: none; }
.f-acc-h:hover { background: var(--paper-2); }
.f-acc-h:focus-visible { outline: 2px solid var(--gold-500); outline-offset: -2px; }
.f-acc-t { flex: none; }
.f-acc-v {
  margin-left: auto; max-width: 58%;
  font-size: 11.5px; font-weight: 400; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.f-acc-ic {
  flex: none; width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3);
  transform: rotate(45deg); transition: transform var(--dur) var(--ease);
}
.f-acc[open] > .f-acc-h {
  position: sticky; top: 0; z-index: 2;
  padding-bottom: 8px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.f-acc[open] > .f-acc-h .f-acc-ic { transform: rotate(-135deg); margin-top: 3px; }
.f-acc-body { padding: 0 var(--space-5) var(--space-4); }
.f-acc-body > .input { width: 100%; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.result-head .count { color: var(--text-2); font-size: var(--text-sm); }
.result-head .count b { color: var(--gold-700); font-size: var(--text-lg); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 var(--space-6) 12px; }
.active-filters .af { display: inline-flex; align-items: center; gap: 5px; background: var(--gold-50); border: 1px solid var(--gold-100); color: var(--gold-700); padding: 2px 8px; border-radius: var(--radius-sm); font-size: var(--text-xs); }

/* ---------- Materials ---------- */
.material-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.cat-list { position: sticky; top: calc(var(--header-h) + 16px); }
.cat-list button {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border: 0; background: transparent; font-size: var(--text-sm); color: var(--text-2);
  border-left: 2px solid transparent; transition: all var(--dur) var(--ease);
}
.cat-list button:hover { background: var(--paper-2); color: var(--ink-800); }
.cat-list button.active { background: var(--gold-50); color: var(--gold-700); border-left-color: var(--gold-500); font-weight: 600; }
.cat-list button span { font-size: var(--text-xs); color: var(--text-3); }
.material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--space-4); }
.material-card { display: flex; flex-direction: column; gap: 10px; padding: var(--space-5); }
.material-card .file-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm); display: grid; place-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--ink-700);
}
.material-card .file-icon.zip { background: var(--gold-600); }
.material-card .file-icon.doc, .material-card .file-icon.docx { background: #2B579A; }
.material-card .file-icon.pdf { background: var(--err); }
.material-card h3 { font-size: var(--text-base); color: var(--ink-900); line-height: 1.5; }
.material-card .desc { font-size: var(--text-xs); color: var(--text-2); line-height: 1.7; flex: 1; min-height: 40px; }
.material-card .meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; font-size: var(--text-xs); color: var(--text-3); }
.material-detail { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--space-5); align-items: start; }
.detail-cover { background: var(--ink-800); color: #fff; border-radius: var(--radius-md); padding: var(--space-8); text-align: center; }
.detail-cover .big { font-size: 52px; font-family: var(--font-serif); color: var(--gold-400); line-height: 1; }
.detail-cover .ext { margin-top: var(--space-3); font-size: var(--text-sm); letter-spacing: .1em; color: #C2D1DF; }
.detail-content h1 { font-size: var(--text-2xl); color: var(--ink-900); margin-bottom: var(--space-3); }
.detail-content h3 { font-size: var(--text-lg); margin: var(--space-6) 0 var(--space-2); padding-left: 10px; border-left: 3px solid var(--gold-500); }
.detail-content p { color: var(--text-2); line-height: 1.9; }
.detail-list li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: var(--text-sm); color: var(--text-2); }
.detail-list li::before { content: "·"; color: var(--gold-600); font-weight: 700; margin-right: 8px; }

/* ---------- Auth / student center ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 900px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.auth-aside { background: var(--ink-800); color: #fff; padding: var(--space-10); }
.auth-aside h2 { font-size: var(--text-2xl); color: #fff; margin-bottom: var(--space-4); }
.auth-aside p { color: #C2D1DF; font-size: var(--text-sm); line-height: 1.9; }
.auth-aside .seal { font-family: var(--font-serif); font-size: 60px; color: rgba(217,174,92,.25); line-height: 1; }
.auth-main { padding: var(--space-10); }
.demo-account { background: var(--paper-2); border: 1px dashed var(--line-2); border-radius: var(--radius-md); padding: 12px var(--space-4); font-size: var(--text-xs); color: var(--text-2); margin-top: var(--space-5); }
.demo-account b { color: var(--ink-800); }
.match-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.score-ring { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto var(--space-3); background: conic-gradient(var(--gold-500) var(--p, 0%), var(--ink-100) 0); position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 9px; background: var(--surface); border-radius: 50%; }
.score-ring span { position: relative; z-index: 1; font-family: var(--font-serif); font-size: var(--text-2xl); color: var(--gold-700); font-weight: 700; }
.match-item { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); margin-bottom: var(--space-3); background: var(--surface); }
.match-item .top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.match-item .top h4 { font-family: var(--font-sans); font-size: var(--text-sm); color: var(--ink-900); }
.match-item .reason { font-size: var(--text-xs); color: var(--text-2); margin-top: 6px; }
.progress { height: 6px; background: var(--ink-100); border-radius: var(--radius-full); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-500), var(--ink-600)); }

/* ---------- Console (admin / agent) ---------- */
.console-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.console-side { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.console-side .side-title { padding: 14px var(--space-4); background: var(--ink-800); color: #fff; font-size: var(--text-sm); font-weight: 600; }
.console-side .side-title small { display: block; color: var(--gold-400); font-size: 11px; font-weight: 400; }
.console-side nav { padding: 8px; }
.console-side nav a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--radius-sm); font-size: var(--text-sm); color: var(--text-2); }
.console-side nav a:hover { background: var(--paper-2); color: var(--ink-800); }
.console-side nav a.active { background: var(--gold-50); color: var(--gold-700); font-weight: 600; }
.console-side nav .sep { border-top: 1px solid var(--line); margin: 8px 4px; }
.console-side .lock-note { font-size: 11px; color: var(--text-3); padding: 10px 14px; border-top: 1px solid var(--line); line-height: 1.6; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-bottom: var(--space-5); }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); border-top: 2px solid var(--gold-500); }
.stat-card .k { font-size: var(--text-xs); color: var(--text-2); }
.stat-card .v { font-family: var(--font-serif); font-size: var(--text-3xl); color: var(--ink-900); line-height: 1.3; margin-top: 2px; }
.stat-card .d { font-size: 11px; color: var(--text-3); }
.toolbar { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.toolbar .input, .toolbar .select { width: auto; min-width: 150px; }
.notice { background: var(--gold-50); border: 1px solid var(--gold-100); border-left: 3px solid var(--gold-500); padding: 12px var(--space-4); border-radius: var(--radius-sm); font-size: var(--text-sm); color: var(--gold-700); margin-bottom: var(--space-4); }
.generated-list { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: var(--space-3); }
.generated-list table { font-size: var(--text-xs); min-width: 0; }
.generated-list th, .generated-list td { padding: 7px 12px; }
.upload-drop { border: 1px dashed var(--line-2); border-radius: var(--radius-md); padding: var(--space-8); text-align: center; background: var(--paper); cursor: pointer; transition: all var(--dur) var(--ease); }
.upload-drop:hover, .upload-drop.dragover { border-color: var(--gold-500); background: var(--gold-50); }
.upload-drop .big { font-size: 30px; color: var(--gold-500); }

/* ---------- Modal / Toast ---------- */
.modal-host { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: var(--space-4); background: rgba(16,31,51,.55); }
.modal-host.open { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius-lg); width: min(640px, 100%); max-height: 88dvh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal.modal-wide { width: min(860px, 100%); }
.modal-head { padding: 16px var(--space-6); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { font-size: var(--text-lg); color: var(--ink-900); }
.modal-close { border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--text-3); padding: 2px 6px; }
.modal-close:hover { color: var(--err); }
.modal-body { padding: var(--space-6); }
.modal-foot { padding: 14px var(--space-6); border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: var(--space-2); }
.toast-host { position: fixed; right: var(--space-6); bottom: var(--space-6); z-index: 120; display: flex; flex-direction: column; gap: 8px; }
.toast { min-width: 220px; max-width: 360px; background: var(--ink-800); color: #fff; border-left: 3px solid var(--gold-500); padding: 11px var(--space-4); border-radius: var(--radius-sm); font-size: var(--text-sm); box-shadow: var(--shadow-lg); animation: toastIn var(--dur) var(--ease); }
.toast.error { border-left-color: var(--err); }
.toast.success { border-left-color: var(--ok); }
@keyframes toastIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

/* ---------- Prototype banner ---------- */
.proto-banner { background: var(--gold-50); border-bottom: 1px solid var(--gold-100); font-size: var(--text-xs); color: var(--gold-700); padding: 6px 0; }
.proto-banner .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.proto-banner button { background: none; border: 0; color: var(--ink-700); text-decoration: underline; font-size: var(--text-xs); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero::after { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .material-detail { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--ink-800); flex-direction: column; align-items: stretch; padding: var(--space-3); border-top: 1px solid rgba(255,255,255,.1); }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .header-inner { gap: var(--space-3); }
  .brand-sub { display: none; }
  .search-layout, .material-layout, .console-layout, .match-layout { grid-template-columns: 1fr; }
  .filter-panel, .cat-list, .console-side { position: static; }
  /* 手机上不再限高，折叠组跟随页面滚动，避免出现「面板里的面板」 */
  .filter-panel { max-height: none; overflow: visible; }
  .filter-scroll { overflow: visible; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { padding: var(--space-6); }
}
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .section { padding: var(--space-10) 0; }
  .container { padding: 0 var(--space-4); }
  .header-inner { padding: 0 var(--space-4); }
  .role-switch label, .brand-name { display: none; }
  .job-mini, .form-grid, .form-grid-3, .stat-grid, .quick-stat, .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: var(--space-10) 0; }
  .hero h1 { font-size: 32px; }
  .page-head h1 { font-size: var(--text-2xl); }
  .section-head h2 { font-size: var(--text-2xl); }
  .toast-host { left: var(--space-4); right: var(--space-4); }
  .toast { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
