*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0c0b0a;
  --bg-elevated: #141312;
  --bg-surface: #1a1918;
  --ink: #d8d4ce;
  --ink-muted: #bdafa2;
  --ink-faint: #8a8275;
  --accent: #b8956a;
  --serif-cn: "Songti SC", "Noto Serif SC", "Source Han Serif SC", STSong, Georgia, serif;
  --serif-en: "EB Garamond", "Georgia", "Times New Roman", serif;
  --sans: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif-cn);
  line-height: 1.8;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 1.25rem clamp(1.5rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 11, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(184, 149, 106, 0.08);
}

.nav-brand-wrap {
  height: 60px;
  display: flex;
  align-items: center;
}

.nav-logo-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
}

.nav-logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.nav-links a {
  color: var(--ink-muted);
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 0.5rem;
}

.nav-mobile-btn svg { width: 20px; height: 20px; }

.nav-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(12, 11, 10, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(184, 149, 106, 0.1);
}

.nav-mobile-menu.active { display: block; }

.nav-mobile-menu a {
  display: block;
  padding: 0.8rem 2rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: color 0.3s ease, background 0.3s ease;
}

.nav-mobile-menu a:hover,
.nav-mobile-menu a[aria-current="page"] {
  color: var(--ink);
  background: rgba(184, 149, 106, 0.05);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #d2ad7d;
  outline-offset: 4px;
}

.page-main {
  padding: clamp(7rem, 12vh, 9rem) clamp(1.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
}

.page-header {
  max-width: 1300px;
  margin: 0 auto 2.5rem;
}

.page-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.page-subtitle {
  margin-top: 0.6rem;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}

.page-lede {
  margin-top: 1rem;
  max-width: 640px;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 2;
  letter-spacing: 0.03em;
}

.breadcrumb {
  max-width: 1300px;
  margin: 0 auto 1.5rem;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.breadcrumb a {
  color: var(--ink-muted);
  transition: color 0.25s ease;
}

.breadcrumb a:hover { color: var(--ink); }

.breadcrumb-sep {
  margin: 0 0.45rem;
  opacity: 0.5;
}

.style-toolbar {
  max-width: 1300px;
  margin: 0 auto 2rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(184, 149, 106, 0.24);
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.vr-style-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

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

.vr-style-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(184, 149, 106, 0.14);
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.vr-style-card:hover {
  border-color: rgba(184, 149, 106, 0.32);
  transform: translateY(-2px);
}

.vr-style-card-media {
  aspect-ratio: 3 / 2;
  background-color: var(--bg-elevated);
  background-size: cover;
  background-position: center;
  filter: saturate(0.88);
  transition: filter 0.35s ease;
}

.vr-style-card:hover .vr-style-card-media {
  filter: saturate(0.95);
}

.vr-style-card-body {
  padding: 0.9rem 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.vr-style-card-title {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.vr-style-card-desc {
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 0.76rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vr-style-card-link {
  margin-top: 0.35rem;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.vr-ref-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.vr-ref-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(184, 149, 106, 0.14);
  background: var(--bg-surface);
  overflow: hidden;
}

.vr-ref-card--linked {
  color: inherit;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.vr-ref-card--linked:hover {
  border-color: rgba(184, 149, 106, 0.32);
  transform: translateY(-2px);
}

.vr-ref-card-media {
  aspect-ratio: 16 / 10;
  background-color: var(--bg-elevated);
  background-size: cover;
  background-position: center;
  filter: saturate(0.88);
  transition: filter 0.35s ease;
}

.vr-ref-card--linked:hover .vr-ref-card-media {
  filter: saturate(0.95);
}

.vr-ref-card-body {
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.vr-ref-card-kicker {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}

.vr-ref-card-title {
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.vr-ref-card-subtitle {
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 0.74rem;
  line-height: 1.7;
}

.vr-ref-card-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  margin-top: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(184, 149, 106, 0.28);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.vr-ref-card--linked:hover .vr-ref-card-action {
  border-color: var(--accent);
  color: var(--ink);
}

.vr-ref-card-action.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
  color: var(--ink-faint);
  pointer-events: none;
}

.vr-reference-note {
  max-width: 1300px;
  margin: 1.5rem auto 0;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.vr-empty-state {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.2rem;
  border: 1px dashed rgba(184, 149, 106, 0.2);
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 0.84rem;
  text-align: center;
}

.cta-band {
  max-width: 1300px;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  border: 1px solid rgba(184, 149, 106, 0.12);
  background: var(--bg-surface);
}

.cta-band h2 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.cta-band p {
  margin-top: 0.5rem;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 0.84rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  border: none;
  transition: background 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #c9a67b;
  transform: translateY(-1px);
}

.footer {
  margin-top: clamp(4rem, 8vw, 6rem);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem) 2rem;
  border-top: 1px solid rgba(184, 149, 106, 0.08);
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
}

.footer-motto {
  color: var(--accent);
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.footer-invite,
.footer-item {
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.9;
}

.footer-col-title {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
}

.footer-bottom {
  max-width: 1300px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184, 149, 106, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.footer-bottom-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-icp {
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-icp:hover {
  color: var(--accent);
}

@media (max-width: 1024px) {
  .vr-style-grid--overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: block; }
  .nav-brand-wrap { height: 44px; }

  .page-main {
    padding: 6.5rem 1rem 3rem;
  }

  .page-header {
    margin-bottom: 1.8rem;
  }

  .breadcrumb {
    font-size: 0.68rem;
    line-height: 1.65;
    margin-bottom: 1.1rem;
  }

  .style-toolbar {
    margin-bottom: 1.4rem;
  }

  .btn-ghost {
    min-height: 44px;
    padding: 0.6rem 1rem;
  }

  .vr-style-grid--overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .vr-style-card:active {
    transform: scale(0.99);
  }

  .vr-ref-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .vr-ref-card--linked:active {
    transform: scale(0.995);
    border-color: rgba(184, 149, 106, 0.36);
  }

  .vr-ref-card-body {
    padding: 1rem 1rem 1.15rem;
  }

  .vr-ref-card-action {
    min-height: 44px;
    padding: 0.55rem 0.95rem;
    font-size: 0.74rem;
  }

  .footer-inner { grid-template-columns: 1fr; }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 360px) {
  .vr-style-grid--overview {
    grid-template-columns: 1fr;
  }
}

/* ===== VR VIEWER SHELL ===== */
body.vr-view-body {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.vr-view-shell {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 3vw, 2rem);
  background: rgba(12, 11, 10, 0.97);
  border-bottom: 1px solid rgba(184, 149, 106, 0.14);
  z-index: 20;
}

.vr-view-shell-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  min-width: 0;
}

.vr-view-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(184, 149, 106, 0.24);
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.vr-view-back:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.vr-view-back.is-primary {
  border-color: rgba(184, 149, 106, 0.36);
  color: var(--accent);
}

.vr-view-title-wrap {
  min-width: 0;
}

.vr-view-title {
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vr-view-subtitle {
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vr-view-brand {
  flex-shrink: 0;
  height: 40px;
}

.vr-view-brand img {
  height: 100%;
  width: auto;
}

.vr-view-frame-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #0a0908;
}

.vr-view-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0a0908;
}

.vr-view-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  background: var(--bg-surface);
}

.vr-view-fallback.is-visible {
  display: flex;
}

.vr-view-fallback p {
  max-width: 420px;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.9;
}

.vr-view-note {
  flex-shrink: 0;
  padding: 0.45rem clamp(1rem, 3vw, 2rem);
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-align: center;
  background: rgba(12, 11, 10, 0.92);
  border-top: 1px solid rgba(184, 149, 106, 0.08);
}

.vr-view-footer {
  flex-shrink: 0;
  padding: 0.35rem clamp(1rem, 3vw, 2rem) 0.5rem;
  text-align: center;
  background: rgba(12, 11, 10, 0.92);
}

@media (max-width: 640px) {
  .vr-view-shell {
    flex-wrap: wrap;
    padding: 0.65rem 0.85rem;
    gap: 0.5rem;
  }

  .vr-view-shell-left {
    width: 100%;
  }

  .vr-view-brand {
    display: none;
  }

  .vr-view-back {
    min-height: 44px;
    padding: 0.5rem 0.8rem;
    font-size: 0.7rem;
  }

  .vr-view-title-wrap {
    width: 100%;
    flex-basis: 100%;
  }

  .vr-view-title {
    font-size: 0.84rem;
    white-space: normal;
  }

  .vr-view-subtitle {
    white-space: normal;
    line-height: 1.5;
  }

  .vr-view-note {
    font-size: 0.62rem;
    line-height: 1.55;
    padding: 0.4rem 0.75rem;
  }
}