:root {
  --ink: #17212f;
  --muted: #5f6c7b;
  --line: #d9e1ea;
  --soft: #f4f7fa;
  --paper: #ffffff;
  --blue: #1f3a5b;
  --blue-2: #2b5f89;
  --red: #be3a2b;
  --green: #2c8467;
  --amber: #b57a2a;
  --focus: #0b69c7;
  --shadow: 0 18px 42px rgba(23, 33, 47, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f6f8fb;
  color: var(--ink);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Segoe UI",
    Arial,
    sans-serif;
  line-height: 1.65;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 225, 234, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: #fff;
  background: var(--blue);
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 20px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  line-height: 1.25;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  min-width: 56px;
  padding: 9px 12px;
  color: var(--muted);
  border-radius: var(--radius);
  text-align: center;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--blue);
  background: #eef3f8;
  outline: none;
}

.main-nav a.is-active {
  color: var(--blue);
  background: #eaf1f7;
  font-weight: 800;
}

.unlock-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 320px;
  padding: 12px 18px;
  color: #6b7785;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #dce5ee;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(23, 43, 67, 0.08);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.unlock-number-wrap {
  display: grid;
  justify-items: center;
  gap: 4px;
  line-height: 1;
}

.unlock-counter strong {
  color: #172b43;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  transition: transform 0.18s ease, color 0.18s ease;
}

.unlock-number-wrap em {
  display: block;
  width: 42px;
  height: 6px;
  border: 1px solid rgba(153, 39, 34, 0.24);
  border-radius: 999px;
  background: linear-gradient(90deg, #c92d26, #f2b7a3);
  box-shadow: 0 5px 14px rgba(201, 45, 38, 0.2);
}

.unlock-counter span {
  font-size: 15px;
  line-height: 1.2;
}

.unlock-counter.is-bumped strong {
  color: var(--red);
  transform: translateY(-1px) scale(1.08);
}

.top-status {
  display: grid;
  gap: 2px;
  min-width: 190px;
  max-width: 270px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue);
  background: #fff;
  text-align: right;
}

.account-area {
  position: relative;
  justify-self: end;
}

.top-status {
  width: 100%;
  appearance: none;
  cursor: pointer;
}

.top-status:hover,
.top-status:focus-visible {
  border-color: #aebdcb;
  background: #f9fbfd;
  outline: none;
}

.top-status strong,
.top-status small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-status strong {
  font-size: 13px;
  line-height: 1.25;
}

.top-status small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  width: min(280px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
}

.account-menu p,
.account-menu span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.account-menu strong {
  color: var(--blue);
}

.account-menu-action {
  justify-self: start;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(620px, 70svh);
  padding: 56px clamp(20px, 6vw, 92px);
  overflow: hidden;
  background-color: #f7f9fc;
  background-image:
    linear-gradient(90deg, rgba(247, 249, 252, 0.99) 0%, rgba(247, 249, 252, 0.96) 58%, rgba(247, 249, 252, 0.84) 100%),
    url("./assets/office-training-scene.png");
  background-position: center right;
  background-size: cover;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero .unlock-counter {
  position: absolute;
  top: clamp(42px, 8vw, 72px);
  right: clamp(14px, 2.6vw, 52px);
  z-index: 2;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--blue);
  font-size: 48px;
  line-height: 1.12;
}

.tagline {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
}

.tagline span {
  display: block;
}

.hero-copy {
  max-width: 590px;
  margin: 18px 0 0;
  color: #334154;
  font-size: 17px;
  word-break: normal;
}

.hero-copy span {
  display: inline;
}

.hero-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-categories span {
  padding: 6px 10px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(217, 225, 234, 0.94);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.stage-card:focus-visible,
.choice-button:focus-visible {
  outline: 3px solid rgba(11, 105, 199, 0.25);
  outline-offset: 2px;
}

.button-primary {
  color: #fff;
  background: var(--red);
}

.button-primary:hover {
  background: #a93025;
}

.button-secondary {
  color: var(--blue);
  background: #fff;
  border-color: #cbd7e4;
}

.button-secondary:hover {
  border-color: var(--blue-2);
  background: #f3f7fb;
}

.button-ghost {
  color: var(--blue);
  background: transparent;
  border-color: var(--line);
}

.button-icon {
  flex: 0 0 auto;
}

.section {
  padding: 64px clamp(18px, 4vw, 56px);
  scroll-margin-top: 86px;
}

.profile-section,
.rank-section {
  background: var(--paper);
}

.training-section {
  background: #eef3f8;
}

.transfer-section {
  background: #f6f8fb;
}

.report-section {
  background: #f6f8fb;
}

.ai-review-section {
  background: #f6f8fb;
}

.section-heading {
  width: min(920px, 100%);
  max-width: 920px;
  margin: 0 auto 28px;
}

.section-heading h2 {
  margin: 0;
  color: var(--blue);
  font-size: 32px;
  line-height: 1.25;
}

.training-update-note {
  display: inline-flex;
  width: auto;
  margin: 12px 0 0;
  padding: 6px 12px;
  border: 1px solid rgba(201, 45, 38, 0.18);
  border-radius: var(--radius);
  color: #9b2b26;
  background: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  font-weight: 800;
}

.training-value-copy {
  width: min(820px, 100%);
  max-width: 820px;
  margin: 10px 0 0;
  color: #334154;
  font-size: 17px;
  font-weight: 700;
}

.section-heading p:last-child {
  width: min(720px, 100%);
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.section-heading .training-update-note {
  width: auto;
  max-width: none;
  color: #9b2b26;
}

.section-copy span {
  display: inline;
}

.profile-layout,
.training-layout,
.report-layout,
.ai-review-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}

.profile-form,
.profile-summary,
.training-map,
.challenge-panel,
.rank-overview,
.rank-ladder,
.report-panel,
.ability-panel,
.ai-review-form,
.ai-review-result {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(23, 33, 47, 0.045);
}

.ai-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 20px;
  align-items: start;
}

.ai-review-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.ai-review-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.ai-review-form label span {
  font-size: 14px;
}

.ai-review-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #cbd7e4;
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  resize: vertical;
}

.ai-review-form textarea:focus {
  border-color: var(--focus);
  outline: 3px solid rgba(11, 105, 199, 0.16);
}

.developing-banner {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid rgba(190, 58, 43, 0.22);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  background: #fff8f6;
}

.developing-banner strong {
  color: var(--red);
  font-size: 17px;
}

.developing-banner span {
  color: #5f6c7b;
  font-size: 14px;
}

.voice-input-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px dashed #cbd7e4;
  border-radius: var(--radius);
  background: #f7fafc;
}

.voice-input-card strong {
  color: var(--blue);
}

.voice-input-card p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.ai-review-submit {
  justify-self: start;
  min-width: 150px;
}

.ai-review-result {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 480px;
  padding: 22px;
}

.ai-result-empty {
  display: grid;
  place-content: center;
  gap: 8px;
  min-height: 432px;
  padding: 24px;
  text-align: center;
  border: 1px dashed #cbd7e4;
  border-radius: var(--radius);
  background: #f7fafc;
}

.ai-result-empty strong {
  color: var(--blue);
  font-size: 22px;
}

.ai-result-empty p {
  width: min(360px, 100%);
  margin: 0 auto;
  color: var(--muted);
}

.ai-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(43, 95, 137, 0.16);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  background: #f5f8fb;
}

.ai-result-head span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.ai-result-head strong {
  color: var(--blue);
  font-size: 46px;
  line-height: 1;
}

.ai-result-note {
  margin: 0;
  color: var(--muted);
}

.ai-score-list {
  display: grid;
  gap: 12px;
}

.ai-score-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
}

.ai-score-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-score-meta strong {
  color: var(--blue);
}

.ai-score-meta span {
  color: var(--red);
  font-weight: 900;
}

.ai-score-bar {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e8eef4;
}

.ai-score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

.ai-score-item p,
.ai-suggestion-list p {
  margin: 0;
  color: #4d5d6f;
}

.ai-suggestion-list {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(190, 58, 43, 0.18);
  border-radius: var(--radius);
  background: #fff8f6;
}

.ai-suggestion-list strong {
  color: var(--red);
}

.profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
}

.profile-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

.profile-form label span {
  font-size: 14px;
}

.profile-form input,
.profile-form select {
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #cbd7e4;
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}

.profile-form input:focus,
.profile-form select:focus {
  border-color: var(--focus);
  outline: 3px solid rgba(11, 105, 199, 0.16);
}

.profile-form .button {
  align-self: end;
  min-width: 150px;
}

.profile-summary {
  padding: 22px;
}

.profile-summary h3,
.training-map h3,
.ability-panel h3 {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 20px;
}

.profile-summary dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.profile-summary .summary-row {
  display: grid;
  gap: 2px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.profile-summary dt {
  color: var(--muted);
  font-size: 12px;
}

.profile-summary dd {
  margin: 0;
  font-weight: 700;
}

.training-layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.training-map {
  position: sticky;
  top: 92px;
  max-height: calc(100svh - 112px);
  padding: 20px;
  overflow-y: auto;
}

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

.map-title h3 {
  margin-bottom: 0;
}

.map-title span {
  min-width: 64px;
  padding: 5px 8px;
  color: var(--green);
  background: #e7f3ef;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
}

.stage-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.module-list {
  margin-bottom: 10px;
}

.module-switcher {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: stretch;
  gap: 7px;
}

.module-nav {
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue);
  background: #fff;
}

.module-nav:hover:not(:disabled) {
  border-color: var(--blue);
  background: #edf3f8;
}

.module-nav:disabled {
  cursor: not-allowed;
  color: #b4bec9;
  background: #f5f7f9;
}

.module-tab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.module-tab:hover {
  border-color: #aebdcb;
}

.module-tab.is-active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: inset 3px 0 0 var(--green);
}

.module-tab.is-empty {
  color: #7a8491;
  background: #f7f9fb;
}

.module-tab-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.module-tab-end {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.module-tab small {
  padding: 3px 6px;
  border-radius: 6px;
  color: var(--muted);
  background: #eef2f6;
  font-size: 12px;
}

.module-tab.is-active small {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.module-stage-list {
  margin: 0;
  padding: 0;
  border-left: 0;
}

.module-stage-list .stage-card {
  grid-template-columns: 32px minmax(0, 1fr);
  min-height: 58px;
  padding: 9px;
}

.module-stage-list .stage-card-index {
  width: 32px;
  height: 32px;
}

.module-stage-list .stage-card-meta {
  display: none;
}

.module-stage-list .stage-card-state {
  grid-column: 2;
  justify-self: start;
  margin-top: -4px;
}

.module-stage-list .stage-empty {
  padding: 12px;
}

.stage-empty {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px dashed #cbd7e4;
  border-radius: var(--radius);
  color: var(--muted);
  background: #f8fafc;
}

.stage-empty strong {
  color: var(--blue);
}

.stage-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.stage-card:hover {
  border-color: #aebdcb;
}

.stage-card.is-active {
  border-color: var(--blue);
  box-shadow: inset 4px 0 0 var(--blue);
}

.stage-card.is-complete {
  border-color: rgba(44, 132, 103, 0.35);
  background: #f1f8f5;
}

.stage-card.is-locked {
  color: #7a8491;
  background: #f3f5f7;
}

.stage-card-index {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--blue);
  border-radius: var(--radius);
  font-weight: 800;
}

.stage-card.is-complete .stage-card-index {
  background: var(--green);
}

.stage-card.is-locked .stage-card-index {
  background: #8b97a4;
}

.stage-card-title {
  display: block;
  font-weight: 800;
  line-height: 1.35;
}

.stage-card-meta {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.stage-card-state {
  align-self: start;
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--muted);
  background: #eef2f6;
  font-size: 12px;
  white-space: nowrap;
}

.stage-card-state.is-free {
  color: var(--green);
  background: #e7f3ef;
}

.stage-card-state.is-paid {
  color: var(--red);
  background: #f8e9e6;
}

.stage-card-state.is-login {
  color: var(--blue);
  background: #edf3f8;
}

.challenge-panel {
  min-height: 640px;
  padding: clamp(20px, 3vw, 32px);
}

.challenge-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--blue);
  background: #eef3f8;
  font-size: 13px;
  font-weight: 700;
}

.tag-green {
  color: var(--green);
  background: #e7f3ef;
}

.tag-red {
  color: var(--red);
  background: #f8e9e6;
}

.challenge-panel h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 28px;
  line-height: 1.25;
}

.scene-block {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  background: #fbfcfd;
}

.scene-block strong {
  color: var(--blue);
}

.scene-block p {
  margin: 0;
  color: #2f3c4d;
}

.task-block {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  margin: 18px 0 22px;
  padding: 14px 16px;
  border: 1px solid #dce5ee;
  border-radius: var(--radius);
  background: #f5f8fb;
}

.task-first {
  margin-top: 12px;
  border-color: rgba(31, 58, 91, 0.2);
  background: #f3f7fb;
}

.task-block strong {
  color: var(--blue);
}

.task-block p {
  margin: 0;
  color: #36465a;
}

.question-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 19px;
}

.choices {
  display: grid;
  gap: 10px;
}

.step-progress,
.selected-history,
.step-card,
.locked-question,
.paywall-panel,
.true-question {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.step-card {
  scroll-margin-top: 96px;
}

.step-progress {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.step-progress strong,
.selected-history > strong {
  color: var(--blue);
}

.selected-history {
  display: grid;
  gap: 10px;
}

.history-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: #f7f9fb;
}

.history-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.history-item p {
  margin: 0;
}

.history-item.is-correct {
  box-shadow: inset 4px 0 0 var(--green);
}

.history-item.is-wrong {
  box-shadow: inset 4px 0 0 var(--amber);
}

.process-feedback {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid rgba(43, 95, 137, 0.24);
  border-left: 5px solid var(--blue-2);
  border-radius: var(--radius);
  background: #f5f8fb;
}

.process-feedback.is-complete {
  border-color: rgba(44, 132, 103, 0.32);
  border-left-color: var(--green);
  background: #f1f8f5;
}

.process-feedback-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.process-feedback-head strong {
  color: var(--blue);
}

.process-feedback-head span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.process-feedback p {
  margin: 0;
  color: #334154;
}

.step-card {
  display: grid;
  gap: 12px;
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.step-head strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}

.step-principle {
  margin: 0;
  padding: 10px 12px;
  color: #36465a;
  background: #f5f8fb;
  border-radius: var(--radius);
}

.choice-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 12px;
  border: 1px solid #cbd7e4;
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.choice-button:hover {
  border-color: var(--blue-2);
}

.choice-button.is-selected {
  border-color: var(--blue);
  box-shadow: inset 4px 0 0 var(--blue);
}

.choice-button.is-correct {
  border-color: rgba(44, 132, 103, 0.55);
  background: #f1f8f5;
}

.choice-letter {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}

.analysis {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.analysis-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.analysis-box strong {
  display: block;
  margin-bottom: 7px;
  color: var(--blue);
}

.analysis-box p {
  margin: 0;
  color: #334154;
}

.readable-copy {
  color: #334154;
}

.readable-copy p {
  margin: 0;
  line-height: 1.9;
}

.readable-copy p + p {
  margin-top: 12px;
}

.score-line {
  margin-top: 10px !important;
  color: var(--green) !important;
  font-weight: 700;
}

.thinking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.thinking-grid > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.thinking-grid .student-thinking-box {
  border-color: rgba(44, 132, 103, 0.28);
  background: #eaf7ef;
}

.thinking-grid .office-thinking-box {
  border-color: rgba(190, 58, 43, 0.28);
  background: #fff0ec;
}

.thinking-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
}

.thinking-grid p {
  margin: 0;
  color: #334154;
}

.locked-question {
  color: var(--muted);
  background: #f8fafc;
  border-style: dashed;
}

.locked-question strong,
.true-question strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
}

.locked-question p,
.true-question p {
  margin: 0;
}

.true-question {
  display: grid;
  gap: 12px;
  border-color: rgba(44, 132, 103, 0.36);
  background: #f1f8f5;
}

.transfer-pack-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.transfer-pack-head > div {
  display: grid;
  gap: 5px;
}

.transfer-pack-head p {
  margin: 0;
  color: var(--muted);
}

.transfer-pack-head span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.transfer-note {
  color: #334154;
}

.transfer-question-list {
  display: grid;
  gap: 10px;
}

.transfer-page-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.transfer-page-card {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 36px rgba(23, 33, 47, 0.08);
}

.transfer-question-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(44, 132, 103, 0.22);
  border-radius: var(--radius);
  background: #fff;
}

.transfer-page-card .transfer-question-item {
  border-color: #d9e4ee;
  background: #fbfcfd;
}

.transfer-question-item > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.transfer-question-item em {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.transfer-question-item a,
.transfer-source-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.transfer-migration {
  margin-top: 8px !important;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.answer-lock-card {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 13px;
  border: 1px dashed rgba(190, 58, 43, 0.34);
  border-radius: var(--radius);
  background: #fff8f6;
}

.answer-lock-card strong {
  margin-bottom: 0;
  color: var(--red);
}

.answer-lock-card p {
  color: #36465a;
}

.answer-lock-card .button {
  justify-self: start;
}

.transfer-answer-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.transfer-framework-button {
  justify-self: start;
  cursor: help;
}

.transfer-framework-button[aria-disabled="true"]:hover {
  transform: none;
}

.mistake-list {
  margin: 0;
  padding-left: 20px;
  color: #334154;
}

.mistake-list li + li {
  margin-top: 6px;
}

.answer-script {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(44, 132, 103, 0.22);
  border-radius: var(--radius);
  background: #fff;
}

.answer-script strong {
  margin-bottom: 0;
}

.answer-script .readable-copy p {
  color: #334154;
}

.true-question .button {
  justify-self: start;
}

.paywall-panel {
  display: grid;
  gap: 14px;
  border-color: rgba(190, 58, 43, 0.25);
  background: #fff8f6;
}

.paywall-panel > strong {
  color: var(--red);
  font-size: 22px;
}

.paywall-panel p {
  margin: 0;
  color: #36465a;
}

.paywall-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.paywall-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius);
  background: #fff;
}

.paywall-price span {
  color: var(--muted);
}

.paywall-price strong {
  color: var(--red);
  font-size: 30px;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 33, 47, 0.54);
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, calc(100svh - 40px));
  overflow-y: auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  margin: 0;
  color: var(--blue);
  font-size: 28px;
}

.modal-panel .eyebrow {
  margin-bottom: 6px;
}

.modal-copy {
  margin: 9px 0 0;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
  z-index: 1;
}

.modal-close:hover {
  color: var(--blue);
  border-color: #aebdcb;
}

.auth-layout {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 20px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f5f8fb;
}

.auth-tab {
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.auth-tab.is-active {
  color: #fff;
  background: var(--blue);
}

.auth-form {
  display: grid;
  max-width: 520px;
  gap: 13px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 700;
}

.auth-form label span {
  font-size: 13px;
}

.auth-form input {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #cbd7e4;
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}

.auth-form input:focus {
  border-color: var(--focus);
  outline: 3px solid rgba(11, 105, 199, 0.16);
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.code-button {
  width: auto;
  min-width: 74px;
  padding: 0 14px;
}

.auth-pane[hidden] {
  display: none;
}

.auth-divider {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  gap: 8px;
  place-items: center;
  color: var(--muted);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  width: 1px;
  height: 100%;
  background: var(--line);
}

.auth-divider span {
  position: static;
  font-size: 12px;
}

.wechat-auth {
  max-width: 520px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  padding: 8px;
  text-align: center;
}

.wechat-auth strong {
  color: var(--blue);
}

.wechat-auth p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  width: 126px;
  aspect-ratio: 1;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  color: var(--blue);
  background: #f5f8fb;
  font-size: 13px;
  font-weight: 800;
}

.membership-modal {
  display: grid;
  gap: 18px;
  width: min(460px, 100%);
}

.membership-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 14px;
  border: 1px solid rgba(190, 58, 43, 0.2);
  border-radius: var(--radius);
  background: #fff8f6;
}

.membership-price span {
  color: var(--muted);
}

.membership-price strong {
  color: var(--red);
  font-size: 30px;
}

.payment-success-modal {
  display: grid;
  gap: 18px;
  width: min(720px, 100%);
}

.fulfillment-form {
  display: grid;
  gap: 16px;
  margin-top: 4px;
}

.fulfillment-step {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
}

.fulfillment-step-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.fulfillment-step-head span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.fulfillment-step-head strong {
  color: var(--blue);
  font-size: 18px;
}

.fulfillment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fulfillment-grid label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 700;
}

.fulfillment-grid label span {
  font-size: 13px;
}

.fulfillment-grid input,
.fulfillment-grid textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #cbd7e4;
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}

.fulfillment-grid textarea {
  resize: vertical;
}

.fulfillment-grid input:focus,
.fulfillment-grid textarea:focus {
  border-color: var(--focus);
  outline: 3px solid rgba(11, 105, 199, 0.16);
}

.full-line {
  grid-column: 1 / -1;
}

.wechat-follow-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.wechat-code {
  display: block;
  width: 150px;
  height: auto;
  padding: 6px;
  border: 1px solid #dbe6ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(24, 52, 82, 0.1);
}

.wechat-follow-card p {
  margin: 0 0 10px;
  color: #36465a;
}

.wechat-qr-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  margin: 6px 0 2px;
  align-items: center;
}

.wechat-qr {
  width: 112px;
  height: auto;
  padding: 4px;
  border: 1px solid #dbe6ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(24, 52, 82, 0.08);
}

.wechat-qr-copy {
  display: grid;
  gap: 6px;
}

.wechat-qr-copy strong {
  color: var(--blue);
  font-size: 15px;
}

.wechat-qr-copy span {
  color: #516174;
  font-size: 13px;
  line-height: 1.6;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.check-line input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--green);
}

.member-panel {
  min-height: 160px;
}

.member-empty {
  display: grid;
  gap: 12px;
  max-width: 680px;
  padding: 24px;
  border: 1px dashed #b8c7d6;
  border-radius: var(--radius);
  background: #fbfcfd;
}

.member-empty strong {
  color: var(--blue);
  font-size: 20px;
}

.member-empty p {
  margin: 0;
  color: var(--muted);
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.member-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 156px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.member-card > span,
.member-card-head > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.member-card > strong {
  color: var(--blue);
  font-size: 23px;
  line-height: 1.25;
}

.member-card p {
  margin: 0;
  color: #4d5d6f;
}

.member-card .account-menu-action {
  margin-top: 4px;
}

.testimonial-submit-card textarea {
  width: 100%;
  min-height: 104px;
  padding: 10px 12px;
  border: 1px solid #cbd7e4;
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  resize: vertical;
}

.testimonial-submit-card textarea:focus {
  border-color: var(--focus);
  outline: 3px solid rgba(11, 105, 199, 0.16);
}

.testimonial-submit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.testimonial-submit-actions small {
  color: var(--muted);
  font-size: 12px;
}

.member-status.is-free {
  border-color: rgba(43, 95, 137, 0.25);
  background: #f5f8fb;
}

.member-status.is-login {
  border-color: rgba(181, 122, 42, 0.34);
  background: #fff9ef;
}

.member-status.is-paid {
  border-color: rgba(190, 58, 43, 0.28);
  background: #fff5f2;
}

.member-status.is-beta {
  border-color: rgba(44, 132, 103, 0.34);
  background: #f1f8f5;
}

.member-wide {
  grid-column: span 2;
  min-height: 128px;
}

.member-invite {
  grid-column: span 2;
}

.member-invite small {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.member-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.member-card-head strong {
  color: var(--blue);
}

.invite-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 4px;
}

.invite-link-row input {
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #cbd7e4;
  border-radius: var(--radius);
  color: #4d5d6f;
  background: #fbfcfd;
}

.invite-link-row .button {
  width: auto;
}

.invite-list,
.benefit-list {
  display: grid;
  gap: 7px;
  margin: 2px 0 0;
  padding-left: 20px;
}

.invite-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #36465a;
}

.invite-list li span {
  color: var(--muted);
  font-size: 12px;
}

.invite-list .is-empty {
  color: var(--muted);
}

.benefit-list li {
  color: #36465a;
}

.feedback-grid {
  display: block;
}

.feedback-scrollbox {
  display: grid;
  gap: 14px;
  max-height: 520px;
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  scrollbar-color: #aebdcb #edf2f6;
  scrollbar-width: thin;
}

.feedback-message {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.feedback-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(23, 33, 47, 0.12);
}

.feedback-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.feedback-avatar span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.avatar-tone-1 {
  background: #2c8467;
}

.avatar-tone-2 {
  background: #2b5f89;
}

.avatar-tone-3 {
  background: #be3a2b;
}

.avatar-tone-4 {
  background: #7a5b96;
}

.avatar-tone-5 {
  background: #b57a2a;
}

.avatar-tone-6 {
  background: #4b6f44;
}

.feedback-bubble {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #dbe4ed;
  border-radius: var(--radius);
  background: #fff;
}

.feedback-person {
  display: grid;
  gap: 2px;
}

.feedback-person strong {
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.feedback-person span {
  color: var(--muted);
  font-size: 13px;
}

.feedback-bubble p {
  margin: 0;
  color: #334154;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.benefits-wrap {
  position: relative;
  width: fit-content;
}

.benefits-link {
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.benefits-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 2;
  width: 270px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 26px rgba(23, 33, 47, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 150ms ease, transform 150ms ease;
  visibility: hidden;
}

.benefits-tooltip strong {
  display: block;
  margin-top: 10px;
  color: var(--blue);
}

.benefits-tooltip strong:first-child {
  margin-top: 0;
}

.benefits-tooltip ol {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
}

.benefits-wrap:hover .benefits-tooltip,
.benefits-wrap:focus-within .benefits-tooltip,
.benefits-wrap.is-open .benefits-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.challenge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.rank-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  padding: 22px;
}

.rank-current h3 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 24px;
}

.rank-current p {
  margin: 0;
  color: var(--muted);
}

.rank-meter {
  align-self: center;
}

.meter-bar {
  height: 14px;
  overflow: hidden;
  background: #e8eef4;
  border-radius: 6px;
}

.meter-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--green);
  transition: width 0.25s ease;
}

.meter-caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.rank-ladder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.rank-step {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.rank-step strong {
  display: block;
  color: var(--ink);
  line-height: 1.35;
}

.rank-step span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.rank-step.is-current {
  border-color: var(--red);
  box-shadow: inset 0 4px 0 var(--red);
}

.rank-step.is-reached {
  background: #f1f8f5;
  border-color: rgba(44, 132, 103, 0.32);
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 20px;
}

.report-panel,
.ability-panel {
  padding: 22px;
}

.report-panel h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 24px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.report-stat {
  min-height: 92px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
}

.report-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.report-stat strong {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  font-size: 24px;
  line-height: 1.2;
}

.recommend-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recommend-list li {
  padding: 11px 12px;
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  background: #fff9ef;
}

.ability-list {
  display: grid;
  gap: 14px;
}

.ability-row {
  display: grid;
  gap: 7px;
}

.ability-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
}

.ability-head span:last-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.ability-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 6px;
  background: #e8eef4;
}

.ability-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue-2);
  transition: width 0.25s ease;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 22px clamp(18px, 4vw, 56px);
  color: #dbe5ef;
  background: #17212f;
}

.site-footer span {
  color: #aebdcb;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  max-width: 340px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(23, 33, 47, 0.96);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
  }

  .main-nav {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .top-status {
    justify-self: start;
    text-align: left;
  }

  .unlock-counter {
    justify-self: start;
    min-width: 280px;
    padding: 10px 14px;
  }

  .hero .unlock-counter {
    top: 28px;
    right: 20px;
  }

  .account-area {
    justify-self: start;
  }

  .hero {
    min-height: 64svh;
    background-position: center;
  }

  h1 {
    font-size: 40px;
  }

  .profile-layout,
  .training-layout,
  .report-layout,
  .ai-review-layout,
  .rank-overview {
    grid-template-columns: 1fr;
  }

  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-invite,
  .member-wide {
    grid-column: span 2;
  }

  .feedback-scrollbox {
    max-height: 500px;
  }

  .training-map {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .rank-ladder {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: auto;
    padding: 10px 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 15px;
  }

  .main-nav a {
    min-width: 64px;
    min-height: 40px;
  }

  .unlock-counter {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
  }

  .hero .unlock-counter {
    position: relative;
    top: auto;
    right: auto;
    margin: 0 0 18px;
  }

  .hero {
    min-height: 60svh;
    padding: 42px 18px;
    background-position: 58% center;
  }

  .hero-backdrop {
    background: rgba(247, 249, 252, 0.42);
  }

  h1 {
    font-size: 34px;
  }

  .tagline {
    font-size: 20px;
  }

  .hero-copy {
    font-size: 15px;
    max-width: 100%;
    word-break: break-all;
  }

  .hero-copy span {
    display: block;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-categories {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 14px;
  }

  .section p,
  .section li,
  .section dd,
  .section dt {
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .section-copy span {
    display: block;
  }

  .profile-form {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .profile-form .button,
  .button {
    width: 100%;
  }

  .profile-summary,
  .training-map,
  .challenge-panel,
  .report-panel,
  .ability-panel {
    padding: 16px;
  }

  .module-tab {
    min-height: 46px;
  }

  .modal-backdrop {
    padding: 14px;
  }

  .modal-panel {
    max-height: calc(100svh - 28px);
    padding: 22px 18px;
  }

  .modal-panel h2 {
    font-size: 24px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .auth-tabs {
    gap: 4px;
  }

  .auth-tab {
    min-height: 38px;
    padding-inline: 6px;
    font-size: 13px;
  }

  .auth-divider {
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: none;
    gap: 10px;
  }

  .auth-divider::before,
  .auth-divider::after {
    width: 100%;
    height: 1px;
  }

  .wechat-auth {
    padding-bottom: 0;
  }

  .benefits-tooltip {
    bottom: auto;
    top: calc(100% + 10px);
    width: min(270px, calc(100vw - 64px));
  }

  .stage-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .stage-card-state {
    grid-column: 2;
    justify-self: start;
  }

  .task-block {
    grid-template-columns: 1fr;
  }

  .step-progress,
  .history-item,
  .thinking-grid {
    grid-template-columns: 1fr;
  }

  .process-feedback-head,
  .member-card-head,
  .invite-list li {
    display: grid;
  }

  .step-progress,
  .paywall-price {
    display: grid;
  }

  .true-question .button {
    justify-self: stretch;
  }

  .challenge-panel h3 {
    font-size: 24px;
  }

  .choice-button {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .rank-ladder {
    grid-template-columns: 1fr;
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .member-grid {
    grid-template-columns: 1fr;
  }

  .ai-review-form,
  .ai-review-result {
    padding: 16px;
  }

  .voice-input-card,
  .ai-score-meta,
  .ai-result-head {
    display: grid;
  }

  .voice-input-card .button,
  .ai-review-submit {
    width: 100%;
  }

  .feedback-scrollbox {
    max-height: 440px;
    padding: 12px;
  }

  .feedback-message {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .feedback-avatar {
    width: 40px;
    border-radius: 10px;
  }

  .member-invite,
  .member-wide {
    grid-column: auto;
  }

  .member-card {
    min-height: auto;
  }

  .testimonial-submit-actions {
    display: grid;
  }

  .testimonial-submit-actions .button {
    width: 100%;
  }

  .fulfillment-grid {
    grid-template-columns: 1fr;
  }

  .full-line {
    grid-column: auto;
  }

  .wechat-follow-card {
    grid-template-columns: 1fr;
  }

  .wechat-code {
    width: 152px;
  }

  .invite-link-row,
  .code-row {
    grid-template-columns: 1fr;
  }

  .invite-link-row .button,
  .code-button {
    width: 100%;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
  }
}
