:root {
  --bg: #f8fbff;
  --bg-soft: #f3f7ff;
  --card-bg: rgba(255, 255, 255, 0.98);
  --text-1: #152b57;
  --text-2: #5d739b;
  --heading: #112a5f;
  --brand: #1f62ff;
  --brand-2: #3d88ff;
  --border: rgba(31, 98, 255, 0.12);
  --shadow: 0 18px 40px rgba(18, 47, 104, 0.08);
  --shadow-strong: 0 22px 48px rgba(31, 98, 255, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 42%, #f8fbff 100%);
  color: var(--text-1);
}

body > main {
  flex: 1 0 auto;
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 98, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}

.header-brand {
  color: #17305f;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  gap: 20px;
}

.header-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(31, 98, 255, 0.12);
  background: rgba(255, 255, 255, 0.86);
}

.header-lang-switch a {
  min-width: 44px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #355081;
  font-size: 13px;
  font-weight: 700;
}

.header-lang-switch a.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
}

.header-nav a {
  color: #17305f;
  font-weight: 600;
}

.header-nav a:hover {
  color: var(--brand);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.footer-links a:hover {
  color: #ffffff;
}

.hero {
  padding: 44px 0 30px;
  background:
    radial-gradient(circle at 18% 10%, rgba(31, 98, 255, 0.08), transparent 26%),
    radial-gradient(circle at 82% 16%, rgba(65, 155, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 28px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(40px, 4.8vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #10285a;
}

.hero-copy p {
  margin: 18px 0 0;
  max-width: 620px;
  color: #5a719b;
  font-size: 17px;
  line-height: 1.9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 98, 255, 0.18);
}

.btn-primary:hover,
.btn-secondary:hover {
  box-shadow: 0 22px 44px rgba(18, 47, 104, 0.12);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(31, 98, 255, 0.16);
  color: var(--brand);
}

.community-prompt {
  display: grid;
  gap: 6px;
  max-width: 420px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(31, 98, 255, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(18, 47, 104, 0.08);
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.community-prompt:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 98, 255, 0.22);
  box-shadow: 0 20px 40px rgba(18, 47, 104, 0.12);
}

.community-prompt strong {
  color: #163061;
  font-size: 16px;
  line-height: 1.35;
}

.community-prompt span:last-child {
  color: #58709a;
  font-size: 14px;
  line-height: 1.72;
}

.community-prompt-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 98, 255, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  max-width: 520px;
  display: block;
  border-radius: 24px;
}

.section {
  padding: 44px 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(243, 247, 255, 0.92), rgba(255, 255, 255, 0.96));
}

.section-head {
  margin-bottom: 26px;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.card,
.topic,
.about-qr-card {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.96) 100%);
  box-shadow: var(--shadow);
}

.card,
.topic {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover,
.topic:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 98, 255, 0.18);
  box-shadow: 0 22px 44px rgba(18, 47, 104, 0.12);
}

.card {
  min-height: 220px;
  padding: 20px;
}

.card-mark {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.card h3,
.topic h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: #162f68;
}

.card p,
.topic p,
.about-copy p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.85;
}

.topic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 16px;
}

.topic-side {
  display: grid;
  gap: 16px;
}

.topic {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 20px;
}

.topic-feature {
  border-color: rgba(31, 98, 255, 0.18);
  box-shadow: var(--shadow-strong);
}

.topic-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 98, 255, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.topic-badge-muted {
  background: rgba(99, 117, 153, 0.1);
  color: #637599;
}

.topic-preview {
  margin-top: 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(31, 98, 255, 0.12);
  background: linear-gradient(180deg, #eff5ff 0%, #ffffff 100%);
}

.topic-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
}

.topic-link {
  margin-top: auto;
  padding-top: 14px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(31, 98, 255, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.about-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  color: var(--heading);
}

.about-copy p {
  margin-top: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(31, 98, 255, 0.1);
  background: rgba(255, 255, 255, 0.84);
  color: #20407c;
  font-size: 13px;
  font-weight: 700;
}

.about-qr-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-qr-card img {
  display: block;
  width: 100%;
  max-width: 170px;
  margin: 0 auto;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(31, 98, 255, 0.1);
}

.about-qr-title {
  margin-top: 14px;
  width: 100%;
  text-align: center;
  color: #17305f;
  font-size: 16px;
  font-weight: 700;
}

.about-contact,
.about-note {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}

.about-contact a,
.about-note a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.about-contact a:hover,
.about-note a:hover {
  text-decoration: underline;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 20px 0;
  background: #101b34;
  color: rgba(255, 255, 255, 0.74);
}

.footer-inner {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  align-items: center;
}

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

.assessment-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 16px;
  align-items: stretch;
}

.assessment-entry-copy,
.assessment-entry-card,
.assessment-progress-card,
.assessment-question-card,
.assessment-side-card,
.assessment-score-card,
.assessment-weak-card,
.assessment-recommend-card,
.assessment-reading-block {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.96) 100%);
  box-shadow: var(--shadow);
}

.assessment-entry-copy {
  padding: 22px;
}

.assessment-entry-copy h2,
.assessment-head h2,
.assessment-result-head h2 {
  margin: 8px 0 0;
  color: var(--heading);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.assessment-entry-copy p,
.assessment-head p,
.assessment-result-head p,
.assessment-entry-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.72;
}

.assessment-entry-copy h2 {
  font-size: clamp(22px, 2.1vw, 28px);
}

.assessment-entry-points {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
  color: #20407c;
  font-weight: 600;
  font-size: 14px;
}

.assessment-entry-points li {
  position: relative;
  padding-left: 22px;
}

.assessment-entry-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
}

.assessment-entry-card {
  padding: 20px;
}

.assessment-entry-card h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.35;
  color: #162f68;
}

.assessment-maturity-pyramid {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.assessment-pyramid-step {
  --step-width: 100%;
  --step-bg-1: #eaf4ff;
  --step-bg-2: #f7fbff;
  --step-fg: #17305f;
  --step-badge-bg: rgba(255, 255, 255, 0.82);
  --step-badge-fg: var(--brand);
  position: relative;
  justify-self: center;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: var(--step-width);
  min-height: 44px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid rgba(31, 98, 255, 0.10);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--step-bg-1) 0%, var(--step-bg-2) 100%);
  color: var(--step-fg);
  box-shadow: 0 12px 24px rgba(31, 98, 255, 0.08);
}

.assessment-pyramid-step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 45%);
  pointer-events: none;
}

.assessment-pyramid-step strong,
.assessment-pyramid-step span {
  position: relative;
  z-index: 1;
}

.assessment-pyramid-step strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--step-badge-bg);
  color: var(--step-badge-fg);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.assessment-pyramid-step span {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.assessment-pyramid-step-5 {
  --step-width: 52%;
  --step-bg-1: var(--brand);
  --step-bg-2: var(--brand-2);
  --step-fg: #ffffff;
  --step-badge-bg: rgba(255, 255, 255, 0.24);
  --step-badge-fg: #ffffff;
}

.assessment-pyramid-step-4 {
  --step-width: 70%;
  --step-bg-1: #6fa8ff;
  --step-bg-2: #9bd2ff;
  --step-fg: #ffffff;
  --step-badge-bg: rgba(255, 255, 255, 0.26);
  --step-badge-fg: #ffffff;
}

.assessment-pyramid-step-3 {
  --step-width: 82%;
  --step-bg-1: #d8ebff;
  --step-bg-2: #eef7ff;
}

.assessment-pyramid-step-2 {
  --step-width: 92%;
  --step-bg-1: #eef7ff;
  --step-bg-2: #fbfdff;
}

.assessment-pyramid-step-1 {
  --step-width: 100%;
  --step-bg-1: #f4f8ff;
  --step-bg-2: #ffffff;
}

.assessment-entry-note {
  margin: 14px 0 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}

.assessment-hero {
  padding-bottom: 26px;
}

.assessment-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.assessment-hero .hero-copy h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.05;
}

.assessment-hero .hero-copy p {
  margin-top: 14px;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.76;
}

.assessment-hero .hero-actions {
  margin-top: 18px;
}

.assessment-hero-note {
  min-height: 100%;
  padding: 20px;
}

.assessment-hero-note h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  color: #162f68;
}

.assessment-hero-note p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.72;
}

.assessment-shell {
  display: grid;
  gap: 14px;
}

.assessment-head {
  margin-bottom: 0;
}

.assessment-progress-card {
  padding: 14px 16px;
}

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

.assessment-progress-head strong {
  color: #17305f;
  font-size: 14px;
}

.assessment-progress-head span {
  color: #5d739b;
  font-size: 13px;
  font-weight: 700;
}

.assessment-progress-track,
.assessment-bar-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(31, 98, 255, 0.08);
  overflow: hidden;
}

.assessment-progress-fill,
.assessment-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
}

.assessment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.assessment-form {
  display: grid;
  gap: 12px;
}

.assessment-question-card {
  position: relative;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(31, 98, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 251, 255, 0.97) 100%);
  box-shadow: 0 14px 28px rgba(18, 47, 104, 0.06);
}

.assessment-question-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(180deg, var(--brand) 0%, #6aa8ff 100%);
}

.assessment-question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.assessment-question-index,
.assessment-question-dimension {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.assessment-question-index {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
}

.assessment-question-dimension {
  color: var(--brand);
  background: rgba(31, 98, 255, 0.08);
}

.assessment-question-card h3 {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: #162f68;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(31, 98, 255, 0.08);
}

.assessment-options {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.assessment-option {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(31, 98, 255, 0.12);
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.assessment-option:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 98, 255, 0.24);
  box-shadow: 0 12px 24px rgba(18, 47, 104, 0.08);
}

.assessment-option:has(input:checked) {
  border-color: rgba(31, 98, 255, 0.34);
  background: rgba(239, 245, 255, 0.96);
  box-shadow:
    0 12px 24px rgba(18, 47, 104, 0.08),
    inset 0 0 0 1px rgba(31, 98, 255, 0.08);
}

.assessment-option:has(input:checked)::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%);
}

.assessment-option:has(input:checked) .assessment-option-badge {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #ffffff;
}

.assessment-option input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.assessment-option-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(31, 98, 255, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.assessment-option-copy {
  color: #26457a;
  font-size: 14px;
  line-height: 1.68;
}

.assessment-side-panel {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
}

.assessment-side-card {
  padding: 16px;
  border-radius: 18px;
}

.assessment-side-card h3,
.assessment-stage-block h3,
.assessment-dimension-block h3,
.assessment-reading-block h3,
.assessment-recommend-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: #162f68;
}

.assessment-side-card ul,
.assessment-recommend-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.68;
}

.assessment-actions-row {
  display: grid;
  gap: 10px;
}

.assessment-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.assessment-error {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 243, 244, 0.95);
  border: 1px solid rgba(255, 124, 124, 0.22);
  color: #b42318;
  font-weight: 700;
}

.assessment-result {
  display: grid;
  gap: 14px;
}

.assessment-result-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 14px;
}

.assessment-score-card,
.assessment-weak-card,
.assessment-recommend-card,
.assessment-reading-block {
  padding: 18px;
}

.assessment-score-kicker {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.assessment-score-card h3 {
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.2;
  color: #10285a;
}

.assessment-score-value {
  margin-top: 10px;
  color: #16305e;
  font-size: 20px;
  font-weight: 900;
}

.assessment-score-card p,
.assessment-weak-card p,
.assessment-bar-row p,
.assessment-article-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.68;
}

.assessment-weak-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.assessment-weak-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 98, 255, 0.12);
  background: rgba(31, 98, 255, 0.06);
  color: #20407c;
  font-size: 12px;
  font-weight: 700;
}

.assessment-dimension-block {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.96) 100%);
  box-shadow: var(--shadow);
}

.assessment-stage-block {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.96) 100%);
  box-shadow: var(--shadow);
}

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

.assessment-stage-card {
  padding: 14px 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(31, 98, 255, 0.12);
  background: rgba(255, 255, 255, 0.88);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.assessment-stage-card.is-active {
  border-color: rgba(31, 98, 255, 0.32);
  background: linear-gradient(180deg, rgba(239, 245, 255, 0.98) 0%, rgba(247, 250, 255, 0.98) 100%);
  box-shadow: 0 14px 28px rgba(18, 47, 104, 0.08);
  transform: translateY(-1px);
}

.assessment-stage-card-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.assessment-stage-card-head strong {
  color: #17305f;
  font-size: 14px;
  line-height: 1.45;
}

.assessment-stage-card-head span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.assessment-stage-card p {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.62;
}

.assessment-bars {
  display: grid;
  gap: 14px;
}

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

.assessment-bar-head strong {
  color: #17305f;
  font-size: 14px;
}

.assessment-bar-head span {
  color: #5d739b;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .assessment-stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .assessment-stage-grid {
    grid-template-columns: 1fr;
  }
}

.assessment-action-grid,
.assessment-reading-grid {
  display: grid;
  gap: 14px;
}

.assessment-article-grid {
  display: grid;
  gap: 10px;
}

.assessment-article-card {
  display: block;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(31, 98, 255, 0.12);
  background: rgba(255, 255, 255, 0.88);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.assessment-article-card:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 98, 255, 0.24);
  box-shadow: 0 18px 32px rgba(18, 47, 104, 0.08);
}

.assessment-article-title {
  color: #17305f;
  font-size: 15px;
  font-weight: 800;
}

.assessment-article-card p {
  margin: 8px 0 0;
  font-size: 13px;
}

.assessment-article-card span {
  display: inline-flex;
  margin-top: 10px;
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero-inner,
  .grid-3,
  .topic-layout,
  .about-layout,
  .assessment-entry,
  .assessment-hero-inner,
  .assessment-layout,
  .assessment-result-summary,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topic-side {
    grid-template-columns: 1fr;
  }

  .assessment-side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1180px, calc(100% - 24px));
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
  }

  .header-brand {
    width: 100%;
    text-align: center;
  }

  .header-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
  }

  .hero {
    padding: 30px 0 22px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 28px 0;
  }

  .about-copy h2 {
    font-size: 26px;
  }

  .assessment-question-card,
  .assessment-score-card,
  .assessment-weak-card,
  .assessment-recommend-card,
  .assessment-reading-block,
  .assessment-side-card,
  .assessment-entry-card,
  .assessment-entry-copy {
    padding: 18px;
  }

  .assessment-question-card h3,
  .assessment-entry-card h3,
  .assessment-score-card h3 {
    font-size: 24px;
  }

  .assessment-pyramid-step {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 42px;
    padding: 0 12px;
  }

  .assessment-pyramid-step span {
    font-size: 14px;
  }

  .assessment-pyramid-step-5 {
    --step-width: 64%;
  }

  .assessment-pyramid-step-4 {
    --step-width: 80%;
  }

  .assessment-pyramid-step-3 {
    --step-width: 88%;
  }

  .assessment-pyramid-step-2 {
    --step-width: 94%;
  }

  .assessment-progress-head,
  .assessment-bar-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .assessment-action-buttons .btn {
    width: 100%;
  }
}

.header-nav a.is-active {
  color: var(--brand);
}

.search-hero {
  padding: 52px 0 28px;
  background:
    radial-gradient(circle at 18% 8%, rgba(31, 98, 255, 0.10), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(65, 155, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.search-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: center;
}

.search-hero h1 {
  margin: 12px 0 0;
  color: var(--heading);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.search-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.85;
}

.search-hero-card,
.search-panel,
.search-result-card,
.search-empty {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
  box-shadow: var(--shadow);
}

.search-hero-card {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.search-hero-card strong {
  color: var(--heading);
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.search-hero-card span {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
}

.search-section {
  padding-top: 28px;
}

.search-panel {
  padding: 20px;
}

.search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 160px 170px;
  gap: 12px;
  align-items: end;
}

.search-controls label {
  display: grid;
  gap: 8px;
}

.search-controls span {
  color: #20407c;
  font-size: 13px;
  font-weight: 800;
}

.search-controls input,
.search-controls select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(31, 98, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0 14px;
  color: var(--text-1);
  font: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.search-controls input:focus,
.search-controls select:focus {
  border-color: rgba(31, 98, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 98, 255, 0.10);
}

.search-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--text-2);
  font-size: 14px;
}

.search-meta-row button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(31, 98, 255, 0.16);
  background: #fff;
  color: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.search-results {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.search-result-card {
  padding: 18px;
}

.search-result-meta,
.search-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-result-meta span,
.search-result-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(31, 98, 255, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.search-result-card h2 {
  margin: 12px 0 0;
  color: var(--heading);
  font-size: 20px;
  line-height: 1.35;
}

.search-result-card h2 a:hover {
  color: var(--brand);
}

.search-result-card p {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.75;
}

.search-result-card mark {
  padding: 0 3px;
  border-radius: 5px;
  background: rgba(255, 209, 102, 0.45);
  color: #14306a;
  font-weight: 900;
}

.search-result-card h2 mark {
  background: rgba(31, 98, 255, 0.12);
  color: var(--brand);
}

.search-result-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.search-result-open {
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.search-empty {
  padding: 24px;
  color: var(--text-2);
  text-align: center;
  font-weight: 700;
}

@media (max-width: 900px) {
  .search-hero-inner,
  .search-controls {
    grid-template-columns: 1fr;
  }

  .search-result-footer,
  .search-meta-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
