:root {
  color-scheme: light;
  --bg: #f6f9fd;
  --ink: #132b4c;
  --muted: #516780;
  --line: #d8e3f1;
  --accent: #286ab4;
  --accent-dark: #195696;
  --soft: #eaf3fe;
  --danger: #9f3037;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); background: var(--bg); }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px clamp(16px, 5vw, 64px); border-bottom: 1px solid var(--line); background: #fff; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--accent-dark); color: #fff; }
.section, footer, .hint, small, dt, time { color: var(--muted); font-size: .85rem; }
.section { white-space: nowrap; }
footer { text-align: center; padding: 20px 12px; margin-top: auto; }
main { width: calc(100% - 32px); margin-inline: auto; }
.gate { max-width: 490px; margin-block: clamp(40px, 12vh, 125px) 48px; }
.workspace { max-width: 990px; margin-block: 36px; }
.panel { padding: clamp(18px, 4vw, 30px); background: #fff; border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 10px 36px rgb(26 64 120 / 5%); overflow-wrap: anywhere; }
.workspace > .panel, .records > .panel { margin-bottom: 14px; }
h1, h2, p { margin: 0 0 12px; }
h1 { font-size: clamp(1.55rem, 5vw, 2.1rem); line-height: 1.25; }
h2 { font-size: 1.15rem; }
p { color: var(--muted); }
.eyebrow { color: var(--accent-dark); font-weight: 750; font-size: .75rem; letter-spacing: .12em; }
.stack { display: grid; gap: 8px; margin: 22px 0 0; }
.stack button { margin-top: 7px; }
label { font-weight: 650; font-size: .9rem; }
input:not([type=checkbox], [type=radio]), textarea { display: block; width: 100%; min-width: 0; border: 1px solid #91a6bf; border-radius: 9px; padding: 10px 12px; background: #fff; color: var(--ink); font: inherit; }
textarea { resize: vertical; font-family: ui-monospace, monospace; }
button { min-height: 44px; padding: 8px 15px; border: 1px solid transparent; border-radius: 9px; background: var(--accent-dark); color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
button:hover { filter: brightness(.94); }
.secondary { color: var(--accent-dark); background: var(--soft); border-color: var(--line); }
.danger { color: var(--danger); background: #fff3f3; }
a, summary { color: var(--accent-dark); font-weight: 650; text-underline-offset: 3px; cursor: pointer; }
:focus-visible { outline: 3px solid #287fd5; outline-offset: 3px; }
.error, .notice, .empty { padding: 10px 12px; border-radius: 8px; background: var(--soft); }
.error { color: var(--danger); background: #fff0f0; }
.heading { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; gap: 6px 14px; margin-bottom: 14px; }
.heading p:last-child { margin-bottom: 0; }
.toolbar { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.toolbar label { flex: 1 1 180px; }
.toolbar input { margin-top: 4px; }
.hint { margin: 10px 0 0; }
.badges, .record-actions, .pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.badge { padding: 3px 9px; border-radius: 20px; background: var(--soft); font-size: .8rem; }
.green { background: #e6f5ed; color: #145c3c; }
.red { background: #fff0f0; color: var(--danger); }
dl { display: flex; gap: 12px 26px; flex-wrap: wrap; margin: 0 0 16px; }
dd { margin: 0; font-size: .9rem; }
details[open] { flex-basis: 100%; }
details form { margin-top: 8px; }
.confirm { display: block; margin-bottom: 8px; }
.pagination { justify-content: center; color: var(--muted); }
.history { padding-left: 24px; }
.history li { padding-block: 6px; }
.history time { margin-left: 8px; }

.member-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.member-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.member-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px; border-radius: 8px; font-size: .9rem; text-decoration: none; }
.member-nav a:hover, .member-nav [aria-current="page"] { background: var(--soft); }
.member-hero { padding: clamp(26px, 6vw, 60px); border: 1px solid #cddff4; border-radius: 24px; background: linear-gradient(125deg, #fff 12%, #e5f1ff 100%); }
.member-hero h1 { max-width: 14em; font-size: clamp(2rem, 6vw, 3.5rem); }
.member-hero > p:not(.eyebrow) { max-width: 29em; }
.member-cta { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; margin-top: 10px; padding: 8px 16px; border-radius: 9px; background: var(--accent-dark); color: #fff; text-decoration: none; }
.member-cta:hover { background: var(--ink); }
.member-library { margin-top: 28px; }
.member-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.member-card h3 { margin: 0 0 6px; }
.member-card p:last-child, .member-steps p { margin-bottom: 0; }
.member-index { font: 700 .8rem/1.5 ui-monospace, monospace; color: var(--accent-dark); }
.member-article { max-width: 760px; }
.member-steps { margin: 24px 0 14px; padding-left: 26px; }
.member-steps li { padding: 12px 0 12px 4px; border-top: 1px solid var(--line); }
.member-steps h2 { margin-bottom: 6px; }
@media (max-width: 680px) {
  .member-grid { grid-template-columns: 1fr; }
}

.recruitment-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr)); }
.recruitment-grid > * { min-width: 0; }
.recruitment-evidence { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 40rem; overflow: auto; }
.recruitment-details dd, .recruitment-log, .recruitment-grid p { overflow-wrap: anywhere; white-space: pre-wrap; }
.recruitment-nav { margin-bottom: 1rem; }
.recruitment-inline { display: inline-block; margin-left: .5rem; }
.recruitment-inline button { padding: .25rem .6rem; min-height: auto; }
.recruitment-filters { flex-wrap: wrap; }
select { max-width: 100%; padding: .65rem; font: inherit; border: 1px solid #acbfd3; border-radius: .5rem; background: #fff; color: inherit; }

.brand > span { display: grid; gap: 1px; line-height: 1.25; }
.brand-community { font-size: .72rem; font-weight: 500; color: var(--muted); }
.library-heading { margin: 1.2rem 0 1.4rem; }
.library-heading h1 { margin-bottom: .3rem; }
.library-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block: 1rem; }
.library-card h2 { font-size: 1.18rem; }
.library-card :last-child { margin-bottom: 0; }
.library-article { max-width: 760px; }
.library-article h2 { margin: 1.7rem 0 .4rem; font-size: 1.22rem; }
.library-summary { color: var(--muted); font-size: 1.04rem; }
.library-shortcuts, .library-admin-list li { display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; align-items: center; }
.library-shortcuts { padding: .65rem 0; }
.library-admin-list { list-style: none; padding: 0; }
.library-admin-list li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.toolbar select { display: block; width: 100%; margin-top: 4px; min-height: 44px; }
@media (max-width: 600px) {
  .workspace { margin-block: 16px 28px; }
  .member-center-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 3px; }
  .member-center-nav a { justify-content: center; padding-inline: 3px; text-align: center; font-size: .85rem; }
  .member-bar { gap: 8px; }
  .member-bar form { margin-left: auto; }
  .library-cards { grid-template-columns: 1fr; gap: 10px; }
  .library-heading { margin-block: .75rem 1rem; }
  .member-hero { padding: 22px 17px; }
  .member-hero h1 { font-size: clamp(1.65rem, 7.2vw, 2.2rem); }
}

.home-hero { background: #102d50; color: #fff; border-color: #102d50; }
.home-hero .eyebrow, .home-hero p { color: #ccdef5; }
.home-hero h1 { max-width: none; font-size: clamp(1.7rem, 5vw, 3rem); }
.home-search { max-width: 530px; margin-top: 1.2rem; }
.home-search > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 4px; }
.home-search button { background: #d7e9ff; color: #123254; }
.home-section { margin-top: clamp(24px, 4vw, 36px); }
.home-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; }
.home-section-heading h2 { margin: 0; font-size: 1.2rem; }
.home-section-heading a { font-size: .9rem; }
.home-job-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.home-job-list li + li { border-top: 1px solid var(--line); }
.home-job-list a { display: grid; position: relative; gap: 2px; padding: 14px 40px 14px 16px; text-decoration: none; overflow-wrap: anywhere; }
.home-job-list a:hover strong, .home-library-card:hover strong { text-decoration: underline; }
.home-job-list span, .home-library-card span { color: var(--muted); font-weight: 500; font-size: .86rem; }
.home-arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
.home-library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-library-card { display: flex; flex-direction: column; gap: 4px; padding: clamp(12px, 2vw, 20px); border: 1px solid var(--line); border-radius: 15px; background: #fff; text-decoration: none; }
.home-library-card .home-library-index { font: 650 .8rem/1.4 ui-monospace, monospace; color: var(--accent-dark); }

.member-center-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.member-center-nav a { justify-content: center; text-align: center; padding-inline: 4px; }
.member-center-nav [aria-current="page"] { background: #dcecff; color: #123d6a; }
.member-nav-short { display: none; }
.member-session-end { margin-top: 1.7rem; }
.member-session-end button { background: transparent; }
.home-section-heading small { margin-left: .3rem; font-weight: 500; }
@media (max-width: 760px) {
  .member-nav-short { display: inline; }
  .member-nav-full { display: none; }
}
@media (max-width: 600px) {
  .member-center-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; }
}

:root { font-size: 15px; }
h1, h2, h3, strong, a, summary, label, button, .brand, .eyebrow { font-weight: 500; }
h1, .member-hero h1, .home-hero h1 { font-size: clamp(1.25rem, 3.6vw, 1.65rem); }
h2, .library-card h2, .home-section-heading h2, .library-article h2 { font-size: 1.08rem; }
h3 { font-size: 1rem; }
.home-hero { padding: clamp(18px, 3vw, 30px); background: #edf5ff; color: var(--ink); border-color: #d2e3f7; border-radius: 15px; }
.home-hero .eyebrow, .home-hero p { color: var(--muted); }
.home-search button { background: var(--accent-dark); color: #fff; }
.brand .mark { object-fit: cover; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer p { margin-bottom: .5rem; }
.site-footer details { margin-bottom: .5rem; }
.site-footer details p, .wechat-qr { margin-top: .55rem; }
.wechat-qr { display: inline-block; max-width: 100%; height: auto; }
.resume-workspace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.resume-fields { display: grid; gap: 12px; }
.resume-fields textarea { font: inherit; }
.resume-fields input, .resume-fields textarea { margin-top: 4px; }
.resume-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 10px; }
.resume-actions select { display: block; min-height: 44px; }
.resume-document { background: #fff; color: #172438; border: 1px solid var(--line); border-top: 4px solid var(--resume-color); padding: clamp(15px, 4vw, 26px); min-height: 360px; --resume-color: #235788; overflow-wrap: anywhere; }
.resume-document[data-theme="clinical"] { --resume-color: #196d62; background: #f7fcfa; }
.resume-document[data-theme="minimal"] { --resume-color: #262626; border-top-width: 1px; }
.resume-document header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.resume-document h2 { font-size: 1.48rem; color: var(--resume-color); margin-bottom: 5px; }
.resume-document h3 { color: var(--resume-color); margin: 14px 0 6px; border-bottom: 1px solid var(--resume-color); }
.resume-document[data-theme="clinical"] h3 { background: #e4f3ed; padding: 4px 6px; border: 0; }
.resume-document[data-theme="minimal"] h3 { border-bottom-style: dotted; }
.resume-document p { white-space: pre-wrap; margin: 0 0 4px; }
.resume-document img { width: 66px; height: 82px; object-fit: cover; }
@media (max-width: 680px) { .resume-workspace { grid-template-columns: minmax(0, 1fr); } }
@media print {
  body:has(.resume-document) > :not(main), body:has(.resume-document) main > :not(.resume-workspace),
  .resume-workspace > :not(.resume-preview), .resume-preview > :not(.resume-document) { display: none; }
  body:has(.resume-document) main { width: 100%; max-width: none; margin: 0; }
  .resume-workspace { display: block; }
  .resume-document { min-height: 0; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .resume-document h3 { break-after: avoid; }
}

.resume-fields fieldset { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.resume-fields legend { padding-inline: 5px; color: var(--accent-dark); }
.resume-entry-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.resume-wide { grid-column: 1 / -1; }
.resume-entry { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.resume-record + .resume-record { margin-top: 10px; }
.resume-record h4 { margin: 0 0 4px; font-weight: 550; }
.resume-record h4 { break-after: avoid; }
.resume-document .resume-meta { color: var(--muted); font-size: .88em; }
#resume-export:disabled { opacity: .55; cursor: default; }
.resume-document [hidden], .resume-document[hidden] { display: none; }
@media (max-width: 380px) { .resume-entry-fields { grid-template-columns: minmax(0, 1fr); } }

@page resume-sheet { size: A4; margin: 0; }
@media print {
  body:has(.resume-document) { page: resume-sheet; background: #fff; }
  .resume-document { padding: 13mm 15mm; border-inline: 0; border-bottom: 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
}

.explore-entry { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; margin-top: 16px; }
.explore-entry h2 { margin-bottom: 5px; }
.explore-entry p, .explore-entry .member-cta { margin: 0; }
.explore-form fieldset { min-width: 0; padding: 0 0 12px; margin: 0 0 14px; border: 0; border-bottom: 1px solid var(--line); }
.explore-form legend { font-size: 1.02rem; padding: 0 0 6px; }
.explore-form label { display: flex; align-items: center; gap: 9px; min-height: 44px; }

.explore-result dl { display: grid; gap: 10px; }

.explore-question-group + .explore-question-group { margin-top: 16px; }
.explore-question-group > h2 { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.explore-question-group > h2 span { border-radius: 6px; padding: 3px 7px; background: var(--soft); font-size: .78rem; color: var(--accent-dark); white-space: nowrap; }
.explore-question-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.explore-question-grid fieldset { margin-bottom: 4px; }
.explore-form label { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 5px; padding: 6px 9px; cursor: pointer; }
.explore-form label:has(:checked) { border-color: #83addd; background: var(--soft); }
.explore-form label:focus-within { outline: 2px solid #87b1e0; }
.explore-form input:is([type=radio], [type=checkbox]) { flex: 0 0 16px; width: 16px; height: 16px; margin: 0; accent-color: var(--accent-dark); }
.explore-form label span { flex: 1; min-width: 0; line-height: 1.45; }
.explore-result { display: flex; flex-direction: column; }
.explore-result .eyebrow { margin-bottom: 4px; }
.explore-result h3 { margin: 0 0 12px; font-size: 1.13rem; }
.explore-result .record-actions { margin-top: auto; }
@media (max-width: 680px) {
  .explore-question-grid { grid-template-columns: minmax(0, 1fr); }
}
