:root {
  --bg: #f5efe5;
  --panel: #fffaf2;
  --ink: #201b16;
  --muted: #6f655a;
  --faint: #9b9084;
  --line: #d9cec0;
  --line-soft: #e9e0d5;
  --accent: #1f6549;
  --accent-soft: #dce9df;
  --brand: #1f6549;
  --brand2: #174b38;
  --soft: #dce9df;
  --nav: #171512;
  --nav2: #2b2722;
  --good: #1f6549;
  --goodbg: #dce9df;
  --warn: #805714;
  --warnbg: #f0dfb8;
  --bad: #a83f32;
  --badbg: #f4ded9;
  --r: 18px;
  --shadow-sm: 0 1px 2px rgba(53, 42, 28, .05);
  --shadow: 0 22px 60px rgba(53, 42, 28, .11);
}

html { background: var(--bg); }
body {
  color: var(--ink);
  background: var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand, .logo, .login-mark {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}
button, input, select, textarea { font-family: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(31, 101, 73, .25);
  outline-offset: 2px;
}

#login {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
}
#login::before {
  content: "伯乐 AI 招聘助手\A 让每一次人才判断，都有更清楚的依据。";
  position: fixed;
  inset: 0 50% 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: clamp(48px, 8vw, 110px);
  white-space: pre-line;
  color: #fffaf2;
  background: #174b38;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(29px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.035em;
}
.login-card {
  position: relative;
  z-index: 1;
  width: min(430px, 43vw);
  margin-left: 50%;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.login-card h1, .login-card .brand { color: var(--ink); font-size: 30px; letter-spacing: -.03em; }
.login-card .brand::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 13px;
  background: #c89531 url('/bole-logo.png') center / cover no-repeat;
  box-shadow: 0 10px 24px rgba(128, 87, 20, .18);
}
.login-card p, .login-card .sub { color: var(--muted); }
.login-mark {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  color: #171512;
  background: #c89531;
  box-shadow: 0 10px 24px rgba(128, 87, 20, .18);
}
label { color: var(--muted); }
input, select, textarea, .field {
  border-color: var(--line);
  color: var(--ink);
  background: #fffdf8;
}
.login-option span { border-color: var(--line); background: #f8f2e8; }
.login-option input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.btn-primary, .primary {
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 9px 22px rgba(31, 101, 73, .18);
}
.btn-primary:hover, .primary:hover { background: #174b38; }

#app { max-width: 1320px; }
header.bar, .topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(245, 239, 229, .94);
  backdrop-filter: blur(16px);
}
.bar .brand, .topbar h1 { letter-spacing: -.025em; }
.bar .brand::before {
  content: "";
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: #c89531 url('/bole-logo.png') center / cover no-repeat;
  box-shadow: 0 8px 18px rgba(102, 72, 19, .16);
}
.bar .dot { display: none; }
.btn-ghost, .ghost, .linkbtn {
  border-color: var(--line);
  color: var(--ink);
  background: var(--panel);
}
.btn-ghost:hover, .ghost:hover, .linkbtn:hover { border-color: #1f6549; color: #1f6549; }
.stat, .card, .panel, .tablecard, .seat-card, .admin-card {
  border-color: var(--line);
  border-radius: var(--r);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.stat b, .stat strong { font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; }
.client-download-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .8fr);
  gap: 28px;
  align-items: center;
  margin: 18px 0;
  padding: clamp(24px, 3.2vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  color: #fffaf2;
  background: #174b38;
  box-shadow: 0 22px 56px rgba(23, 75, 56, .18);
}
.client-download-panel::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -120px;
  top: -170px;
  border-radius: 50%;
  background: rgba(200, 149, 49, .18);
  pointer-events: none;
}
.client-download-copy { position: relative; z-index: 1; }
.client-download-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #e1c27f;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .12em;
}
.client-download-copy h2 {
  max-width: 720px;
  margin: 0 0 10px;
  color: #fffaf2;
  font-size: clamp(23px, 2.4vw, 34px);
  line-height: 1.25;
  letter-spacing: -.025em;
}
.client-download-copy p {
  max-width: 720px;
  margin: 0;
  color: #c7d5cc;
  font-size: 14px;
  line-height: 1.75;
}
.client-download-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 20px;
  padding: 0 17px;
  border: 1px solid #e4c780;
  border-radius: 10px;
  color: #171512;
  background: #e4c780;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.client-download-action:hover { transform: translateY(-1px); background: #efd697; }
.client-platforms {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}
.client-platforms div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 68px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 250, 242, .07);
  backdrop-filter: blur(12px);
}
.client-platforms strong { color: #fffaf2; font-size: 16px; }
.client-platforms span { color: #c7d5cc; font-size: 12.5px; line-height: 1.5; }
.enterprise-download-card {
  display: grid;
  grid-template-columns: 140px minmax(220px, .7fr) minmax(280px, 1.3fr);
  gap: 20px;
  align-items: center;
  min-height: 82px;
  margin: 0 0 18px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r);
  color: #fffaf2;
  background: #174b38;
  box-shadow: 0 16px 34px rgba(23, 75, 56, .14);
  text-decoration: none;
}
.enterprise-download-card span { color: #e1c27f; font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.enterprise-download-card strong { color: #fffaf2; font-size: 17px; }
.enterprise-download-card small { color: #c7d5cc; font-size: 12.5px; line-height: 1.55; }
.enterprise-download-card:hover { background: #1b5a42; }
th { color: var(--muted); background: #f8f2e8; }
th, td { border-color: var(--line-soft); }
tbody tr:hover { background: #f8f2e8; }
.chip { border-color: var(--line); color: var(--muted); background: var(--panel); }
.chip.on { border-color: var(--accent); color: #fff; background: var(--accent); }
.badge, .pill { background: #eee6db; }
.badge.interviewed, .pill.good { color: var(--good); background: var(--goodbg); }
.view-btn, .copy, .preview-tab.on { color: var(--accent); background: var(--accent-soft); }
.summary, .step::before { color: var(--green-dark, #174b38); background: var(--accent-soft); }
.drawer, dialog, .preview { color: var(--ink); background: var(--panel); }
.drawer { box-shadow: -18px 0 55px rgba(53, 42, 28, .18); }
.scrim { background: rgba(23, 21, 18, .42); }

.sidebar {
  color: #fffaf2;
  background: var(--nav);
}
.logo { color: #fffaf2; letter-spacing: -.02em; }
.logo span { color: #decba8; background: #342d24; }
.nav button, .nav a { color: #aaa198; }
.nav button:hover, .nav button.on, .nav a:hover { color: #fff; background: #2a382f; }
.nav button.on { box-shadow: inset 3px 0 0 #c89531; }
.side-foot { border-color: rgba(255, 255, 255, .12); }
.main { background: var(--bg); }
.content { max-width: 1420px; margin: 0 auto; }
.nas-hero {
  color: #fffaf2;
  background: #174b38;
}
.nas-hero p { color: #c7d5cc; }
.seat-card {
  color: #fffaf2;
  background: #174b38;
}
.seat-card h2, .seat-card .seat-count { color: #fffaf2; }
.seat-card p, .seat-card .seat-count small { color: #c7d5cc; }
.code { color: #eee4d4; background: #211e1a; }
.toast { color: #fffaf2; background: #171512; }

@media (max-width: 780px) {
  #login::before { display: none; }
  .login-card { width: min(430px, 94vw); margin-left: 0; padding: 34px 26px; }
  .bar .right { gap: 8px; }
  .bar .right { flex-wrap: wrap; justify-content: flex-start; }
  .bar .account { flex: 1 0 100%; }
  .btn-ghost { padding-inline: 11px; }
  .client-download-panel { grid-template-columns: 1fr; gap: 22px; padding: 24px 20px; }
  .client-platforms div { grid-template-columns: 82px minmax(0, 1fr); }
  .enterprise-download-card { grid-template-columns: 1fr; gap: 7px; padding: 18px; }
}

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