:root {
  --ink: #121512;
  --ink-soft: #4b514d;
  --ivory: #f6f1e8;
  --paper: #fbf7ef;
  --mist: #e7eee9;
  --teal: #1f6f70;
  --teal-deep: #0e4143;
  --copper: #b88750;
  --wine: #70323e;
  --line: rgba(18, 21, 18, 0.14);
  --glass: rgba(246, 241, 232, 0.72);
  --dark-glass: rgba(6, 15, 14, 0.66);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans SC", sans-serif;
  letter-spacing: 0;
  font-kerning: normal;
}

html[lang="zh-CN"] body {
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", ui-sans-serif, system-ui, sans-serif;
}

html[lang="zh-Hant"] body {
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", ui-sans-serif, system-ui, sans-serif;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-Hant"] h1,
html[lang="zh-Hant"] h2,
html[lang="zh-Hant"] h3 {
  line-break: strict;
  word-break: normal;
  letter-spacing: 0;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100svh;
  overflow-x: hidden;
}

.topbar {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  width: min(1160px, calc(100% - 36px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(14, 20, 18, 0.48);
  color: #fff;
  backdrop-filter: blur(20px);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
}

.brand-mark {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 2px 4px;
  border-radius: 10px;
  isolation: isolate;
}

.brand-mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10px -12px -8px -10px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 46% 48%,
      rgba(255, 255, 255, 0.48) 0%,
      rgba(255, 255, 255, 0.3) 44%,
      rgba(255, 255, 255, 0.12) 63%,
      transparent 78%);
  filter: blur(1px);
  opacity: 0.94;
  backdrop-filter: blur(4px) saturate(115%);
  -webkit-backdrop-filter: blur(4px) saturate(115%);
}

.brand-mark img {
  width: auto;
  height: 58px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.78))
    drop-shadow(0 7px 15px rgba(0, 0, 0, 0.22));
}

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

.nav-links a {
  padding: 10px 12px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}

.lang-switch button {
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.lang-switch button[data-lang-option="zh-CN"] {
  min-width: 48px;
}

.lang-switch button.is-active,
.lang-switch button:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.nav-cta,
.solid-btn,
.ghost-btn,
.icon-btn {
  border: 0;
  cursor: pointer;
}

.nav-cta,
.solid-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 4px;
  background: var(--copper);
  color: #101412;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(184, 135, 80, 0.28);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 96svh;
  display: grid;
  align-items: center;
  padding: 130px 6vw 54px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(4, 9, 9, 0.88), rgba(4, 9, 9, 0.46) 42%, rgba(4, 9, 9, 0.18) 70%),
    linear-gradient(0deg, rgba(4, 9, 9, 0.82), rgba(4, 9, 9, 0.04) 38%, rgba(4, 9, 9, 0.66));
}

.hero::after {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 108px),
    linear-gradient(180deg, transparent, rgba(184, 135, 80, 0.08));
  mix-blend-mode: screen;
  opacity: 0.6;
}

.hero-video {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.08) brightness(0.76);
  transform: scale(1.03);
}

.hero-motion {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(11, 18, 17, 0.96), rgba(24, 31, 29, 0.84)),
    url("../images/zhou-ucl-stage-bg.webp") center / cover no-repeat;
}

.hero-segment {
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.42, 0, 0.16, 1);
}

.hero-segment.is-active {
  opacity: 1;
}

.hero-stage {
  position: relative;
  z-index: 4;
  width: min(1220px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(340px, 0.8fr);
  grid-template-areas:
    "copy ."
    "ai ai";
  gap: clamp(18px, 3.4vw, 54px);
  align-items: center;
}

.hero-copy {
  grid-area: copy;
  align-self: center;
  padding-bottom: 4vh;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 480px;
  margin: 0;
  font-size: clamp(42px, 5.3vw, 76px);
  line-height: 1.02;
  font-weight: 760;
}

html[lang="zh-CN"] .hero h1,
html[lang="zh-Hant"] .hero h1 {
  max-width: 7.4em;
  line-height: 1.08;
}

.hero-subtitle {
  max-width: 450px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.72;
}

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

.ai-float {
  grid-area: ai;
  position: relative;
  z-index: 8;
  align-self: center;
  justify-self: center;
  width: min(820px, 100%);
  margin-top: 10vh;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(9, 15, 14, 0.38);
  color: var(--ink);
  box-shadow: 0 18px 62px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
  transform: translateY(-20%);
  transition:
    background 0.42s ease,
    transform 0.42s ease;
}

.ai-float:focus-within {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(10, 18, 17, 0.5);
}

.ai-float-thread {
  display: none;
  position: absolute;
  left: 34px;
  bottom: calc(100% + 22px);
  width: min(620px, calc(100% - 68px));
  max-height: min(28vh, 230px);
  overflow: auto;
  gap: 10px;
  padding: 0 4px;
  color: #fff;
  scrollbar-width: none;
}

.ai-float.is-expanded .ai-float-thread {
  display: grid;
}

.ai-float .bubble {
  max-width: min(620px, 86%);
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.62;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.48);
}

.ai-float .bubble.user {
  align-self: flex-end;
  background: transparent;
  text-align: right;
}

.ai-float .bubble.ai {
  align-self: flex-start;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
}

.ai-float-form {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  min-height: 56px;
}

.ai-float-form input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
}

.ai-float-form input::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.ai-attach,
.ai-send {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.ai-attach {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.ai-send {
  background: rgba(255, 255, 255, 0.94);
  color: #0c1110;
  font-size: 17px;
  font-weight: 800;
}

.ai-console {
  position: relative;
  z-index: 4;
  align-self: center;
  min-height: 412px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(238, 244, 239, 0.72)),
    rgba(255, 255, 255, 0.74);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.ai-console::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(18, 21, 18, 0.08);
  border-radius: 5px;
  pointer-events: none;
}

.console-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(18, 21, 18, 0.12);
}

.console-kicker {
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.console-title {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 760;
}

.status-pill {
  min-width: max-content;
  padding: 8px 10px;
  border: 1px solid rgba(31, 111, 112, 0.18);
  border-radius: 999px;
  background: rgba(31, 111, 112, 0.08);
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 700;
}

.prompt-tabs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.prompt-tabs span {
  padding: 10px 8px;
  border: 1px solid rgba(18, 21, 18, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

.prompt-tabs span:first-child {
  border-color: rgba(184, 135, 80, 0.48);
  color: var(--ink);
  background: rgba(184, 135, 80, 0.13);
}

.chat-thread {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.bubble {
  width: fit-content;
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 6px;
  line-height: 1.55;
  font-size: 14px;
}

.bubble.user {
  justify-self: end;
  background: var(--teal-deep);
  color: #fff;
}

.bubble.ai {
  background: rgba(18, 21, 18, 0.06);
  color: var(--ink-soft);
}

.chat-input {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 10px;
  border: 1px solid rgba(18, 21, 18, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.chat-input input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.chat-input button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.professor-figure {
  position: absolute;
  z-index: 3;
  right: clamp(42px, 8vw, 150px);
  bottom: -6px;
  width: min(21.5vw, 318px);
  min-width: 226px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: 0.95;
  pointer-events: none;
  transform: translateY(0) scale(1.08);
  transform-origin: bottom center;
  filter:
    drop-shadow(0 30px 44px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 24px rgba(226, 198, 160, 0.08));
}

.professor-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: saturate(0.84) contrast(1.04) brightness(0.88);
}

.scan-field {
  position: absolute;
  z-index: 1;
  right: 2vw;
  bottom: 0;
  width: min(44vw, 660px);
  height: 68%;
  border-left: 1px solid rgba(184, 135, 80, 0.2);
  opacity: 0.52;
  pointer-events: none;
}

.scan-field::before,
.scan-field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(184, 135, 80, 0.48);
  animation: scan 5.6s ease-in-out infinite;
}

.scan-field::after {
  animation-delay: 2.8s;
}

.below-fold {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  z-index: 5;
  background: var(--paper);
}

.section {
  padding: clamp(70px, 9vw, 128px) 6vw;
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin: 0 0 36px;
}

.section-heading p:first-child {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.04;
}

html[lang="zh-CN"] .section-heading h2,
html[lang="zh-Hant"] .section-heading h2 {
  max-width: 12em;
  line-height: 1.12;
}

.section-heading .lead {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.portrait-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  background: #0f1716;
  color: #fff;
}

.portrait-panel video,
.image-band img,
.image-band video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-panel video {
  position: absolute;
  inset: 0;
  filter: saturate(0.86) contrast(1.06);
}

.portrait-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 13, 13, 0.08), rgba(6, 13, 13, 0.78));
}

.portrait-caption {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 10px;
}

.portrait-caption strong {
  font-size: 22px;
}

.portrait-caption span {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

.principles {
  display: grid;
  gap: 18px;
}

.principle {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.principle span {
  color: var(--copper);
  font-weight: 800;
}

.principle h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.principle p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.68;
}

.deep-band {
  position: relative;
  padding: clamp(72px, 9vw, 126px) 6vw;
  overflow: hidden;
  background: #101817;
  color: #fff;
}

.deep-band video,
.deep-band .band-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.05) brightness(0.5);
}

.deep-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 16, 15, 0.92), rgba(10, 16, 15, 0.48), rgba(10, 16, 15, 0.82));
}

.band-content {
  position: relative;
  z-index: 1;
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(340px, 1fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: end;
}

.band-content h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.02;
}

html[lang="zh-CN"] .band-content h2,
html[lang="zh-Hant"] .band-content h2 {
  max-width: 11em;
  line-height: 1.1;
}

.band-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.78;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.stat {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.stat b {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-size: 26px;
}

.stat span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.editorial-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.article-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px;
  background: var(--paper);
}

.article-row small {
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
}

.article-row h3 {
  margin: 4px 0 8px;
  font-size: 24px;
}

.article-row p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.article-row .arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--teal-deep);
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gateway {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 8px;
  background: #101817;
  color: #fff;
}

.gateway video,
.gateway img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) brightness(0.58);
  transition: transform 0.8s ease;
}

.gateway:hover video,
.gateway:hover img {
  transform: scale(1.035);
}

.gateway::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 12, 0.14), rgba(8, 12, 12, 0.82));
}

.gateway-content {
  position: absolute;
  z-index: 1;
  left: 26px;
  right: 26px;
  bottom: 26px;
}

.gateway-content small {
  color: rgba(255, 255, 255, 0.64);
  text-transform: uppercase;
  font-weight: 800;
}

.gateway-content h3 {
  margin: 10px 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}

.gateway-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.62;
}

.page-hero {
  min-height: 74svh;
  padding: 146px 6vw 74px;
  display: grid;
  align-items: end;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: #101817;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 12, 12, 0.9), rgba(7, 12, 12, 0.5), rgba(7, 12, 12, 0.78));
}

.page-hero video,
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) brightness(0.64);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 90px);
  line-height: 0.98;
}

html[lang="zh-CN"] .page-hero h1,
html[lang="zh-Hant"] .page-hero h1 {
  max-width: 9em;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.72;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 6vw, 92px);
  align-items: start;
}

.sticky-note {
  position: sticky;
  top: 108px;
  padding: 24px;
  border-left: 3px solid var(--copper);
  background: rgba(255, 255, 255, 0.54);
}

.sticky-note h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.sticky-note p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.timeline-item time {
  color: var(--teal);
  font-weight: 800;
}

.timeline-item h3 {
  margin: 0 0 8px;
}

.timeline-item p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.68;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
}

.tool-panel,
.upload-panel,
.leaderboard,
.history-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.tool-panel {
  padding: 22px;
}

.tool-panel h2,
.upload-panel h2,
.leaderboard h2,
.history-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.tool-panel p,
.upload-panel p,
.history-panel p {
  color: var(--ink-soft);
  line-height: 1.64;
}

.upload-panel {
  padding: 22px;
}

.dropzone {
  min-height: 170px;
  display: grid;
  place-items: center;
  margin-top: 18px;
  padding: 22px;
  border: 1px dashed rgba(31, 111, 112, 0.5);
  border-radius: 6px;
  background: rgba(31, 111, 112, 0.06);
  text-align: center;
}

.input-stack {
  display: grid;
  gap: 12px;
}

.input-stack input,
.input-stack textarea,
.input-stack select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 13px 14px;
  outline-color: var(--teal);
}

.input-stack textarea {
  min-height: 120px;
  resize: vertical;
}

.analysis-output {
  margin-top: 18px;
  padding: 18px;
  border-radius: 6px;
  background: #101817;
  color: #fff;
}

.analysis-output p {
  color: rgba(255, 255, 255, 0.76);
}

.olympics-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr);
  gap: 18px;
}

.leaderboard {
  overflow: hidden;
}

.leaderboard table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard th,
.leaderboard td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.leaderboard th {
  color: var(--teal-deep);
  font-size: 12px;
  text-transform: uppercase;
}

.leaderboard tr:last-child td {
  border-bottom: 0;
}

.history-panel {
  padding: 24px;
}

.site-footer {
  padding: 40px 6vw;
  background: #0d1413;
  color: rgba(255, 255, 255, 0.66);
}

.site-footer .section-inner {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
}

.site-footer strong {
  color: #fff;
}

.find-modal {
  width: min(760px, calc(100% - 32px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(12, 18, 17, 0.94);
  color: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(24px);
}

.find-modal::backdrop {
  background: rgba(3, 7, 7, 0.62);
}

.find-modal-inner {
  position: relative;
  padding: clamp(24px, 5vw, 42px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.find-modal h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
}

.find-modal .lead {
  max-width: 560px;
  margin: 12px 0 26px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.find-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.qr-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.qr-panel h3,
.qr-panel p {
  margin: 0;
}

.qr-panel p {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.62;
}

.find-qr-frame {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 10px;
  border-radius: 7px;
  background: #fff;
}

.find-qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-placeholder {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  text-align: center;
}

.tools-select-page {
  width: min(1160px, 100% - 36px);
  margin: 0 auto;
  padding: clamp(76px, 9vw, 128px) 0 80px;
}

.tools-select-hero {
  max-width: 960px;
  margin-bottom: clamp(34px, 6vw, 68px);
}

.tools-select-hero h1 {
  margin: 0;
  font-size: clamp(42px, 5.8vw, 72px);
  line-height: 1.02;
}

html[lang="zh-CN"] .tools-select-hero h1,
html[lang="zh-Hant"] .tools-select-hero h1 {
  max-width: 9em;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.1;
}

.tools-select-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.76;
}

.tool-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tool-choice-card {
  min-height: 320px;
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(18, 21, 18, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.34)),
    rgba(246, 241, 232, 0.62);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.tool-choice-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 111, 112, 0.3);
  background: #fff;
}

.tool-choice-card span {
  color: var(--copper);
  font-weight: 800;
}

.tool-choice-card h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.tool-choice-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.tool-choice-card b {
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid rgba(18, 21, 18, 0.12);
  border-radius: 999px;
  color: rgba(18, 21, 18, 0.58);
  font-size: 12px;
}

.minimal-page .lang-switch {
  border-color: rgba(18, 21, 18, 0.12);
  background: rgba(18, 21, 18, 0.04);
}

.minimal-page .lang-switch button {
  color: rgba(18, 21, 18, 0.58);
}

.minimal-page .lang-switch button.is-active,
.minimal-page .lang-switch button:hover {
  color: var(--ink);
  background: rgba(18, 21, 18, 0.08);
}

.race-workspace-simple {
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

.race-qr-panel {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.race-qr-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
}

.race-qr-panel img {
  width: min(230px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  padding: 10px;
  border: 1px solid rgba(18, 21, 18, 0.12);
  border-radius: 8px;
  background: #fff;
}

.race-qr-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.68;
}

.rank-daily-note {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.rank-controls {
  display: grid;
  grid-template-columns: auto minmax(180px, 320px) auto;
  gap: 12px;
  align-items: center;
  padding: 0 0 18px;
  color: rgba(18, 21, 18, 0.62);
  font-size: 13px;
}

.rank-controls input {
  accent-color: var(--teal);
}

.rank-controls output {
  color: var(--ink);
  font-weight: 800;
}

.big-rank-table tr.is-hidden {
  display: none;
}

.race-history-section {
  width: min(1180px, 100%);
  margin: 70px auto 0;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.history-list-compact {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.history-list-compact p {
  margin: 0;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink-soft);
  line-height: 1.75;
}

@keyframes metricPulse {
  0%,
  100% {
    opacity: 0.56;
    transform: scaleX(0.9);
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes scan {
  0% {
    top: 12%;
    opacity: 0;
  }

  16%,
  72% {
    opacity: 1;
  }

  100% {
    top: 88%;
    opacity: 0;
  }
}

@media (max-width: 1060px) {
  .topbar {
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 10px;
    border-radius: 6px;
    background: rgba(14, 20, 18, 0.92);
    backdrop-filter: blur(18px);
  }

  .topbar.is-open .nav-links {
    display: grid;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 14px;
  }

  .hero {
    padding: 116px 20px 48px;
  }

  .hero-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "ai";
    gap: 26px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .ai-float {
    margin-top: 0;
  }

  .professor-figure {
    display: none;
  }

  .scan-field {
    display: none;
  }

  .manifesto-grid,
  .band-content,
  .two-column,
  .tool-layout,
  .olympics-grid,
  .tool-choice-grid,
  .race-workspace-simple {
    grid-template-columns: 1fr;
  }

  .sticky-note {
    position: relative;
    top: auto;
  }

  .race-qr-panel {
    position: relative;
    top: auto;
  }
}

@media (max-width: 720px) {
  .topbar {
    top: 10px;
    width: calc(100% - 20px);
    padding: 8px;
    gap: 7px;
  }

  .brand-mark img {
    width: auto;
    height: 44px;
    padding: 0;
  }

  .lang-switch {
    gap: 1px;
    padding: 2px;
  }

  .lang-switch button {
    min-width: 27px;
    height: 28px;
    font-size: 11px;
  }

  .nav-cta {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hero {
    min-height: 100svh;
    padding: 100px 16px 42px;
  }

  .hero h1 {
    max-width: 360px;
    font-size: clamp(38px, 10.6vw, 50px);
  }

  .hero-subtitle {
    max-width: 360px;
    font-size: 15px;
  }

  .hero-actions {
    gap: 8px;
  }

  .solid-btn,
  .ghost-btn {
    width: 100%;
  }

  .ai-float {
    width: 100%;
    margin-top: 0;
    background: rgba(247, 244, 237, 0.3);
  }

  .ai-float-thread {
    top: calc(100% + 12px);
    bottom: auto;
    left: 18px;
    width: calc(100% - 36px);
    max-height: 18vh;
  }

  .ai-float-form {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    min-height: 52px;
  }

  .ai-attach,
  .ai-send {
    width: 38px;
    height: 38px;
  }

  .professor-figure {
    display: none;
  }

  .section {
    padding: 70px 18px;
  }

  .portrait-panel {
    min-height: 420px;
  }

  .stat-row,
  .gateway-grid {
    grid-template-columns: 1fr;
  }

  .article-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 0;
  }

  .article-row .arrow {
    display: none;
  }

  .editorial-list {
    background: transparent;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer .section-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .find-modal-grid {
    grid-template-columns: 1fr;
  }

  .tools-select-page {
    width: calc(100% - 32px);
    padding: 54px 0 54px;
  }

  .tool-choice-card {
    min-height: 260px;
  }

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

/* Minimal secondary pages */
.minimal-page {
  min-height: 100svh;
  background: #faf8f2;
}

.minimal-page .topbar {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: 18px auto 0;
  border-color: rgba(18, 21, 18, 0.12);
  background: rgba(250, 248, 242, 0.88);
  color: var(--ink);
  box-shadow: 0 12px 38px rgba(18, 21, 18, 0.08);
}

.minimal-page .brand-mark::before {
  background:
    radial-gradient(ellipse at 46% 48%,
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0.18) 48%,
      transparent 76%);
  box-shadow: none;
  opacity: 0.76;
}

.minimal-page .brand-mark img {
  filter: drop-shadow(0 6px 10px rgba(18, 21, 18, 0.08));
}

.minimal-page .brand-mark span,
.minimal-page .nav-links a {
  color: rgba(18, 21, 18, 0.68);
}

.minimal-page .nav-links a:hover,
.minimal-page .nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(18, 21, 18, 0.06);
}

.minimal-page .menu-toggle {
  border-color: rgba(18, 21, 18, 0.16);
  background: rgba(18, 21, 18, 0.04);
  color: var(--ink);
}

.minimal-page .topbar.is-open .nav-links {
  border: 1px solid rgba(18, 21, 18, 0.1);
  background: rgba(250, 248, 242, 0.96);
}

.minimal-page .eyebrow {
  color: rgba(18, 21, 18, 0.5);
}

.tool-chat-page {
  min-height: calc(100svh - 100px);
  display: grid;
  padding: 42px 18px 28px;
}

.chatgpt-shell {
  width: min(840px, 100%);
  min-height: calc(100svh - 170px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.chat-empty-state {
  text-align: center;
  color: rgba(18, 21, 18, 0.72);
}

.chat-empty-state span {
  font-family: inherit;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 760;
  letter-spacing: 0;
}

.tool-chat-page.has-history .chatgpt-shell {
  justify-content: flex-end;
}

.tool-chat-page.has-history .chat-empty-state {
  display: none;
}

.minimal-chat-history {
  width: min(760px, 100%);
  max-height: calc(100svh - 238px);
  margin: 0 auto;
  padding: 18px 4px 4px;
  overflow: auto;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
}

.minimal-chat-history[hidden] {
  display: none;
}

.minimal-chat-history .bubble {
  max-width: min(620px, 82%);
  font-size: 15px;
  line-height: 1.72;
}

.minimal-chat-history .bubble.user {
  align-self: flex-end;
  padding: 12px 15px;
  border-radius: 18px;
  background: #ece8df;
  color: var(--ink);
}

.minimal-chat-history .bubble.ai {
  padding: 0;
  border-radius: 0;
  background: transparent;
  align-self: flex-start;
  color: rgba(18, 21, 18, 0.84);
}

.minimal-chat-box {
  width: min(760px, 100%);
  min-height: 58px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: end;
  padding: 8px;
  border: 1px solid rgba(18, 21, 18, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 54px rgba(18, 21, 18, 0.1);
}

.minimal-chat-box textarea {
  min-height: 42px;
  max-height: 168px;
  padding: 10px 2px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  line-height: 1.48;
}

.minimal-chat-action,
.minimal-chat-send {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.minimal-chat-action {
  background: transparent;
  color: rgba(18, 21, 18, 0.54);
  font-size: 26px;
}

.minimal-chat-send {
  background: var(--ink);
  color: #fff;
  font-size: 18px;
}

.race-minimal {
  min-height: 100svh;
  padding: 70px 6vw 58px;
}

.race-intro,
.race-workspace {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.race-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 6vw, 76px);
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.race-intro h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.02;
}

html[lang="zh-CN"] .race-intro h1,
html[lang="zh-Hant"] .race-intro h1 {
  max-width: 9em;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.1;
}

.race-intro p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.76;
}

.race-notes {
  display: grid;
  gap: 14px;
}

.race-notes div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.race-notes strong,
.race-notes span {
  display: block;
}

.race-notes strong {
  margin-bottom: 6px;
  color: var(--ink);
}

.race-notes span {
  color: var(--ink-soft);
  line-height: 1.58;
}

.race-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
  padding-top: 30px;
}

.race-upload-minimal {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.race-upload-minimal h2,
.race-board-header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.race-upload-minimal p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.62;
}

.race-upload-minimal label {
  display: grid;
  gap: 7px;
  color: rgba(18, 21, 18, 0.6);
  font-size: 12px;
  text-transform: uppercase;
}

.race-upload-minimal input,
.race-upload-minimal textarea {
  width: 100%;
  border: 1px solid rgba(18, 21, 18, 0.13);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 12px 13px;
  outline-color: var(--teal);
  text-transform: none;
}

.race-upload-minimal input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 1px solid rgba(18, 21, 18, 0.16);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  cursor: pointer;
}

.race-upload-minimal textarea {
  min-height: 106px;
  resize: vertical;
}

.race-form-note {
  min-height: 21px;
  font-size: 13px;
}

.race-board-minimal {
  min-width: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.race-board-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 18px;
}

.race-board-header .eyebrow {
  margin-bottom: 8px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(18, 21, 18, 0.12);
  border-radius: 999px;
  color: rgba(18, 21, 18, 0.64);
  font-size: 12px;
  white-space: nowrap;
}

.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: metricPulse 2.4s ease-in-out infinite;
}

.rank-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.big-rank-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.32);
}

.big-rank-table th,
.big-rank-table td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.big-rank-table th {
  color: rgba(18, 21, 18, 0.52);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.big-rank-table td:first-child {
  color: var(--teal-deep);
  font-weight: 800;
}

.big-rank-table td:nth-child(4) {
  font-size: 24px;
  font-weight: 760;
  white-space: nowrap;
}

.big-rank-table tr.rank-live td,
.big-rank-table tr.rank-new td {
  background: rgba(31, 111, 112, 0.06);
}

.big-rank-table tr.rank-new {
  animation: rowArrive 0.72s ease-out both;
}

@keyframes rowArrive {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1060px) {
  .minimal-page .topbar.is-open .nav-links {
    display: grid;
  }

  .race-intro,
  .race-workspace {
    grid-template-columns: 1fr;
  }

  .race-upload-minimal {
    position: relative;
    top: auto;
  }
}

@media (max-width: 720px) {
  .tool-chat-page {
    padding: 40px 12px 18px;
  }

  .chatgpt-shell {
    min-height: calc(100svh - 160px);
  }

  .minimal-chat-box {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    min-height: 54px;
    padding: 7px;
  }

  .minimal-chat-action,
  .minimal-chat-send {
    width: 38px;
    height: 38px;
  }

  .minimal-chat-history {
    max-height: calc(100svh - 198px);
  }

  .minimal-chat-history .bubble {
    max-width: 90%;
  }

  .race-minimal {
    padding: 46px 18px 42px;
  }

  .race-intro h1 {
    font-size: clamp(38px, 10.6vw, 50px);
  }

  .race-board-header {
    flex-direction: column;
  }
}
