@font-face {
  font-family: "Seeker Han Sans";
  src: url("fonts/title-source-han-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/title-inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Seeker Editorial";
  src: url("fonts/site-editorial.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Seeker Reading";
  src: url("fonts/site-reading.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #fff;
  --paper: #fff;
  --surface: #f3f4f7;
  --ink: #101114;
  --ink2: #41444e;
  --muted: #626775;
  --rule: #e5e7ed;
  --green: #245bea;
  --on-green: #fff;
  --accent: #245bea;
  --soft-accent: #e3ebff;
  --error: #b23042;
  --nav: #fff;
  --sans: "Seeker Reading", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Seeker Editorial", "Noto Serif SC", "Songti SC", Georgia, serif;
  --display: var(--serif);
  --card-shadow: 0 2px 5px #18223c0b, 0 6px 17px #18223c12;
  --card-hover-shadow: 0 7px 12px #18223c15, 0 18px 30px #18223c24;
}

[data-theme="dark"] {
  --bg: #14161c;
  --paper: #1e2129;
  --surface: #262a35;
  --ink: #f6f7fb;
  --ink2: #d2d7e4;
  --muted: #afb5c6;
  --rule: #383e4d;
  --green: #a0b8ff;
  --on-green: #111c37;
  --accent: #a0b8ff;
  --soft-accent: #27375d;
  --error: #ff9eaa;
  --nav: #14161c;
  --card-shadow: 0 2px 5px #0004, 0 6px 17px #0005;
  --card-hover-shadow: 0 7px 12px #0005, 0 18px 30px #0007;
}

html { scroll-padding-top: 82px; }
body { font-size: 15px; line-height: 1.7; }
.page-width { width: min(1240px, calc(100% - 96px)); }
h1, h2, h3 { font-weight: 700; }
h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.24; letter-spacing: -.02em; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 固定导航、单一主色和紧凑的操作按钮。 */
.nav, .nav.scrolled {
  height: 64px;
  padding-inline: 32px;
  background: var(--nav);
  border-color: var(--rule);
  backdrop-filter: none;
}
.brand { gap: 8px; color: var(--green); font: 700 19px/1 var(--serif); letter-spacing: -.015em; }
.brand-mark {
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: var(--on-green);
  font: 21px/1 Georgia, serif;
}
.nav-links { margin-left: auto; gap: 28px; color: var(--ink2); font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--green); }
.nav-links a::after { display: none; }
.theme-btn { padding: 5px 12px; min-height: 36px; border-radius: 8px; font-size: 12px; }
.theme-btn span { margin-left: 6px; }
.button { min-height: 46px; padding: 10px 18px; gap: 12px; border-radius: 9px; font-size: 14px; font-weight: 700; }
.button span { font: 19px/1 var(--display); }
.button:hover span { transform: translateX(3px); }
.primary:hover { background: color-mix(in srgb, var(--green) 86%, var(--ink)); }
.text-button { color: var(--ink); background: var(--surface); }
.text-button:hover, .outline:hover { background: var(--soft-accent); color: var(--green); }

/* 行者和点阵共用留白，主题入口沿用实验分类色。 */
.hero {
  width: min(1160px, calc(100% - 96px));
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(10px, 1.5vw, 24px);
  min-height: 650px;
  padding-block: 64px;
}
.hero-copy { padding: 0; }
.hero-titles { width: fit-content; max-width: 100%; margin: 0 0 30px; }
.hero h1 {
  width: fit-content;
  margin: 0;
  font: 900 clamp(65px, 7.4vw, 108px)/1.10 "Seeker Han Sans", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  letter-spacing: -.032em;
}
.hero h1 > span { display: block; white-space: nowrap; }
.hero-english {
  margin-top: 16px;
  color: var(--ink2);
  font: 800 clamp(23px, 3.15vw, 45px)/1.14 "Inter", "Arial", sans-serif;
  letter-spacing: -.035em;
}
.hero-english > span { display: inline-block; white-space: nowrap; }
.title-slot, .title-char { display: inline-block; }
.title-char { pointer-events: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .title-char { transition: color .30s cubic-bezier(.35,.1,.2,1); }
  .title-char.is-lit { color: var(--letter-color); }
}
.hero-intro { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.65; color: var(--ink2); }
.hero-actions { gap: 10px; margin-top: 29px; }
.shortcut-hint { margin-top: 13px; color: var(--muted); font-size: 12px; }
kbd { font: 11px var(--sans); }
.shortcut-hint kbd { padding: 1px 5px; border: 1px solid var(--rule); border-radius: 4px; }
.hero > .perception {
  display: block;
  width: min(100%, 510px);
  max-width: none;
  justify-self: start;
  margin: 0;
  overflow: visible;
}
.hero-stage { height: clamp(350px, 32vw, 465px); }
.hero-stage canvas, [data-theme="dark"] .hero-stage canvas { opacity: .86; }
.hero-wanderer {
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 2px #18251928);
}
.hero-topics {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 7px;
  margin-top: 10px;
}
.hero-topics button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 6px 11px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--topic-color) 18%, var(--paper));
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition: background-color .18s, color .18s;
}
.hero-topics button::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--topic-color);
}
:is(.hero-topics [data-tag], .experiment-card) { --topic-color: #4f46e5; --topic-on: #fff; }
:is(.hero-topics [data-tag="注意"], .experiment-card[data-topic="注意"]) { --topic-color: #2356ef; }
:is(.hero-topics [data-tag="记忆"], .experiment-card[data-topic="记忆"]) { --topic-color: #ffbe24; --topic-on: #171718; }
:is(.hero-topics [data-tag="感知觉"], .experiment-card[data-topic="感知觉"]) { --topic-color: #15c59a; --topic-on: #171718; }
:is(.hero-topics [data-tag="决策"], .experiment-card[data-topic="决策"]) { --topic-color: #ff6844; --topic-on: #171718; }
:is(.hero-topics [data-tag="情绪"], .experiment-card[data-topic="情绪"]) { --topic-color: #d51680; }
.experiment-card[data-topic="社会认知"] { --topic-color: #863be8; }
.experiment-card[data-topic="抑制控制"] { --topic-color: #d4254e; }
.experiment-card[data-topic="思维"] { --topic-color: #15b4dc; --topic-on: #171718; }
.experiment-card[data-topic="文献复刻"] { --topic-color: #7137e7; }
.experiment-card[data-topic="反应时"] { --topic-color: #a6d82b; --topic-on: #171718; }
.experiment-card[data-topic="语言"] { --topic-color: #ff8b21; --topic-on: #171718; }
.hero-topics button:not(:disabled):hover { background: var(--topic-color); color: var(--topic-on); }
.hero-topics button:not(:disabled):hover::before { background: currentColor; }
.hero-topics button:disabled { cursor: default; }

.gallery { border-top: 1px solid var(--rule); padding-block: 42px 75px; scroll-margin-top: 0; }
.gallery .section-head { margin-bottom: 22px; }
.gallery .section-head h2:focus { outline: 0; }
.collection-heading-meta { gap: 14px; }
.collection-count { color: var(--muted); font-size: 13px; gap: 7px; flex-direction: row; align-items: baseline; }
.collection-count strong { color: var(--ink); font: 700 32px/1 var(--display); }
.reader-character, .reader-character img { width: 65px; height: 65px; }
.gallery-tools { gap: 10px; }
.search-box, .sort-label select {
  min-height: 46px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: var(--surface);
}
.search-box { padding: 0 13px; }
.search-box svg { color: var(--muted); flex: none; }
.search-box input, .sort-label select { font-size: 14px; }
.search-box kbd { border: 1px solid var(--rule); background: var(--paper); border-radius: 4px; }
.sort-label select { padding: 8px 13px; }
.random-button { white-space: nowrap; }
.filter-bar { gap: 6px; padding-block: 16px 12px; }
.filter-pill { min-height: 38px; padding: 6px 11px; border-radius: 8px; font-size: 13px; }
.filter-pill span { font-size: 11px; }
.filter-pill:not([aria-pressed="true"]):hover { background: var(--surface); border-color: transparent; }
.result-line { min-height: 52px; font-size: 13px; }
.reset-btn { font-size: 13px; }
.photo-wall { gap: 18px; }
.experiment-card {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 13px;
  box-shadow: var(--card-shadow);
  transition: transform .25s ease-out, box-shadow .25s, border-color .25s;
}
.experiment-card:hover {
  transform: none;
  border-color: var(--rule);
  box-shadow: var(--card-shadow);
}
.experiment-card:focus-within {
  border-color: color-mix(in srgb, var(--topic-color) 55%, var(--rule));
}
.card-preview:focus-visible, .card-footer a:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; border-radius: 8px; }
.card-art {
  aspect-ratio: 2.25;
  margin: 0;
  border-radius: 0;
  background: #fff;
  border-bottom: 1px solid var(--rule);
}
.card-art img { inset: 6%; width: 88%; height: 88%; }
.art-number {
  inset: 12px auto auto 12px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--topic-color);
  color: var(--topic-on);
  font: 700 15px/1 var(--display);
}
.card-art .no-cover { color: #969daa; font: 700 68px/1 Georgia, serif; }
.card-copy { padding: 17px 18px 0; }
.card-tags { gap: 5px; color: var(--ink2); font-size: 12px; font-weight: 700; }
.card-tags span {
  padding: 2px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--topic-color) 17%, var(--paper));
}
.card-title { font-size: clamp(17px, 1.55vw, 23px); font-weight: 700; line-height: 1.4; margin: 8px 0; letter-spacing: -.01em; }
.card-description { font-size: 14px; line-height: 1.65; color: var(--ink2); margin-bottom: 15px; }
.card-footer {
  flex-wrap: wrap;
  margin-inline: 18px;
  padding-block: 10px;
  border-color: var(--rule);
  color: var(--muted);
  font-size: 11px;
}
.card-footer a, .card-footer a:hover { color: var(--green); font-size: 12px; font-weight: 750; }
.card-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.experiment-card:hover .card-art img { transform: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .experiment-card:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--topic-color) 40%, var(--rule));
    box-shadow: var(--card-hover-shadow);
  }
  .experiment-card:hover .card-art img { transform: scale(1.095); }
  .card-footer a span { transition: transform .25s ease-out; }
  .experiment-card:hover .card-footer a span { transform: translate(3px, -3px); }
}
.skeleton-card { border: 0; border-radius: 13px; }
.page-btn { border-radius: 8px; }
.page-btn:hover:not(:disabled) { border-color: var(--green); }

.about-section { padding: 68px 0; background: var(--bg); border-block: 1px solid var(--rule); }
.about-inner { grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: clamp(26px, 6vw, 88px); }
.about-copy { font-size: 16px; line-height: 1.8; }
.about-copy h2 { color: var(--green); margin: 0 0 19px; }
.inline-link { padding-bottom: 1px; gap: 10px; font-size: 14px; font-weight: 700; }
.about-data {
  padding: clamp(23px, 3vw, 38px);
  border-radius: 16px;
  background: var(--green);
  color: var(--on-green);
}
.about-data-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
}
.about-data-row + .about-data-row {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, currentColor 34%, transparent);
}
.about-data-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, currentColor 55%, transparent);
  border-radius: 50%;
  font: 700 13px/1 var(--display);
}
.about-data h3 { font-size: clamp(17px, 1.6vw, 23px); line-height: 1.4; }
.about-data p { margin-top: 6px; font-size: 15px; line-height: 1.75; }
.feedback-section { padding-block: 65px 78px; }
.feedback-heading h2 { margin: 0; }
.feedback-portrait { width: 73px; height: 73px; }
.feedback-grid { gap: 5%; margin-top: 22px; }
.feedback-form, .feedback-notes { background: var(--surface); border-radius: 13px; padding: 23px; min-width: 0; }
.feedback-form label, .notes-label { font-size: 14px; font-weight: 700; }
.feedback-form input, .feedback-form textarea { border-radius: 8px; font-size: 14px; }
.feedback-note header { font-size: 13px; }
.feedback-note time { font-size: 11px; }
.feedback-note p { font: 15px/1.7 var(--sans); }
.feedback-form .form-message:empty { min-height: 0; margin: 0; }
.footer { padding: 40px 0 18px; background: var(--surface); color: var(--ink); }
.footer-top { padding-bottom: 26px; }
.footer-top p { color: var(--muted); font: 13px/1.6 var(--sans); margin-top: 8px; }
.footer-wordmark { color: var(--green); font-weight: 800; font-size: clamp(28px, 4vw, 53px); }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 13px; font-weight: 600; }
.footer-back { font-size: 12px; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { color: var(--muted); border-color: var(--rule); font-size: 11px; }
.guide-bubble { border-radius: 12px; }
.guide-bubble strong { font-weight: 750; }
.experiment-dialog { border: 0; border-radius: 16px; }
.experiment-dialog::backdrop { background: #10131c8c; backdrop-filter: none; }
.dialog-art { background: #fff; }
.dialog-art .no-cover { color: #969daa; }
.dialog-body h2 { font-size: 27px; line-height: 1.35; }
.dialog-description { font-size: 15px; }
.dialog-note { font-size: 13px; }
.dialog-tags { font-size: 11px; font-weight: 700; }
.dialog-tags span { border-radius: 4px; }

@media (max-width: 1100px) {
  .page-width { width: calc(100% - 64px); }
  .hero { min-height: 590px; padding-block: 52px; }
  .hero h1 { font-size: clamp(56px, 8.4vw, 91px); }
}

@media (max-width: 850px) {
  .nav, .nav.scrolled { padding-inline: 24px; }
  .page-width { width: calc(100% - 48px); }
  .hero { grid-template-columns: 1fr 1fr; min-height: 0; padding-block: 46px; gap: 24px; }
  .hero-stage { height: 310px; }
  .hero-topics { gap: 3px; }
  .hero-topics button { padding-inline: 5px; gap: 4px; font-size: 12px; }
  .hero-topics button::before { width: 10px; height: 10px; }
  .hero h1 { font-size: clamp(47px, 8vw, 68px); }
  .hero-intro { font-size: 16px; }
  .intro-break { display: none; }
  .gallery-tools { flex-wrap: nowrap; }
  .feedback-form, .feedback-notes { padding: 18px; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 72px; }
  .nav, .nav.scrolled { height: 57px; padding-inline: 16px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 26px; height: 26px; }
  .page-width { width: calc(100% - 36px); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 27px 29px; }
  .hero-titles { margin-bottom: 22px; }
  .hero h1 { font-size: clamp(49px, 13.4vw, 70px); }
  .hero-english { margin-top: 12px; font-size: clamp(24px, 6.3vw, 33px); }
  .hero-intro { font-size: 15px; }
  .hero-actions { gap: 8px; margin-top: 20px; }
  .hero-actions .button { padding: 8px 13px; gap: 7px; min-height: 44px; }
  .shortcut-hint { display: none; }
  .hero > .perception { justify-self: center; }
  .hero-stage { height: clamp(260px, 76vw, 358px); }
  .hero-topics { margin-top: 6px; }
  .hero-topics button { min-height: 44px; padding-inline: 6px; }
  .gallery { padding-block: 20px 48px; }
  .gallery .section-head { margin-bottom: 14px; }
  .gallery .section-head h2 { font-size: 30px; }
  .collection-count { gap: 4px; max-width: none; font-size: 11px; }
  .collection-count strong { font-size: 24px; }
  .reader-character, .reader-character img { width: 51px; height: 51px; }
  .collection-heading-meta { gap: 7px; }
  .gallery-tools { flex-wrap: wrap; }
  .sort-label { margin-left: 0; order: 1; }
  .random-button { margin-left: auto; order: 2; }
  .search-box input, .search-box input::placeholder { font-size: 16px; }
  .sort-label select { font-size: 16px; }
  .filter-pill { padding-inline: 10px; }
  .result-line { font-size: 12px; }
  .photo-wall { gap: 14px; }
  .card-copy { padding: 15px 16px 0; }
  .card-title { font-size: 21px; }
  .card-footer { margin-inline: 16px; }
  .about-section, .feedback-section { padding-block: 42px; }
  .about-inner { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .about-data { padding: 21px 17px; }
  .about-data-row { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .about-data-index { width: 30px; height: 30px; }
  .feedback-heading h2 { font-size: 30px; }
  .feedback-grid { gap: 16px; }
  .feedback-form input, .feedback-form textarea { font-size: 16px; }
  .footer { padding-top: 28px; }
  .footer-top { gap: 16px 12px; }
  .footer-top > div { flex-basis: 100%; }
  .dialog-body h2 { font-size: 23px; }
}
