
:root {
  --primary: #2b87d1;
  --primary-hover: #206dc5;
  --primary-active: #1a5aa8;
  --primary-soft: #eaf3fb;
  --background: #ffffff;
  --surface: #ffffff;
  --surface-tint: #f2f2f2;
  --surface-cool: #f7f9fd;
  --text-primary: #333333;
  --text-body: #3d4552;
  --text-heading: #000000;
  --text-muted: #767d8a;
  --text-inverse: #ffffff;
  --text-link: #2b87d1;
  --text-link-hover: #206dc5;
  --accent-red: #f53264;
  --accent-yellow: #ffd154;
  --accent-yellow-hover: #e6c14c;
  --accent-green: #2fa96b;
  --accent-green-soft: #e9f8f0;
  --icon-default: #45b1ff;
  --border-light: #e6e8f4;
  --border-strong: #d8dce9;
  --focus-ring: rgb(23, 78, 166);
  --shadow-card: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
  --shadow-card-hover: 0 12px 15px rgba(0, 0, 0, 0.07);
  --shadow-panel: 0 8px 30px rgba(28, 56, 94, 0.08);
  --font-sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 10px;
  --radius-pill: 999px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--text-link-hover);
  text-decoration: underline;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

li {
  margin-bottom: 0.4em;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

::selection {
  background: rgba(43, 135, 209, 0.18);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1200;
  padding: 10px 16px;
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  font-weight: 700;
  transition: top 0.2s var(--ease);
}

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

/* ============================ Header ============================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border-light);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-heading);
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text-heading);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 18px;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.brand-copy small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a.nav-link {
  display: inline-block;
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 15.5px;
  font-weight: 400;
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-nav a.nav-link:hover {
  color: var(--primary);
  background: var(--primary-soft);
  text-decoration: none;
}

.site-nav a.nav-link[aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
}

.site-nav .btn {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================ Buttons ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease-out, color 0.2s ease-out,
    border-color 0.2s ease-out, transform 0.2s ease-out,
    box-shadow 0.2s ease-out;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent-yellow);
  color: var(--text-heading);
}

.btn-primary:hover {
  background: var(--accent-yellow-hover);
  color: var(--text-heading);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--text-inverse);
}

.btn-ghost {
  background: none;
  color: var(--primary);
  font-weight: 400;
  padding: 8px 12px;
}

.btn-ghost:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.btn-light {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.btn-light:hover {
  background: var(--primary-soft);
  color: var(--primary-active);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: #fff;
}

.btn-success {
  background: var(--accent-green-soft);
  color: #1c7a4d;
  border-color: #bfe8d3;
}

.btn-success:hover {
  background: #d8f3e4;
  color: #15603c;
}

.btn-danger {
  background: #fdecf1;
  color: #c02249;
  border-color: #f7c6d5;
}

.btn-danger:hover {
  background: #fbdae5;
  color: #a11a3c;
}

.btn-lg {
  padding: 15px 34px;
  font-size: 19px;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* ============================ Hero ============================ */

.hero-home {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  background-image: radial-gradient(
      circle at 12% 18%,
      rgba(255, 255, 255, 0.16),
      transparent 42%
    ),
    radial-gradient(circle at 88% 6%, rgba(69, 177, 255, 0.55), transparent 46%),
    linear-gradient(160deg, #2f8ed9 0%, #2b87d1 52%, #2476bd 100%);
  color: var(--text-inverse);
  padding: 56px 0 40px;
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-home .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-yellow);
  box-shadow: 0 0 0 4px rgba(255, 209, 84, 0.18);
}

.hero-home h1 {
  color: #fff;
  font-size: clamp(32px, 5.2vw, 60px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}

.hero-home h1 .accent {
  color: var(--accent-yellow);
  white-space: nowrap;
  font-size: 14px;
  letter-spacing:0;
}

.hero-home .hero-lead {
  max-width: 780px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.8;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.hero-chips li {
  margin: 0;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.94);
}

/* 首页工具区：紧跟 hero，h1/p 之后直接进入测试卡片 */
.tools-section {
  background: var(--surface-tint);
  padding: 40px 0 64px;
}

.tools-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.tools-head h2 {
  font-size: 20px;
  letter-spacing: 0;
}

.tools-head p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px 26px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
  text-decoration: none;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out,
    border-color 0.2s ease-out;
}

.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card-hover);
  border-color: #d7e4f5;
  color: var(--text-primary);
  text-decoration: none;
}

.tool-card .tool-icon {
  width: 52px;
  height: 52px;
  color: var(--icon-default);
  margin-bottom: 16px;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.tool-card:hover .tool-icon {
  color: var(--primary);
  transform: translateY(-2px);
}

.tool-card h3 {
  font-size: 23px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.tool-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
}

.tool-card p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #5c6675;
  flex: 1;
}

.tool-best {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  min-height: 22px;
}

.tool-best b {
  color: var(--primary);
  font-weight: 700;
}

.badge-new {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(30%, -30%);
  padding: 4px 8px;
  background: var(--accent-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  z-index: 1;
}

/* ============================ Sections ============================ */

.section {
  padding: 64px 0;
}

.section--tint {
  background: var(--surface-tint);
}

.section--cool {
  background: var(--surface-cool);
}

.section--tight {
  padding: 40px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-head.is-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-head h2 {
  font-size: clamp(26px, 3.1vw, 34px);
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-head .lead {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.8;
  color: #5a6373;
}

.prose {
  max-width: 840px;
}

.prose p {
  margin: 0 0 1.05em;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--text-body);
}

.prose h2 {
  font-size: 26px;
  margin: 40px 0 14px;
}

.prose h3 {
  font-size: 19px;
  margin: 28px 0 10px;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
  color: var(--text-body);
}

.prose li {
  margin-bottom: 0.55em;
  line-height: 1.8;
}

.prose strong {
  color: var(--text-heading);
}

.note {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--icon-default);
  background: var(--primary-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: #3f4a5a;
}

.note strong {
  color: var(--primary-active);
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature {
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: #5c6675;
}

/* Test explainer rows */
.explainer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}

.explainer {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}

.explainer h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  margin-bottom: 8px;
}

.explainer h3 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.explainer p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.8;
  color: #4c5665;
}

.explainer a {
  font-size: 14px;
  font-weight: 700;
}

/* ============================ Tables ============================ */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 560px;
}

.data-table caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.data-table th,
.data-table td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.data-table th {
  background: #f7f9fc;
  font-weight: 700;
  color: var(--text-heading);
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: #fbfcff;
}

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--excellent {
  background: var(--accent-green-soft);
  color: #1c7a4d;
}

.tag--good {
  background: var(--primary-soft);
  color: var(--primary-active);
}

.tag--mid {
  background: #fff6dd;
  color: #8a6200;
}

.tag--low {
  background: #fdeef2;
  color: #b01e44;
}

.tag--muted {
  background: #f0f1f5;
  color: #6a7180;
}

/* ============================ FAQ ============================ */

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-group {
  margin-bottom: 36px;
}

.faq-group h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

.article .faq-list {
  max-width: none;
}

code {
  padding: 2px 5px;
  border-radius: 3px;
  background: #f1f3f8;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: #3a4656;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  background: #fbfcff;
  border-bottom: 1px solid var(--border-light);
}

.faq-item .faq-answer {
  padding: 16px 22px 20px;
  font-size: 15px;
  line-height: 1.85;
  color: #4c5665;
}

.faq-item .faq-answer p {
  margin: 0 0 0.8em;
}

.faq-item .faq-answer p:last-child {
  margin-bottom: 0;
}

/* ============================ Page hero (inner) ============================ */

.page-hero {
  background: var(--primary);
  background-image: radial-gradient(
      circle at 90% 0%,
      rgba(69, 177, 255, 0.55),
      transparent 46%
    ),
    linear-gradient(160deg, #2f8ed9 0%, #2b87d1 60%, #2578bf 100%);
  color: #fff;
  padding: 26px 0 40px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb li {
  margin: 0;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .sep {
  color: rgba(255, 255, 255, 0.5);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(22px, 3.6vw, 40px);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-hero h1 .h1-brand {
  display: block;
  margin-bottom: 2px;
  font-size: 0.52em;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.86);
}

.page-hero .page-lead {
  max-width: 820px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-meta svg {
  width: 15px;
  height: 15px;
  opacity: 0.85;
}

/* ============================ Test panel ============================ */

.test-section {
  padding: 20px 0 56px;
  background: var(--surface-cool);
}

.test-shell {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.test-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  background: #fff;
}

.test-head h2 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.test-head h2 svg {
  width: 22px;
  height: 22px;
  color: var(--icon-default);
}

.test-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--surface-tint);
  color: #4c5665;
  white-space: nowrap;
}

.hud-chip b {
  color: var(--text-heading);
  font-weight: 700;
}

.hud-chip--blue {
  background: var(--primary-soft);
  color: var(--primary-active);
}

.hud-chip--blue b {
  color: var(--primary-active);
}

.stage {
  position: relative;
  min-height: 470px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 24px;
}

.stage--flush {
  padding: 0;
}

/* 开始面板 */
.start-panel {
  max-width: 560px;
  text-align: center;
}

.start-panel .start-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 16px;
}

.start-panel .start-icon svg {
  width: 32px;
  height: 32px;
}

.start-panel h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.start-panel p {
  color: #5c6675;
  font-size: 14px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.start-panel .hint {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* 测试舞台：反应时间 */
.reaction-stage {
  width: 100%;
  min-height: 470px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 24px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.08s linear;
}

.reaction-stage .reaction-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.reaction-stage .reaction-sub {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 560px;
}

.reaction-stage .reaction-ms {
  font-size: clamp(44px, 8vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.reaction-stage.is-ready {
  background: #35b06a;
}

.reaction-stage.is-early {
  background: var(--accent-red);
}

.reaction-stage.is-error {
  background: #b3254a;
}

.reaction-stage.is-idle {
  background: #2b87d1;
}

.reaction-progress {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.reaction-progress i {
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.reaction-progress i.is-done {
  background: var(--accent-yellow);
}

/* 通用方块棋盘 */
.board {
  display: grid;
  gap: 10px;
  width: min(460px, 100%);
  margin: 0 auto;
  touch-action: manipulation;
}

.board--sequence {
  grid-template-columns: repeat(3, 1fr);
}

.board--visual {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: min(430px, 100%);
}

.cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid #dfe7f5;
  border-radius: var(--radius-md);
  background: #edf3fb;
  cursor: pointer;
  transition: background-color 0.12s ease-out, transform 0.12s ease-out,
    border-color 0.12s ease-out;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  font: inherit;
}

.cell:hover {
  border-color: #c3d9f2;
}

.cell:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.cell.is-lit {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(0.97);
}

.cell.is-correct {
  background: #bfe9d3;
  border-color: #8ed7b1;
}

.cell.is-wrong {
  background: #f9b7c9;
  border-color: #f27d9e;
}

.cell[disabled] {
  cursor: default;
}

.board.is-locked .cell {
  cursor: default;
}

/* 瞄准训练 */
.aim-field {
  position: relative;
  width: 100%;
  height: 480px;
  background: #f7f9fd;
  background-image: radial-gradient(#e4ebf7 1px, transparent 1px);
  background-size: 22px 22px;
  cursor: crosshair;
  overflow: hidden;
  touch-action: none;
}

.aim-target {
  position: absolute;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 0 6px rgba(245, 50, 100, 0.14),
    0 4px 10px rgba(245, 50, 100, 0.3);
  cursor: crosshair;
  animation: target-pop 0.14s ease-out;
  -webkit-tap-highlight-color: transparent;
}

.aim-target::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

@keyframes target-pop {
  from {
    transform: scale(0.55);
    opacity: 0.4;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.aim-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: #ffffff;
  z-index: 2;
}

.aim-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  pointer-events: none;
}

.aim-hud span {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-light);
  font-size: 12.5px;
  color: #4c5665;
}

/* 数字记忆 */
.number-display {
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: 8px 12px;
  font-size: clamp(40px, 9vw, 78px);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  color: var(--text-heading);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  text-align: center;
}

.number-display.is-hidden {
  color: transparent;
  background: #eef3fb;
  border-radius: var(--radius-md);
  min-width: 260px;
  min-height: 120px;
}

.test-input {
  width: min(420px, 100%);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 20px;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.test-input:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: transparent;
}

.test-input::placeholder {
  color: #a8afba;
  font-size: 15px;
  letter-spacing: 0;
}

.test-input--area {
  width: 100%;
  min-height: 150px;
  font-size: 17px;
  line-height: 1.9;
  text-align: left;
  resize: vertical;
}

/* 词语记忆 */
.word-card {
  display: grid;
  place-items: center;
  width: min(420px, 100%);
  min-height: 190px;
  padding: 24px;
  background: var(--surface-cool);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  font-size: clamp(38px, 7vw, 54px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-heading);
}

.verbal-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.verbal-timer {
  width: min(420px, 100%);
  height: 6px;
  border-radius: 3px;
  background: #edf0f5;
  overflow: hidden;
}

.verbal-timer i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--icon-default);
  transform-origin: left center;
  transition: transform 0.1s linear;
}

.verbal-feedback {
  min-height: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.lives {
  display: inline-flex;
  gap: 4px;
}

.lives i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-red);
}

.lives i.is-lost {
  background: #e3e6ee;
}

/* 黑猩猩测试 */
.chimp-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  width: min(560px, 100%);
  margin: 0 auto;
  touch-action: manipulation;
}

.chimp-cell {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: #eef3fb;
  color: var(--primary-active);
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.12s ease-out, color 0.12s ease-out;
  -webkit-tap-highlight-color: transparent;
}

.chimp-cell:hover {
  background: #e3edf9;
}

.chimp-cell.is-hidden {
  color: transparent;
}

.chimp-cell.is-done {
  background: #dcebf9;
  border-color: #bcd8f3;
  color: transparent;
  cursor: default;
}

.chimp-cell.is-wrong {
  background: #f9b7c9;
  border-color: #f27d9e;
}

.chimp-cell.is-empty {
  visibility: hidden;
  pointer-events: none;
}

/* 打字测试 */
.typing-wrap {
  width: min(900px, 100%);
  margin: 0 auto;
}

.typing-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.typing-timer {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-heading);
}

.typing-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.typing-stats b {
  color: var(--primary);
}

.typing-text {
  padding: 22px 24px;
  margin-bottom: 16px;
  background: var(--surface-cool);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 19px;
  line-height: 2.05;
  letter-spacing: 0.02em;
  color: #6e7987;
  min-height: 150px;
}

.typing-text .char.is-correct {
  color: #23704a;
}

.typing-text .char.is-wrong {
  color: #b01e44;
  background: #fde8ee;
  border-radius: 2px;
}

.typing-text .char.is-current {
  border-bottom: 2px solid var(--primary);
  background: rgba(43, 135, 209, 0.08);
}

.typing-text .char.is-space {
  white-space: pre-wrap;
}

/* 结果面板 */
.result-panel {
  width: min(680px, 100%);
  margin: 0 auto;
  text-align: center;
}

.result-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.result-score {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-heading);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.result-score small {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-left: 4px;
}

.result-note {
  color: #5c6675;
  font-size: 15px;
  margin: 8px 0 0;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.result-stat {
  padding: 14px 10px;
  background: var(--surface-cool);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.result-stat span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.result-stat b {
  font-size: 18px;
  color: var(--text-heading);
  font-variant-numeric: tabular-nums;
}

.result-stats--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.result-stats--auto {
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
}

.result-save {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.new-best {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  background: #fff6dd;
  color: #7a5600;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
}

/* ============================ Content article ============================ */

.content-section {
  padding: 48px 0 64px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}

.content-grid > * {
  min-width: 0;
}

.article,
.sidebar {
  min-width: 0;
}

.article h2 {
  font-size: 27px;
  margin: 44px 0 16px;
  padding-top: 4px;
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  font-size: 19px;
  margin: 28px 0 10px;
}

.article p {
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--text-body);
  margin: 0 0 1.05em;
}

.article ul,
.article ol {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.85;
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}

.article li {
  margin-bottom: 0.55em;
}

.article strong {
  color: var(--text-heading);
}

.article .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-muted);
}

.sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.side-card h2,
.side-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.side-card p {
  font-size: 14px;
  line-height: 1.75;
  color: #5c6675;
  margin: 0 0 10px;
}

.side-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-card li {
  margin: 0;
  border-bottom: 1px solid #f0f2f8;
}

.side-card li:last-child {
  border-bottom: 0;
}

.side-card li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 14.5px;
  color: var(--text-primary);
}

.side-card li a:hover {
  color: var(--primary);
}

.side-card li a span {
  color: var(--text-muted);
  font-size: 12px;
}

.side-card .btn {
  margin-top: 4px;
}

.side-note {
  background: var(--primary-soft);
  border-color: #d7e8f8;
}

.side-note h3 {
  color: var(--primary-active);
}

/* Related tests */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.related-card {
  display: block;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  color: var(--text-primary);
  text-decoration: none;
}

.related-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.related-card span {
  font-size: 13px;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  background: var(--primary);
  background-image: radial-gradient(
    circle at 80% 20%,
    rgba(255, 255, 255, 0.16),
    transparent 45%
  );
  color: #fff;
  padding: 48px 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 8px;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15.5px;
  max-width: 660px;
}

/* ============================ Statistics ============================ */

.stat-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-tile {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.stat-tile .label {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-tile .value {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-tile .value small {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 3px;
}

.stat-tile .sub {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.dashboard-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.dashboard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
}

.dashboard-head h2 {
  font-size: 19px;
}

.dashboard-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.storage-line {
  margin: -16px 0 20px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-muted);
}

.storage-line b {
  color: #4c5665;
  word-break: break-all;
}

.empty-help {
  max-width: 560px;
  margin: 0 auto 18px;
  padding-left: 1.25em;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.85;
  color: #5c6675;
}

.empty-help li {
  margin-bottom: 4px;
}

.dashboard-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid var(--border-light);
  background: #fbfcff;
  font-size: 13px;
  color: var(--text-muted);
}

.dashboard-body {
  padding: 22px;
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14.5px;
  margin: 0 auto 18px;
  max-width: 440px;
}

.record-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.record-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid #f1f3f8;
  font-size: 14px;
  color: #4c5665;
}

.record-list li:last-child {
  border-bottom: 0;
}

.record-list b {
  color: var(--text-heading);
}

.record-list time {
  color: var(--text-muted);
  font-size: 12.5px;
}

.record-empty {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ============================ Back to top ============================ */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(20, 40, 70, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out,
    background-color 0.2s ease-out, color 0.2s ease-out,
    border-color 0.2s ease-out, visibility 0.2s ease-out;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.back-to-top:active {
  transform: translateY(1px);
}

@media (max-width: 720px) {
  .back-to-top {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
  }

  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

@media print {
  .back-to-top {
    display: none;
  }
}

/* ============================ Footer ============================ */

.site-footer {
  background: var(--surface-tint);
  border-top: 1px solid var(--border-light);
  padding: 48px 0 80px;
  color: #4c5665;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .brand {
  margin-bottom: 12px;
}

.footer-brand p {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #5f6877;
  max-width: 300px;
}

.footer-brand .footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-col h2 {
  font-size: 14px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin: 0;
}

.footer-col a {
  display: inline-block;
  padding: 3px 0;
  font-size: 13.5px;
  color: #5f6877;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid #e2e4ed;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom p {
  margin: 0;
}

/* ============================ Toast / utility ============================ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 1500;
  padding: 11px 20px;
  background: #1f2a3a;
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mb-0 {
  margin-bottom: 0;
}

.hidden {
  display: none !important;
}

/* ============================ Responsive ============================ */

@media (max-width: 1080px) {
  .tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 36px;
  }

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

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 16px 24px rgba(20, 40, 70, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a.nav-link {
    padding: 12px 8px;
    font-size: 16px;
    border-bottom: 1px solid #f2f4f9;
  }

  .site-nav .btn {
    margin: 12px 0 0;
  }

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

  .content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sidebar {
    position: static;
  }

  .sidebar .side-card {
    margin-bottom: 16px;
  }

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

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

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

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 10px;
  }

  .hero-home {
    padding: 20px 0 20px;
  }

  .section {
    padding: 44px 0;
  }

  .tools-section {
    padding: 28px 0 48px;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .tools-grid {
    gap: 16px;
  }

  .tool-card {
    padding: 24px 18px 20px;
  }

  .tool-card .tool-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
  }

  .tool-card h3 {
    font-size: 20px;
  }

  .stage {
    min-height: 430px;
    padding: 24px 16px;
  }

  .reaction-stage {
    min-height: 430px;
  }

  .aim-field {
    height: auto;
    min-height: 400px;
  }

  .aim-overlay {
    position: relative;
    inset: auto;
    min-height: 400px;
  }

  .aim-target {
    width: 52px;
    height: 52px;
  }

  .aim-target::after {
    inset: 17px;
  }

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

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

  .stat-tile .value {
    font-size: 26px;
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero {
    padding: 20px 0 32px;
  }

  .content-section {
    padding: 32px 0 48px;
  }

  .typing-text {
    font-size: 17px;
    line-height: 2;
    padding: 16px;
  }

  .chimp-grid {
    gap: 5px;
  }

  .chimp-cell {
    font-size: 16px;
  }

  .board--visual {
    gap: 6px;
  }

  .footer-grid {
    gap: 24px;
  }
}

@media (max-width: 380px) {
  .header-inner {
    gap: 10px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

}

@media (max-width: 520px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
  }

  .tool-card .tool-icon {
    width: 40px;
    height: 40px;
    margin: 2px 0 0;
    flex-shrink: 0;
  }

  .tool-body {
    align-items: flex-start;
    width: auto;
  }

  .tool-card .tool-body {
    display: flex;
    flex-direction: column;
  }

  .tool-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
  }

  .tool-card p {
    margin-bottom: 6px;
    font-size: 13.5px;
  }

  .tool-best {
    font-size: 12px;
  }

  .hero-chips li {
    font-size: 12px;
  }

  .feature-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .stat-summary {
    grid-template-columns: 1fr 1fr;
  }

  .tools-head {
    flex-direction: column;
    gap: 4px;
  }

  .result-stats,
  .result-stats--four {
    grid-template-columns: 1fr 1fr;
  }

  .typing-stats {
    gap: 10px;
  }

  .chimp-grid {
    gap: 4px;
  }
}

@media (max-width: 720px) {
  .tool-card .badge-new {
    top: 12px;
    right: 12px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
