/* 耀耀展览厅（分组展厅版）：公开页、作品页、策展台共用。只用 yao-theme 的变量，明暗两套自动跟随。 */
.gx { --gx-accent: var(--yao-accent); padding-block: 52px 96px; color: var(--yao-text); font-family: var(--yao-font); }
.gx *, .gx *::before, .gx *::after { box-sizing: border-box; }
.gx h1, .gx h2, .gx h3 { font-weight: 600; letter-spacing: -.02em; margin: 0; }
.gx-eyebrow { font: 11px/1.4 var(--yao-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--yao-muted); }
.gx-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--yao-border); background: var(--yao-surface); color: var(--yao-text); font: 500 13px var(--yao-font); text-decoration: none; cursor: pointer; transition: border-color .15s ease, color .15s ease, background-color .15s ease; white-space: nowrap; }
.gx-btn:hover { border-color: var(--yao-accent); color: var(--yao-accent-ink); }
.gx-btn:focus-visible, .gx a:focus-visible, .gx button:focus-visible, .gx input:focus-visible, .gx select:focus-visible, .gx textarea:focus-visible { outline: 2px solid var(--yao-accent); outline-offset: 2px; }
.gx-btn.is-primary { background: var(--yao-button-warm); border-color: var(--yao-button-warm); color: var(--yao-button-warm-ink); }
.gx-btn.is-primary:hover { background: var(--yao-button-warm-hover); border-color: var(--yao-button-warm-hover); color: var(--yao-button-warm-ink); }
.gx-btn.is-danger:hover { border-color: var(--yao-danger); color: var(--yao-danger); }
.gx-btn.is-small { height: 30px; padding: 0 12px; font-size: 12px; }
.gx-btn[disabled] { opacity: .45; pointer-events: none; }
.gx-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 头部 ---------- */
.gx-mast { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; padding-bottom: 36px; border-bottom: 1px solid var(--yao-border); }
.gx-mast h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; margin: 14px 0 16px; }
.gx-mast p { margin: 0; max-width: 640px; color: var(--yao-muted); font-size: 15px; line-height: 1.85; }
.gx-stats { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.gx-stat { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--yao-surface); border: 1px solid var(--yao-border); font-size: 12px; color: var(--yao-muted); }
.gx-stat b { font: 600 15px var(--yao-font); color: var(--yao-text); font-variant-numeric: tabular-nums; }
.gx-seal { width: 132px; height: 132px; border-radius: 50%; border: 1px solid var(--yao-border-strong); display: grid; place-items: center; position: relative; color: var(--yao-accent); background: radial-gradient(circle at 50% 42%, var(--yao-accent-soft), transparent 70%); }
.gx-seal svg { width: 54px; height: 54px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.gx-seal span { position: absolute; font: 9px var(--yao-mono); letter-spacing: .22em; color: var(--yao-muted); }
.gx-seal span:first-child { top: 18px; } .gx-seal span:last-child { bottom: 18px; }

/* ---------- 主体：左侧展厅导航 + 右侧展墙 ---------- */
.gx-body { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 40px; margin-top: 36px; align-items: start; }
.gx-rail { position: sticky; top: 76px; display: grid; gap: 4px; }
.gx-rail-t { margin: 0 0 10px; }
.gx-rail a { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--yao-muted); text-decoration: none; font-size: 13px; line-height: 1.35; transition: background-color .15s ease, color .15s ease; }
.gx-rail a:hover { background: var(--yao-surface); color: var(--yao-text); }
.gx-rail a[aria-current="true"] { background: var(--yao-surface); color: var(--yao-text); box-shadow: inset 0 0 0 1px var(--yao-border); }
.gx-rail a i { width: 8px; height: 8px; border-radius: 50%; background: var(--hall, var(--yao-accent)); opacity: .9; }
.gx-rail a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-rail a em { font: 11px var(--yao-mono); font-style: normal; color: var(--yao-quiet); }
.gx-rail-note { margin: 18px 4px 0; font-size: 12px; line-height: 1.8; color: var(--yao-quiet); }

.gx-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; }
.gx-search { flex: 1; position: relative; }
.gx-search svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--yao-muted); stroke-width: 1.8; stroke-linecap: round; }
.gx-search input { width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: 999px; border: 1px solid var(--yao-border); background: var(--yao-surface); color: var(--yao-text); font: 14px var(--yao-font); }
.gx-search input::placeholder { color: var(--yao-quiet); }
.gx-line { font-size: 12px; color: var(--yao-muted); min-height: 18px; }

/* ---------- 展厅 ---------- */
.gx-hall { --hall: var(--yao-accent); margin-bottom: 52px; scroll-margin-top: 80px; }
.gx-hall-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: end; padding: 24px 26px 22px; border-radius: var(--yao-radius); background: var(--yao-surface); border: 1px solid var(--yao-border); overflow: hidden; margin-bottom: 18px; }
.gx-hall-head::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--hall); }
.gx-hall-head::after { content: ""; position: absolute; right: -80px; top: -120px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--hall) 16%, transparent), transparent 70%); pointer-events: none; }
.gx-hall-tags { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.gx-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 500; letter-spacing: .02em; background: var(--yao-surface-2); color: var(--yao-muted); border: 1px solid var(--yao-border); }
.gx-chip.is-badge { background: color-mix(in srgb, var(--hall) 14%, transparent); color: var(--yao-text); border-color: color-mix(in srgb, var(--hall) 36%, transparent); }
.gx-hall-head h2 { font-size: 24px; line-height: 1.25; }
.gx-hall-head p { margin: 8px 0 0; color: var(--yao-muted); font-size: 14px; line-height: 1.75; max-width: 560px; }
.gx-price { position: relative; z-index: 1; text-align: right; }
.gx-price b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--yao-text); font-variant-numeric: tabular-nums; }
.gx-price small { display: block; margin-top: 4px; font-size: 12px; color: var(--yao-muted); max-width: 260px; margin-left: auto; line-height: 1.6; }
.gx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }

/* ---------- 作品卡 ---------- */
.gx-card { display: block; text-decoration: none; color: inherit; border-radius: var(--yao-radius); background: var(--yao-surface); border: 1px solid var(--yao-border); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.gx-card:hover { transform: translateY(-2px); box-shadow: var(--yao-shadow); border-color: var(--yao-border-strong); }
.gx-frame { position: relative; aspect-ratio: 4 / 3; background: var(--yao-bg-soft); overflow: hidden; }
.gx-frame iframe { position: absolute; left: 0; top: 0; width: 1200px; height: 900px; border: 0; transform-origin: 0 0; transform: scale(var(--s, .2)); pointer-events: none; background: #fff; }
.gx-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); pointer-events: none; }
.gx-frame .gx-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--yao-quiet); font: 11px var(--yao-mono); letter-spacing: .16em; }
.gx-flag { position: absolute; left: 12px; top: 12px; z-index: 2; height: 24px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--yao-surface); color: var(--yao-accent-ink); box-shadow: var(--yao-shadow); }
.gx-flag.is-surprise { color: var(--yao-ok); }
.gx-meta { padding: 14px 16px 16px; display: grid; gap: 4px; }
.gx-meta strong { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-model { font: 12px var(--yao-mono); color: var(--yao-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 空态 ---------- */
.gx-empty { grid-column: 1 / -1; text-align: center; padding: 88px 24px 96px; border: 1px dashed var(--yao-border-strong); border-radius: 24px; background: linear-gradient(180deg, var(--yao-surface), transparent); }
.gx-empty svg { width: 64px; height: 64px; fill: none; stroke: var(--yao-accent); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.gx-empty h2 { font-size: 22px; margin: 18px 0 10px; }
.gx-empty p { margin: 0 auto 24px; max-width: 420px; color: var(--yao-muted); font-size: 14px; line-height: 1.85; }
.gx-foot { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--yao-border); display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--yao-muted); }
.gx-foot a { color: var(--yao-accent-ink); text-decoration: none; }

/* ---------- 作品页 ---------- */
.gx-crumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--yao-muted); }
.gx-crumb a { color: inherit; text-decoration: none; } .gx-crumb a:hover { color: var(--yao-accent-ink); }
.gx-vhead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin: 18px 0 22px; }
.gx-vhead h1 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; margin: 10px 0 10px; }
.gx-vhead p { margin: 0; color: var(--yao-muted); font-size: 14px; line-height: 1.8; max-width: 680px; white-space: pre-line; }
.gx-vactions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.gx-stage { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--yao-border); background: var(--yao-bg-soft); height: min(76vh, 820px); box-shadow: var(--yao-shadow); }
.gx-stage iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.gx-stage:fullscreen { border-radius: 0; height: 100vh; }
.gx-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 2px 0; font-size: 12px; color: var(--yao-muted); }
.gx-facts b { color: var(--yao-text); font-weight: 500; }
.gx-more { margin-top: 48px; }
.gx-more h2 { font-size: 18px; margin-bottom: 16px; }
.gx-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }

/* ---------- 策展台 ---------- */
.gx-admin .gx-mast { grid-template-columns: minmax(0, 1fr) auto; }
.gx-tabs { display: flex; gap: 6px; margin: 28px 0 24px; padding: 4px; border-radius: 999px; background: var(--yao-surface); border: 1px solid var(--yao-border); width: max-content; max-width: 100%; overflow-x: auto; }
.gx-tabs button { border: 0; background: transparent; color: var(--yao-muted); font: 500 13px var(--yao-font); height: 34px; padding: 0 18px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.gx-tabs button[aria-selected="true"] { background: var(--yao-button-warm); color: var(--yao-button-warm-ink); }
.gx-panel { display: grid; gap: 18px; }
.gx-box { background: var(--yao-surface); border: 1px solid var(--yao-border); border-radius: var(--yao-radius); padding: 22px 24px; }
.gx-box h3 { font-size: 16px; margin-bottom: 4px; }
.gx-box > p.gx-hint, .gx-hint { margin: 4px 0 0; font-size: 12px; line-height: 1.75; color: var(--yao-muted); }
.gx-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gx-tile { background: var(--yao-surface); border: 1px solid var(--yao-border); border-radius: var(--yao-radius); padding: 18px 20px; }
.gx-tile span { font-size: 12px; color: var(--yao-muted); }
.gx-tile b { display: block; margin-top: 8px; font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.gx-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-top: 16px; }
.gx-form .is-wide { grid-column: 1 / -1; }
.gx-field { display: grid; gap: 6px; font-size: 12px; color: var(--yao-muted); }
.gx-field input, .gx-field select, .gx-field textarea { width: 100%; min-height: 38px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--yao-border); background: var(--yao-bg); color: var(--yao-text); font: 14px var(--yao-font); }
.gx-field textarea { resize: vertical; min-height: 76px; line-height: 1.7; }
.gx-field input[type="color"] { width: 46px; padding: 4px; }
.gx-row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.gx-swatches { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.gx-swatches button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--yao-surface); box-shadow: 0 0 0 1px var(--yao-border); cursor: pointer; }
.gx-drop { display: grid; place-items: center; gap: 6px; min-height: 150px; border: 1.5px dashed var(--yao-border-strong); border-radius: 14px; background: var(--yao-bg); color: var(--yao-muted); font-size: 13px; text-align: center; cursor: pointer; padding: 18px; transition: border-color .15s ease, background-color .15s ease; }
.gx-drop.is-over, .gx-drop:hover { border-color: var(--yao-accent); background: var(--yao-accent-soft); }
.gx-drop b { color: var(--yao-text); font-weight: 600; }
.gx-preview { margin-top: 14px; height: 300px; border-radius: 14px; overflow: hidden; border: 1px solid var(--yao-border); }
.gx-preview iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.gx-list { display: grid; gap: 10px; }
.gx-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--yao-border); background: var(--yao-bg); }
.gx-item.is-off { opacity: .62; }
.gx-item-main { min-width: 0; display: grid; gap: 4px; }
.gx-item-main strong { font-size: 14px; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gx-item-main small { font-size: 12px; color: var(--yao-muted); overflow: hidden; text-overflow: ellipsis; }
.gx-item-side { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.gx-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--hall, var(--yao-border-strong)); }
.gx-state { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--yao-surface-2); color: var(--yao-muted); }
.gx-state.is-on { background: var(--yao-ok-soft); color: var(--yao-ok); }
.gx-state.is-warn { background: var(--yao-warning-soft); color: var(--yao-warning); }
.gx-edit { grid-column: 1 / -1; border-top: 1px solid var(--yao-border); padding-top: 12px; }
.gx-arrows { display: grid; gap: 2px; }
.gx-arrows button { width: 26px; height: 20px; border: 1px solid var(--yao-border); background: var(--yao-surface); color: var(--yao-muted); border-radius: 6px; cursor: pointer; font-size: 10px; line-height: 1; }
.gx-arrows button:hover { color: var(--yao-accent-ink); border-color: var(--yao-accent); }
.gx-switch { position: relative; width: 38px; height: 22px; border-radius: 999px; border: 0; background: var(--yao-border-strong); cursor: pointer; transition: background-color .15s ease; flex: none; }
.gx-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.gx-switch[aria-checked="true"] { background: var(--yao-ok); }
.gx-switch[aria-checked="true"]::after { transform: translateX(16px); }
.gx-subhead { display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; font-size: 13px; font-weight: 600; }
.gx-gate { text-align: center; padding: 72px 24px; }
.gx-gate h2 { font-size: 22px; margin: 10px 0 10px; }
.gx-gate p { color: var(--yao-muted); margin: 0 auto 22px; max-width: 420px; line-height: 1.8; font-size: 14px; }
.gx-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 90; padding: 11px 18px; border-radius: 999px; background: var(--yao-night); color: #fff; font-size: 13px; box-shadow: var(--yao-shadow-float); transition: opacity .2s ease, transform .2s ease; pointer-events: none; max-width: calc(100vw - 40px); }
.gx-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.gx-toast.is-bad { background: var(--yao-danger); }

@media (max-width: 900px) {
  .gx { padding-block: 32px 72px; }
  .gx-mast { grid-template-columns: 1fr; gap: 20px; }
  .gx-seal { display: none; }
  .gx-body { grid-template-columns: 1fr; gap: 18px; }
  .gx-rail { position: sticky; top: 48px; z-index: 5; display: block; padding: 10px 0; margin: 0 -4px; background: var(--yao-bg); box-shadow: 0 1px 0 var(--yao-border); }
  #gx-rail-list { display: flex; gap: 6px; overflow-x: auto; padding: 0 4px; scrollbar-width: none; }
  #gx-rail-list::-webkit-scrollbar { display: none; }
  .gx-hall { scroll-margin-top: 116px; }
  .gx-rail-t, .gx-rail-note { display: none; }
  .gx-rail a { flex: none; grid-template-columns: 8px auto auto; border-radius: 999px; border: 1px solid var(--yao-border); background: var(--yao-surface); padding: 7px 12px; }
  .gx-hall-head { grid-template-columns: 1fr; padding: 20px; }
  .gx-price { text-align: left; } .gx-price small { margin-left: 0; }
  .gx-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .gx-vhead { grid-template-columns: 1fr; }
  .gx-vactions { justify-content: flex-start; }
  .gx-stage { height: 62vh; border-radius: 14px; }
  .gx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx-form { grid-template-columns: 1fr; }
  .gx-item { grid-template-columns: auto minmax(0, 1fr); }
  .gx-item-side { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .gx-card, .gx-toast { transition: none; } .gx-card:hover { transform: none; } }
