/* HRProMax 官网。颜色取自产品设计系统（web/design/DESIGN.md）：石墨 + 品蓝，与登录页轮播一致。 */
:root {
  color-scheme: light;
  --graphite: #f7f8fa;
  --graphite-line: rgba(16, 21, 28, 0.12);
  --paper: #ffffff;
  --surface: #ffffff;
  --gray-100: #f1f3f6;
  --gray-200: #dce2ea;
  --ink: #10151c;
  --text: #1f2733;
  --muted: #526075;
  --faint: #66758a;
  --blue: #2563eb;
  --blue-strong: #1d4ed8;
  --blue-soft: #eff6ff;
  --blue-light: #2563eb;
  --on-dark: #17202e;
  --on-dark-muted: #526075;
  --on-dark-faint: #66758a;
  --success: #15803d;
  --warning: #a45d07;

  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei UI",
    "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --shell: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --graphite: #232b35;
  --graphite-line: rgba(255, 255, 255, 0.14);
  --paper: #1b232e;
  --surface: #293443;
  --gray-100: #26313f;
  --gray-200: #425069;
  --ink: #f1f5f9;
  --text: #dce4ed;
  --muted: #b8c5d6;
  --faint: #a0afc2;
  --blue: #60a5fa;
  --blue-strong: #93c5fd;
  --blue-soft: #223e64;
  --blue-light: #93c5fd;
  --on-dark: #f1f5f9;
  --on-dark-muted: #b8c5d6;
  --on-dark-faint: #a0afc2;
  --success: #86d4a3;
  --warning: #f5bd66;
}
[hidden] {
  display: none !important;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--graphite);
  color: var(--on-dark);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

p {
  text-wrap: pretty;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico-xs {
  width: 12px;
  height: 12px;
}

.ico-accent {
  color: var(--blue);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}

.skip-link:focus {
  top: 16px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-ghost {
  border: 1px solid var(--graphite-line);
  color: var(--on-dark);
}

.btn-ghost:hover {
  border-color: var(--on-dark-faint);
}

/* ---------- 舞台：粘性画布在下，文字层在上 ---------- */
.stage {
  position: relative;
}

/* 画布轨道铺满整个舞台高度，粘性层只在轨道内停留，滚出舞台后不会盖住下方内容。 */
.stage-track {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stage-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.scene {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.no-webgl .scene,
.no-webgl .scene-labels {
  display: none;
}

.scene-labels {
  position: absolute;
  inset: 0;
}

.scene-label {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  color: var(--on-dark);
  opacity: 0;
  will-change: transform, opacity;
}

.scene-label b {
  font-weight: 600;
}

.scene-label span {
  color: var(--on-dark-faint);
  font-variant-numeric: tabular-nums;
}

/* 指示条放在右侧图形下方，不压左栏文字。 */
.rail-wrap {
  position: absolute;
  left: 43%;
  right: 0;
  bottom: 28px;
  display: flex;
  justify-content: center;
}

.rail {
  display: flex;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s;
}

.rail.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.rail button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--on-dark-faint);
  transition: color 0.2s ease;
}

.rail button:hover {
  color: var(--on-dark);
}

.rail-pill {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #6b7889;
  transition:
    width 0.3s var(--ease-out),
    background-color 0.3s ease;
}

.rail button[aria-current="step"] {
  color: var(--on-dark);
}

.rail button[aria-current="step"] .rail-pill {
  width: 20px;
  background: var(--blue-light);
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 0 var(--gutter);
}

.topbar-inner {
  max-width: var(--shell);
  margin: 0 auto;
  min-height: 84px;
  gap: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark-sm {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 13px;
}

.brand-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--on-dark);
}

.topnav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.topnav-link {
  font-size: 14px;
  color: var(--on-dark-muted);
  transition: color 0.15s ease;
}

.topnav-link:hover {
  color: var(--on-dark);
}

/* ---------- 首屏 ---------- */
main {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px var(--gutter) 96px;
}

.hero-copy {
  max-width: 560px;
}

.hero-title {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  font-feature-settings: "palt" 1;
}

.hero-lede {
  margin-top: 28px;
  max-width: 30em;
  font-size: 17px;
  line-height: 1.85;
  color: var(--on-dark-muted);
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--on-dark-faint);
}

/* ---------- 四个环节 ---------- */
.chapter {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 96px var(--gutter) 120px;
}

.chapter-copy {
  max-width: 452px;
}

.chapter-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  color: var(--blue-light);
}

.chapter-title {
  margin-top: 14px;
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.35;
  font-weight: 700;
  color: var(--on-dark);
  font-feature-settings: "palt" 1;
}

.chapter-text {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--on-dark-muted);
}

/* 产品界面示意卡：沿用登录页轮播的白卡样式。 */
.preview {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 248px;
  padding: 20px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--graphite-line);
  box-shadow: 0 12px 40px -24px rgba(5, 10, 18, 0.3);
}

.pv-head {
  gap: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pv-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.pv-title .ico {
  color: var(--blue);
}

.pv-meta {
  max-width: 48%;
  text-align: right;
  font-size: 12px;
  color: var(--faint);
}

.pv-files {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.pv-files li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--paper);
}

.pv-file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-ok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--success);
}

.pv-foot {
  margin-top: 12px;
  font-size: 12px;
  text-align: center;
  color: var(--faint);
}

.pv-match-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pv-ring {
  position: relative;
  width: 56px;
  height: 56px;
  flex: none;
}

.pv-ring svg {
  width: 56px;
  height: 56px;
  transform: rotate(-90deg);
}

.pv-ring circle {
  fill: none;
  stroke-width: 6;
}

.pv-ring-track {
  stroke: var(--gray-200);
}

.pv-ring-value {
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-dasharray: 149 170;
}

.pv-ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.pv-person-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.pv-person-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.pv-scores {
  margin: 18px 0 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.pv-bar {
  display: block;
  height: 6px;
  margin-bottom: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--gray-200);
}

.pv-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.pv-bar.is-warn i {
  background: var(--warning);
}

.pv-reason {
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--paper);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.pv-board {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pv-col {
  padding: 10px;
  border-radius: 8px;
  background: var(--paper);
}

.pv-col-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 500;
}

.pv-col-head span + span {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.pv-ticket {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: var(--surface);
}

.pv-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.pv-avatar.is-strong {
  background: #2563eb;
  color: #fff;
}

.pv-ticket-name {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.pv-ticket-note {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 11px;
  white-space: normal;
  color: var(--faint);
}

.pv-stats {
  display: flex;
  gap: 32px;
  font-size: 12px;
  color: var(--muted);
}

.pv-stats strong {
  margin-right: 8px;
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.pv-chart {
  flex: none;
  height: 96px;
  min-height: 0;
  margin-top: 14px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.pv-chart i {
  display: block;
  width: 100%;
  max-width: 48px;
  margin: 0 auto;
  border-radius: 6px 6px 0 0;
  background: rgba(37, 99, 235, 0.22);
}

.pv-chart i.is-now {
  background: var(--blue);
}

.pv-weeks {
  margin-top: 8px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--faint);
}

/* ---------- 试用 ---------- */
.trial {
  position: relative;
  z-index: 1;
  background: var(--paper);
  color: var(--text);
  padding: clamp(88px, 11vw, 144px) var(--gutter);
}

.trial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}

.trial-title {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-feature-settings: "palt" 1;
}

.trial-text {
  margin-top: 24px;
  max-width: 28em;
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
}

.trial-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.trial .btn-primary:focus-visible,
.trial .text-link:focus-visible,
.footer a:focus-visible {
  outline-color: var(--blue);
}

.text-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
}

.text-link:hover {
  color: var(--blue-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.assurances {
  display: grid;
  gap: 32px;
  padding-top: 8px;
}

.assurances li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px;
}

.assurance-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
}

.assurance-icon .ico {
  width: 20px;
  height: 20px;
}

.assurances h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.assurances p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 页脚 ---------- */
.footer {
  position: relative;
  z-index: 1;
  background: var(--paper);
  color: var(--muted);
  padding: 0 var(--gutter);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
  border-top: 1px solid var(--gray-200);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-copy {
  margin-left: auto;
  color: var(--faint);
}

/* ---------- 窄屏：画布退到文字背后 ---------- */
@media (max-width: 959px) {
  .scene {
    opacity: 0.8;
  }
  .stage-sticky.is-story .scene {
    opacity: 0.12;
  }
  .scene-labels,
  .rail-wrap {
    display: none;
  }
  .hero {
    align-items: flex-end;
    padding-bottom: 72px;
  }
  .chapter {
    min-height: auto;
    padding: 72px var(--gutter);
  }
  .chapter-copy {
    max-width: 520px;
  }
  .trial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 599px) {
  .topnav {
    gap: 18px;
  }
  .topnav-link[href^="#"] {
    display: none;
  }
  .hero-lede,
  .trial-text {
    font-size: 16px;
  }
  .btn:not(.btn-sm) {
    height: 46px;
  }
  .preview {
    height: auto;
    min-height: 236px;
    padding: 16px;
  }
  .pv-scores {
    gap: 6px;
  }
  .pv-board {
    gap: 6px;
  }
  .pv-col {
    padding: 8px 6px;
  }
  .pv-ticket {
    padding: 8px 6px;
  }
  .footer-inner {
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 20px 0;
  }
  .footer-copy {
    margin-left: 0;
    width: 100%;
  }
}

/* Display controls remain reachable in either locale and without a 3D scene. */
.preferences {
  display: flex;
  align-items: center;
  gap: 4px;
  border-left: 1px solid var(--graphite-line);
  padding-left: 12px;
}
.preference {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  color: var(--on-dark-muted);
  cursor: pointer;
  background: transparent;
  white-space: nowrap;
}
.preference:hover {
  color: var(--on-dark);
  background: var(--gray-100);
}
.preference:disabled {
  cursor: default;
}
.preference-icon {
  font-size: 18px;
}
.eyebrow {
  margin-bottom: 22px;
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.registration-note {
  margin-top: 12px;
  color: var(--on-dark-faint);
  font-size: 13px;
  line-height: 1.7;
}
.trial .registration-note {
  color: var(--muted);
}
.preview-caption {
  margin-top: 12px;
  color: var(--on-dark-faint);
  font-size: 12px;
}
.product-facts,
.faq {
  position: relative;
  z-index: 1;
  background: var(--paper);
  color: var(--text);
  padding: 88px var(--gutter);
}
.facts-grid,
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 80px;
}
.section-label {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.product-facts h2,
.faq h2 {
  color: var(--ink);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.4;
}
.product-facts h2 + p {
  color: var(--muted);
  margin-top: 20px;
  max-width: 32em;
}
.facts-list {
  margin: 0;
}
.facts-list > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-200);
}
.facts-list dt {
  color: var(--muted);
  font-size: 14px;
}
.facts-list dd {
  margin: 0;
  font-size: 15px;
}
.faq {
  border-top: 1px solid var(--gray-200);
}
.faq details {
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--blue);
  font-size: 20px;
  line-height: 1.4;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  padding: 14px 28px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.footer-links {
  flex-wrap: wrap;
}
@media (max-width: 1100px) {
  .topbar-inner {
    gap: 14px;
  }
  .topnav {
    gap: 14px;
  }
}
@media (max-width: 959px) {
  .facts-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero {
    padding-top: 180px;
  }
  .product-facts,
  .faq {
    padding: 64px var(--gutter);
  }
}
@media (max-width: 599px) {
  .topbar-inner {
    flex-wrap: wrap;
    padding-top: 18px;
    gap: 10px;
  }
  .preferences {
    width: 100%;
    justify-content: flex-end;
    border-left: 0;
    padding-left: 0;
  }
  .preference {
    min-height: 40px;
  }
  .topnav {
    gap: 10px;
  }
  .brand {
    gap: 8px;
  }
  .brand-name {
    font-size: 15px;
  }
  .topnav .btn-sm {
    padding: 0 12px;
    font-size: 13px;
  }
  .hero {
    padding-bottom: 56px;
  }
  .hero-title {
    font-size: clamp(36px, 10vw, 48px);
  }
  .hero-lede {
    margin-top: 22px;
  }
  .hero-actions {
    margin-top: 28px;
  }
  .facts-list > div {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scene,
  .rail,
  .rail-pill,
  .btn,
  .preference {
    transition: none;
  }
}

html[lang="en"] .hero-title {
  font-size: clamp(32px, 4.6vw, 64px);
}
@media (max-width: 959px) {
  .hero {
    align-items: flex-start;
    padding-top: 340px;
  }
  html[lang="en"] .hero-title {
    font-size: clamp(32px, 7vw, 44px);
  }
}
