:root {
  --color-tsinghua-purple: #4b2498;
  --color-deep-purple: #22104f;
  --color-mist-purple: #8b7fc5;
  --color-paper: #faf8f1;
  --color-warm-paper: #f3eddd;
  --color-pencil-gray: #5d5a65;
  --color-glow: #ffe78c;
  --color-ink: #221a3c;
  --color-line: rgba(75, 36, 152, 0.18);
  --shadow-soft: 0 18px 50px rgba(46, 20, 104, 0.12);
  --shadow-small: 0 10px 28px rgba(46, 20, 104, 0.1);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--color-ink);
  background: var(--color-paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 231, 140, 0.13), transparent 21rem),
    linear-gradient(180deg, var(--color-deep-purple) 0, var(--color-deep-purple) 48rem, var(--color-paper) 48rem);
  color: var(--color-ink);
}

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

button {
  font: inherit;
}

.section-dark {
  position: relative;
  overflow: hidden;
  color: #fffaf0;
  background:
    radial-gradient(circle at 76% 17%, rgba(255, 231, 140, 0.18), transparent 13rem),
    radial-gradient(circle at 24% 70%, rgba(118, 86, 190, 0.34), transparent 20rem),
    linear-gradient(135deg, #1d0f4c 0%, #351478 46%, #7166a1 100%);
}

.paper-section {
  position: relative;
  overflow: hidden;
  padding: 96px max(28px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(rgba(250, 248, 241, 0.92), rgba(250, 248, 241, 0.95)),
    radial-gradient(circle at 20% 0%, rgba(255, 231, 140, 0.22), transparent 25rem),
    radial-gradient(circle at 86% 24%, rgba(139, 127, 197, 0.18), transparent 28rem);
}

.paper-section::before,
.paper-texture,
.grain {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.paper-section::before,
.paper-texture {
  opacity: 0.48;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(46, 20, 104, 0.035) 0 1px, transparent 1.2px),
    radial-gradient(circle at 70% 80%, rgba(117, 95, 63, 0.028) 0 1px, transparent 1.3px);
  background-size: 18px 18px, 26px 26px;
  mix-blend-mode: multiply;
}

.grain {
  opacity: 0.28;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.22) 0 0.6px, transparent 0.9px),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,0.14) 0 0.7px, transparent 1px),
    radial-gradient(circle at 30% 80%, rgba(255,231,140,0.18) 0 0.7px, transparent 1px);
  background-size: 10px 10px, 14px 14px, 18px 18px;
}

.contours,
.card-contours,
.poster-contours {
  position: absolute;
  inset: -8%;
  pointer-events: none;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg width='560' height='420' viewBox='0 0 560 420' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d8cbff' stroke-width='1' stroke-opacity='.35'%3E%3Cpath d='M42 110c84-80 212-68 266 4 70 92-8 202-100 186-80-14-106-102-60-154 54-60 144-40 158 22 14 66-62 104-104 70-35-28-14-78 31-82 40-3 65 31 48 62'/%3E%3Cpath d='M340 54c84-42 178-18 194 60 18 90-70 168-154 124-60-32-58-112 5-142 52-24 113 6 115 58 2 48-48 82-91 58'/%3E%3Cpath d='M30 344c80-48 180-42 232 8 54 52 122 50 208-2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 560px 420px;
  animation: contourDrift 26s linear infinite;
}

.card-contours,
.poster-contours {
  inset: 0;
  opacity: 0.22;
  background-size: 330px 250px;
}

.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 680;
  letter-spacing: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  overflow: visible;
}

.brand-mark .fold-a {
  fill: rgba(255, 255, 255, 0.1);
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1.7;
}

.brand-mark .fold-line,
.brand-mark .route {
  fill: none;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark .route {
  stroke-dasharray: 46;
  animation: pathReveal 3s ease forwards;
}

.brand-mark .pin {
  fill: var(--color-tsinghua-purple);
  stroke: white;
  stroke-width: 1.5;
}

.brand-mark .glow-pin {
  fill: var(--color-glow);
  filter: drop-shadow(0 0 8px rgba(255, 231, 140, 0.9));
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 14px;
}

.nav nav a {
  transition: color 180ms ease, text-shadow 180ms ease;
}

.nav nav a:hover {
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 231, 140, 0.4);
}

.hero {
  min-height: 100vh;
  padding-bottom: 56px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
  max-width: 1240px;
  min-height: calc(100vh - 112px);
  margin: 0 auto;
  padding: 28px 34px 80px;
}

.hero-copy {
  max-width: 540px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-mist-purple);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-dark .eyebrow {
  color: rgba(255, 231, 140, 0.85);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(48px, 5.1vw, 80px);
  line-height: 0.98;
  font-weight: 580;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  margin-bottom: 12px;
}

.hero h1 .en-title {
  max-width: 720px;
}

.hero h1 .zh-title {
  font-size: clamp(42px, 4.2vw, 66px);
  line-height: 1.08;
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero h2 {
  margin-bottom: 28px;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.2;
  font-weight: 520;
  color: rgba(255, 250, 240, 0.92);
}

.lead {
  max-width: 510px;
  color: rgba(255, 250, 240, 0.72);
  font-size: 17px;
  line-height: 1.95;
}

.hero-actions,
.phone-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  color: inherit;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn.primary {
  background: rgba(255, 250, 240, 0.94);
  color: var(--color-deep-purple);
  box-shadow: 0 0 0 rgba(255, 231, 140, 0);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 250, 240, 0.88);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 231, 140, 0.58);
  box-shadow: 0 0 26px rgba(255, 231, 140, 0.22);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 44px;
}

.stats span {
  min-height: 76px;
  padding: 14px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.055);
  color: rgba(255, 250, 240, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

.stats b {
  display: block;
  margin-bottom: 6px;
  color: #fff8d7;
  font-size: 22px;
  font-weight: 650;
}

.hero-map {
  position: relative;
  min-height: 570px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(20, 10, 58, 0.25), rgba(20, 10, 58, 0.25)),
    radial-gradient(circle at 68% 24%, rgba(255, 231, 140, 0.16), transparent 8rem),
    radial-gradient(circle at 40% 70%, rgba(126, 99, 198, 0.28), transparent 18rem);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 30px 90px rgba(7, 3, 22, 0.28);
  overflow: hidden;
}

.hero-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 44%, black 0 34%, transparent 76%);
}

.map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-line {
  fill: none;
  stroke: rgba(255, 231, 140, 0.7);
  stroke-width: 1.3;
  stroke-dasharray: 5 9;
  filter: drop-shadow(0 0 6px rgba(255, 231, 140, 0.38));
  animation: dashTravel 18s linear infinite, pathReveal 4s ease forwards;
}

.route-two {
  stroke: rgba(214, 201, 255, 0.36);
  animation-duration: 22s, 4.5s;
}

.route-three {
  stroke: rgba(255, 255, 255, 0.25);
  animation-duration: 25s, 5s;
}

.node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: grid;
  gap: 3px;
  color: rgba(255, 250, 240, 0.7);
  font-size: 12px;
  white-space: nowrap;
}

.node::before {
  content: "";
  width: 10px;
  height: 10px;
  margin: 0 auto 6px;
  border-radius: 999px;
  background: #e9dcff;
  box-shadow: 0 0 12px rgba(233, 220, 255, 0.55);
}

.node.glow::before {
  width: 13px;
  height: 13px;
  background: var(--color-glow);
  animation: glowPulse 2.8s ease-in-out infinite;
}

.node.big::before {
  width: 18px;
  height: 18px;
}

.node b {
  color: #fff8d7;
  font-weight: 650;
  text-align: center;
}

.node span {
  color: rgba(255, 250, 240, 0.54);
}

.floating-card {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.94);
  color: var(--color-ink);
  box-shadow: 0 18px 50px rgba(5, 2, 19, 0.22);
  animation: softFloat 7s ease-in-out infinite;
}

.person-card {
  display: flex;
  gap: 14px;
  align-items: center;
  width: 235px;
  padding: 12px;
}

.person-card strong,
.note-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-deep-purple);
  font-size: 15px;
}

.person-card span,
.floating-card small {
  color: #7f7990;
  font-size: 11px;
}

.person-card p,
.note-card p,
.quote-card p {
  margin: 4px 0 0;
  color: var(--color-pencil-gray);
  font-size: 12px;
  line-height: 1.55;
}

.note-card,
.quote-card {
  width: 220px;
  padding: 18px;
}

.hero-card-a {
  top: 14%;
  right: 8%;
}

.hero-card-b {
  top: 45%;
  right: 28%;
  animation-delay: -2.2s;
}

.hero-card-c {
  right: 7%;
  bottom: 17%;
  animation-delay: -4s;
}

.hero-card-d {
  left: 8%;
  bottom: 12%;
  animation-delay: -1s;
}

.portrait {
  position: relative;
  width: 92px;
  aspect-ratio: 0.82;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 17px;
  background: #e8e2f8;
  box-shadow: inset 0 0 0 1px rgba(75, 36, 152, 0.12);
}

.portrait svg {
  display: block;
  width: 100%;
  height: 100%;
}

.portrait.mini {
  width: 64px;
  border-radius: 12px;
}

.portrait.poster-portrait {
  width: 145px;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
}

.portrait-halo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 26%, rgba(255,255,255,0.65), transparent 34%),
    radial-gradient(circle at 20% 90%, rgba(255, 231, 140, 0.2), transparent 40%);
}

.portrait.slate {
  filter: saturate(0.82) hue-rotate(12deg);
}

.portrait.paper {
  filter: sepia(0.2) saturate(0.74);
}

.portrait.amber {
  filter: sepia(0.18) hue-rotate(-12deg) saturate(0.9);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  width: 18px;
  height: 30px;
  border: 1px solid rgba(255, 231, 140, 0.62);
  border-radius: 999px;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-glow);
  transform: translateX(-50%);
  animation: cue 1.7s ease-in-out infinite;
}

.section-heading {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin-bottom: 13px;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.15;
  font-weight: 620;
  letter-spacing: 0;
}

.section-heading p:last-child {
  color: var(--color-pencil-gray);
  font-size: 16px;
  line-height: 1.85;
}

.entry-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.entry-card,
.builder-card,
.path-widget,
.theme-panel,
.record-panel,
.coordinate-form,
.poster-card {
  border: 1px solid rgba(75, 36, 152, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow-small);
}

.entry-card {
  min-height: 225px;
  padding: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.entry-card:hover {
  transform: translateY(-5px);
  border-color: rgba(75, 36, 152, 0.24);
  box-shadow: var(--shadow-soft);
}

.line-icon {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: var(--color-tsinghua-purple);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.entry-card h3 {
  margin: 18px 0 10px;
  font-size: 20px;
}

.entry-card p,
.builder-card .summary,
.record-panel p,
.theme-panel span,
.coordinate-form label,
.site-footer p {
  color: var(--color-pencil-gray);
  line-height: 1.75;
}

.builders-section {
  padding-top: 64px;
}

.builder-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(270px, 1fr));
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.builder-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 525px;
  padding: 22px;
  overflow: hidden;
}

.builder-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--color-tsinghua-purple);
  background: rgba(75, 36, 152, 0.08);
}

.status.done {
  color: #2d6a55;
  background: rgba(68, 139, 110, 0.12);
}

.status.sorting {
  color: #6e5a13;
  background: rgba(255, 231, 140, 0.28);
}

.status.waiting {
  color: #7259a6;
  background: rgba(139, 127, 197, 0.14);
}

.builder-card h3 {
  margin-bottom: 6px;
  font-size: 25px;
  color: var(--color-deep-purple);
}

.builder-meta {
  min-height: 43px;
  color: #77717f;
  font-size: 13px;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.tag-row span,
.source-label,
.neighbor-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(75, 36, 152, 0.075);
  color: var(--color-tsinghua-purple);
  font-size: 12px;
}

.tag-row span {
  min-height: 28px;
  padding: 0 10px;
}

.source-label {
  gap: 7px;
  width: fit-content;
  margin-top: 22px;
  padding: 8px 10px;
  border-radius: 12px;
}

.source-label .line-icon {
  width: 18px;
  height: 18px;
}

.text-button {
  align-self: flex-start;
  margin-top: auto;
  padding: 18px 0 0;
  border: 0;
  background: transparent;
  color: var(--color-tsinghua-purple);
  font-weight: 650;
  cursor: pointer;
}

.text-button::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-left: 8px;
  vertical-align: middle;
  background: currentColor;
}

.materials-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.9fr 1.1fr;
  gap: 18px;
  margin-top: 28px;
}

.path-widget,
.theme-panel,
.record-panel,
.coordinate-form {
  padding: 26px;
}

.mini-route {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 20px;
  padding-left: 26px;
}

.mini-route::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--color-glow), rgba(75,36,152,0.25));
}

.route-step {
  position: relative;
  display: grid;
  gap: 3px;
  color: var(--color-pencil-gray);
  font-size: 14px;
  animation: pointLight 3s ease-in-out infinite;
  animation-delay: var(--delay);
}

.route-step::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--color-tsinghua-purple);
  box-shadow: 0 0 0 5px rgba(75, 36, 152, 0.08);
}

.route-step b {
  color: var(--color-deep-purple);
}

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

.theme-tags button,
.chip-row button,
.h5-entry-list button {
  border: 1px solid rgba(75,36,152,0.12);
  background: rgba(255,255,255,0.58);
  color: var(--color-ink);
  cursor: pointer;
}

.theme-tags button {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 14px;
  border-radius: 16px;
  text-align: left;
}

.record-panel {
  display: grid;
  gap: 14px;
}

.record-panel article {
  padding: 14px;
  border-radius: 16px;
  background: rgba(246, 241, 224, 0.58);
}

.record-panel small {
  color: #948c7c;
}

.record-panel strong {
  display: block;
  margin: 6px 0;
}

.mobile-showcase {
  padding: 86px max(28px, calc((100vw - 1120px) / 2));
}

.mobile-showcase .section-heading {
  position: relative;
  z-index: 1;
}

.mobile-showcase .section-heading p:last-child {
  color: rgba(255, 250, 240, 0.64);
}

.phone-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 390px));
  justify-content: center;
  gap: 32px;
}

.phone-frame {
  padding: 12px;
  border-radius: 38px;
  background: rgba(255,255,255,0.12);
  box-shadow: 0 28px 80px rgba(5, 2, 19, 0.36);
}

.phone-screen {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border-radius: 30px;
}

.h5-hero {
  padding: 24px 24px 28px;
  background:
    radial-gradient(circle at 65% 26%, rgba(255, 231, 140, 0.16), transparent 9rem),
    linear-gradient(150deg, #201052 0, #311273 52%, #655a98 100%);
}

.h5-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.27;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.35) 0 .7px, transparent 1px),
    url("data:image/svg+xml,%3Csvg width='330' height='260' viewBox='0 0 330 260' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d8cbff' stroke-opacity='.32'%3E%3Cpath d='M30 80c60-48 138-40 176 8 34 44 8 106-46 104-48-2-68-50-40-78 29-29 75-18 82 18'/%3E%3Cpath d='M202 42c58-22 104 4 98 50-6 48-60 76-96 42'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 13px 13px, 330px 260px;
}

.phone-status {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin-bottom: 56px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}

.phone-status span::before {
  content: "";
  display: inline-block;
  width: 54px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
}

.menu-dot {
  position: absolute;
  top: 58px;
  right: 24px;
  z-index: 2;
  width: 24px;
  height: 18px;
  border: 0;
  border-top: 2px solid rgba(255,255,255,0.8);
  border-bottom: 2px solid rgba(255,255,255,0.8);
  background: transparent;
}

.menu-dot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  border-top: 2px solid rgba(255,255,255,0.8);
}

.phone-screen h3 {
  position: relative;
  z-index: 1;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 31px;
  line-height: 1.22;
  font-weight: 560;
}

.h5-hero > p {
  position: relative;
  z-index: 1;
  color: rgba(255,250,240,0.7);
}

.vertical-path {
  position: relative;
  z-index: 1;
  width: 72%;
  height: 430px;
  margin: 52px auto 28px;
}

.vertical-path::before {
  content: "";
  position: absolute;
  left: 47%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(rgba(255,231,140,0.12), rgba(255,231,140,0.9), rgba(255,231,140,0.16));
}

.year-node {
  position: absolute;
  left: 47%;
  transform: translateX(-50%);
  display: grid;
  gap: 2px;
  color: rgba(255,250,240,0.62);
  font-size: 11px;
  animation: h5Node 4s ease-in-out infinite;
  animation-delay: var(--delay);
}

.year-node:nth-child(1) { top: 3%; }
.year-node:nth-child(2) { top: 30%; left: 34%; }
.year-node:nth-child(3) { top: 58%; left: 58%; }
.year-node:nth-child(4) { top: 84%; }

.year-node::before {
  content: "";
  width: 11px;
  height: 11px;
  margin: 0 auto 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
}

.year-node.lit::before {
  width: 18px;
  height: 18px;
  background: var(--color-glow);
  box-shadow: 0 0 24px rgba(255,231,140,0.85);
}

.year-node b {
  color: #fff8d7;
  text-align: center;
}

.tiny-card {
  position: absolute;
  min-width: 126px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 252, 246, 0.92);
  color: var(--color-deep-purple);
  box-shadow: 0 14px 34px rgba(5, 2, 19, 0.2);
  font-size: 13px;
  animation: softFloat 6s ease-in-out infinite;
}

.tiny-card span {
  display: block;
  margin-top: 4px;
  color: #756f85;
  font-size: 10px;
}

.tiny-card.one { right: -4%; top: 10%; }
.tiny-card.two { left: -8%; top: 43%; animation-delay: -2s; }
.tiny-card.three { right: -8%; bottom: 7%; animation-delay: -4s; }

.phone-actions {
  position: relative;
  z-index: 1;
  justify-content: center;
  margin-top: 8px;
}

.phone-actions .btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 13px;
}

.h5-paper {
  padding: 34px 20px;
  background:
    linear-gradient(rgba(250,248,241,.92), rgba(250,248,241,.96)),
    radial-gradient(circle at 70% 12%, rgba(255,231,140,0.28), transparent 10rem);
}

.h5-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image: radial-gradient(circle at 50% 50%, rgba(75,36,152,0.035) 0 1px, transparent 1.2px);
  background-size: 18px 18px;
}

.h5-paper h3 {
  color: var(--color-deep-purple);
  font-family: inherit;
  font-size: 28px;
}

.h5-entry-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.h5-entry-list button {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 112px;
  padding: 18px;
  border-radius: 18px;
  text-align: left;
  box-shadow: var(--shadow-small);
}

.h5-entry-list .line-icon {
  width: 34px;
  height: 34px;
}

.h5-entry-list b,
.h5-entry-list small {
  display: block;
}

.h5-entry-list small {
  margin-top: 5px;
  color: var(--color-pencil-gray);
  line-height: 1.55;
}

.poster-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 430px);
  gap: 34px;
  align-items: start;
}

.coordinate-form {
  display: grid;
  gap: 16px;
}

.coordinate-form h3 {
  margin-bottom: 4px;
  font-size: 24px;
}

.coordinate-form label {
  margin-top: 10px;
  font-weight: 650;
  color: var(--color-deep-purple);
}

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

.chip-row button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--color-pencil-gray);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.chip-row button.active {
  border-color: rgba(75,36,152,0.42);
  background: var(--color-tsinghua-purple);
  color: #fff;
}

.generate {
  width: fit-content;
  margin-top: 14px;
  border-color: rgba(75,36,152,0.16);
  background: var(--color-deep-purple) !important;
  color: #fffaf0 !important;
}

.poster-card {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  padding: 30px;
  background:
    linear-gradient(rgba(255,252,246,.86), rgba(246,239,220,.94)),
    radial-gradient(circle at 72% 20%, rgba(255,231,140,.3), transparent 9rem);
}

.poster-card header {
  position: relative;
  z-index: 1;
}

.poster-card header p {
  color: var(--color-pencil-gray);
  font-size: 12px;
}

.poster-card h3 {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 42px;
  line-height: 1.1;
  color: var(--color-deep-purple);
}

.poster-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 190px;
  margin: 14px 0 22px;
}

.poster-body::after {
  content: "";
  position: absolute;
  right: 42px;
  top: 36px;
  width: 130px;
  height: 130px;
  border: 1px dashed rgba(75,36,152,0.35);
  border-radius: 50%;
}

.poster-coordinate {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  color: var(--color-tsinghua-purple);
  font-weight: 700;
}

.poster-coordinate::before {
  content: "";
  width: 13px;
  height: 13px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--color-glow);
  box-shadow: 0 0 18px rgba(255,231,140,0.85);
}

.poster-coordinate small {
  color: var(--color-pencil-gray);
  font-weight: 500;
}

.poster-card dl {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0;
}

.poster-card dl div {
  padding: 13px 0;
  border-top: 1px solid rgba(75,36,152,0.12);
}

.poster-card dt {
  margin-bottom: 5px;
  color: #8b8392;
  font-size: 12px;
}

.poster-card dd {
  margin: 0;
  color: var(--color-deep-purple);
  line-height: 1.65;
}

.neighbor-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.neighbor-list span {
  padding: 7px 10px;
}

.poster-card footer {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 24px;
  color: var(--color-pencil-gray);
  font-size: 13px;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 38px;
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 1px solid rgba(75,36,152,0.12);
}

.legend {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 720px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.58);
  color: var(--color-tsinghua-purple);
  font-size: 13px;
}

.legend .line-icon {
  width: 24px;
  height: 24px;
}

.site-footer div {
  position: relative;
  z-index: 1;
  max-width: 380px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 760ms ease, transform 760ms ease;
  transition-delay: var(--delay, 0ms);
}

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

@keyframes pathReveal {
  from {
    stroke-dashoffset: 180;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dashTravel {
  to {
    stroke-dashoffset: -280;
  }
}

@keyframes glowPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 14px rgba(255, 231, 140, 0.65), 0 0 0 0 rgba(255, 231, 140, 0.26);
  }
  50% {
    transform: scale(1.22);
    box-shadow: 0 0 32px rgba(255, 231, 140, 0.95), 0 0 0 12px rgba(255, 231, 140, 0);
  }
}

@keyframes softFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@keyframes contourDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-80px, -36px, 0);
  }
}

@keyframes cue {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}

@keyframes pointLight {
  0%, 100% {
    opacity: 0.78;
  }
  50% {
    opacity: 1;
  }
}

@keyframes h5Node {
  0%, 100% {
    filter: brightness(0.88);
  }
  50% {
    filter: brightness(1.28);
  }
}

@media (max-width: 980px) {
  .nav {
    padding: 18px 22px;
  }

  .nav nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px 22px 70px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-map {
    min-height: 510px;
  }

  .entry-grid,
  .materials-grid,
  .poster-layout {
    grid-template-columns: 1fr 1fr;
  }

  .record-panel,
  .poster-layout {
    grid-column: 1 / -1;
  }

  .phone-grid {
    grid-template-columns: minmax(300px, 390px);
  }
}

@media (max-width: 640px) {
  body {
    background: var(--color-deep-purple);
  }

  .brand span {
    font-size: 14px;
  }

  .hero {
    height: 100svh;
    min-height: 760px;
    padding-bottom: 0;
  }

  .hero-grid {
    position: relative;
    display: block;
    min-height: calc(100svh - 74px);
    padding: 20px;
  }

  .hero-copy.reveal,
  .hero-copy.reveal.is-visible {
    transform: none;
  }

  .hero h1 {
    margin-top: 34px;
    margin-bottom: 12px;
    font-size: 38px;
    line-height: 1.14;
  }

  .hero h1 .zh-title {
    max-width: 8em;
    font-size: 36px;
  }

  .hero h2 {
    font-size: 20px;
    max-width: 335px;
  }

  .lead {
    display: none;
  }

  .stats {
    display: none;
  }

  .hero-actions {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 24px;
    z-index: 5;
    justify-content: center;
    margin-top: 0;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero-map {
    position: absolute;
    left: 0;
    right: 0;
    top: 345px;
    bottom: 86px;
    min-height: 0;
    height: auto;
    margin-top: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero-map::before {
    opacity: 0.45;
  }

  .hero-map::after {
    content: "";
    position: absolute;
    left: 46%;
    top: 18px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(rgba(255,231,140,0.08), rgba(255,231,140,0.72), rgba(255,231,140,0.08));
    box-shadow: 0 0 18px rgba(255,231,140,0.2);
  }

  .hero-card-d,
  .node:nth-of-type(4),
  .node:nth-of-type(5) {
    display: none;
  }

  .person-card {
    width: 184px;
    padding: 10px;
  }

  .note-card {
    width: 178px;
  }

  .hero-card-a {
    top: 4%;
    right: 3%;
  }

  .hero-card-b {
    top: 40%;
    left: 2%;
    right: auto;
  }

  .hero-card-c {
    right: 2%;
    bottom: 3%;
  }

  .map-lines {
    transform: rotate(88deg) scale(1.05);
  }

  .node {
    font-size: 10px;
  }

  .node[style*="--x:15%"] { left: 22% !important; top: 22% !important; }
  .node[style*="--x:40%"] { left: 50% !important; top: 48% !important; }
  .node[style*="--x:69%"] { left: 35% !important; top: 72% !important; }

  .scroll-cue {
    display: none;
  }

  .paper-section {
    padding: 66px 18px;
  }

  .section-heading {
    margin-bottom: 26px;
  }

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

  .entry-grid,
  .materials-grid,
  .poster-layout {
    grid-template-columns: 1fr;
  }

  .entry-card {
    min-height: 150px;
    padding: 22px;
  }

  .entry-card h3 {
    font-size: 18px;
  }

  .builder-row {
    display: flex;
    gap: 14px;
    margin-right: -18px;
    padding-right: 18px;
    scroll-snap-type: x mandatory;
  }

  .builder-card {
    min-width: 82vw;
    scroll-snap-align: start;
  }

  .theme-tags {
    grid-template-columns: 1fr;
  }

  .mobile-showcase {
    display: none;
  }

  .poster-card {
    min-height: 650px;
    padding: 24px;
  }

  .poster-card h3 {
    font-size: 34px;
  }

  .poster-body {
    min-height: 165px;
  }

  .portrait.poster-portrait {
    width: 118px;
  }

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

/* V1.0 app structure update: keep the visual language, replace the long landing page with real H5/Web App pages. */
.app-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.app-brand {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px max(20px, calc((100vw - 1120px) / 2));
  color: #fffaf0;
  background: rgba(34, 16, 79, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-nav {
  display: flex;
  gap: 10px;
}

.app-nav button,
.small-link,
.back-link {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.app-nav button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(255, 250, 240, 0.74);
}

.app-nav button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fffaf0;
}

.entry-home {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(360px, 1fr);
  gap: 54px;
  align-items: center;
  min-height: 100svh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 28px 54px;
}

.entry-home > .brand {
  position: absolute;
  top: 34px;
  left: 28px;
}

.home-copy {
  padding-top: 52px;
}

.home-copy h1 {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 1.02;
  font-weight: 580;
}

.home-copy h1 span {
  display: block;
}

.home-copy h2 {
  max-width: 680px;
  margin-bottom: 22px;
  color: rgba(255, 250, 240, 0.92);
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.35;
}

.home-copy p:not(.eyebrow) {
  max-width: 550px;
  color: rgba(255, 250, 240, 0.68);
  font-size: 16px;
  line-height: 1.85;
}

.home-copy .btn {
  margin-top: 24px;
  margin-right: 16px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.home-actions .btn {
  margin: 0;
}

.home-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 580px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.home-guide h3 {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  color: rgba(255, 250, 240, 0.9);
  font-size: 16px;
  font-weight: 620;
}

.home-guide span {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 250, 240, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.home-guide span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-glow);
  box-shadow: 0 0 12px rgba(255, 231, 140, 0.68);
}

.small-link {
  color: rgba(255, 231, 140, 0.86);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.home-map-visual,
.culture-map,
.focused-map {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(20, 10, 58, 0.2), rgba(20, 10, 58, 0.2)),
    radial-gradient(circle at 64% 28%, rgba(255, 231, 140, 0.14), transparent 9rem),
    radial-gradient(circle at 36% 72%, rgba(126, 99, 198, 0.3), transparent 18rem);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 30px 90px rgba(7, 3, 22, 0.26);
  overflow: hidden;
}

.home-map-visual::before,
.culture-map::before,
.focused-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 44px 44px;
}

.memory-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-glow);
  box-shadow: 0 0 24px rgba(255, 231, 140, .85);
  animation: glowPulse 2.8s ease-in-out infinite;
}

.memory-dot.one { left: 28%; top: 58%; }
.memory-dot.two { left: 62%; top: 32%; animation-delay: -.8s; }
.memory-dot.three { left: 76%; top: 68%; animation-delay: -1.6s; }

.home-note {
  position: absolute;
  left: 28px;
  bottom: 28px;
  color: rgba(255, 250, 240, 0.52);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(19, 10, 44, 0.32);
}

.bottom-drawer,
.map-card-drawer {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 22px;
  width: min(92vw, 560px);
  transform: translateX(-50%);
  padding: 24px;
  border: 1px solid rgba(75, 36, 152, 0.12);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.96);
  color: var(--color-ink);
  box-shadow: 0 24px 70px rgba(5, 2, 19, 0.24);
}

.drawer-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(75, 36, 152, 0.08);
  color: var(--color-tsinghua-purple);
  cursor: pointer;
}

.bottom-drawer h3,
.map-card-drawer h3 {
  margin-bottom: 10px;
  color: var(--color-deep-purple);
  font-size: 24px;
}

.bottom-drawer p,
.map-card-drawer p {
  color: var(--color-pencil-gray);
  line-height: 1.75;
}

.map-page {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 110px;
}

.map-page:has(.map-card-drawer),
.timeline-page:has(.map-card-drawer) {
  z-index: 70;
}

.page-title h1,
.page-title h2 {
  margin: 0 0 12px;
  color: var(--color-deep-purple);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.12;
}

.section-dark .page-title h1,
.section-dark .page-title p {
  color: #fffaf0;
}

.page-title p {
  max-width: 680px;
  color: var(--color-pencil-gray);
  line-height: 1.8;
}

.page-title.compact {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.back-link {
  width: fit-content;
  margin-bottom: 10px;
  color: var(--color-mist-purple);
  font-weight: 650;
}

.section-dark .back-link {
  color: rgba(255, 231, 140, 0.86);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 250, 240, 0.76);
  font-size: 13px;
}

.map-legend .line-icon {
  width: 22px;
  height: 22px;
  stroke: rgba(255, 231, 140, 0.86);
}

.culture-map {
  min-height: min(68svh, 660px);
}

.theme-region {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 170px;
  height: 112px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 231, 140, 0.22);
  border-radius: 50%;
  background: rgba(255, 231, 140, 0.055);
  color: rgba(255, 250, 240, 0.76);
  cursor: pointer;
  backdrop-filter: blur(2px);
}

.theme-region b {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(34, 16, 79, 0.28);
  font-size: 13px;
}

.map-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  justify-items: center;
  gap: 6px;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  color: rgba(255, 250, 240, 0.74);
  cursor: pointer;
  white-space: nowrap;
}

.map-node i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dfd5ff;
  box-shadow: 0 0 10px rgba(223, 213, 255, 0.52);
}

.map-node.person:hover i,
.map-node.person:focus-visible i {
  background: var(--color-glow);
  box-shadow: 0 0 24px rgba(255, 231, 140, .9);
}

.map-node.note {
  color: rgba(255, 231, 140, 0.62);
  font-size: 12px;
}

.map-node.note i {
  width: 7px;
  height: 7px;
  background: rgba(255, 231, 140, 0.75);
}

.fixed-hint {
  position: fixed;
  z-index: 18;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(92vw, 460px);
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(34, 16, 79, 0.72);
  color: rgba(255, 250, 240, 0.82);
  text-align: center;
  backdrop-filter: blur(18px);
}

.drawer-person {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
}

.drawer-person .portrait {
  width: 72px;
}

.paper-shell {
  background:
    linear-gradient(rgba(250, 248, 241, 0.94), rgba(250, 248, 241, 0.97)),
    radial-gradient(circle at 20% 0%, rgba(255, 231, 140, 0.2), transparent 24rem),
    radial-gradient(circle at 86% 24%, rgba(139, 127, 197, 0.16), transparent 28rem);
}

.paper-shell .app-header {
  color: var(--color-deep-purple);
  background: rgba(250, 248, 241, 0.82);
  border-bottom-color: rgba(75, 36, 152, 0.1);
}

.paper-shell .app-nav button {
  color: var(--color-pencil-gray);
}

.paper-shell .brand-mark .fold-a,
.paper-shell .brand-mark .fold-line,
.paper-shell .brand-mark .route {
  stroke: var(--color-tsinghua-purple);
}

.paper-page {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  padding: 46px 20px 90px;
}

.person-hero {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 24px;
  align-items: center;
  margin: 22px 0 42px;
  padding: 24px;
  border: 1px solid rgba(75, 36, 152, 0.1);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow-small);
}

.person-hero h1 {
  margin: 0 0 10px;
  color: var(--color-deep-purple);
  font-size: 42px;
}

.person-hero p {
  color: var(--color-pencil-gray);
  line-height: 1.75;
}

.content-block {
  margin-top: 34px;
}

.content-block h2 {
  margin-bottom: 16px;
  color: var(--color-deep-purple);
  font-size: 25px;
}

.life-timeline {
  position: relative;
  display: grid;
  gap: 16px;
  padding-left: 28px;
}

.life-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--color-glow), rgba(75,36,152,0.18));
}

.life-timeline article,
.paper-card,
.record-list article,
.info-grid article,
.mini-builder-card,
.post-step,
.letter-card,
.public-card,
.research-form {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(75, 36, 152, 0.1);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow-small);
}

.life-timeline article::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 24px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-tsinghua-purple);
  box-shadow: 0 0 0 6px rgba(75, 36, 152, 0.08);
}

.life-timeline b,
.paper-card small,
.record-list small,
.public-keyword {
  color: var(--color-tsinghua-purple);
}

.life-timeline span,
.life-timeline p,
.paper-card p,
.record-list p,
.info-grid p,
.mini-builder-card p,
.post-step p,
.letter-card dd,
.public-card p {
  color: var(--color-pencil-gray);
  line-height: 1.72;
}

.work-grid,
.info-grid,
.person-card-row,
.post-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.theme-link-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.theme-link-row button {
  text-align: left;
  cursor: pointer;
}

.theme-link-row b,
.theme-link-row span {
  display: block;
}

.theme-link-row span {
  margin-top: 8px;
  color: var(--color-pencil-gray);
  line-height: 1.6;
}

.qa-buttons {
  display: grid;
  gap: 10px;
}

.qa-buttons button {
  padding: 14px 16px;
  border: 1px solid rgba(75, 36, 152, 0.12);
  border-radius: 14px;
  background: rgba(255,255,255,.62);
  color: var(--color-deep-purple);
  text-align: left;
  cursor: pointer;
}

.generated-answer {
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(75, 36, 152, 0.075);
}

.generated-answer p {
  margin-bottom: 8px;
  color: var(--color-ink);
  line-height: 1.75;
}

.generated-answer small,
.page-title small,
.letter-card dt,
.public-card small {
  color: #8b8392;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
}

.page-actions.left {
  justify-content: flex-start;
}

.paper-shell .btn.primary {
  border-color: rgba(75, 36, 152, 0.18);
  background: var(--color-deep-purple);
  color: #fffaf0;
}

.btn.subtle {
  border-color: rgba(75,36,152,.12);
  background: rgba(255,255,255,.6);
  color: var(--color-tsinghua-purple);
}

.text-button.clean {
  position: static;
  padding: 0;
}

.focused-map {
  min-height: 360px;
}

.theme-region.focus {
  display: grid;
  place-items: center;
  pointer-events: none;
}

.mini-builder-card {
  display: grid;
  gap: 10px;
}

.mini-builder-card .portrait {
  width: 76px;
}

.stepper {
  display: flex;
  gap: 10px;
  margin: 28px 0;
}

.stepper span {
  flex: 1;
  padding: 10px;
  border-radius: 999px;
  background: rgba(75,36,152,.07);
  color: var(--color-pencil-gray);
  text-align: center;
  font-size: 13px;
}

.stepper span.active {
  background: var(--color-deep-purple);
  color: #fffaf0;
}

.post-step {
  display: grid;
  gap: 16px;
}

.post-step h2 {
  margin: 0;
  color: var(--color-deep-purple);
}

.post-step label,
.research-form label {
  display: grid;
  gap: 8px;
  color: var(--color-deep-purple);
  font-weight: 650;
}

.post-step textarea {
  min-height: 150px;
  resize: vertical;
  padding: 16px;
  border: 1px solid rgba(75,36,152,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.7);
  color: var(--color-ink);
  font: inherit;
  line-height: 1.7;
}

.letter-card,
.public-card {
  overflow: hidden;
  background:
    linear-gradient(rgba(255,252,246,.88), rgba(246,239,220,.94)),
    radial-gradient(circle at 72% 20%, rgba(255,231,140,.26), transparent 9rem);
}

.letter-card {
  grid-column: span 2;
}

.letter-card h2,
.public-card h2 {
  color: var(--color-deep-purple);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 38px;
}

.letter-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.letter-card dd {
  margin: 0;
}

.result-actions {
  display: grid;
  gap: 10px;
  align-content: start;
}

.public-card {
  grid-column: 1 / -1;
}

.notice {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(75,36,152,.08);
  color: var(--color-deep-purple);
}

.research-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.research-form input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(75,36,152,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  font: inherit;
}

.submit-toast {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(68, 139, 110, .12);
  color: #2d6a55;
}

@media (max-width: 760px) {
  .app-header {
    padding: 12px 14px;
  }

  .app-brand span {
    font-size: 13px;
  }

  .app-nav {
    gap: 2px;
  }

  .app-nav button {
    padding: 0 7px;
    font-size: 12px;
  }

  .entry-home {
    display: block;
    min-height: 100svh;
    padding: 28px 20px 76px;
  }

  .entry-home > .brand {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 58px;
  }

  .home-copy {
    position: relative;
    z-index: 2;
    padding-top: 0;
  }

  .home-copy.reveal,
  .home-copy.reveal.is-visible {
    transform: none;
  }

  .home-copy h1 {
    font-size: 42px;
  }

  .home-copy h2 {
    font-size: 21px;
  }

  .home-map-visual {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 96px;
    min-height: 330px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-copy .btn {
    position: fixed;
    z-index: 15;
    left: 20px;
    right: 20px;
    bottom: 32px;
    width: calc(100% - 40px);
    margin: 0;
  }

  .home-actions {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 22px;
    z-index: 18;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0;
  }

  .home-copy .home-actions .btn {
    position: static;
    width: auto;
    min-height: 44px;
    padding: 0 10px;
    font-size: 13px;
  }

  .home-guide {
    grid-template-columns: 1fr;
    margin-bottom: 84px;
  }

  .small-link {
    display: inline-block;
    margin-top: 18px;
  }

  .home-note {
    display: none;
  }

  .map-page {
    padding: 26px 14px 110px;
  }

  .culture-map {
    min-height: calc(100svh - 260px);
    border-radius: 24px;
  }

  .theme-region {
    width: 132px;
    height: 86px;
  }

  .map-node {
    font-size: 12px;
  }

  .map-card-drawer,
  .bottom-drawer {
    bottom: 12px;
    padding: 20px;
    border-radius: 22px;
  }

  .paper-page {
    padding: 28px 16px 80px;
  }

  .person-hero,
  .work-grid,
  .info-grid,
  .person-card-row,
  .post-result-grid,
  .theme-link-row {
    grid-template-columns: 1fr;
  }

  .person-hero {
    gap: 16px;
  }

  .letter-card {
    grid-column: auto;
  }

  .stepper span {
    padding: 8px 6px;
    font-size: 12px;
  }
}

.home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.home-tags button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 231, 140, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 231, 140, 0.88);
  cursor: pointer;
}

.direction-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.direction-map .origin circle {
  fill: var(--color-glow);
  filter: drop-shadow(0 0 16px rgba(255, 231, 140, 0.9));
}

.direction-map text {
  fill: rgba(255, 250, 240, 0.78);
  font-size: 15px;
}

.route-label {
  fill: rgba(255, 231, 140, 0.88) !important;
  font-weight: 700;
}

.route-0,
.route-1,
.route-2,
.route-3,
.route-4,
.route-5 {
  fill: none;
  stroke: rgba(255, 231, 140, 0.58);
  stroke-width: 1.2;
  stroke-dasharray: 7 9;
  animation: dashTravel 20s linear infinite, pathReveal 4s ease forwards;
}

.route-1,
.route-3 {
  stroke: rgba(216, 203, 255, 0.48);
}

.route-4,
.route-5 {
  stroke: rgba(255, 250, 240, 0.34);
}

.mobile-bottom-nav {
  display: none;
}

.app-nav button.active {
  background: rgba(255, 231, 140, 0.12);
  color: var(--color-glow);
}

.paper-shell .app-nav button.active {
  background: rgba(75, 36, 152, 0.09);
  color: var(--color-tsinghua-purple);
}

.map-filter,
.internal-tabs {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.map-filter button,
.internal-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 250, 240, 0.76);
  cursor: pointer;
}

.map-filter button.active,
.internal-tabs button.active {
  background: var(--color-glow);
  color: var(--color-deep-purple);
}

.paper-shell .internal-tabs button {
  border-color: rgba(75, 36, 152, 0.12);
  background: rgba(255, 255, 255, 0.62);
  color: var(--color-pencil-gray);
}

.paper-shell .internal-tabs button.active {
  background: var(--color-deep-purple);
  color: #fffaf0;
}

.sticky-tabs {
  position: sticky;
  top: 78px;
  z-index: 14;
  padding: 8px 0;
  backdrop-filter: blur(14px);
}

.relation-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.relation-lines path {
  fill: none;
  stroke: rgba(255, 231, 140, 0.35);
  stroke-width: 0.35;
  stroke-dasharray: 1.4 1.2;
}

.culture-map.filter-person .theme-region,
.culture-map.filter-person .map-node.era {
  opacity: 0.28;
}

.culture-map.filter-theme .map-node.person,
.culture-map.filter-theme .map-node.era {
  opacity: 0.32;
}

.culture-map.filter-era .map-node.person,
.culture-map.filter-era .theme-region {
  opacity: 0.28;
}

.map-node .node-avatar {
  width: 34px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 0 18px rgba(255,231,140,.12);
}

.map-node.person i {
  margin-top: -8px;
}

.map-node em {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: rgba(255,250,240,.58);
  font-size: 10px;
  font-style: normal;
}

.map-node.era i {
  width: 13px;
  height: 13px;
  background: var(--color-glow);
  box-shadow: 0 0 24px rgba(255,231,140,.85);
}

.drawer-meta {
  color: var(--color-pencil-gray);
  font-size: 13px;
  line-height: 1.65;
}

.map-search,
.knowledge-search {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  max-width: 760px;
  margin: 18px 0;
}

.map-search label,
.map-search small,
.knowledge-search small {
  grid-column: 1 / -1;
}

.map-search label {
  color: var(--color-deep-purple);
  font-weight: 700;
}

.map-search input,
.knowledge-search input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(75, 36, 152, 0.14);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--color-ink);
  font: inherit;
  box-shadow: var(--shadow-small);
}

.section-dark .map-search input {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 253, 248, 0.92);
}

.map-search small {
  color: var(--color-pencil-gray);
  font-size: 12px;
}

.knowledge-card,
.plan-card,
.mine-profile {
  position: relative;
  z-index: 2;
  padding: 22px;
  border: 1px solid rgba(75, 36, 152, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(rgba(255, 253, 248, 0.86), rgba(255, 253, 248, 0.92)),
    radial-gradient(circle at 80% 18%, rgba(255, 231, 140, 0.2), transparent 9rem);
  box-shadow: var(--shadow-small);
}

.knowledge-card h2,
.plan-card h2,
.mine-profile h2 {
  margin-bottom: 8px;
  color: var(--color-deep-purple);
}

.recommended-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.recommended-questions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(75, 36, 152, 0.12);
  border-radius: 999px;
  background: rgba(75, 36, 152, 0.055);
  color: var(--color-tsinghua-purple);
  cursor: pointer;
}

.plan-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(138px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.plan-rail button {
  position: relative;
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(75, 36, 152, 0.11);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--color-pencil-gray);
  text-align: left;
  cursor: pointer;
}

.plan-rail button::before {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(75, 36, 152, 0.28);
}

.plan-rail button.active {
  border-color: rgba(75, 36, 152, 0.28);
  background: rgba(75, 36, 152, 0.08);
  color: var(--color-deep-purple);
}

.plan-rail button.active::before {
  background: var(--color-glow);
  box-shadow: 0 0 14px rgba(255, 231, 140, 0.8);
}

.plan-rail b,
.plan-rail span {
  display: block;
}

.plan-rail span {
  margin-top: 4px;
  font-size: 12px;
}

.graph-cloud {
  position: relative;
  min-height: 330px;
  margin: 18px 0;
  border: 1px solid rgba(75, 36, 152, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(rgba(255, 253, 248, 0.82), rgba(255, 253, 248, 0.88)),
    radial-gradient(circle at 58% 42%, rgba(75, 36, 152, 0.12), transparent 14rem);
  overflow: hidden;
  box-shadow: var(--shadow-small);
}

.graph-cloud::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(75, 36, 152, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 36, 152, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 78%);
}

.graph-cloud button {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(75, 36, 152, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--color-deep-purple);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(46, 20, 104, 0.09);
}

.graph-cloud i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-glow);
  box-shadow: 0 0 12px rgba(255, 231, 140, 0.72);
}

.mine-login .btn {
  margin: 14px 6px 0;
}

.about-anchor {
  margin-top: 56px;
}

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

.asset-slot {
  min-height: 126px;
  padding: 16px;
  border: 1px dashed rgba(75, 36, 152, 0.18);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.58);
  color: var(--color-tsinghua-purple);
}

.asset-slot .line-icon {
  width: 30px;
  height: 30px;
}

.asset-slot span,
.asset-slot small {
  display: block;
}

.asset-slot span {
  margin-top: 12px;
  font-weight: 700;
}

.asset-slot small {
  margin-top: 5px;
  color: #8b8392;
  line-height: 1.5;
}

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

.site-info div {
  padding: 16px;
  border-radius: 16px;
  background: rgba(75, 36, 152, 0.065);
}

.site-info dt {
  color: #8b8392;
  font-size: 12px;
}

.site-info dd {
  margin: 6px 0 0;
  color: var(--color-deep-purple);
  line-height: 1.65;
}

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

.excerpt-list article {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(75, 36, 152, 0.1);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.74);
  box-shadow: var(--shadow-small);
}

.scan-placeholder {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 14px;
  background: rgba(75, 36, 152, 0.08);
}

.excerpt-list p {
  margin-bottom: 6px;
  color: var(--color-pencil-gray);
  line-height: 1.7;
}

.excerpt-list small {
  color: #8b8392;
}

.theme-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: var(--shadow-small);
}

.theme-path span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-deep-purple);
  font-weight: 700;
}

.theme-path span:not(:last-child)::after {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(75, 36, 152, 0.28);
}

.era-card {
  display: inline-grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(75, 36, 152, 0.1);
  border-radius: 18px;
  background: rgba(255,255,255,.68);
  color: var(--color-deep-purple);
  text-align: left;
  cursor: pointer;
}

.era-card small {
  grid-column: 2;
  color: #8b8392;
}

.poster-editor {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 430px);
  gap: 24px;
}

.builder-poster blockquote {
  margin: 20px 0;
  padding-left: 16px;
  border-left: 2px solid rgba(75,36,152,.24);
  color: var(--color-pencil-gray);
  line-height: 1.75;
}

.letter-body {
  margin: 22px 0;
  color: var(--color-ink);
  font-size: 18px;
  line-height: 1.9;
}

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

.summary-grid button,
.coord-item {
  padding: 18px;
  border: 1px solid rgba(75,36,152,.1);
  border-radius: 18px;
  background: rgba(255,253,248,.76);
  color: var(--color-ink);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-small);
}

.summary-grid b,
.summary-grid span {
  display: block;
}

.summary-grid span,
.coord-item span,
.coord-item small,
.timeline-intro {
  color: var(--color-pencil-gray);
  line-height: 1.65;
}

.coord-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.coord-overview span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(75,36,152,.08);
  color: var(--color-tsinghua-purple);
  font-size: 13px;
}

.public-map-list,
.record-table,
.about-blocks {
  display: grid;
  gap: 12px;
}

.coord-item p {
  margin: 8px 0;
  color: var(--color-pencil-gray);
  line-height: 1.65;
}

.empty-state {
  padding: 36px;
  border: 1px solid rgba(75,36,152,.1);
  border-radius: 22px;
  background: rgba(255,253,248,.72);
  text-align: center;
}

.record-table article,
.about-blocks article {
  padding: 20px;
  border: 1px solid rgba(75,36,152,.1);
  border-radius: 18px;
  background: rgba(255,253,248,.74);
  box-shadow: var(--shadow-small);
}

.record-table b,
.record-table span {
  display: block;
}

.record-table span {
  margin: 8px 0 12px;
  color: var(--color-pencil-gray);
}

.record-table button {
  margin: 4px 6px 0 0;
  padding: 6px 9px;
  border: 1px solid rgba(75,36,152,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  color: var(--color-tsinghua-purple);
}

.login-panel label {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  color: var(--color-deep-purple);
  font-weight: 650;
}

.login-panel input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(75,36,152,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  font: inherit;
}

.floating-toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 760px) {
  .app-shell {
    padding-bottom: 68px;
  }

  .app-header {
    position: relative;
  }

  .app-nav {
    display: none;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(75,36,152,.1);
    border-radius: 20px;
    background: rgba(255, 253, 248, 0.88);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
  }

  .mobile-bottom-nav button {
    min-height: 42px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--color-pencil-gray);
  }

  .mobile-bottom-nav button.active {
    background: rgba(75,36,152,.09);
    color: var(--color-tsinghua-purple);
    font-weight: 700;
  }

  .home-tags {
    display: grid;
  }

  .map-filter,
  .internal-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .map-filter button,
  .internal-tabs button {
    flex: 0 0 auto;
  }

  .asset-grid,
  .site-info,
  .summary-grid,
  .poster-editor {
    grid-template-columns: 1fr;
  }

  .map-search,
  .knowledge-search {
    grid-template-columns: 1fr;
  }

  .plan-rail {
    grid-template-columns: repeat(5, minmax(132px, 1fr));
  }

  .graph-cloud {
    min-height: 270px;
  }

  .excerpt-list article {
    grid-template-columns: 52px 1fr;
  }

  .scan-placeholder {
    width: 52px;
    height: 52px;
  }

  .theme-path span {
    width: 100%;
    justify-content: space-between;
  }

  .theme-path span:not(:last-child)::after {
    width: 42px;
  }

  .sticky-tabs {
    top: 0;
  }
}

/* Chat UI */
.chat-login-hint {
  padding: 1.5rem 0;
  text-align: center;
}
.chat-login-hint p {
  margin-bottom: 1rem;
  color: var(--ink-muted, #666);
}
.chat-messages {
  max-height: 360px;
  overflow-y: auto;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chat-msg {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  max-width: 88%;
  line-height: 1.6;
  font-size: 0.92rem;
}
.chat-msg.user {
  background: #2e1468;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-msg.assistant {
  background: #f0edf5;
  color: var(--ink, #222);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg p {
  margin: 0;
}
.chat-msg .chat-sources {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.chat-msg .chat-sources small {
  background: rgba(46,20,104,0.06);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #666;
}
.chat-empty {
  color: var(--ink-muted, #999);
  text-align: center;
  padding: 2rem 0;
}
.chat-cursor {
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.chat-input {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 0.75rem;
}
.chat-input input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 1px solid #d4d0dc;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
}
.chat-input input:focus {
  outline: none;
  border-color: #2e1468;
}

/* Full chat page */
.chat-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  max-height: 800px;
  margin: 0 auto;
  width: 100%;
  max-width: 780px;
}
.chat-page-header {
  padding: 1.5rem 0 1rem;
  text-align: center;
}
.chat-page-header h1 {
  font-size: 1.5rem;
  margin: 0 0 0.3rem;
}
.chat-page-header p {
  color: #888;
  margin: 0;
  font-size: 0.92rem;
}
.chat-page-login {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-page-login-card {
  text-align: center;
  padding: 2.5rem;
  background: #f8f6fb;
  border-radius: 16px;
}
.chat-page-login-card p {
  margin-bottom: 1.2rem;
  color: #666;
}
.chat-page-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.chat-page-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chat-page-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}
.chat-page-welcome h2 {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}
.chat-page-welcome p {
  color: #888;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.chat-page-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 420px;
}
.chat-page-suggestions button {
  padding: 0.7rem 1rem;
  border: 1px solid #d4d0dc;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.chat-page-suggestions button:hover {
  border-color: #2e1468;
  background: #f8f6fb;
}
.chat-page-msg {
  display: flex;
  gap: 0.75rem;
  padding: 0 1rem;
}
.chat-page-msg.user {
  flex-direction: row-reverse;
}
.chat-page-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}
.chat-page-msg.user .chat-page-msg-avatar {
  background: #2e1468;
  color: #fff;
}
.chat-page-msg.assistant .chat-page-msg-avatar {
  background: #e8e4f0;
  color: #2e1468;
}
.chat-page-msg-body {
  max-width: 75%;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  line-height: 1.65;
  font-size: 0.93rem;
}
.chat-page-msg.user .chat-page-msg-body {
  background: #2e1468;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-page-msg.assistant .chat-page-msg-body {
  background: #f0edf5;
  color: #222;
  border-bottom-left-radius: 4px;
}
.chat-page-msg-body p {
  margin: 0;
}
.chat-page-sources {
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.chat-page-sources span {
  font-size: 0.8rem;
  color: #888;
}
.chat-page-sources small {
  background: rgba(46,20,104,0.06);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #666;
}
.chat-page-input {
  display: flex;
  gap: 0.6rem;
  padding: 1rem 0 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.chat-page-input input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #d4d0dc;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
}
.chat-page-input input:focus {
  outline: none;
  border-color: #2e1468;
}
