/* 艺术区 r2 (PO 2026-10-24): a small museum — today's pick, sky colours, monthly exhibition, the same sky. */
body.ga-page {
  --ga-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Noto Serif KR", "Noto Serif JP", Georgia, "Times New Roman", serif;
  background: #0b0d14;
  color: #e5e7eb;
}
body.ga-noscroll { overflow: hidden; }
.ga { max-width: 1280px; margin: 0 auto; padding: 0 0 110px; display: grid; gap: 22px; }
.ga [hidden] { display: none !important; }
.ga > * { min-width: 0; }
.ga > .ga__bar, .ga > .ga__login, .ga > .ga-exhibit, .ga > .ga-sky, .ga > .ga-browse, .ga > .ga__status, .ga > .ga-grid { margin-left: 16px; margin-right: 16px; }
@media (min-width: 900px) { .ga > .ga__bar, .ga > .ga__login, .ga > .ga-exhibit, .ga > .ga-sky, .ga > .ga-browse, .ga > .ga__status, .ga > .ga-grid { margin-left: 32px; margin-right: 32px; } }

/* today's pick */
.ga-hero { position: relative; height: min(62vh, 640px); min-height: 340px; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end;
  background: radial-gradient(ellipse 70% 60% at 20% 10%, rgba(244, 114, 182, 0.35), transparent 70%), radial-gradient(ellipse 60% 60% at 90% 20%, rgba(129, 140, 248, 0.35), transparent 70%), linear-gradient(180deg, #1e1b4b, #0b0d14); }
.ga-hero__bg { position: absolute; inset: -40px; z-index: -2; background-size: cover; background-position: center; filter: blur(30px) brightness(0.55) saturate(1.2); }
.ga-hero__img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: contain; }
.ga-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(11, 13, 20, 0.85)); pointer-events: none; }
.ga-hero.has-photo { cursor: zoom-in; }
.ga-hero__text { padding: 0 20px 26px; max-width: 760px; }
@media (min-width: 900px) { .ga-hero__text { padding: 0 40px 40px; } }
.ga-hero__kicker { margin: 0 0 8px; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: #fbcfe8; }
.ga-hero__title { margin: 0; font-family: var(--ga-serif); font-weight: 600; font-size: clamp(1.6rem, 4.2vw, 2.8rem); line-height: 1.2; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); }
.ga-hero__by { margin: 10px 0 0; color: #e5e7eb; font-size: 0.95rem; line-height: 1.6; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }

.ga__bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ga__tabs { display: flex; gap: 6px; flex: 1; min-width: 0; }
.ga-tab { appearance: none; border: 0; background: transparent; color: #9ca3af; border-bottom: 2px solid transparent; padding: 8px 4px; margin-right: 12px; font: inherit; font-weight: 600; cursor: pointer; }
.ga-tab.is-active { color: #fff; border-bottom-color: #f472b6; }
.ga__login { margin: 0; color: #cbd5e1; font-size: 0.9rem; }
.ga__login a { color: #f9a8d4; font-weight: 700; }

/* monthly exhibition: a framed wall */
.ga-exhibit { padding: 22px 18px 18px; border-radius: 22px; background: linear-gradient(160deg, #f8f3ea, #efe6d8); color: #3f2d1d; box-shadow: inset 0 0 0 1px rgba(120, 90, 50, 0.15), 0 20px 50px rgba(0, 0, 0, 0.35); }
.ga-exhibit__head { display: flex; align-items: flex-end; gap: 12px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.ga-exhibit__kicker { margin: 0; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: #a16207; }
.ga-exhibit__title { margin: 4px 0 0; font-family: var(--ga-serif); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }
.ga-exhibit .ga-strip__item { background: #fff; padding: 8px 8px 26px; border-radius: 4px; box-shadow: 0 8px 18px rgba(63, 45, 29, 0.18); }
.ga-exhibit .ga-strip__item img { border-radius: 2px; }
.ga-exhibit .ga-strip__cap { color: #6b4f33; background: none; position: static; padding: 6px 2px 0; font-family: var(--ga-serif); }
.ga-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.ga-strip__item { appearance: none; border: 0; padding: 0; flex: 0 0 auto; position: relative; scroll-snap-align: start; cursor: zoom-in; background: transparent; text-align: left; }
.ga-strip__item img { display: block; height: 220px; width: auto; max-width: 78vw; object-fit: cover; border-radius: 12px; }
.ga-strip__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 10px 8px; font-size: 0.78rem; color: #fff; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65)); border-radius: 0 0 12px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ga-strip__empty { margin: 0; padding: 26px 0; font-family: var(--ga-serif); color: #8a6d4c; }
.ga-btn--ghost-light { background: transparent; border-color: currentColor; color: inherit; }

.ga-section__title { margin: 0; font-family: var(--ga-serif); font-size: 1.35rem; font-weight: 600; color: #fff; }
.ga-section__sub { margin: 4px 0 12px; color: #9ca3af; font-size: 0.9rem; }
.ga-sky { display: grid; }
.ga-strip--sky .ga-strip__item img { height: 180px; }

/* browse by sky colour */
.ga-browse { display: grid; gap: 12px; }
.ga-swatches { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.ga-swatches::-webkit-scrollbar { display: none; }
.ga-swatch { appearance: none; border: 0; background: transparent; color: #cbd5e1; display: grid; justify-items: center; gap: 6px; flex: none; cursor: pointer; font: inherit; font-size: 0.76rem; width: 64px; }
.ga-swatch__dot { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.ga-swatch.is-active .ga-swatch__dot { box-shadow: 0 0 0 3px #0b0d14, 0 0 0 5px #fff; transform: scale(1.06); }
.ga-swatch.is-active { color: #fff; font-weight: 700; }
.ga-swatch__label { text-align: center; line-height: 1.25; }
.ga-swatch--sm { width: 56px; color: #374151; }
.ga-swatch--sm .ga-swatch__dot { width: 30px; height: 30px; box-shadow: 0 0 0 1px #e5e7eb; }
.ga-swatch--sm.is-active { color: #111827; }
.ga-swatch--sm.is-active .ga-swatch__dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ec4899; }
.ga__cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.ga__cats::-webkit-scrollbar { display: none; }
.ga-chip { appearance: none; flex: none; border: 1px solid rgba(255, 255, 255, 0.16); background: transparent; color: #cbd5e1; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 0.82rem; cursor: pointer; }
.ga-chip.is-active { background: #fff; color: #111827; border-color: #fff; }
.ga__status { margin: 0; color: #9ca3af; font-family: var(--ga-serif); }
.ga__status:empty { display: none; }

/* grid */
.ga-grid { columns: 2 150px; column-gap: 10px; }
@media (min-width: 720px) { .ga-grid { columns: 3 220px; column-gap: 14px; } }
@media (min-width: 1100px) { .ga-grid { columns: 4 240px; } }
.ga-tile { appearance: none; display: block; position: relative; width: 100%; margin: 0 0 12px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #151823; cursor: zoom-in; break-inside: avoid; }
.ga-tile__img { display: block; width: 100%; height: auto; min-height: 60px; transition: transform 0.6s ease, filter 0.4s ease; }
.ga-tile:hover .ga-tile__img { transform: scale(1.04); filter: brightness(1.05); }
.ga-tile__badge { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(11, 13, 20, 0.75); color: #fff; font-size: 0.72rem; font-weight: 600; }
.ga-tile__cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 26px 12px 10px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7)); color: #fff; font-size: 0.78rem; text-align: left; opacity: 0; transform: translateY(6px); transition: opacity 0.3s ease, transform 0.3s ease; }
.ga-tile__cap strong { font-family: var(--ga-serif); font-size: 0.92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ga-tile:hover .ga-tile__cap, .ga-tile:focus-visible .ga-tile__cap { opacity: 1; transform: none; }
@media (hover: none) { .ga-tile__cap { opacity: 1; transform: none; } }
.ga__more { justify-self: center; }

.ga-btn { appearance: none; border: 1px solid rgba(148, 163, 184, 0.5); background: #fff; color: #111827; border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.ga-btn--primary { background: linear-gradient(135deg, #ec4899, #8b5cf6); border-color: transparent; color: #fff; }
.ga-btn--danger { border-color: #fecaca; color: #b91c1c; }
.ga-btn:disabled { opacity: 0.6; }
.ga-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ga-spacer { flex: 1; }

/* upload dialog (light) */
.ga-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); border: 0; border-radius: 20px; padding: 18px 16px; box-sizing: border-box; overflow-y: auto; color: #111827; }
.ga-dialog::backdrop { background: rgba(2, 6, 23, 0.7); }
.ga-dialog[open] { display: grid; gap: 12px; }
.ga-dialog__title { margin: 0; font-family: var(--ga-serif); font-size: 1.25rem; }
.ga-pick { display: grid; place-items: center; min-height: 140px; border: 2px dashed #c4b5fd; border-radius: 16px; background: #faf5ff; color: #7c3aed; font-weight: 700; cursor: pointer; overflow: hidden; }
.ga-pick img { width: 100%; max-height: 300px; object-fit: contain; background: #0b0d14; }
.ga-field { display: grid; gap: 6px; font-size: 0.88rem; color: #374151; border: 0; padding: 0; margin: 0; }
.ga-dialog .ga-chip { color: #374151; border-color: #e5e7eb; background: #f9fafb; }
.ga-dialog .ga-chip.is-active { color: #fff; background: linear-gradient(135deg, #ec4899, #8b5cf6); border-color: transparent; }
.ga-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ga-input { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; }
.ga-vis label { display: inline-flex; gap: 6px; align-items: center; margin-right: 14px; font-size: 0.95rem; }
.ga-vis legend { margin-bottom: 6px; }
.ga-public { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #fdf2f8; }
.ga-check { display: flex; gap: 8px; align-items: flex-start; font-size: 0.88rem; line-height: 1.45; }
.ga-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.ga-hint { margin: 0; color: #6b7280; font-size: 0.8rem; line-height: 1.5; }
@media (max-width: 480px) { .ga-dialog { margin: auto auto 0; border-radius: 20px 20px 0 0; width: 100vw; max-width: 100vw; } }

/* immersive viewer */
.ga-viewer { position: fixed; inset: 0; z-index: 3000; background: #000; display: grid; grid-template-rows: 1fr auto; align-items: center; justify-items: center; padding: 12px 12px 18px; box-sizing: border-box; animation: ga-fade 0.25s ease; }
@keyframes ga-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ga-viewer { animation: none; } }
.ga-viewer__fig { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: 100%; min-height: 0; height: 100%; grid-template-rows: minmax(0, 1fr) auto; }
.ga-viewer__img { max-width: 100%; max-height: 100%; object-fit: contain; align-self: center; }
.ga-viewer__cap { text-align: center; color: #d1d5db; max-width: 46rem; }
.ga-viewer__title { margin: 0 0 4px; font-family: var(--ga-serif); font-size: 1.15rem; color: #fff; }
.ga-viewer__sub { margin: 0; font-size: 0.85rem; color: #9ca3af; }
.ga-viewer__close { position: absolute; top: 12px; right: 14px; z-index: 2; appearance: none; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
.ga-viewer__nav { position: absolute; top: 45%; z-index: 2; appearance: none; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; width: 44px; height: 64px; border-radius: 12px; font-size: 2rem; line-height: 1; cursor: pointer; }
.ga-viewer__nav--prev { left: 10px; }
.ga-viewer__nav--next { right: 10px; }
@media (max-width: 640px) { .ga-viewer__nav { display: none; } }
.ga-viewer__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; color: #e5e7eb; }
.ga-viewer .ga-chip { color: #e5e7eb; }
.ga-report { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.ga-toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); background: #f9fafb; color: #111827; padding: 10px 16px; border-radius: 999px; font-size: 0.9rem; z-index: 3100; max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }

/* entry card (home + 我的) */
.ga-entry { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #312e81, #831843); color: #fff; text-decoration: none; }
.ga-entry__icon { font-size: 1.8rem; }
.ga-entry__text { display: grid; gap: 2px; }
.ga-entry__title { font-weight: 700; }
.ga-entry__sub { font-size: 0.85rem; opacity: 0.85; }
.hv2-top .ga-entry { margin: 8px 16px 4px; }

/* Fix batch 7 (PO 2026-10-24): inline upload errors + busy spinner inside the upload dialog */
.ga-up-err { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 0.9rem; line-height: 1.4; border: 1px solid #fecaca; }
#gaUpload .is-invalid { outline: 2px solid #ef4444; outline-offset: 3px; border-radius: 12px; }
#gaUpSave { display: inline-flex; align-items: center; gap: 8px; }
#gaUpSave .ga-spin { display: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; animation: ga-spin 0.8s linear infinite; }
#gaUpSave.is-busy .ga-spin { display: inline-block; }
#gaUpSave.is-busy { opacity: 0.85; cursor: progress; }
@keyframes ga-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #gaUpSave .ga-spin { animation-duration: 2s; } }
