:root {
  color-scheme: dark;
  --ink: #080b0c;
  --ink-2: #111618;
  --panel: rgba(14, 18, 20, 0.82);
  --panel-strong: rgba(21, 24, 25, 0.94);
  --line: rgba(201, 169, 110, 0.28);
  --line-strong: rgba(201, 169, 110, 0.62);
  --gold: #c9a96e;
  --gold-bright: #e7c98d;
  --sand: #f7f0df;
  --muted: #b7aa93;
  --rock: #8b3a2e;
  --clay: #b86b43;
  --blue: #7cb7c7;
  --green: #6f8f73;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
  --radius: 8px;
  --max: 1440px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(9, 12, 12, 0.96), rgba(18, 15, 12, 0.96)),
    #090c0d;
  color: var(--sand);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(201, 169, 110, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 183, 199, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 70%);
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.18);
  background: linear-gradient(180deg, rgba(7, 10, 11, 0.85), rgba(7, 10, 11, 0.65));
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.site-header.is-scrolled {
  background: linear-gradient(180deg, rgba(7, 10, 11, 0.96), rgba(7, 10, 11, 0.88));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 169, 110, 0.1);
}

.site-header::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.3), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #101313;
}

.brand-mark img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.brand strong {
  display: block;
  color: var(--sand);
  font-size: 0.95rem;
  font-weight: 700;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.58rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 15px;
  color: rgba(247, 240, 223, 0.76);
  font-size: 0.92rem;
  font-family: "STKaiti", "KaiTi", Georgia, serif;
  letter-spacing: 2px;
  transition: color 0.3s ease, background 0.3s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--gold));
  transform: translateX(-50%);
  transition: width 0.35s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--gold-bright);
  background: rgba(201, 169, 110, 0.06);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 70%;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.lang-toggle,
.icon-button {
  border: 1px solid rgba(201, 169, 110, 0.32);
  background: rgba(255, 255, 255, 0.03);
  color: var(--sand);
}

.lang-toggle {
  min-width: 82px;
  height: 38px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.menu-lines {
  width: 18px;
  height: 14px;
  display: grid;
  gap: 4px;
}

.menu-lines span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 14px rgba(255, 212, 132, 0.28);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.main-nav.is-open + .header-actions .menu-lines span:nth-child(1),
.site-header:has(.main-nav.is-open) .menu-lines span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.main-nav.is-open + .header-actions .menu-lines span:nth-child(2),
.site-header:has(.main-nav.is-open) .menu-lines span:nth-child(2) {
  opacity: 0;
}

.main-nav.is-open + .header-actions .menu-lines span:nth-child(3),
.site-header:has(.main-nav.is-open) .menu-lines span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.icon-button svg,
.primary-action svg,
.secondary-action svg,
.search-box svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 169, 110, 0.22);
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("/static/assets/images/banner6.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(0.88) contrast(1.05);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201, 169, 110, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(124, 183, 199, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 45% 70%, rgba(201, 169, 110, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 65% 85%, rgba(124, 183, 199, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 30% 50%, rgba(201, 169, 110, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 75% 45%, rgba(124, 183, 199, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 10% 80%, rgba(201, 169, 110, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 90% 60%, rgba(124, 183, 199, 0.06) 1px, transparent 1px);
  background-size: 100px 100px;
  animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(20px, -10px); }
  50% { transform: translate(-10px, 15px); }
  75% { transform: translate(15px, 5px); }
}

.hero-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.12) 0%, rgba(201, 169, 110, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 6, 0.86), rgba(3, 5, 6, 0.32) 50%, rgba(3, 5, 6, 0.86)),
    linear-gradient(180deg, rgba(5, 8, 9, 0.42), rgba(5, 8, 9, 0.2) 52%, rgba(5, 8, 9, 0.92)),
    radial-gradient(ellipse at 50% 60%, rgba(201, 169, 110, 0.08) 0%, transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding-top: calc(var(--header-height) + 42px);
  padding-bottom: 132px;
}

.eyebrow,
.section-index {
  margin: 0;
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
}

.hero h1 {
  margin: 16px 0 14px;
  max-width: 820px;
  color: #f5dfb8;
  font-family: "STKaiti", "KaiTi", Georgia, serif;
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.58);
}

.hero-copy {
  max-width: 680px;
  margin: 0;
  color: rgba(247, 240, 223, 0.88);
  font-size: 1.32rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 169, 110, 0.46);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.primary-action {
  background: linear-gradient(135deg, #d3ae6b, #8e5e2e);
  color: #16110a;
  font-weight: 700;
}

.secondary-action {
  background: rgba(12, 15, 16, 0.68);
  color: var(--sand);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
}

.hero-holo {
  position: absolute;
  z-index: 2;
  width: 210px;
  min-height: 150px;
  border: 1px solid rgba(124, 183, 199, 0.46);
  background: linear-gradient(180deg, rgba(124, 183, 199, 0.14), rgba(124, 183, 199, 0.03));
  box-shadow: 0 0 28px rgba(124, 183, 199, 0.18), inset 0 0 26px rgba(124, 183, 199, 0.08);
  backdrop-filter: blur(4px);
}

.hero-holo::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-top: 1px solid rgba(124, 183, 199, 0.46);
  border-bottom: 1px solid rgba(124, 183, 199, 0.2);
}

.hero-holo span {
  position: relative;
  display: block;
  height: 8px;
  margin: 18px 20px;
  background: linear-gradient(90deg, rgba(124, 183, 199, 0.72), rgba(124, 183, 199, 0.08));
}

.hero-holo-left {
  top: 126px;
  left: 48px;
}

.hero-holo-right {
  right: 70px;
  top: 132px;
  width: 244px;
}

.hero-rail {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 34px;
  width: min(100% - 64px, 1180px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(7, minmax(80px, 1fr));
  gap: 10px;
  padding-top: 18px;
}

.hero-rail::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.78), transparent);
}

.rail-node {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: rgba(247, 240, 223, 0.72);
  font-size: 0.78rem;
  text-align: center;
  background: transparent;
  border: 0;
  padding: 0;
}

.rail-node::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(201, 169, 110, 0.1);
}

.rail-node.is-active {
  color: #fff1ce;
}

.rail-node.is-active::before {
  width: 16px;
  height: 16px;
  margin-top: -3px;
  background: #f2d291;
  box-shadow: 0 0 0 7px rgba(201, 169, 110, 0.18);
}

.section,
.metric-band {
  position: relative;
  background: linear-gradient(180deg, rgba(8, 11, 12, 0.98), rgba(17, 18, 17, 0.98));
}

.section {
  padding: 96px 0;
  border-bottom: 1px solid rgba(201, 169, 110, 0.13);
}

.metric-band {
  padding: 26px 0;
}

.section-shell {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(201, 169, 110, 0.22);
  background: rgba(201, 169, 110, 0.12);
}

.metric-card {
  min-height: 118px;
  padding: 24px;
  background: rgba(13, 17, 18, 0.94);
}

.metric-card strong {
  display: block;
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 9px;
  color: var(--sand);
  font-weight: 700;
}

.metric-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.spectrum-section {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 11, 12, 0.98), rgba(13, 12, 10, 0.99)),
    radial-gradient(circle at 78% 18%, rgba(255, 212, 132, 0.12), transparent 34%);
}

.spectrum-head {
  max-width: 860px;
  margin-bottom: 34px;
}

.spectrum-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(255, 212, 132, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 212, 132, 0.08);
  color: var(--gold-bright);
  font-size: 0.8rem;
  font-weight: 800;
}

.spectrum-head h2 {
  max-width: 760px;
  margin: 18px 0 0;
  color: #ffe5ab;
  font-family: "STKaiti", "KaiTi", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.spectrum-head p {
  max-width: 720px;
  margin: 16px 0 0;
  color: rgba(247, 240, 223, 0.72);
  font-size: 1.06rem;
  line-height: 1.75;
}

.spectrum-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.75fr) minmax(240px, 0.75fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 18px;
}

.spectrum-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(255, 212, 132, 0.2);
  border-radius: var(--radius);
  background: rgba(8, 10, 10, 0.82);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  contain: layout paint;
}

.spectrum-card-wide {
  grid-column: span 2;
}

.spectrum-card-tall {
  grid-row: span 2;
  min-height: 620px;
}

.spectrum-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.16) brightness(0.72) sepia(0.16);
  transform: scale(1.04);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.spectrum-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 8, 8, 0.08), rgba(6, 8, 8, 0.86)),
    linear-gradient(112deg, rgba(255, 212, 132, 0.18), transparent 36%, rgba(112, 168, 162, 0.14));
  pointer-events: none;
}

.spectrum-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 1;
  border: 1px solid rgba(255, 212, 132, 0.14);
  border-radius: calc(var(--radius) - 2px);
  pointer-events: none;
}

.spectrum-card div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
}

.spectrum-card span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 212, 132, 0.24);
  border-radius: var(--radius);
  background: rgba(8, 10, 10, 0.56);
  color: var(--jade);
  font-size: 0.74rem;
  font-weight: 800;
}

.spectrum-card h3 {
  max-width: 560px;
  margin: 0;
  color: #ffd484;
  font-family: "STKaiti", "KaiTi", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.spectrum-card p {
  max-width: 560px;
  margin: 10px 0 0;
  color: rgba(247, 240, 223, 0.78);
  line-height: 1.72;
}

.spectrum-card:hover img {
  filter: saturate(1.04) contrast(1.22) brightness(0.82) sepia(0.08);
  transform: scale(1.09);
}

.section-heading {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 36px;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.section-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.section-animate-delay-1 {
  transition-delay: 0.1s;
}

.section-animate-delay-2 {
  transition-delay: 0.2s;
}

.section-animate-delay-3 {
  transition-delay: 0.3s;
}

.section-animate-delay-4 {
  transition-delay: 0.4s;
}

.section-heading h2 {
  margin: 0;
  color: var(--sand);
  font-family: "STKaiti", "KaiTi", Georgia, serif;
  font-size: 2.45rem;
  line-height: 1.16;
}

.section-heading p:not(.section-index) {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-intro-text {
  width: fit-content;
  margin: 0 auto 24px;
  padding: 16px 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(201, 169, 110, 0.08);
  color: #f0d6a8;
  font-weight: 700;
}

.carousel-band {
  position: relative;
  padding: 40px 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(7, 10, 11, 0.95), rgba(12, 14, 13, 0.98));
  border-top: 1px solid rgba(201, 169, 110, 0.1);
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.carousel-container {
  width: min(100% - 48px, 1200px);
  margin: 0 auto;
  height: 340px;
  perspective: 4000px;
  position: relative;
}

.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.carousel-item {
  width: 520px;
  height: 300px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -260px;
  margin-top: -150px;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.5s linear;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.carousel-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.carousel-item:hover img {
  transform: scale(1.05);
}

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

.culture-card {
  position: relative;
  min-height: 380px;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(13, 17, 18, 0.92);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.culture-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 169, 110, 0.45);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 169, 110, 0.12), 0 0 40px rgba(201, 169, 110, 0.06);
}

.culture-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: sepia(0.15) saturate(0.85);
  transition: filter 0.35s ease, transform 0.6s ease;
}

.culture-card:hover img {
  filter: sepia(0.05) saturate(1);
  transform: scale(1.05);
}

.culture-card-body {
  padding: 20px;
}

.culture-card-body h3 {
  margin: 0 0 10px;
  color: var(--gold-bright);
  font-family: "STKaiti", "KaiTi", Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.culture-card-body p {
  margin: 0;
  color: rgba(247, 240, 223, 0.72);
  font-size: 0.9rem;
  line-height: 1.7;
}













.resource-card h3,
.map-detail h3 {
  margin: 0;
  color: var(--gold-bright);
  font-size: 1.05rem;
}

.resource-card p,
.map-detail p {
  color: rgba(247, 240, 223, 0.78);
  line-height: 1.72;
}







.timeline-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.timeline-card {
  position: relative;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(18, 22, 24, 0.92);
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.4s ease;
  cursor: pointer;
}

.timeline-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 169, 110, 0.15), 0 4px 24px rgba(201, 169, 110, 0.08);
}

.timeline-card-inner {
  display: grid;
  grid-template-rows: 200px 1fr;
  height: 100%;
}

.timeline-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.timeline-card:hover img {
  transform: scale(1.06);
}

.timeline-card-body {
  padding: 20px 22px 22px;
}

.timeline-card .era {
  display: inline-block;
  color: var(--gold-bright);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.timeline-card h3 {
  margin: 10px 0 8px;
  color: var(--sand);
  font-family: "STKaiti", "KaiTi", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1px;
}

.timeline-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.timeline-card .tag-row {
  margin-top: auto;
}

.timeline-card.is-active {
  box-shadow: 0 0 0 2px var(--gold-bright), 0 16px 48px rgba(0, 0, 0, 0.45);
}



.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-row span,
.prompt-row button,
.tab-list button {
  min-height: 34px;
  border: 1px solid rgba(201, 169, 110, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  padding: 6px 12px;
  font-size: 0.82rem;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 26px;
}

.map-canvas {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(139, 58, 46, 0.2), transparent 28%),
    linear-gradient(25deg, transparent 0 19%, rgba(201, 169, 110, 0.12) 19% 21%, transparent 21% 39%, rgba(124, 183, 199, 0.16) 39% 41%, transparent 41%),
    url("/static/assets/images/beijing.png") center / cover;
}

.map-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 11, 12, 0.36), rgba(8, 11, 12, 0.86)),
    radial-gradient(ellipse at center, transparent 0 34%, rgba(0, 0, 0, 0.42) 74%);
}

.map-route {
  position: absolute;
  left: 8%;
  right: 7%;
  top: 45%;
  height: 2px;
  transform: rotate(-7deg);
  background: linear-gradient(90deg, transparent, rgba(231, 201, 141, 0.92), transparent);
  box-shadow: 0 0 24px rgba(201, 169, 110, 0.36);
}

.map-point {
  position: absolute;
  z-index: 3;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(231, 201, 141, 0.88);
  border-radius: 50%;
  background: rgba(139, 58, 46, 0.92);
  box-shadow: 0 0 0 8px rgba(139, 58, 46, 0.18), 0 0 22px rgba(231, 201, 141, 0.36);
}

.map-point.is-active {
  width: 34px;
  height: 34px;
  background: var(--gold-bright);
  box-shadow: 0 0 0 10px rgba(201, 169, 110, 0.18), 0 0 32px rgba(231, 201, 141, 0.5);
}

.map-label {
  position: absolute;
  z-index: 4;
  transform: translate(18px, -50%);
  width: max-content;
  max-width: 190px;
  padding: 7px 10px;
  border: 1px solid rgba(201, 169, 110, 0.24);
  border-radius: 6px;
  background: rgba(9, 12, 12, 0.72);
  color: var(--sand);
  font-size: 0.8rem;
  pointer-events: none;
}

.map-detail {
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-radius: var(--radius);
  background: rgba(13, 17, 18, 0.92);
  overflow: hidden;
}

.map-detail img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.map-detail-content {
  padding: 22px;
}

.map-detail dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.map-detail dt {
  color: var(--gold-bright);
}



.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-list button:hover,
.tab-list button.is-active {
  color: #18130c;
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.search-box input:focus {
  border-color: var(--gold-bright);
}

.search-box {
  width: min(100%, 360px);
  min-height: 42px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(201, 169, 110, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.search-box input {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
}

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

.resource-card {
  position: relative;
  min-height: 410px;
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: var(--radius);
  background: rgba(13, 17, 18, 0.92);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.resource-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(201, 169, 110, 0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.resource-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 169, 110, 0.4);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 169, 110, 0.12), 0 0 40px rgba(201, 169, 110, 0.06);
}

.resource-card:hover::before {
  opacity: 1;
}

.resource-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.resource-content {
  padding: 18px;
}

.resource-period {
  display: inline-flex;
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.82rem;
}

.resource-card p {
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.search-results {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.search-result {
  padding: 14px 16px;
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.search-result strong {
  display: block;
  color: var(--gold-bright);
}

.search-result span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== 知识图谱 ===== */
.knowledge-section {
  background:
    linear-gradient(180deg, rgba(14, 16, 15, 0.98), rgba(10, 13, 14, 0.98));
}

.knowledge-layout {
  position: relative;
  display: block;
}

.knowledge-graph {
  min-height: 560px;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: var(--radius);
  background: rgba(8, 11, 12, 0.9);
  overflow: hidden;
}

.knowledge-detail {
  display: none;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 320px;
  max-height: 540px;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--gold-bright);
  border-radius: 12px;
  background: rgba(14, 18, 20, 0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 169, 110, 0.15);
  z-index: 10;
  animation: kdFadeIn 0.3s ease;
}

.knowledge-detail.is-open {
  display: block;
}

@keyframes kdFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.knowledge-detail-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
}

.knowledge-detail-close:hover {
  color: var(--sand);
  border-color: var(--gold-bright);
}

.knowledge-detail-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

.knowledge-detail-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.4;
}

.knowledge-detail h3 {
  margin: 0 0 6px;
  color: var(--gold-bright);
  font-size: 1.15rem;
}

.knowledge-detail .kd-category {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border: 1px solid rgba(124, 183, 199, 0.4);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.78rem;
}

.knowledge-detail .kd-relations {
  margin: 16px 0 0;
}

.knowledge-detail .kd-relations h4 {
  margin: 0 0 10px;
  color: var(--sand);
  font-size: 0.95rem;
}

.knowledge-detail .kd-relation-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border: 1px solid rgba(201, 169, 110, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.86rem;
}

.knowledge-detail .kd-relation-item strong {
  color: var(--gold-bright);
}

/* ===== 右下角AI浮动问答 ===== */
.ai-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
}

.ai-float-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.4);
  background: linear-gradient(135deg, #d3ae6b, #8e5e2e);
  color: #16110a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-float-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.ai-float-toggle svg {
  width: 26px;
  height: 26px;
}

.ai-float-panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: 68px;
  width: 420px;
  height: 620px;
  border: 1px solid rgba(201, 169, 110, 0.24);
  border-radius: var(--radius);
  background: rgba(12, 16, 18, 0.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  flex-direction: column;
  overflow: hidden;
}

.ai-float-panel.is-open {
  display: flex;
}

.ai-float-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.16);
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.95rem;
}

.ai-float-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201, 169, 110, 0.4);
}

.ai-float-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.ai-float-close:hover {
  color: var(--sand);
  border-color: var(--gold-bright);
}

.ai-float-close svg {
  width: 16px;
  height: 16px;
}

.ai-float-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-float-body .chat-message {
  max-width: 90%;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.88rem;
  line-height: 1.6;
}

.ai-float-body .chat-message.user {
  align-self: flex-end;
  background: rgba(201, 169, 110, 0.14);
  color: #f7e4be;
}

.ai-float-body .chat-message.guide {
  align-self: flex-start;
  border-left: 3px solid var(--gold);
}

.ai-float-form {
  display: flex;
  gap: 0;
  padding: 10px;
  border-top: 1px solid rgba(201, 169, 110, 0.14);
}

.ai-float-form input {
  flex: 1;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--sand);
  outline: none;
}

.ai-float-form input:focus {
  border-color: var(--gold-bright);
}

.ai-float-form button {
  width: 48px;
  min-height: 42px;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(135deg, #d3ae6b, #8e5e2e);
  color: #16110a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-float-form button svg {
  width: 18px;
  height: 18px;
}

.ai-float-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 10px 12px;
}

.ai-float-prompts button {
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.76rem;
  cursor: pointer;
}

.ai-float-prompts button:hover {
  color: #18130c;
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.site-footer {
  min-height: 84px;
  padding: 32px 34px;
  border-top: 1px solid rgba(201, 169, 110, 0.18);
  background: #070909;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand strong {
  display: block;
  color: var(--gold-bright);
  font-family: "STKaiti", "KaiTi", Georgia, serif;
  font-size: 1.05rem;
}

.footer-brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
}

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

.footer-links span {
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-links span:hover {
  color: var(--gold-bright);
}

.footer-info {
  text-align: right;
}

.footer-info span {
  display: block;
}

.footer-info span:last-child {
  margin-top: 4px;
  font-size: 0.78rem;
  opacity: 0.6;
}

@media (max-width: 1180px) {
  .site-header {
    padding: 0 22px;
    grid-template-columns: auto auto;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    padding: 12px;
    border: 1px solid rgba(201, 169, 110, 0.22);
    border-radius: var(--radius);
    background: rgba(7, 10, 11, 0.96);
  }

  .main-nav.is-open {
    display: flex;
    z-index: 80;
  }

  .main-nav a {
    justify-content: center;
  }

  .header-actions {
    justify-self: end;
  }

  .icon-button {
    display: inline-flex;
  }

  .hero-holo {
    display: none;
  }

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

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

@media (max-width: 900px) {
  :root {
    --header-height: 66px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-inner {
    width: min(100% - 32px, var(--max));
    padding-bottom: 156px;
  }

  .hero h1 {
    font-size: 3.3rem;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .hero-rail {
    grid-template-columns: repeat(4, minmax(70px, 1fr));
    row-gap: 16px;
    width: calc(100% - 30px);
  }

  .hero-rail::before {
    display: none;
  }

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

  .section {
    padding: 72px 0;
  }

  .section-shell {
    width: min(100% - 32px, var(--max));
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-canvas {
    min-height: 470px;
  }

  .archive-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

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

@media (max-width: 640px) {
  .site-header {
    padding: 0 14px;
  }

  .brand strong {
    font-size: 0.84rem;
  }

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

  .lang-toggle {
    min-width: 70px;
    font-size: 0.78rem;
  }

  .hero-inner {
    padding-top: calc(var(--header-height) + 38px);
    padding-bottom: 188px;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    bottom: 20px;
    font-size: 0.74rem;
  }

  .metrics-grid,
  .culture-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .timeline-track {
    grid-template-columns: 1fr;
  }

  .map-canvas {
    min-height: 420px;
  }

  .map-label {
    display: none;
  }

  .ai-float-body .chat-message {
    max-width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 18px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-info {
    text-align: left;
  }

  .ai-float-panel {
    width: calc(100vw - 32px);
    right: -8px;
    height: 520px;
    bottom: 68px;
  }

  .knowledge-graph {
    min-height: 400px;
  }

  .carousel-container {
    height: 220px;
    perspective: 2000px;
  }

  .carousel-item {
    width: 300px;
    height: 180px;
    margin-left: -150px;
    margin-top: -90px;
  }
}

/* ===== Visual impact pass ===== */
:root {
  --ink: #070909;
  --ink-2: #0f1211;
  --panel: rgba(13, 16, 16, 0.78);
  --panel-strong: rgba(18, 19, 17, 0.94);
  --gold: #c69a45;
  --gold-bright: #ffd484;
  --copper: #a94e2d;
  --jade: #70a8a2;
  --sand: #fff5dd;
  --muted: #b9aa8a;
  --line: rgba(255, 212, 132, 0.2);
  --line-strong: rgba(255, 212, 132, 0.54);
  --radius: 8px;
}

body {
  background:
    linear-gradient(125deg, rgba(7, 9, 9, 0.96), rgba(21, 15, 11, 0.98) 48%, rgba(7, 9, 9, 0.98)),
    #090b0a;
}

body::before {
  z-index: 0;
  opacity: 0.86;
  background-image:
    linear-gradient(115deg, transparent 0 26%, rgba(255, 212, 132, 0.055) 26% 27%, transparent 27% 52%, rgba(112, 168, 162, 0.045) 52% 53%, transparent 53%),
    linear-gradient(rgba(255, 212, 132, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 168, 162, 0.035) 1px, transparent 1px);
  background-size: 460px 460px, 88px 88px, 88px 88px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
}

.site-header,
main,
.site-footer,
.ai-float {
  position: relative;
  z-index: 2;
}

.site-header {
  height: 68px;
  z-index: 90;
  background:
    linear-gradient(180deg, rgba(8, 10, 10, 0.9), rgba(8, 10, 10, 0.56));
  border-bottom-color: rgba(255, 212, 132, 0.16);
}

.brand-mark {
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 212, 132, 0.18), rgba(112, 168, 162, 0.08)),
    #101312;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 36px rgba(198, 154, 69, 0.14);
}

.main-nav a,
.brand small {
  letter-spacing: 0;
}

.main-nav a {
  border-radius: var(--radius);
}

.main-nav a::after {
  height: 1px;
}

.lang-toggle,
.icon-button,
.tag-row span,
.prompt-row button,
.tab-list button,
.search-box,
.search-result,
.knowledge-detail .kd-relation-item {
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero {
  min-height: 100dvh;
  isolation: isolate;
  border-bottom-color: rgba(255, 212, 132, 0.28);
  background:
    linear-gradient(180deg, #080a0a, #12100c 62%, #080a0a);
}

.hero-bg {
  transform: scale(1.07);
  filter: saturate(0.72) contrast(1.18) brightness(0.7);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(7, 9, 9, 0.96) 0 18%, rgba(7, 9, 9, 0.52) 42%, rgba(7, 9, 9, 0.92) 78%),
    linear-gradient(180deg, rgba(7, 9, 9, 0.25), rgba(7, 9, 9, 0.9) 86%);
}

.hero-overlay {
  background:
    linear-gradient(100deg, rgba(5, 7, 7, 0.94) 0 36%, rgba(5, 7, 7, 0.22) 62%, rgba(5, 7, 7, 0.88)),
    linear-gradient(180deg, rgba(5, 7, 7, 0.14), rgba(5, 7, 7, 0.92) 84%),
    conic-gradient(from 230deg at 70% 38%, transparent 0deg, rgba(255, 212, 132, 0.22) 32deg, transparent 88deg);
}

.hero-glow {
  left: 72%;
  top: 40%;
  width: 58vw;
  height: 68vh;
  background:
    linear-gradient(112deg, transparent 0 32%, rgba(255, 212, 132, 0.18) 33% 34%, transparent 35% 58%, rgba(112, 168, 162, 0.14) 59% 60%, transparent 61%),
    linear-gradient(18deg, transparent 0 44%, rgba(169, 78, 45, 0.22) 45% 47%, transparent 48%);
  opacity: 0.88;
  filter: blur(1px);
}

.hero-veins {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(126deg, transparent 0 18%, rgba(255, 212, 132, 0.72) 18.15% 18.45%, transparent 18.6% 44%, rgba(255, 212, 132, 0.36) 44.1% 44.35%, transparent 44.5%),
    linear-gradient(72deg, transparent 0 54%, rgba(112, 168, 162, 0.34) 54.1% 54.3%, transparent 54.45%),
    linear-gradient(150deg, transparent 0 67%, rgba(169, 78, 45, 0.34) 67.1% 67.45%, transparent 67.6%);
  opacity: 0.52;
  mix-blend-mode: screen;
  animation: veinFlash 7s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.hero-inner {
  width: min(100% - 72px, 1380px);
  padding-top: calc(var(--header-height) + 20px);
  padding-bottom: 118px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 212, 132, 0.32);
  border-radius: var(--radius);
  background: rgba(10, 12, 12, 0.42);
  color: var(--gold-bright);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero h1 {
  max-width: 760px;
  margin: 20px 0 14px;
  color: #ffe5ab;
  font-size: 5.35rem;
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14),
    0 22px 70px rgba(0, 0, 0, 0.72),
    0 0 48px rgba(198, 154, 69, 0.2);
}

.hero-copy {
  max-width: 600px;
  color: rgba(255, 245, 221, 0.86);
  font-size: 1.22rem;
  line-height: 1.72;
}

.hero-actions {
  margin-top: 28px;
}

.primary-action {
  min-height: 52px;
  padding: 0 28px;
  background:
    linear-gradient(135deg, #ffd484, #c17837 52%, #7d351e);
  color: #17100a;
  border-color: rgba(255, 212, 132, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 18px 48px rgba(198, 116, 55, 0.28);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-3px);
}

.primary-action:active,
.secondary-action:active,
.tab-list button:active,
.ai-float-toggle:active {
  transform: translateY(1px) scale(0.98);
}

.hero-artifact {
  position: absolute;
  z-index: 2;
  right: max(38px, calc((100vw - var(--max)) / 2));
  top: 20%;
  width: min(34vw, 480px);
  aspect-ratio: 0.78;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 212, 132, 0.42);
  border-radius: var(--radius);
  background: #10100d;
  transform: rotate(3deg) skewY(-1deg);
  box-shadow:
    0 38px 110px rgba(0, 0, 0, 0.66),
    0 0 0 1px rgba(255, 212, 132, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

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

.hero-artifact::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 212, 132, 0.12), transparent 42%, rgba(7, 9, 9, 0.72)),
    linear-gradient(90deg, rgba(255, 212, 132, 0.28), transparent 18% 82%, rgba(112, 168, 162, 0.24));
  mix-blend-mode: screen;
}

.hero-artifact::after {
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: inherit;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.48);
}

.hero-artifact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.34) saturate(1.35) contrast(1.18);
  transform: scale(1.09);
}

.hero-holo {
  border-color: rgba(255, 212, 132, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 212, 132, 0.16), rgba(112, 168, 162, 0.04)),
    rgba(7, 9, 9, 0.34);
  box-shadow: 0 0 40px rgba(198, 154, 69, 0.16), inset 0 0 34px rgba(255, 212, 132, 0.06);
}

.hero-holo span {
  background: linear-gradient(90deg, rgba(255, 212, 132, 0.75), rgba(112, 168, 162, 0.08));
}

.hero-rail {
  bottom: 24px;
  max-width: 980px;
  padding: 16px 18px 12px;
  border: 1px solid rgba(255, 212, 132, 0.18);
  border-radius: var(--radius);
  background: rgba(8, 10, 10, 0.44);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rail-node {
  transition: transform 0.28s ease, color 0.28s ease;
}

.rail-node:hover {
  transform: translateY(-3px);
  color: #fff5dd;
}

.section,
.metric-band,
.carousel-band {
  background:
    linear-gradient(180deg, rgba(7, 9, 9, 0.98), rgba(18, 16, 13, 0.98)),
    #0a0c0b;
}

.section {
  padding: 112px 0;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 0 34%, rgba(255, 212, 132, 0.045) 34.1% 34.5%, transparent 34.7%),
    linear-gradient(74deg, transparent 0 70%, rgba(112, 168, 162, 0.04) 70.1% 70.4%, transparent 70.6%);
}

.section-shell {
  position: relative;
  z-index: 1;
}

.section-heading {
  grid-template-columns: 92px minmax(0, 760px);
  gap: 24px;
  margin-bottom: 42px;
}

.section-index {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 212, 132, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 212, 132, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.section-heading h2 {
  color: #ffe2a5;
  font-size: 3rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p:not(.section-index) {
  max-width: 620px;
  color: rgba(255, 245, 221, 0.68);
  font-size: 1.02rem;
}

.metrics-grid {
  grid-template-columns: 1.15fr 0.85fr 1fr 0.95fr;
  gap: 0;
  border-color: rgba(255, 212, 132, 0.3);
  background:
    linear-gradient(90deg, rgba(255, 212, 132, 0.24), rgba(112, 168, 162, 0.14), rgba(255, 212, 132, 0.18));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.metric-card {
  min-height: 142px;
  background:
    linear-gradient(145deg, rgba(23, 22, 18, 0.98), rgba(10, 13, 13, 0.96));
}

.metric-card strong {
  color: #ffd484;
  font-size: 2.75rem;
}

.carousel-band {
  padding: 58px 0 46px;
}

.carousel-container {
  width: min(100% - 64px, 1320px);
  height: 420px;
}

.carousel-container::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 212, 132, 0.52), transparent);
}

.carousel-item {
  width: 620px;
  height: 340px;
  margin-left: -310px;
  margin-top: -170px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 212, 132, 0.26);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

.carousel-item img {
  filter: saturate(0.88) contrast(1.08);
}

.culture-grid {
  grid-template-columns: 1.25fr 0.85fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.culture-card,
.timeline-card,
.resource-card,
.map-detail,
.knowledge-graph,
.knowledge-detail,
.ai-float-panel {
  border-color: rgba(255, 212, 132, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(22, 22, 18, 0.92), rgba(9, 12, 12, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 72px rgba(0, 0, 0, 0.34);
}

.culture-card:nth-child(1) {
  grid-column: span 2;
}

.culture-card:nth-child(1) img {
  height: 260px;
}

.culture-card:nth-child(4) {
  transform: translateY(42px);
}

.culture-card::before,
.timeline-card::before,
.resource-card::before {
  background:
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 212, 132, 0.14) 0%, transparent 42%),
    linear-gradient(135deg, rgba(255, 212, 132, 0.08), transparent 42%, rgba(112, 168, 162, 0.08));
}

.culture-card::after,
.timeline-card::after,
.resource-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.055);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.culture-card:hover::after,
.timeline-card:hover::after,
.resource-card:hover::after {
  opacity: 1;
}

.culture-card:hover,
.timeline-card:hover,
.resource-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 212, 132, 0.56);
  box-shadow:
    0 34px 88px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 212, 132, 0.1),
    0 0 44px rgba(198, 154, 69, 0.13);
}

.culture-card:nth-child(4):hover {
  transform: translateY(30px);
}

.culture-card img,
.timeline-card img,
.resource-card img,
.map-detail img {
  filter: saturate(0.9) contrast(1.08) sepia(0.12);
}

.culture-card-body h3,
.timeline-card h3,
.resource-card h3,
.map-detail h3,
.knowledge-detail h3,
.footer-brand strong {
  color: #ffd484;
  letter-spacing: 0;
}

.timeline-track {
  grid-template-columns: repeat(7, minmax(260px, 1fr));
  overflow-x: auto;
  padding: 8px 0 26px;
  scroll-snap-type: x mandatory;
}

.timeline-card {
  min-width: 280px;
  scroll-snap-align: start;
}

.timeline-card.is-active {
  box-shadow:
    0 0 0 1px rgba(255, 212, 132, 0.9),
    0 28px 80px rgba(0, 0, 0, 0.48),
    0 0 54px rgba(198, 154, 69, 0.22);
}

.map-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.62fr);
}

.map-canvas {
  min-height: 620px;
  background:
    linear-gradient(145deg, rgba(169, 78, 45, 0.18), transparent 34%),
    linear-gradient(25deg, transparent 0 18%, rgba(255, 212, 132, 0.16) 18.1% 18.6%, transparent 18.8% 41%, rgba(112, 168, 162, 0.2) 41.1% 41.6%, transparent 41.8%),
    url("/static/assets/images/beijing.png") center / cover;
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.72),
    0 34px 90px rgba(0, 0, 0, 0.42);
}

.map-route {
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 212, 132, 0.98), rgba(112, 168, 162, 0.84), transparent);
}

.map-point {
  border-radius: var(--radius);
  transform: translate(-50%, -50%) rotate(45deg);
  background: rgba(169, 78, 45, 0.95);
}

.map-point.is-active {
  background: var(--gold-bright);
}

.map-label {
  border-radius: var(--radius);
}

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

.resource-card {
  grid-column: span 3;
}

.resource-card:nth-child(1),
.resource-card:nth-child(6) {
  grid-column: span 6;
}

.resource-card:nth-child(1) img,
.resource-card:nth-child(6) img {
  height: 260px;
}

.resource-period {
  color: var(--jade);
}

.knowledge-graph {
  min-height: 640px;
  background:
    linear-gradient(145deg, rgba(255, 212, 132, 0.06), rgba(112, 168, 162, 0.04)),
    rgba(8, 11, 12, 0.94);
}

.ai-float-toggle {
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffd484, #c17837 56%, #7d351e);
  box-shadow: 0 18px 54px rgba(198, 116, 55, 0.34);
}

.site-footer {
  background:
    linear-gradient(180deg, #0b0d0c, #070909);
}

@keyframes heroDrift {
  from { transform: scale(1.07) translate3d(-8px, 0, 0); }
  to { transform: scale(1.1) translate3d(10px, -8px, 0); }
}

@keyframes veinFlash {
  0%, 100% { opacity: 0.34; }
  45% { opacity: 0.74; }
  56% { opacity: 0.42; }
}

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

@media (max-width: 1180px) {
  .hero-artifact {
    opacity: 0.42;
    right: 24px;
    width: 42vw;
  }

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

  .spectrum-card-wide,
  .spectrum-card-tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 360px;
  }

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

  .culture-card,
  .resource-card,
  .resource-card:nth-child(1),
  .resource-card:nth-child(6) {
    grid-column: auto;
  }

  .culture-card:nth-child(4) {
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 100dvh;
  }

  .hero-inner {
    width: min(100% - 32px, var(--max));
    padding-top: calc(var(--header-height) + 28px);
    padding-bottom: 168px;
  }

  .hero h1 {
    font-size: 3.35rem;
  }

  .hero-artifact {
    top: 32%;
    width: 46vw;
    opacity: 0.3;
  }

  .section {
    padding: 82px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 2.35rem;
  }

  .metrics-grid,
  .spectrum-grid,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .spectrum-card,
  .spectrum-card-wide,
  .spectrum-card-tall {
    min-height: 360px;
  }

  .carousel-container {
    width: min(100% - 32px, 760px);
    height: 300px;
  }

  .carousel-item {
    width: 420px;
    height: 240px;
    margin-left: -210px;
    margin-top: -120px;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-artifact {
    display: none;
  }

  .hero-rail {
    width: calc(100% - 24px);
    padding: 12px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }

  .hero-rail::before {
    display: none;
  }

  .rail-node {
    min-width: 96px;
    scroll-snap-align: start;
  }

  .rail-node span {
    white-space: nowrap;
  }

  .culture-grid,
  .spectrum-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .spectrum-head h2 {
    font-size: 2.4rem;
  }

  .spectrum-head p {
    font-size: 0.98rem;
  }

  .spectrum-card,
  .spectrum-card-wide,
  .spectrum-card-tall {
    min-height: 320px;
  }

  .spectrum-card div {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .spectrum-card h3 {
    font-size: 1.72rem;
  }

  .culture-card:nth-child(1) {
    grid-column: auto;
  }

  .culture-card:nth-child(1) img,
  .resource-card:nth-child(1) img,
  .resource-card:nth-child(6) img {
    height: 200px;
  }

  .section-index {
    width: 46px;
    height: 46px;
  }
}

/* Performance and visual impact pass */
.section:not(.hero),
.carousel-band,
.metric-band {
  content-visibility: auto;
  contain-intrinsic-size: 820px;
}

.action-mark,
.search-mark,
.inline-glyph,
.ai-mark,
.send-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.action-mark-compass {
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(23, 16, 10, 0.2);
}

.action-mark-compass::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 100%, 50% 72%, 0 100%);
  transform: rotate(38deg);
}

.search-mark {
  width: 16px;
  height: 16px;
  margin-left: 2px;
  border: 1.5px solid rgba(255, 212, 132, 0.76);
  border-radius: 50%;
}

.search-mark::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 1.5px;
  right: -5px;
  bottom: 0;
  background: rgba(255, 212, 132, 0.76);
  border-radius: 99px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.glyph-tap {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 212, 132, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 212, 132, 0.95) 0 3px, transparent 4px),
    radial-gradient(circle at 50% 50%, rgba(255, 212, 132, 0.2), transparent 62%);
}

.glyph-tap::before,
.glyph-tap::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(112, 168, 162, 0.42);
  border-radius: 50%;
}

.glyph-tap::after {
  inset: 2px;
  border-color: rgba(255, 212, 132, 0.18);
}

.ai-mark {
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(23, 16, 10, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 40%, rgba(23, 16, 10, 0.86) 0 2px, transparent 2.6px),
    radial-gradient(circle at 65% 40%, rgba(23, 16, 10, 0.86) 0 2px, transparent 2.6px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent);
}

.ai-mark::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 6px;
  height: 2px;
  border-radius: 99px;
  background: rgba(23, 16, 10, 0.78);
}

.send-mark {
  width: 18px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(9% 9%, 92% 50%, 9% 91%, 27% 55%, 56% 50%, 27% 45%);
}

.ai-float-close span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: currentColor;
  font-size: 1.05rem;
  line-height: 1;
}

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

.hero::before {
  background:
    repeating-radial-gradient(ellipse at 72% 42%, rgba(255, 212, 132, 0.16) 0 1px, transparent 1px 18px),
    linear-gradient(103deg, transparent 0 51%, rgba(255, 212, 132, 0.34) 51.2% 51.45%, transparent 51.7%),
    linear-gradient(118deg, transparent 0 62%, rgba(112, 168, 162, 0.26) 62.1% 62.35%, transparent 62.5%);
  opacity: 0.36;
  mix-blend-mode: screen;
  mask-image: linear-gradient(90deg, transparent 0, #000 38%, #000 90%, transparent);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(255, 212, 132, 0.18) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 212, 132, 0.12) 0 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.08;
}

.hero-inner {
  z-index: 4;
}

.hero-artifact {
  z-index: 3;
  box-shadow:
    0 42px 120px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 212, 132, 0.12),
    0 0 88px rgba(198, 154, 69, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-artifact::before {
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 234, 177, 0.46) 45%, transparent 49%),
    linear-gradient(180deg, rgba(255, 212, 132, 0.12), transparent 42%, rgba(7, 9, 9, 0.72)),
    linear-gradient(90deg, rgba(255, 212, 132, 0.28), transparent 18% 82%, rgba(112, 168, 162, 0.24));
}

.hero-artifact::after {
  box-shadow:
    inset 0 0 70px rgba(0, 0, 0, 0.54),
    inset 0 0 0 1px rgba(255, 255, 255, 0.11);
}

.hero h1 {
  background: linear-gradient(180deg, #fff3cf 0%, #ffd484 54%, #c98545 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 28px 74px rgba(0, 0, 0, 0.76);
}

.primary-action {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.primary-action::after {
  content: "";
  position: absolute;
  inset: -60% -35%;
  z-index: -1;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, 0.44) 47%, transparent 60%);
  transform: translateX(-52%) rotate(8deg);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-action:hover::after {
  transform: translateX(52%) rotate(8deg);
}

.culture-card,
.resource-card,
.timeline-card,
.metric-card,
.map-detail,
.knowledge-detail {
  contain: layout paint;
}

.knowledge-graph {
  position: relative;
  overflow: hidden;
}

.knowledge-graph.is-loading::before,
.knowledge-graph:not(.is-ready)::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255, 212, 132, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 34%, rgba(255, 212, 132, 0.22) 0 6px, transparent 7px),
    radial-gradient(circle at 64% 48%, rgba(112, 168, 162, 0.18) 0 5px, transparent 6px),
    radial-gradient(circle at 48% 70%, rgba(169, 78, 45, 0.2) 0 5px, transparent 6px),
    linear-gradient(120deg, transparent 0 34%, rgba(255, 212, 132, 0.18) 34.2% 34.6%, transparent 35% 66%, rgba(112, 168, 162, 0.14) 66.2% 66.6%, transparent 67%);
  opacity: 0.72;
}

.knowledge-graph.is-loading::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 212, 132, 0.68), transparent);
  animation: graphScan 1.8s ease-in-out infinite;
}

@keyframes graphScan {
  0%, 100% { transform: translateY(-120px); opacity: 0.2; }
  50% { transform: translateY(120px); opacity: 1; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .hero-rail,
  .ai-float-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 640px) {
  .hero-bg,
  .hero-particles,
  .hero-glow,
  .hero-veins,
  .knowledge-graph.is-loading::after {
    animation: none !important;
  }

  .hero::before {
    opacity: 0.2;
  }

  .section:not(.hero),
  .carousel-band,
  .metric-band {
    contain-intrinsic-size: 680px;
  }
}

/* ===== Competition research copilot dock ===== */
.ai-float {
  position: fixed;
  left: auto;
  right: 22px;
  bottom: 22px;
  width: auto;
  z-index: 260;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

.ai-float-toggle {
  position: relative;
  isolation: isolate;
  width: 156px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 212, 132, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 212, 132, 0.95), rgba(191, 103, 47, 0.92) 56%, rgba(91, 45, 25, 0.98)),
    #c69a45;
  color: #17100a;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 34px rgba(255, 212, 132, 0.18);
  transform-origin: right bottom;
  overflow: hidden;
}

.ai-float-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.42) 44%, transparent 55%),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.32), transparent 32%);
  transform: translateX(-120%);
  transition: transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Mountain-first hero pass ===== */
.hero {
  min-height: 94svh;
  background: #080b0d;
}

.hero-bg {
  z-index: 0;
  background-image: url("/static/assets/images/banner6.png") !important;
  background-position: 58% 48%;
  background-size: cover;
  transform: scale(1.035);
  filter: saturate(0.92) contrast(1.08) brightness(0.88);
  animation: heroMountainDrift 24s ease-in-out infinite alternate;
}

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

.hero-bg::before {
  background:
    linear-gradient(90deg, rgba(4, 7, 8, 0.86) 0%, rgba(4, 7, 8, 0.42) 35%, rgba(4, 7, 8, 0.08) 68%, rgba(4, 7, 8, 0.38) 100%),
    linear-gradient(180deg, rgba(5, 8, 10, 0.34) 0%, transparent 34%, rgba(4, 7, 8, 0.16) 62%, rgba(4, 7, 8, 0.88) 100%);
}

.hero-bg::after {
  background:
    linear-gradient(125deg, transparent 0 47%, rgba(247, 193, 103, 0.16) 47.2%, transparent 47.7%),
    linear-gradient(180deg, transparent 0 58%, rgba(11, 25, 30, 0.18) 76%, rgba(4, 7, 8, 0.5));
  mix-blend-mode: screen;
  opacity: 0.6;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 5, 6, 0.28), transparent 58%, rgba(3, 5, 6, 0.2)),
    linear-gradient(180deg, rgba(3, 5, 6, 0.08), transparent 46%, rgba(3, 5, 6, 0.2));
}

.hero-inner {
  width: min(100% - 48px, var(--max));
  padding-top: calc(var(--header-height) + 54px);
  padding-bottom: 144px;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(4rem, 6vw, 6.1rem);
  text-shadow: 0 12px 38px rgba(0, 0, 0, 0.82), 0 0 24px rgba(255, 202, 122, 0.13);
}

.hero-copy {
  max-width: 540px;
  color: rgba(255, 247, 231, 0.9);
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.66);
}

.hero-artifact {
  z-index: 2;
  right: max(72px, calc((100vw - var(--max)) / 2 + 32px));
  top: 24%;
  width: min(19vw, 260px);
  aspect-ratio: 0.82;
  opacity: 0.2;
  transform: rotate(3deg) skewY(-1deg) translateY(18px);
  filter: saturate(0.72) contrast(1.1);
  mix-blend-mode: screen;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 212, 132, 0.1);
}

.hero-artifact img {
  filter: sepia(0.54) saturate(0.86) contrast(1.16);
}

.hero-holo-right {
  z-index: 3;
  right: max(70px, calc((100vw - var(--max)) / 2));
  top: 18%;
  opacity: 0.7;
}

.hero-rail {
  z-index: 4;
  bottom: 28px;
  background: linear-gradient(180deg, rgba(4, 7, 8, 0.18), rgba(4, 7, 8, 0.66));
  border-color: rgba(255, 212, 132, 0.26);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

@keyframes heroMountainDrift {
  0% { transform: scale(1.035) translate3d(-0.6%, 0, 0); }
  100% { transform: scale(1.07) translate3d(0.7%, -0.4%, 0); }
}

@media (max-width: 720px) {
  .hero {
    min-height: 92svh;
  }

  .hero-bg {
    background-position: 60% 48%;
  }

  .hero-artifact,
  .hero-holo-right {
    opacity: 0.08;
    right: 18px;
    width: 150px;
  }

  .hero-inner {
    padding-top: calc(var(--header-height) + 34px);
    padding-bottom: 160px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }
}

/* Final narrow-screen pass */
@media (max-width: 720px) {
  .site-header {
    min-height: 58px;
    padding: 0 14px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand strong {
    font-size: 0.86rem;
  }

  .brand small {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .lang-toggle {
    min-width: 64px;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .hero {
    height: max(590px, 78svh);
  }

  .hero-inner {
    width: calc(100% - 32px);
    padding-top: 82px;
    padding-bottom: 138px;
  }

  .hero h1 {
    max-width: 100%;
    margin-top: 14px;
    font-size: clamp(3.15rem, 14vw, 4.4rem);
    line-height: 1.08;
  }

  .hero-copy {
    max-width: 300px;
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-holo-left,
  .hero-holo-right {
    opacity: 0.25;
    transform: scale(0.62);
  }

  .hero-holo-left {
    top: 42px;
    left: 10px;
    transform-origin: top left;
  }

  .hero-holo-right {
    top: 48px;
    right: 8px;
    transform-origin: top right;
  }

  .hero-rail {
    width: calc(100% - 24px);
    bottom: 18px;
    overflow-x: auto;
    grid-template-columns: repeat(7, minmax(58px, 1fr));
    scrollbar-width: none;
  }

  .hero-rail::-webkit-scrollbar {
    display: none;
  }

  .rail-node {
    font-size: 0.62rem;
  }

  .primary-action {
    min-height: 46px;
    padding: 0 20px;
  }

  .ai-float {
    right: 14px;
    bottom: 14px;
  }

  .ai-float-toggle {
    width: 48px;
    height: 48px;
  }

  .ai-float-panel {
    left: 12px;
    right: 12px;
    bottom: 60px;
    width: auto;
    max-height: calc(100svh - 84px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    animation: none;
  }
}

.ai-float-toggle:hover {
  transform: translateY(-3px);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 46px rgba(255, 212, 132, 0.24);
}

.ai-float-toggle:hover::before {
  transform: translateX(120%);
}

.ai-toggle-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1px;
  text-align: left;
  line-height: 1.05;
}

.ai-toggle-copy strong {
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.ai-toggle-copy small {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.72;
}

.ai-float-toggle .ai-mark {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(23, 16, 10, 0.7);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(23, 16, 10, 0.92) 0 3px, transparent 4px),
    conic-gradient(from 18deg, rgba(23, 16, 10, 0.18), rgba(23, 16, 10, 0.72), rgba(23, 16, 10, 0.18)),
    radial-gradient(circle, rgba(255, 245, 221, 0.4), transparent 68%);
}

.ai-float-toggle .ai-mark::before,
.ai-float-toggle .ai-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(23, 16, 10, 0.38);
  border-radius: 50%;
}

.ai-float-toggle .ai-mark::after {
  inset: 12px auto auto 50%;
  width: 12px;
  height: 1.5px;
  border: 0;
  border-radius: 99px;
  background: rgba(23, 16, 10, 0.78);
  transform: translateX(-50%);
}

.ai-float-panel {
  right: 0;
  bottom: 70px;
  width: min(444px, calc(100vw - 32px));
  height: min(680px, calc(100dvh - 110px));
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.965);
  border-radius: 8px;
  border: 1px solid rgba(255, 212, 132, 0.3);
  background:
    linear-gradient(150deg, rgba(25, 23, 18, 0.94), rgba(9, 13, 13, 0.98) 52%, rgba(13, 18, 17, 0.96)),
    rgba(9, 12, 12, 0.96);
  box-shadow:
    0 34px 96px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 72px rgba(198, 116, 55, 0.16);
  backdrop-filter: blur(22px) saturate(138%);
  -webkit-backdrop-filter: blur(22px) saturate(138%);
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-float-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ai-panel-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 212, 132, 0.12) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(112, 168, 162, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 18% 8%, rgba(255, 212, 132, 0.16), transparent 36%),
    radial-gradient(circle at 90% 82%, rgba(112, 168, 162, 0.14), transparent 32%);
  background-size: 74px 74px, 74px 74px, auto, auto;
  opacity: 0.46;
}

.ai-panel-veil::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18%;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(255, 212, 132, 0.18), transparent);
  animation: copilotScan 4.6s ease-in-out infinite;
}

.ai-float-header,
.ai-float-status,
.ai-float-body,
.ai-float-prompts,
.ai-float-form {
  position: relative;
  z-index: 1;
}

.ai-float-header {
  min-height: 78px;
  padding: 16px 18px 14px;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 212, 132, 0.14);
  background: linear-gradient(180deg, rgba(255, 212, 132, 0.08), rgba(255, 212, 132, 0.015));
}

.ai-float-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 212, 132, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 212, 132, 0.22), rgba(112, 168, 162, 0.13)),
    rgba(8, 12, 12, 0.72);
  box-shadow: inset 0 0 24px rgba(255, 212, 132, 0.12), 0 10px 26px rgba(0, 0, 0, 0.28);
}

.ai-float-avatar span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #ffd484;
  background:
    radial-gradient(circle at 50% 50%, #ffd484 0 3px, transparent 4px),
    conic-gradient(from 35deg, transparent, rgba(255, 212, 132, 0.96), transparent 62%);
  box-shadow: 0 0 18px rgba(255, 212, 132, 0.36);
}

.ai-float-heading {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ai-float-heading span {
  color: #ffe0a2;
  font-family: "STKaiti", "KaiTi", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ai-float-heading small {
  color: rgba(255, 245, 221, 0.52);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.ai-float-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border-color: rgba(255, 212, 132, 0.2);
  background: rgba(255, 255, 255, 0.035);
}

.ai-float-close:hover {
  color: #ffd484;
  background: rgba(255, 212, 132, 0.08);
  border-color: rgba(255, 212, 132, 0.46);
}

.ai-float-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255, 212, 132, 0.1);
  color: rgba(255, 212, 132, 0.66);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
}

.ai-float-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #70a8a2;
  box-shadow: 0 0 16px rgba(112, 168, 162, 0.75);
}

.ai-float-body {
  padding: 18px;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 212, 132, 0.34) transparent;
}

.ai-float-body .chat-message {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 212, 132, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 245, 221, 0.82);
  font-size: 0.88rem;
  line-height: 1.72;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.ai-float-body .chat-message.streaming::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 4px;
  border-radius: 99px;
  background: rgba(255, 212, 132, 0.78);
  vertical-align: -0.16em;
  animation: streamCaret 0.85s ease-in-out infinite;
}

.chat-message h3,
.chat-message h4,
.chat-message h5 {
  margin: 0.55em 0 0.35em;
  color: #ffe0a2;
  font-family: "STKaiti", "KaiTi", Georgia, serif;
  line-height: 1.35;
}

.chat-message h3 { font-size: 1.02rem; }
.chat-message h4 { font-size: 0.96rem; }
.chat-message h5 { font-size: 0.9rem; }

.chat-message p {
  margin: 0.42em 0;
}

.chat-message ul {
  margin: 0.45em 0 0.55em;
  padding-left: 1.15em;
}

.chat-message li {
  margin: 0.28em 0;
  padding-left: 0.1em;
}

.chat-message strong {
  color: #ffe0a2;
  font-weight: 700;
}

.chat-message em {
  color: #d5f1eb;
  font-style: normal;
}

.chat-message code {
  padding: 0.1em 0.34em;
  border: 1px solid rgba(255, 212, 132, 0.16);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.26);
  color: #d5f1eb;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.86em;
}

.chat-message pre {
  max-width: 100%;
  margin: 0.6em 0;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid rgba(255, 212, 132, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
}

.chat-message pre code {
  padding: 0;
  border: 0;
  background: transparent;
  white-space: pre;
}

.chat-message blockquote {
  margin: 0.55em 0;
  padding: 0.2em 0 0.2em 0.8em;
  border-left: 2px solid rgba(112, 168, 162, 0.72);
  color: rgba(255, 245, 221, 0.72);
}

.chat-message hr {
  height: 1px;
  margin: 0.7em 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 212, 132, 0.34), transparent);
}

@keyframes streamCaret {
  0%, 100% { opacity: 0.25; transform: scaleY(0.72); }
  50% { opacity: 1; transform: scaleY(1); }
}

.ai-float-body .chat-message.guide {
  border-left: 3px solid #70a8a2;
  background:
    linear-gradient(135deg, rgba(112, 168, 162, 0.13), rgba(255, 212, 132, 0.045)),
    rgba(255, 255, 255, 0.035);
}

.ai-float-body .chat-message.user {
  border-color: rgba(255, 212, 132, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 212, 132, 0.2), rgba(169, 78, 45, 0.16)),
    rgba(255, 255, 255, 0.04);
  color: #fff1ca;
}

.ai-float-prompts {
  padding: 0 18px 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ai-float-prompts button {
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 212, 132, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 212, 132, 0.07), rgba(112, 168, 162, 0.045)),
    rgba(255, 255, 255, 0.025);
  color: rgba(255, 245, 221, 0.68);
  font-size: 0.76rem;
  line-height: 1.28;
  text-align: left;
  border-radius: 8px;
}

.ai-float-prompts button::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: rgba(255, 212, 132, 0.72);
  box-shadow: 0 0 12px rgba(255, 212, 132, 0.38);
  vertical-align: 1px;
}

.ai-float-prompts button:hover {
  color: #fff2cb;
  border-color: rgba(255, 212, 132, 0.42);
  background: rgba(255, 212, 132, 0.1);
  transform: translateY(-1px);
}

.ai-float-form {
  gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 212, 132, 0.12);
  background: rgba(0, 0, 0, 0.16);
}

.ai-float-form input {
  min-height: 46px;
  border: 1px solid rgba(255, 212, 132, 0.18);
  border-radius: 8px;
  background: rgba(6, 9, 9, 0.72);
  color: #fff5dd;
  font-size: 0.88rem;
}

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

.ai-float-form input:focus {
  border-color: rgba(255, 212, 132, 0.56);
  box-shadow: 0 0 0 3px rgba(255, 212, 132, 0.08);
}

.ai-float-form button {
  width: 48px;
  min-height: 46px;
  border: 1px solid rgba(255, 212, 132, 0.36);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffd484, #c17837 58%, #7d351e);
  color: #17100a;
}

@keyframes copilotScan {
  0%, 100% { transform: translateY(0); opacity: 0; }
  20% { opacity: 0.55; }
  58% { opacity: 0.22; }
  100% { transform: translateY(370%); }
}

@media (prefers-reduced-motion: reduce) {
  .ai-panel-veil::after,
  .ai-float-toggle::before {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .ai-float {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .ai-float-toggle {
    width: 100%;
    justify-content: center;
  }

  .ai-float-panel {
    left: 0;
    right: 0;
    bottom: 66px;
    width: 100%;
    height: min(74dvh, 650px);
  }

  .ai-float-prompts {
    grid-template-columns: 1fr;
  }
}

/* ===== IMNU reference pass: quiet mountain homepage ===== */
.hero {
  min-height: 0;
  height: clamp(520px, 63svh, 660px);
  background: #070a0b;
}

.hero-bg {
  z-index: 0;
  background-image: url("/static/assets/images/banner6.png") !important;
  background-position: center 48%;
  transform: none;
  filter: saturate(0.78) contrast(1.06) brightness(0.66);
  animation: none;
}

.hero-bg::before {
  background:
    linear-gradient(90deg, rgba(3, 5, 6, 0.82) 0%, rgba(3, 5, 6, 0.4) 38%, rgba(3, 5, 6, 0.08) 72%, rgba(3, 5, 6, 0.32) 100%),
    linear-gradient(180deg, rgba(3, 5, 6, 0.2), transparent 45%, rgba(3, 5, 6, 0.72) 100%);
}

.hero-bg::after,
.hero::before,
.hero::after,
.hero-particles,
.hero-glow,
.hero-veins,
.hero-artifact {
  display: none;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 7, 8, 0.16), transparent 64%, rgba(5, 7, 8, 0.12)),
    linear-gradient(180deg, rgba(5, 7, 8, 0.04), transparent 58%, rgba(5, 7, 8, 0.18));
}

.hero-inner {
  width: min(100% - 48px, 1232px);
  padding-top: 98px;
  padding-bottom: 118px;
}

.eyebrow {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #f0d28e;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  margin: 16px 0 12px;
  color: #f7e4bf;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: clamp(4rem, 5.4vw, 5.7rem);
  line-height: 1.05;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.76);
}

.hero-copy {
  max-width: 530px;
  color: rgba(247, 240, 223, 0.88);
  font-size: 1.18rem;
  line-height: 1.65;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.62);
}

.hero-actions {
  margin-top: 26px;
}

.primary-action {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e4bd70, #b47b39);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.primary-action::after {
  display: none;
}

.hero-holo {
  z-index: 2;
  width: 210px;
  min-height: 150px;
  border: 1px solid rgba(124, 183, 199, 0.3);
  border-radius: 0;
  background: rgba(10, 19, 22, 0.08);
  box-shadow: inset 0 0 22px rgba(124, 183, 199, 0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0.72;
}

.hero-holo-left {
  top: 54px;
  left: 48px;
}

.hero-holo-right {
  top: 58px;
  right: 68px;
  width: 244px;
  opacity: 0.72;
}

.hero-holo span {
  height: 7px;
  margin: 18px 20px;
  background: linear-gradient(90deg, rgba(124, 183, 199, 0.68), rgba(124, 183, 199, 0.08));
}

.hero-rail {
  z-index: 3;
  bottom: 26px;
  width: min(100% - 64px, 1120px);
  padding: 16px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-rail::before {
  top: 8px;
  left: 3%;
  right: 3%;
  background: linear-gradient(90deg, transparent, rgba(229, 190, 111, 0.7), transparent);
}

.rail-node {
  gap: 9px;
  color: rgba(247, 240, 223, 0.72);
  font-size: 0.76rem;
}

.rail-node::before {
  width: 8px;
  height: 8px;
  background: #e4bd70;
  box-shadow: 0 0 0 5px rgba(228, 189, 112, 0.1);
}

.ai-float {
  right: 22px;
  bottom: 22px;
}

.ai-float-toggle {
  width: 54px;
  height: 54px;
  justify-content: center;
  gap: 0;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #e4bd70, #b47b39);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.ai-toggle-copy {
  display: none;
}

.ai-float-toggle::before {
  display: none;
}

@media (max-width: 720px) {
  .hero {
    height: max(620px, 82svh);
  }

  .hero-inner {
    width: calc(100% - 40px);
    padding-top: 92px;
    padding-bottom: 142px;
  }

  .hero-holo-left,
  .hero-holo-right {
    opacity: 0.34;
    transform: scale(0.72);
    transform-origin: top right;
  }

  .hero-holo-left {
    left: 14px;
    transform-origin: top left;
  }

  .hero-holo-right {
    right: 14px;
  }

  .hero-rail {
    width: calc(100% - 34px);
    grid-template-columns: repeat(7, minmax(48px, 1fr));
    gap: 3px;
  }

  .rail-node {
    font-size: 0.62rem;
  }
}
