/* 入职心理体检 · 纸页与题册 */

html:has(.ox-home),
html:has(.ox-exam) {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: pan-x pan-y;
}

html:has(.ox-home),
html:has(.ox-home) body {
  height: auto;
  min-height: 100%;
  overflow: auto;
  background: #f3efe4;
}

html:has(.ox-home) body > div,
html:has(.ox-home) .min-h-dvh.overflow-hidden {
  height: auto !important;
  min-height: 100dvh;
  overflow: visible !important;
}

html:has(.ox-home) main,
html:has(.ox-home) main > section {
  display: block !important;
  height: auto !important;
  min-height: 0;
  overflow: visible !important;
  padding: 0 !important;
}

.ox-home {
  --ox-paper: #f3efe4;
  --ox-ink: #1c2430;
  --ox-ink-soft: #3c4a5c;
  --ox-muted: #6d7886;
  --ox-line: #e2d8c6;
  --ox-card: #fffdf8;
  --ox-teal: #1e4d5c;
  --ox-teal-soft: #d7e6e2;
  --ox-rust: #8c4a32;
  --ox-heading: "Iowan Old Style", Palatino, "Palatino Linotype", "Songti SC", "Noto Serif SC", "STSong", serif;
  --ox-body: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 8% -10%, rgba(30, 77, 92, 0.08), transparent 42%),
    var(--ox-paper);
  color: var(--ox-ink);
  font-family: var(--ox-body);
}

.ox-home *,
.ox-home *::before,
.ox-home *::after { box-sizing: border-box; }

.ox-home a { color: inherit; text-decoration: none; }
.ox-home a.ox-btn,
.ox-home a.ox-nav__cta,
.ox-home .ox-nav__menu-panel a.is-primary { color: #fff; }
.ox-home [id] { scroll-margin-top: 24px; }

.ox-home__inner {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.ox-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 8px 8px 14px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--ox-line);
  border-radius: 999px;
}

.ox-nav__brand {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 10px;
  min-width: 0;
  font-weight: 650;
}

.ox-nav__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ox-teal);
  color: #f7f3ea;
  font-family: var(--ox-heading);
  font-size: 12px;
}

.ox-nav__name {
  flex: 1;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  white-space: normal;
  min-width: 0;
}

.ox-nav__links { display: none; gap: 22px; }
.ox-nav__link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ox-muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.ox-nav__link:hover { color: var(--ox-ink); }

.ox-nav__cta {
  display: inline-flex;
  margin-left: auto;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ox-teal);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.ox-nav__menu { position: relative; margin-left: auto; }
.ox-nav__menu-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ox-paper);
  list-style: none;
  cursor: pointer;
}
.ox-nav__menu-btn::-webkit-details-marker { display: none; }
.ox-nav__menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 168px;
  padding: 10px;
  background: var(--ox-card);
  border: 1px solid var(--ox-line);
  border-radius: 14px;
}
.ox-nav__menu-panel .ox-nav__link,
.ox-nav__menu-panel a {
  padding: 8px 10px;
  border-radius: 8px;
  text-align: left;
}
.ox-nav__menu-panel a.is-primary {
  background: var(--ox-teal);
  color: #fff;
  text-align: center;
  font-weight: 650;
}

@media (min-width: 860px) {
  .ox-nav__links { display: flex; }
  .ox-nav__menu { display: none; }
  .ox-nav { padding-right: 10px; gap: 28px; }
  .ox-nav__name { font-size: 13px; }
}

.ox-home .ox-hero,
.ox-home .ox-instruction,
.ox-home .ox-foot {
  width: 100%;
  box-sizing: border-box;
}

.ox-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: none;
  padding: 64px 0 8px;
  text-align: center;
}

.ox-kicker {
  margin: 0 0 12px;
  color: var(--ox-rust);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.ox-hero h1 {
  margin: 0;
  font-family: var(--ox-heading);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.ox-hero .ox-btn { margin-top: 28px; }

.ox-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 26px;
}

.ox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ox-teal);
  border-radius: 999px;
  background: var(--ox-teal);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.ox-btn--ghost {
  background: transparent;
  color: var(--ox-teal);
}

.ox-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ox-btn--block { width: 100%; }

.ox-note {
  margin: 14px 0 0;
  color: var(--ox-muted);
  font-size: 13px;
}

.ox-book {
  padding: 22px 22px 18px;
  background: var(--ox-card);
  border: 1px solid var(--ox-line);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(28, 36, 48, 0.06);
}

.ox-book__top,
.ox-book__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ox-book__top { font-size: 13px; color: var(--ox-muted); }
.ox-book__top strong { color: var(--ox-ink); font-family: var(--ox-heading); font-size: 18px; }
.ox-book__bar {
  height: 4px;
  margin: 14px 0 18px;
  overflow: hidden;
  background: #efe8da;
  border-radius: 99px;
}
.ox-book__bar span { display: block; width: 8%; height: 100%; background: var(--ox-teal); }
.ox-book__q {
  margin: 0;
  font-family: var(--ox-heading);
  font-size: 22px;
  line-height: 1.45;
}
.ox-book__q em {
  margin-right: 8px;
  color: var(--ox-teal);
  font-style: normal;
}
.ox-book__options { margin-top: 18px; }
.ox-book__options span {
  flex: 1;
  padding: 10px 0;
  border: 1px solid var(--ox-line);
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
}
.ox-book__hint { margin: 14px 0 0; color: var(--ox-muted); font-size: 12px; }

.ox-steps, .ox-instruction, .ox-privacy { margin-top: 56px; }
.ox-steps h2, .ox-privacy h2, .ox-instruction .ox-kicker {
  font-family: var(--ox-heading);
}
.ox-steps h2, .ox-privacy h2 {
  margin: 0 0 18px;
  font-size: 28px;
}
.ox-steps ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 800px) {
  .ox-steps ol { grid-template-columns: repeat(3, 1fr); }
}
.ox-steps li {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.7);
  border-top: 2px solid var(--ox-teal);
}
.ox-steps li > span {
  color: var(--ox-teal);
  font-family: var(--ox-heading);
  font-size: 20px;
}
.ox-steps strong, .ox-privacy strong { display: block; margin-bottom: 6px; }
.ox-steps p, .ox-privacy p { margin: 0; color: var(--ox-ink-soft); line-height: 1.65; }

.ox-instruction blockquote {
  margin: 0;
  padding: 4px 0 0;
  color: var(--ox-ink-soft);
  font-family: var(--ox-body);
  font-size: 16px;
  line-height: 1.75;
}

.ox-instruction {
  margin-top: 40px;
  text-align: center;
}

.ox-privacy ul {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 800px) {
  .ox-privacy ul { grid-template-columns: repeat(3, 1fr); }
}

.ox-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--ox-line);
  color: var(--ox-muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}
.ox-foot p { margin: 0; }
.ox-foot__legal { font-size: 12px; }
.ox-foot__legal + .ox-foot__legal { margin-top: 8px; }
.ox-foot a { color: var(--ox-teal); text-decoration: underline; text-underline-offset: 3px; }
