:root {
  --text-primary: #f8f6f0;
  --text-muted: #aba59c;

  /* Luxury Gold */
  --gold-light: #fae1a2;
  --gold-main: #d4af5b;
  --gold-dark: #9e7f3a;

  /* Deep Jade */
  --jade-light: #98e8cd;
  --jade-main: #4fa186;
  --jade-dark: #205c48;

  /* Backgrounds */
  --bg-base: #0a0b0c;
  --bg-panel: rgba(18, 20, 24, 0.55);
  --bg-panel-hover: rgba(28, 30, 36, 0.7);

  /* Glassmorphism */
  --glass-border: rgba(255, 255, 255, 0.04);
  --glass-border-light: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --glass-blur: blur(24px);

  --gold-gradient: linear-gradient(140deg, var(--gold-light), var(--gold-main), var(--gold-dark));

  /* Lines */
  --line-subtle: rgba(212, 175, 91, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-primary);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-base);
  background-image:
    radial-gradient(circle at top left, rgba(212, 175, 91, 0.08), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(79, 161, 134, 0.06), transparent 35%),
    linear-gradient(180deg, #0a0b0c 0%, #050505 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
  outline: none;
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
}

.ambient {
  position: fixed;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
  animation: drift 20s ease-in-out infinite alternate;
}

.ambient-left {
  top: -10vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(212, 175, 91, 0.3), transparent 70%);
}

.ambient-right {
  top: 40vh;
  right: -10vw;
  background: radial-gradient(circle, rgba(79, 161, 134, 0.25), transparent 70%);
  animation-delay: -10s;
}

.topbar {
  position: relative;
  z-index: 10;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  gap: 0;
  position: sticky;
  top: 0;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: var(--glass-blur);
  background: rgba(8, 9, 10, 0.36);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s ease;
}

.topbar>* {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  transition: opacity 0.3s;
}

.brand:hover {
  opacity: 0.8;
}

.brand-mark {
  width: 3.2rem;
  height: 3.2rem;
  position: relative;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 28% 25%, rgba(255, 255, 255, 0.28), transparent 32%),
    linear-gradient(145deg, #f8dfa0 0%, #d4af5b 54%, #8f6a2b 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26), 0 6px 18px rgba(212, 175, 91, 0.26);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 16%;
  z-index: 0;
  background:
    url('./img/decor-mandala.png') center / contain no-repeat;
  opacity: 0.92;
  filter: saturate(0.42) brightness(0.56);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.62rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

h1,
h2,
h3,
.brand-copy strong,
.result-score strong {
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  margin: 0;
}

.brand-copy strong {
  font-size: 1.22rem;
  letter-spacing: 0.04em;
}

.brand-copy small {
  color: var(--gold-main);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.topnav {
  display: flex;
  gap: 0;
  padding: 0 clamp(2rem, 5vw, 4rem);
}

.nav-item {
  position: relative;
}

.nav-item>a {
  font-size: 0.88rem;
  color: var(--text-primary);
  opacity: 0.7;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.75rem 1.1rem;
  display: block;
}

.nav-item:hover>a {
  opacity: 1;
  color: var(--gold-light);
}

.nav-item>a::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 0;
  width: auto;
  height: 2px;
  background: var(--gold-main);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
  box-shadow: 0 0 8px var(--gold-main);
}

.nav-item:hover>a::after {
  transform: scaleX(1);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: rgba(12, 14, 18, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-light);
  border-radius: 0.6rem;
  padding: 0.4rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.25s ease;
  z-index: 100;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.nav-item:hover>.dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.55rem 1.2rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  opacity: 1;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dropdown a:hover {
  color: var(--gold-light);
  background: rgba(212, 175, 91, 0.08);
  padding-left: 1.5rem;
}

main {
  width: min(1360px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2rem 0 6rem;
}

.hero,
.feature-strip,
.section-shell,
.footer {
  background: var(--bg-panel);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 1.5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 5vw, 4rem);
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212, 175, 91, 0.4), transparent 50%, rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  color: var(--gold-main);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-main), transparent);
}

.hero h1 {
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  line-height: 1.15;
  background: linear-gradient(180deg, #FFFFFF 0%, #D8D8D8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 40rem;
  margin: 1.5rem 0 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.primary-btn,
.ghost-btn,
.link-btn,
.suggestion-btn {
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.primary-btn {
  padding: 1rem 2rem;
  background: var(--gold-gradient);
  color: #000;
  border: none;
  box-shadow: 0 8px 20px rgba(212, 175, 91, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(212, 175, 91, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.ghost-btn {
  padding: 1rem 2rem;
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold-main);
  box-shadow: inset 0 0 0 0 transparent;
}

.ghost-btn:hover {
  background: rgba(212, 175, 91, 0.1);
  box-shadow: inset 0 0 10px rgba(212, 175, 91, 0.2);
  transform: translateY(-2px);
}

.link-btn {
  background: transparent;
  color: var(--gold-main);
  border: none;
  padding: 0;
}

.link-btn:hover {
  color: var(--gold-light);
  transform: translateX(2px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-metrics li {
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--gold-dark);
  border-radius: 0 0.8rem 0.8rem 0;
  transition: background 0.3s;
}

.hero-metrics li:hover {
  background: rgba(255, 255, 255, 0.04);
}

.hero-metrics strong {
  font-size: 1.8rem;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.3rem;
}

.hero-metrics span {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-console {
  border-radius: 1.2rem;
  padding: 2rem;
  background: rgba(10, 12, 16, 0.8);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
}

.console-head,
.panel-head,
.console-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.console-head {
  margin-bottom: 2rem;
}

.console-head>span:first-child {
  color: var(--gold-main);
  font-family: "Noto Serif SC", serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.status-badge,
.chip {
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.status-badge {
  background: rgba(212, 175, 91, 0.1);
  border: 1px solid rgba(212, 175, 91, 0.3);
  color: var(--gold-light);
  box-shadow: 0 0 10px rgba(212, 175, 91, 0.2);
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  flex-grow: 1;
}

.console-grid article {
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.8rem;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.console-grid article:hover {
  border-color: var(--glass-border-light);
  background: rgba(255, 255, 255, 0.04);
}

.console-grid span,
.zone-card span {
  font-size: 0.75rem;
  color: var(--jade-main);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.console-grid strong,
.console-footer strong {
  color: var(--text-primary);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.4rem;
}

.console-grid small {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  display: block;
}

.console-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  gap: 1rem;
}

.console-footer span {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.3rem;
}

.console-footer strong {
  font-size: 0.95rem;
  color: var(--gold-light);
}

.feature-strip {
  margin-top: 2rem;
  display: flex;
  background: rgba(18, 20, 24, 0.4);
  backdrop-filter: var(--glass-blur);
}

.feature-strip article {
  flex: 1;
  padding: 2.5rem;
  border-right: 1px solid var(--glass-border);
}

.feature-strip article:last-child {
  border-right: none;
}

.feature-strip span {
  font-size: 0.8rem;
  color: var(--gold-main);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.8rem;
}

.feature-strip strong {
  font-family: "Noto Serif SC", serif;
  font-size: 1.3rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.feature-strip p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.section-shell {
  margin-top: 3rem;
  padding: clamp(3rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.section-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: clamp(11.8rem, 16vw, 14.8rem);
  background:
    linear-gradient(180deg, rgba(6, 8, 10, 0.08) 0%, rgba(6, 8, 10, 0) 54%),
    url('./img/decor-wave.png') center top / auto 164% repeat-x;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.86) 74%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.86) 74%, transparent 100%);
}

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

#ai-lab::after,
#zones::after,
#archive::after,
#classes::after,
#workshop::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

#ai-lab::after {
  top: 7.2rem;
  right: 1rem;
  width: min(11vw, 124px);
  height: min(9vw, 108px);
  background: url('./img/decor-cloud-ribbon-b.png') center / contain no-repeat;
  opacity: 0.18;
  transform: rotate(4deg);
  filter: drop-shadow(0 0 16px rgba(212, 175, 91, 0.06));
}

#zones::after {
  right: -0.6rem;
  bottom: 1rem;
  width: min(15vw, 170px);
  height: min(15vw, 170px);
  background: url('./img/decor-papercut-stage-sm.png') left bottom / contain no-repeat;
  opacity: 0.08;
  filter: saturate(0.74) brightness(0.84);
}

#archive::after {
  left: -6.2rem;
  bottom: 1.4rem;
  width: min(16vw, 200px);
  height: min(16vw, 200px);
  background: url('./img/decor-half-pattern-sm.png') center / contain no-repeat;
  opacity: 0.08;
  filter: grayscale(1) brightness(0.7);
}

#classes::after {
  right: 1rem;
  top: 8.2rem;
  width: min(10vw, 116px);
  height: min(18vw, 200px);
  background: url('./img/decor-cloud-ribbon-a.png') center / contain no-repeat;
  opacity: 0.18;
  transform: rotate(-8deg);
  filter: drop-shadow(0 0 18px rgba(212, 175, 91, 0.05));
}

#workshop::after {
  left: 1rem;
  bottom: 1.2rem;
  width: min(13vw, 140px);
  height: min(13vw, 140px);
  background: url('./img/decor-ocean-frame-single.png') center / contain no-repeat;
  opacity: 0.12;
  transform: rotate(-8deg);
}

.section-heading {
  margin-bottom: 3.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(2.1rem, 3.4vw, 3rem);
}

.section-heading h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-wrap: balance;
}

.section-heading p {
  color: var(--text-muted);
  max-width: 44rem;
  line-height: 1.8;
  margin: 0;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 1.2rem;
  padding: 2rem;
  transition: border-color 0.4s;
}

.panel:hover {
  border-color: rgba(212, 175, 91, 0.2);
}

.panel-large {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.012) 100%),
    radial-gradient(circle at 16% 86%, rgba(212, 175, 91, 0.08) 0%, transparent 28%),
    rgba(255, 255, 255, 0.02);
}

.panel-large::before,
.panel-large::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.panel-large::before {
  left: -2.8rem;
  bottom: -3.1rem;
  width: min(19vw, 230px);
  height: min(19vw, 230px);
  background: url('./img/decor-mandala.png') center / contain no-repeat;
  opacity: 0.05;
  filter: grayscale(1) brightness(0.72);
}

.panel-large::after {
  right: 1.2rem;
  bottom: 1rem;
  width: min(11vw, 136px);
  height: min(8vw, 96px);
  background: url('./img/decor-cloud6.png') center / contain no-repeat;
  opacity: 0.08;
  transform: rotate(-4deg);
  filter: saturate(0.52) brightness(0.88);
}

.panel-large > * {
  position: relative;
  z-index: 1;
}

.chip {
  border: 1px solid transparent;
  display: inline-block;
  margin-bottom: 1rem;
}

.chip-warm {
  background: rgba(212, 175, 91, 0.1);
  border-color: rgba(212, 175, 91, 0.2);
  color: var(--gold-light);
}

.chip-cool {
  background: rgba(79, 161, 134, 0.1);
  border-color: rgba(79, 161, 134, 0.2);
  color: var(--jade-light);
}

.chip-gold {
  background: rgba(218, 176, 98, 0.15);
  border-color: rgba(218, 176, 98, 0.3);
  color: #FFF0C8;
}

.chip-soft {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.panel-head h3 {
  font-size: 1.6rem;
  color: var(--text-primary);
}

.upload-stage {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 1.5rem;
  margin: 2rem 0;
}

.file-input {
  display: none;
}

.upload-dropzone,
.upload-preview {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed var(--line-subtle);
  border-radius: 1rem;
  height: 14rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  transition: all 0.3s;
}

.upload-dropzone:hover {
  border-color: var(--gold-main);
  background: rgba(212, 175, 91, 0.05);
  cursor: pointer;
}

.upload-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gold-main);
  margin-bottom: 1rem;
  font-weight: 300;
}

.upload-dropzone strong {
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  display: block;
}

.upload-dropzone small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.upload-preview {
  border-style: solid;
  color: var(--text-muted);
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.field-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.field-grid span {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.field-grid input,
.field-grid textarea,
.field-grid select,
.inline-form input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.field-grid input:focus,
.field-grid textarea:focus,
.field-grid select:focus,
.inline-form input:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 15px rgba(212, 175, 91, 0.15);
}

.field-grid textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.6;
}

.result-card {
  background: linear-gradient(135deg, rgba(212, 175, 91, 0.08), rgba(0, 0, 0, 0.4));
  border: 1px solid var(--line-subtle);
  border-radius: 1rem;
  padding: 2rem;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 2rem;
}

.result-score {
  border-right: 1px solid var(--glass-border);
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-score span {
  color: var(--gold-main);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.result-score strong {
  font-size: 1.8rem;
  color: var(--text-primary);
}

.result-copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.suggestion-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.suggestion-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

.suggestion-btn:hover {
  background: rgba(212, 175, 91, 0.1);
  border-color: rgba(212, 175, 91, 0.3);
  color: var(--gold-light);
}

.chat-window {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  min-height: 20rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.chat-bubble {
  max-width: 85%;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.chat-bubble-user {
  align-self: flex-end;
  background: rgba(212, 175, 91, 0.15);
  border: 1px solid rgba(212, 175, 91, 0.2);
  border-bottom-right-radius: 0.2rem;
}

.chat-bubble-ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 0.2rem;
  color: var(--text-muted);
}

.inline-form {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.inline-form input {
  flex: 1;
}

.compact {
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.progress-list,
.badge-stack,
.timeline,
.class-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.progress-list article {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 0.8rem;
  padding: 1.2rem;
}

.progress-list span {
  font-size: 0.75rem;
  color: var(--gold-main);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.4rem;
}

.progress-list strong {
  color: var(--text-primary);
  font-size: 1.05rem;
}

.idea-board {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed var(--line-subtle);
  border-radius: 1rem;
  min-height: 14rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
}

.zone-thumb {
  height: 9rem;
  border-radius: 0.8rem;
  background-size: cover;
  background-position: center;
  margin-bottom: 1.8rem;
  position: relative;
  overflow: hidden;
}

.zone-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(212, 175, 91, 0.15), rgba(0, 0, 0, 0.4));
  border-radius: inherit;
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.zone-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 1.2rem;
  padding: 2.5rem;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.zone-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(212, 175, 91, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.zone-card.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

.zone-card h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin: 0.5rem 0 1rem;
}

.zone-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.zone-card ul {
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  font-size: 0.9rem;
}

.zone-card ul li::marker {
  color: var(--gold-main);
}

.archive-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.work-cover,
.class-cover {
  background: rgba(0, 0, 0, 0.5);
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.work-cover {
  min-height: 14rem;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.work-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
}

.work-cover span {
  position: relative;
  z-index: 1;
  color: var(--gold-light);
  font-family: "Noto Serif SC", serif;
  font-size: 1.2rem;
}

.archive-side {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.badge-panel,
.timeline-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 1.2rem;
  padding: 2rem;
}

.panel-head.compact {
  margin-bottom: 1.5rem;
}

.badge-item,
.timeline-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 0.8rem;
  padding: 1.2rem;
}

.badge-item span,
.timeline-item span {
  font-size: 0.75rem;
  color: var(--jade-main);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.4rem;
}

.badge-item strong,
.timeline-item strong {
  color: var(--text-primary);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.4rem;
}

.badge-item p,
.timeline-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.badge-earned {
  border-color: rgba(212, 175, 91, 0.25) !important;
  background: rgba(212, 175, 91, 0.05) !important;
}

.badge-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.badge-stars {
  font-style: normal;
  color: var(--gold-main);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
  margin-top: 0.1rem;
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--gold-main);
  box-shadow: 0 0 0 4px rgba(212, 175, 91, 0.2);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 2.5rem;
  bottom: -1.5rem;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.timeline-item:last-child::after {
  display: none;
}

.class-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.class-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 1.2rem;
  padding: 1.5rem;
  transition: transform 0.3s;
}

.class-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.1);
}

.class-cover {
  height: 12rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.class-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 25%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 1;
}

.class-video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.class-duration {
  position: relative;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: var(--gold-light);
  padding: 0.4rem 0.8rem;
  border-radius: 99px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.class-card h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.class-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.class-progress {
  margin-top: 1rem;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

.class-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--gold-gradient);
  transition: width 1s ease;
}

.class-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 1.2rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.2rem;
}

.class-meta span {
  font-size: 0.8rem;
  color: var(--gold-main);
}

/* Class card play icon */
.class-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  padding-left: 3px;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(6px);
  z-index: 2;
}

.class-card:hover .class-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.class-cover {
  position: relative;
}

.class-card {
  cursor: pointer;
}

/* ===== Course Detail Modal ===== */
.class-modal-overlay {
  z-index: 210;
}

.cm-dialog {
  background: rgba(12, 14, 18, 0.98);
  border: 1px solid var(--glass-border-light);
  border-radius: 1.5rem;
  width: min(1060px, calc(100vw - 3rem));
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.class-modal-overlay.open .cm-dialog {
  transform: translateY(0) scale(1);
}

.cm-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 2.5rem;
  margin-top: 0.5rem;
}

.cm-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  background: #000;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.cm-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cm-video.is-playing::before {
  opacity: 0;
}

.cm-video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.cm-video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  z-index: 2;
  cursor: pointer;
  transition: background 0.3s, opacity 0.25s ease;
}

.cm-video.is-playing .cm-video-overlay {
  opacity: 0;
  pointer-events: none;
}

.cm-video-overlay:hover {
  background: rgba(0, 0, 0, 0.15);
}

.cm-play-btn {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(212, 175, 91, 0.2);
  border: 2px solid rgba(212, 175, 91, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.6rem;
  padding-left: 4px;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cm-video-overlay:hover .cm-play-btn {
  background: rgba(212, 175, 91, 0.3);
  transform: scale(1.08);
  box-shadow: 0 0 40px rgba(212, 175, 91, 0.2);
}

.cm-play-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.cm-info {
  padding: 0.5rem 0;
}

.cm-info h2 {
  font-size: 1.8rem;
  color: var(--text-primary);
  font-family: "Noto Serif SC", serif;
  margin: 0 0 1.2rem;
}

.cm-teacher-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--glass-border);
}

.cm-avatar {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.cm-teacher-row strong {
  display: block;
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.cm-teacher-row span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.cm-meta-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.2rem;
}

.cm-meta-item span {
  display: block;
  font-size: 0.72rem;
  color: var(--gold-main);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.cm-meta-item strong {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.cm-skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.cm-skill {
  background: rgba(79, 161, 134, 0.1);
  border: 1px solid rgba(79, 161, 134, 0.2);
  color: var(--jade-light);
  border-radius: 99px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.cm-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
  margin: 0;
}

/* Sidebar */
.cm-sidebar {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 1.2rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  max-height: calc(90vh - 6rem);
  overflow-y: auto;
}

.cm-sidebar-head {
  margin-bottom: 1.5rem;
}

.cm-sidebar-head h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  font-family: "Noto Serif SC", serif;
  margin: 0 0 0.8rem;
}

.cm-progress-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cm-progress-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cm-sidebar-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

.cm-sidebar-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--gold-gradient);
  transition: width 0.6s ease;
}

.cm-chapter-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cm-chapter {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.cm-chapter:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--glass-border);
}

.cm-ch-status {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.2s;
}

.cm-chapter-done .cm-ch-status {
  background: rgba(79, 161, 134, 0.15);
  border-color: rgba(79, 161, 134, 0.4);
  color: var(--jade-light);
}

.cm-ch-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cm-ch-info strong {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
}

.cm-ch-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cm-chapter-done .cm-ch-info strong {
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .cm-layout {
    grid-template-columns: 1fr;
  }

  .cm-sidebar {
    max-height: none;
  }
}

.footer {
  padding: 1.15rem clamp(1.5rem, 4vw, 2.6rem);
  margin-top: 2rem;
  min-height: 148px;
}

.footer-body {
  width: min(820px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.85rem, 2.4vw, 2rem);
}

.footer-brand-copy {
  max-width: 15.5rem;
  justify-self: start;
}

.footer-centerpiece {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: min(24vw, 280px);
  min-height: 116px;
  transform: translateY(-0.2rem);
}

.footer-centerpiece::before {
  content: "";
  position: absolute;
  inset: 8% 10%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(212, 175, 91, 0.22) 0%, rgba(212, 175, 91, 0.08) 34%, transparent 74%);
  filter: blur(18px);
  opacity: 0.88;
  z-index: 0;
}

.footer strong {
  color: var(--gold-light);
  font-family: "Noto Serif SC", serif;
  font-size: 1.2rem;
}

.footer p {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.56);
}

.footer-notes {
  text-align: right;
  max-width: 18.5rem;
  justify-self: end;
}

.footer-notes span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.18rem;
  line-height: 1.75;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(5vw, -5vh) scale(1.1);
  }

  100% {
    transform: translate(-2vw, 3vh) scale(0.95);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* ===== VR Experience ===== */
.vr-section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 3rem 0 1.5rem;
  letter-spacing: 0.05em;
}

.vr-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.vr-card {
  position: relative;
  height: 22rem;
  border-radius: 1.2rem;
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.vr-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 100%);
  transition: opacity 0.4s;
}

.vr-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(212, 175, 91, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 91, 0.08);
}

.vr-card:hover::before {
  opacity: 0.6;
}

.vr-card-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 2;
  padding: 0.35rem 0.9rem;
  background: rgba(212, 175, 91, 0.15);
  border: 1px solid rgba(212, 175, 91, 0.35);
  border-radius: 99px;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
}

.vr-card-content {
  position: relative;
  z-index: 2;
}

.vr-card-content h3 {
  font-size: 1.35rem;
  color: #fff;
  margin: 0 0 0.5rem;
  font-family: "Noto Serif SC", serif;
}

.vr-card-content p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.vr-card-enter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 99px;
  background: rgba(212, 175, 91, 0.15);
  border: 1px solid rgba(212, 175, 91, 0.4);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.3s;
}

.vr-card:hover .vr-card-enter {
  background: rgba(212, 175, 91, 0.25);
  gap: 0.8rem;
}

/* VR Modal */
body.vr-open .topbar {
  display: none;
}

.vr-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.vr-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.vr-scene {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.vr-pano {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  transition: background-position 0.08s ease-out;
  animation: vr-drift 25s ease-in-out infinite alternate;
}

@keyframes vr-drift {
  0% {
    transform: scale(1.05) translate(0, 0);
  }

  25% {
    transform: scale(1.08) translate(-2%, 1%);
  }

  50% {
    transform: scale(1.05) translate(1%, -1%);
  }

  75% {
    transform: scale(1.08) translate(-1%, -2%);
  }

  100% {
    transform: scale(1.05) translate(2%, 1%);
  }
}

.vr-pano::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

/* VR Hotspots */
.vr-hotspot {
  position: absolute;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 5;
}

.vr-hotspot-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-light);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(250, 225, 162, 0.6);
  z-index: 2;
}

.vr-hotspot-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(250, 225, 162, 0.5);
  animation: hotspot-pulse 2s ease-out infinite;
}

@keyframes hotspot-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.vr-hotspot-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.4rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  color: var(--gold-light);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}

.vr-hotspot:hover .vr-hotspot-label {
  opacity: 1;
}

/* VR Info Popup */
.vr-info-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: min(480px, calc(100vw - 3rem));
  background: rgba(12, 14, 18, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 91, 0.2);
  border-radius: 1.2rem;
  padding: 2.5rem;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.vr-info-popup.show {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.vr-info-popup h3 {
  font-size: 1.2rem;
  color: var(--gold-light);
  margin: 0 0 0.8rem;
  font-family: "Noto Serif SC", serif;
}

.vr-info-popup p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.vr-info-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.3rem;
  transition: color 0.2s;
}

.vr-info-close:hover {
  color: var(--gold-light);
}

/* VR HUD */
.vr-hud {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
  z-index: 10;
}

.vr-hud-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.vr-hud-badge {
  padding: 0.3rem 0.7rem;
  background: rgba(212, 175, 91, 0.2);
  border: 1px solid rgba(212, 175, 91, 0.4);
  border-radius: 0.3rem;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.vr-hud-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.vr-hud-center {
  display: flex;
  gap: 0.5rem;
}

.vr-ctrl {
  padding: 0.5rem 1rem;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.vr-ctrl:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.vr-ctrl-primary {
  background: rgba(212, 175, 91, 0.15);
  border-color: rgba(212, 175, 91, 0.4);
  color: var(--gold-light);
}

.vr-ctrl-primary:hover {
  background: rgba(212, 175, 91, 0.25);
}

.vr-ctrl-primary.active {
  background: rgba(212, 175, 91, 0.3);
  box-shadow: 0 0 12px rgba(212, 175, 91, 0.2);
}

.vr-exit {
  border-color: rgba(255, 100, 100, 0.3);
  color: #ff9999;
}

.vr-exit:hover {
  background: rgba(255, 100, 100, 0.12);
  border-color: rgba(255, 100, 100, 0.4);
}

/* VR Crosshair */
.vr-scene::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  pointer-events: none;
}

.vr-scene::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  pointer-events: none;
}

/* VR Scanlines overlay */
.vr-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.03) 2px,
      rgba(0, 0, 0, 0.03) 4px);
  z-index: 3;
  pointer-events: none;
}

/* VR Particles */
.vr-particles {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.vr-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(250, 225, 162, 0.35);
  border-radius: 50%;
  animation: vr-float linear infinite;
}

@keyframes vr-float {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-10vh) translateX(40px);
    opacity: 0;
  }
}

/* VR Light rays */
.vr-light-ray {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  opacity: 0.08;
}

.vr-ray-1 {
  top: -20%;
  right: 10%;
  width: 300px;
  height: 120%;
  background: linear-gradient(200deg, rgba(250, 225, 162, 0.3), transparent 60%);
  transform: skewX(-15deg);
  animation: ray-breathe 8s ease-in-out infinite alternate;
}

.vr-ray-2 {
  top: -10%;
  left: 5%;
  width: 200px;
  height: 110%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), transparent 50%);
  transform: skewX(10deg);
  animation: ray-breathe 12s ease-in-out infinite alternate-reverse;
}

@keyframes ray-breathe {
  0% {
    opacity: 0.04;
  }

  100% {
    opacity: 0.12;
  }
}

/* VR Intro splash */
.vr-intro {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.vr-intro.show {
  opacity: 1;
  animation: vr-intro-seq 3s ease forwards;
}

@keyframes vr-intro-seq {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }

  15% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  75% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.vr-intro-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(212, 175, 91, 0.2);
  border: 1px solid rgba(212, 175, 91, 0.5);
  border-radius: 99px;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 1.2rem;
}

.vr-intro-title {
  font-size: 2.5rem;
  color: #fff;
  font-family: "Noto Serif SC", serif;
  margin: 0 0 0.8rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.vr-intro-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* VR Compass */
.vr-compass {
  position: absolute;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0.4rem 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
}

.compass-mark {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.compass-needle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--gold-main);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(212, 175, 91, 0.5);
  transition: left 0.3s ease;
}

/* Enhanced hotspot with preview card */
.vr-hotspot {
  width: 44px;
  height: 44px;
}

.vr-hotspot-dot {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.vr-hotspot-ring {
  inset: 2px;
}

.vr-hotspot-label {
  top: calc(100% + 10px);
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  border: 1px solid rgba(212, 175, 91, 0.2);
  background: rgba(8, 10, 14, 0.9);
}

.vr-hotspot:hover .vr-hotspot-dot {
  background: #fff;
  box-shadow: 0 0 20px rgba(250, 225, 162, 0.8);
  transform: translate(-50%, -50%) scale(1.2);
}

/* VR Entry zoom */
.vr-modal-overlay.open .vr-pano {
  animation: vr-entry 1.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards, vr-drift 25s ease-in-out 1.5s infinite alternate;
}

@keyframes vr-entry {
  0% {
    transform: scale(1.4);
    filter: blur(12px) brightness(0.3);
  }

  60% {
    filter: blur(2px) brightness(0.8);
  }

  100% {
    transform: scale(1.05);
    filter: blur(0) brightness(1);
  }
}

@media (max-width: 1080px) {

  .hero,
  .ai-grid,
  .archive-layout,
  .zone-grid,
  .class-grid {
    grid-template-columns: 1fr;
  }

  .panel-large {
    grid-row: auto;
  }

  .zone-thumb {
    height: 7rem;
  }

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

  .map-section-heading {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .map-heading-copy {
    align-items: center;
  }

  .map-heading-spark-left {
    left: 8%;
    top: 0.2rem;
  }

  .map-heading-spark-right {
    right: 8%;
    top: auto;
    bottom: 0.4rem;
  }

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

  .map-container {
    height: 300px;
  }

  .map-backdrop {
    background-size: 94% auto;
  }

  .map-detail-panel {
    min-height: auto;
  }

  .vr-card-grid {
    grid-template-columns: 1fr;
  }

  .vr-card {
    height: 16rem;
  }

  #zones::after,
  #workshop::after {
    opacity: 0.1;
  }
}

@media (max-width: 760px) {

  .hero-actions,
  .feature-strip,
  .console-head,
  .console-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .topbar-upper {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
  }

  .topbar-right {
    flex-wrap: wrap;
  }

  .brand {
    gap: 0.9rem;
  }

  .brand-mark {
    width: 3rem;
    height: 3rem;
    font-size: 1.08rem;
  }

  .brand-copy strong {
    font-size: 1.08rem;
  }

  .map-section-heading {
    gap: 1rem;
  }

  .map-heading-icon {
    width: 5.2rem;
  }

  .map-heading-copy {
    align-items: center;
  }

  .map-heading-copy .eyebrow {
    justify-content: center;
  }

  .map-heading-copy > p:last-child {
    max-width: 100%;
  }

  .map-heading-spark {
    width: 3.8rem;
  }

  .map-heading-spark-left {
    left: 0;
    top: 0.4rem;
  }

  .map-heading-spark-right {
    right: 0;
    top: 3.2rem;
    bottom: auto;
  }

  .topnav {
    flex-wrap: wrap;
    padding: 0 1.5rem;
  }

  .console-grid,
  .hero-metrics,
  .upload-stage,
  .field-grid,
  .works-grid,
  .class-grid {
    grid-template-columns: 1fr;
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .result-score {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    padding-right: 0;
    padding-bottom: 1.5rem;
  }

  .inline-form {
    flex-direction: column;
  }

  .footer-notes {
    text-align: center;
    margin-top: 0;
  }

  .footer {
    min-height: auto;
  }

  .footer-body {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1rem;
  }

  .footer-brand-copy,
  .footer-notes {
    max-width: none;
    justify-self: center;
  }

  .footer-centerpiece {
    width: 220px;
    min-height: 110px;
  }

  #ai-lab::after,
  #zones::after,
  #archive::after,
  #classes::after,
  #workshop::after {
    opacity: 0.1;
    transform: none;
  }

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

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

/* ===== Topbar Upper Row ===== */
.topbar-upper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.search-bar {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.search-bar:focus-within {
  border-color: rgba(212, 175, 91, 0.4);
}

.search-bar input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  width: 148px;
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.3s;
}

.search-bar button:hover {
  color: var(--gold-main);
}

.contact-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 99px;
  border: 1px solid rgba(212, 175, 91, 0.4);
  color: var(--gold-light);
  font-size: 0.82rem;
  white-space: nowrap;
  background: rgba(212, 175, 91, 0.06);
  transition: all 0.3s;
  cursor: pointer;
}

.contact-btn:hover {
  background: rgba(212, 175, 91, 0.14);
  border-color: var(--gold-main);
}

.topbar-datetime {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.55;
  white-space: nowrap;
}

.topbar-datetime strong {
  color: var(--gold-light);
  display: block;
  font-size: 0.85rem;
}

/* ===== Culture Map ===== */
#culture-map {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 15%, rgba(212, 175, 91, 0.08) 0%, transparent 18%),
    radial-gradient(circle at 82% 22%, rgba(212, 175, 91, 0.08) 0%, transparent 16%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.96) 0%, rgba(4, 6, 9, 0.99) 100%);
}

#culture-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(212, 175, 91, 0.04) 0%, transparent 18%, transparent 82%, rgba(212, 175, 91, 0.04) 100%);
  pointer-events: none;
}

.map-section-heading {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, auto);
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  max-width: 58rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.map-heading-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.map-heading-copy .eyebrow {
  margin-bottom: 0.9rem;
}

.map-heading-copy h2 {
  margin-bottom: 0.9rem;
}

.map-heading-copy>p:last-child {
  max-width: 40rem;
}

.map-heading-icon {
  width: clamp(6.6rem, 10vw, 9rem);
  aspect-ratio: 1;
  flex-shrink: 0;
  background: url('./img/map-emblem.png') center / contain no-repeat;
  filter: drop-shadow(0 0 26px rgba(212, 175, 91, 0.18));
  opacity: 0.94;
}

.map-heading-spark {
  position: absolute;
  width: clamp(4.2rem, 7vw, 5.8rem);
  aspect-ratio: 1;
  background: url('./img/map-sparkles-top.png') center / contain no-repeat;
  pointer-events: none;
  opacity: 0.95;
  filter: drop-shadow(0 0 20px rgba(250, 225, 162, 0.26));
}

.map-heading-spark::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 91, 0.22) 0%, transparent 72%);
  filter: blur(12px);
  z-index: -1;
}

.map-heading-spark-left {
  left: -0.5rem;
  top: 0.4rem;
}

.map-heading-spark-right {
  right: -0.7rem;
  top: 2.8rem;
  transform: scale(1.08);
}

.culture-map-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.map-container {
  position: relative;
  height: 400px;
  background:
    radial-gradient(circle at 50% 18%, rgba(40, 70, 84, 0.12) 0%, transparent 22%),
    rgba(1, 6, 10, 0.72);
  border: 1px solid var(--glass-border);
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 40px rgba(0, 0, 0, 0.2);
}

.map-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(212, 175, 91, 0.08) 0%, transparent 34%),
    url('./img/map-backdrop.svg') center / 88% auto no-repeat;
  opacity: 0.62;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 0 26px rgba(212, 175, 91, 0.08));
}

.map-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.72;
  z-index: 1;
}

.map-region-label {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-family: "Noto Serif SC", serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.07);
  letter-spacing: 0.5em;
  pointer-events: none;
  z-index: 1;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
}

.pin-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold-main);
  border: 2px solid rgba(212, 175, 91, 0.6);
  box-shadow: 0 0 0 4px rgba(212, 175, 91, 0.12);
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.pin-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 91, 0.4);
  animation: pulse-ring 2.5s ease-out infinite;
}

.map-pin:hover .pin-dot,
.map-pin.active .pin-dot {
  background: var(--gold-light);
  box-shadow: 0 0 0 8px rgba(212, 175, 91, 0.18), 0 0 18px rgba(212, 175, 91, 0.45);
  transform: scale(1.3);
}

.pin-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  background: rgba(8, 10, 14, 0.92);
  border: 1px solid var(--glass-border);
  border-radius: 0.4rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1.5;
  text-align: center;
}

.map-pin.active .pin-label {
  color: var(--gold-light);
  border-color: rgba(212, 175, 91, 0.3);
}

.map-detail-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 20, 25, 0.72) 0%, rgba(8, 10, 14, 0.92) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 1.2rem;
  padding: 2rem;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.map-detail-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(212, 175, 91, 0.08) 0%, transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, transparent 42%);
  pointer-events: none;
}

.map-detail-panel::after {
  content: "";
  position: absolute;
  right: -1rem;
  bottom: 0.8rem;
  width: min(15vw, 176px);
  height: min(10vw, 118px);
  background: url('./img/decor-cloud2.png') center / contain no-repeat;
  opacity: 0.06;
  transform: rotate(-6deg);
  pointer-events: none;
  filter: saturate(0.5) brightness(0.86);
}

.map-detail-panel > * {
  position: relative;
  z-index: 1;
}

.map-detail-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.8;
}

.map-hint-icon {
  width: 2.9rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 91, 0.16);
  background:
    radial-gradient(circle at center, rgba(212, 175, 91, 0.16) 0%, transparent 72%),
    url('./img/map-emblem.png') center / 72% no-repeat;
  box-shadow: 0 0 0 8px rgba(212, 175, 91, 0.04), 0 0 24px rgba(212, 175, 91, 0.08);
  animation: pulse-opacity 2s ease-in-out infinite alternate;
}

.map-detail-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.map-detail-emblem {
  width: 2.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 91, 0.16);
  background:
    radial-gradient(circle at center, rgba(212, 175, 91, 0.14) 0%, transparent 70%),
    url('./img/map-emblem.png') center / 74% no-repeat;
  box-shadow: 0 0 0 6px rgba(212, 175, 91, 0.04);
}

.map-detail-img {
  height: 11rem;
  border-radius: 0.8rem;
  background-size: cover;
  background-position: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.map-detail-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.45));
  border-radius: inherit;
}

.map-detail-city {
  font-size: 0.75rem;
  color: var(--gold-main);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
}

.map-detail-name {
  font-family: "Noto Serif SC", serif;
  font-size: 1.35rem;
  color: var(--text-primary);
  margin: 0 0 1rem;
}

.map-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.map-tag {
  background: rgba(79, 161, 134, 0.08);
  border: 1px solid rgba(79, 161, 134, 0.2);
  color: var(--jade-light);
  border-radius: 99px;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
}

.map-detail-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
  margin: 0 0 1.5rem;
}

.map-detail-meta {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.map-meta-item {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 0.82rem;
}

.map-meta-item span {
  color: var(--gold-main);
  min-width: 4.5em;
  flex-shrink: 0;
}

.map-meta-item strong {
  color: var(--text-muted);
  font-weight: 400;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

@keyframes pulse-opacity {
  from {
    opacity: 0.3;
  }

  to {
    opacity: 0.85;
  }
}

/* ===== Workshop ===== */
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.workshop-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 1.2rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.workshop-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 91, 0.3);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.workshop-cover {
  height: 13rem;
  background-size: cover;
  background-position: center;
  position: relative;
}

.workshop-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.5));
}

.workshop-body {
  padding: 1.4rem;
}

.workshop-sub {
  font-size: 0.73rem;
  color: var(--jade-main);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.workshop-body h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 0 0 0.6rem;
}

.workshop-body p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.workshop-cta {
  font-size: 0.8rem;
  color: var(--gold-main);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.3s, color 0.3s;
}

.workshop-cta::after {
  content: "→";
}

.workshop-card:hover .workshop-cta {
  gap: 0.6rem;
  color: var(--gold-light);
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: rgba(12, 14, 18, 0.98);
  border: 1px solid var(--glass-border-light);
  border-radius: 1.5rem;
  width: min(660px, calc(100vw - 3rem));
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.modal-img {
  height: 17rem;
  border-radius: 1rem;
  background-size: cover;
  background-position: center;
  margin-bottom: 2rem;
}

.modal-subtitle {
  font-size: 0.76rem;
  color: var(--jade-main);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.modal h2 {
  font-size: 1.8rem;
  margin: 0 0 1.5rem;
  color: var(--text-primary);
}

.modal p {
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 0 2rem;
  font-size: 0.95rem;
}

.modal-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.8rem;
}

.contact-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: 0.8rem;
  padding: 1rem;
}

.contact-item span {
  font-size: 0.72rem;
  color: var(--gold-main);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.contact-item strong {
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  display: block;
}

/* ===== Header Wave Pattern Background ===== */
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 12, 14, 0.18) 0%, rgba(11, 12, 14, 0) 100%),
    url('./img/decor-wave.png') center top / cover no-repeat;
  opacity: 0.82;
  pointer-events: none;
  z-index: 0;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.9) 0%, rgba(7, 8, 10, 0.7) 55%, rgba(6, 7, 8, 0.86) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ===== Hero Decorative Elements ===== */
/* Mandala / 花纹1 - top-left, large */
.hero-decor-mandala {
  position: absolute;
  left: -178px;
  top: 34px;
  width: 620px;
  height: 620px;
  background: url('./img/decor-mandala.png') center / contain no-repeat;
  opacity: 0.17;
  pointer-events: none;
  z-index: 0;
  filter: saturate(0.96) brightness(0.72) hue-rotate(-10deg);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.96) 46%, rgba(0, 0, 0, 0.18) 84%, transparent 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.96) 46%, rgba(0, 0, 0, 0.18) 84%, transparent 100%);
}

/* Cloud 3 / 云纹3 - top center, wide */
.hero-decor-cloud3 {
  position: absolute;
  top: -8px;
  left: 48%;
  transform: translateX(-50%);
  width: 640px;
  height: 226px;
  background: url('./img/decor-cloud-h.png') center / contain no-repeat;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
  filter: saturate(0.9) brightness(0.94);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.9) 62%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.9) 62%, transparent 100%);
}

/* Cloud 5 / 云纹5 - bottom-right, large flowing */
.hero-decor-cloud5 {
  position: absolute;
  right: -138px;
  bottom: -94px;
  width: 620px;
  height: 250px;
  background: url('./img/decor-cloud2.png') center right / contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  filter: saturate(0.92) brightness(0.95);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.5) 16%, rgba(0,0,0,0.98) 34%, rgba(0,0,0,0.98) 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.5) 16%, rgba(0,0,0,0.98) 34%, rgba(0,0,0,0.98) 100%);
}

/* ===== Footer Carriage ===== */
.footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 48%, rgba(212, 175, 91, 0.1) 0%, rgba(212, 175, 91, 0.045) 16%, transparent 34%),
    linear-gradient(90deg, rgba(5, 6, 8, 0.96) 0%, rgba(8, 10, 12, 0.9) 50%, rgba(5, 6, 8, 0.96) 100%);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.03) 0%, transparent 34%);
  pointer-events: none;
  z-index: 0;
}

.footer-body,
.footer-body > * {
  position: relative;
  z-index: 1;
}

/* Horse carriage - centered */
.footer-carriage {
  position: relative;
  width: 100%;
  height: min(16vw, 174px);
  background: url('./img/footer-carriage.png') center / contain no-repeat;
  opacity: 0.42;
  pointer-events: none;
  z-index: 1;
  filter: saturate(1.08) brightness(1.02) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.24));
}

/* ===== Map Section Decorative Elements ===== */
#culture-map {
  position: relative;
  overflow: hidden;
}

#culture-map .section-heading {
  position: relative;
}

/* Paper theme override */
.theme-paper {
  --text-primary: #221a12;
  --text-muted: #756754;
  --gold-light: #cb9d4f;
  --gold-main: #a77524;
  --gold-dark: #6b4314;
  --jade-light: #95b7a6;
  --jade-main: #5d7f6e;
  --jade-dark: #385447;
  --bg-base: #efe2cf;
  --bg-panel: rgba(255, 248, 239, 0.84);
  --bg-panel-hover: rgba(255, 248, 239, 0.96);
  --glass-border: rgba(79, 57, 29, 0.13);
  --glass-border-light: rgba(79, 57, 29, 0.22);
  --glass-shadow: 0 22px 48px rgba(112, 80, 34, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.64);
  --gold-gradient: linear-gradient(140deg, #e0bf80 0%, #c19141 52%, #8b5b1d 100%);
  --line-subtle: rgba(79, 57, 29, 0.12);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(circle at top left, rgba(182, 128, 51, 0.14), transparent 38%),
    radial-gradient(circle at 84% 18%, rgba(97, 134, 114, 0.12), transparent 34%),
    linear-gradient(180deg, #f5eadb 0%, #eadac2 100%);
}

.theme-paper .page-shell {
  isolation: isolate;
}

.theme-paper .page-shell::before,
.theme-paper .page-shell::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  background: rgba(17, 13, 9, 0.88);
  -webkit-mask: url('./img/decor-half-pattern-sm.png') center / contain no-repeat;
  mask: url('./img/decor-half-pattern-sm.png') center / contain no-repeat;
}

.theme-paper .page-shell::before {
  left: -3.8rem;
  bottom: 8vh;
  width: min(23vw, 260px);
  height: min(23vw, 260px);
  opacity: 0.12;
  transform: rotate(-6deg);
}

.theme-paper .page-shell::after {
  right: -4.8rem;
  top: 7.5rem;
  width: min(20vw, 220px);
  height: min(20vw, 220px);
  opacity: 0.08;
  transform: rotate(180deg);
}

.theme-paper .ambient-left {
  background: radial-gradient(circle, rgba(176, 122, 50, 0.22), transparent 70%);
}

.theme-paper .ambient-right {
  background: radial-gradient(circle, rgba(111, 144, 122, 0.2), transparent 70%);
}

.theme-paper .topbar {
  background: rgba(252, 246, 237, 0.88);
  border-bottom: 1px solid rgba(79, 57, 29, 0.1);
  box-shadow: 0 10px 28px rgba(99, 72, 38, 0.08);
}

.theme-paper .topbar::before {
  background:
    linear-gradient(180deg, rgba(132, 96, 44, 0.06) 0%, rgba(132, 96, 44, 0) 100%),
    url('./img/decor-wave.png') center top / cover no-repeat;
  opacity: 0.2;
}

.theme-paper .topbar::after {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.92) 0%, rgba(249, 242, 232, 0.76) 55%, rgba(245, 236, 224, 0.92) 100%);
}

.theme-paper .brand-copy small,
.theme-paper .topbar-datetime,
.theme-paper .console-footer span,
.theme-paper .feature-strip p,
.theme-paper .section-heading p,
.theme-paper .hero-text,
.theme-paper .class-card p,
.theme-paper .zone-card p,
.theme-paper .workshop-body p,
.theme-paper .badge-item p,
.theme-paper .timeline-item p,
.theme-paper .footer-notes span,
.theme-paper .modal-contact,
.theme-paper .modal p,
.theme-paper .cm-desc,
.theme-paper .cm-teacher-title {
  color: var(--text-muted);
}

.theme-paper .nav-item > a,
.theme-paper .dropdown a,
.theme-paper .search-bar input,
.theme-paper .field-grid input,
.theme-paper .field-grid textarea,
.theme-paper .field-grid select,
.theme-paper .inline-form input,
.theme-paper .modal,
.theme-paper .cm-dialog {
  color: var(--text-primary);
}

.theme-paper .nav-item > a {
  opacity: 0.88;
}

.theme-paper .nav-item:hover > a,
.theme-paper .link-btn,
.theme-paper .contact-item span {
  color: var(--gold-dark);
}

.theme-paper .nav-item > a::after {
  box-shadow: 0 0 8px rgba(167, 117, 36, 0.28);
}

.theme-paper .dropdown {
  background: rgba(255, 248, 239, 0.98);
  border-color: rgba(79, 57, 29, 0.14);
  box-shadow: 0 14px 30px rgba(96, 68, 29, 0.12);
}

.theme-paper .dropdown a:hover {
  background: rgba(167, 117, 36, 0.08);
  color: var(--gold-dark);
}

.theme-paper .search-bar,
.theme-paper .contact-btn {
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(79, 57, 29, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.theme-paper .search-bar:focus-within {
  border-color: rgba(167, 117, 36, 0.28);
  box-shadow: 0 0 0 4px rgba(167, 117, 36, 0.08);
}

.theme-paper .search-bar input::placeholder {
  color: rgba(117, 103, 84, 0.76);
}

.theme-paper .contact-btn:hover {
  background: rgba(167, 117, 36, 0.12);
}

.theme-paper .hero,
.theme-paper .feature-strip,
.theme-paper .section-shell,
.theme-paper .footer,
.theme-paper .panel,
.theme-paper .hero-console,
.theme-paper .badge-panel,
.theme-paper .timeline-panel,
.theme-paper .class-card,
.theme-paper .zone-card,
.theme-paper .workshop-card,
.theme-paper .map-detail-panel,
.theme-paper .badge-item,
.theme-paper .timeline-item,
.theme-paper .chat-window,
.theme-paper .result-card,
.theme-paper .upload-dropzone,
.theme-paper .upload-preview,
.theme-paper .hero-metrics li,
.theme-paper .console-grid article,
.theme-paper .vr-card,
.theme-paper .vr-intro,
.theme-paper .map-container,
.theme-paper .modal,
.theme-paper .cm-dialog {
  background: rgba(255, 248, 239, 0.78);
  border-color: rgba(79, 57, 29, 0.13);
  box-shadow: 0 18px 40px rgba(107, 78, 36, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.theme-paper .panel:hover,
.theme-paper .zone-card:hover,
.theme-paper .class-card:hover,
.theme-paper .workshop-card:hover,
.theme-paper .console-grid article:hover {
  background: rgba(255, 250, 244, 0.96);
  border-color: rgba(167, 117, 36, 0.2);
}

.theme-paper .hero::before {
  background: linear-gradient(135deg, rgba(167, 117, 36, 0.22), transparent 48%, rgba(255, 255, 255, 0.6));
}

.theme-paper .section-shell::before {
  background:
    linear-gradient(180deg, rgba(132, 96, 44, 0.08) 0%, rgba(132, 96, 44, 0) 54%),
    url('./img/decor-wave.png') center top / auto 164% repeat-x;
  opacity: 0.2;
}

.theme-paper .hero h1 {
  background: linear-gradient(180deg, #2d2318 0%, #735532 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.theme-paper .hero-metrics strong,
.theme-paper .console-footer strong,
.theme-paper .work-cover span,
.theme-paper .status-badge,
.theme-paper .class-duration,
.theme-paper .vr-card-badge {
  color: var(--gold-dark);
}

.theme-paper .status-badge,
.theme-paper .chip {
  background: rgba(167, 117, 36, 0.12);
  border: 1px solid rgba(167, 117, 36, 0.2);
  box-shadow: none;
}

.theme-paper .primary-btn {
  color: #1e160f;
  box-shadow: 0 10px 22px rgba(167, 117, 36, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.58);
}

.theme-paper .primary-btn:hover {
  box-shadow: 0 14px 26px rgba(167, 117, 36, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.72);
}

.theme-paper .ghost-btn {
  color: var(--gold-dark);
  border-color: rgba(167, 117, 36, 0.36);
  background: rgba(167, 117, 36, 0.04);
}

.theme-paper .ghost-btn:hover,
.theme-paper .suggestion-btn:hover {
  background: rgba(167, 117, 36, 0.12);
  box-shadow: none;
}

.theme-paper .upload-dropzone,
.theme-paper .upload-preview,
.theme-paper .field-grid input,
.theme-paper .field-grid textarea,
.theme-paper .field-grid select,
.theme-paper .inline-form input {
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(79, 57, 29, 0.12);
}

.theme-paper .field-grid input:focus,
.theme-paper .field-grid textarea:focus,
.theme-paper .field-grid select:focus,
.theme-paper .inline-form input:focus {
  border-color: rgba(167, 117, 36, 0.32);
  box-shadow: 0 0 0 4px rgba(167, 117, 36, 0.08);
}

.theme-paper .chat-window {
  background: rgba(248, 240, 228, 0.76);
}

.theme-paper .chat-bubble-ai {
  background: rgba(255, 255, 255, 0.72);
}

.theme-paper .chat-bubble-user {
  background: rgba(215, 188, 142, 0.3);
}

.theme-paper .hero-decor-mandala {
  opacity: 0.09;
  filter: grayscale(1) brightness(0.28);
}

.theme-paper .hero-decor-cloud3,
.theme-paper .hero-decor-cloud5 {
  opacity: 0.1;
  filter: grayscale(1) brightness(0.42);
}

.theme-paper #ai-lab::after,
.theme-paper #zones::after,
.theme-paper #classes::after,
.theme-paper #workshop::after {
  opacity: 0.1;
  filter: grayscale(1) brightness(0.22);
}

.theme-paper #archive::after {
  left: -4.2rem;
  bottom: 0.4rem;
  width: min(18vw, 220px);
  height: min(18vw, 220px);
  opacity: 0.2;
  filter: brightness(0) saturate(0);
}

.theme-paper .footer {
  background:
    radial-gradient(circle at 50% 48%, rgba(167, 117, 36, 0.09) 0%, rgba(167, 117, 36, 0.03) 16%, transparent 34%),
    linear-gradient(90deg, rgba(245, 236, 223, 0.98) 0%, rgba(250, 244, 235, 0.96) 50%, rgba(245, 236, 223, 0.98) 100%);
}

.theme-paper .footer::before {
  background:
    linear-gradient(180deg, rgba(131, 94, 44, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.28) 0%, transparent 34%);
}

.theme-paper .footer-carriage {
  opacity: 0.3;
  filter: grayscale(1) brightness(0.36) drop-shadow(0 10px 20px rgba(74, 54, 30, 0.12));
}

@media (max-width: 900px) {
  .theme-paper .page-shell::before {
    left: -3.2rem;
    bottom: 3rem;
    width: 180px;
    height: 180px;
  }

  .theme-paper .page-shell::after {
    top: 6.5rem;
    right: -3.6rem;
    width: 150px;
    height: 150px;
  }
}
