:root { color-scheme: light; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; color: #163e50; background: #e5d4b8; font-synthesis: none; --ink: #163e50; --muted: #57717a; --line: #23536924; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; overflow-x: hidden; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .35; cursor: default; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #167a99; outline-offset: 4px; }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.landscape { position: fixed; inset: 0; width: 100%; height: 100svh; height: 100dvh; isolation: isolate; overflow: hidden; background: #164d61; }
.announcement { position: absolute; inset: 0 0 auto; height: 25px; display: flex; align-items: center; justify-content: center; gap: 14px; background: #1b4c6818; color: #183d54; font-size: 10px; letter-spacing: .08em; }
.site-header { position: absolute; top: 43px; left: 6%; right: 6%; z-index: 4; display: flex; justify-content: space-between; align-items: center; color: var(--hero-ink, #032b49); text-shadow: 0 1px 4px var(--hero-shadow, #ffffff50); }
.wordmark { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; font-size: 14px; letter-spacing: .18em; }
.wordmark svg { width: 45px; height: 25px; stroke-width: 1.6; }
.wordmark small { display: block; font-size: 7px; letter-spacing: .27em; margin-top: 5px; }
.site-nav { display: flex; align-items: center; gap: 35px; }
.site-nav a, .site-nav button { padding: 8px 0; border: 0; background: none; color: inherit; text-decoration: none; font-size: 12px; }
.header-collection { border: 1px solid #163e5070; background: #ffffff12; border-radius: 30px; min-height: 35px; padding: 0 20px; font-size: 11px; color: inherit; }
.header-collection span { margin-left: 14px; }
.hero-copy { position: absolute; top: 22%; left: 9%; color: var(--hero-ink, #032b49); text-shadow: 0 1px 5px var(--hero-shadow, #ffffff50); z-index: 2; }
.hero-eyebrow { font-size: 9px; letter-spacing: .34em; margin: 0 0 18px; }
#hero-title { font: 400 clamp(60px, 7.2vw, 136px)/.88 Georgia, 'Times New Roman', serif; letter-spacing: -.055em; margin: 0 0 22px; -webkit-text-stroke: .45px var(--hero-outline, #f6faf959); paint-order: stroke fill; }
.hero-description { font-size: 14px; line-height: 1.8; letter-spacing: .05em; margin: 0 0 24px; }
.hero-actions { display: flex; align-items: center; gap: 22px; }
.explore-button { display: inline-flex; gap: 25px; align-items: center; min-height: 40px; padding: 0 24px; border: 0; border-radius: 40px; background: #052c4b; color: #f0f7f9; font-size: 11px; text-decoration: none; }
[aria-disabled="true"] { opacity: .55; cursor: default; }
.dive-indicator { position: absolute; top: 43%; right: 2%; z-index: 3; display: none; align-items: center; gap: 10px; flex-direction: column; font-size: 9px; letter-spacing: .1em; color: #edf9ff; text-shadow: 0 1px 4px #102c47; }
.has-video .dive-indicator { display: flex; }
.dive-indicator > div { width: 1px; height: 85px; background: #fff5; }
.dive-indicator i { display: block; width: 1px; height: 100%; background: #fff; transform: scaleY(0); transform-origin: top; }
.announcement { color: var(--hero-ink, #032b49); text-shadow: 0 1px 4px var(--hero-shadow, #ffffff50); }
.is-underwater .header-collection { border-color: #e6f5ff70; }
.background-frame { position: absolute; inset: 0; pointer-events: none; }
.beach, .background-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.background-video { opacity: 0; }
.background-video.is-playing { opacity: 1; }
.loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 13px; letter-spacing: .2em; padding: 12px 20px; border-radius: 24px; background: #f2f7f1e6; }
.loading span { animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .3; } }
.scenery { position: absolute; top: 50%; right: 3%; width: 40%; height: min(68vh, 660px); transform: translateY(-50%); z-index: 2; pointer-events: none; }
.scene-layer { position: absolute; inset: 0; margin: 0; opacity: 0; will-change: opacity; }
.photo-haze { height: 67%; width: 100%; opacity: .82; display: flex; align-items: center; justify-content: center; }
.scene-photo { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); mask-composite: intersect; }
figcaption { position: absolute; top: 66%; left: 10%; right: 5%; padding: 20px 4px 25px; color: #123b50; -webkit-text-stroke: .35px #f7f8eb; paint-order: stroke fill; text-shadow: 0 0 3px #fff, 0 1px 7px #fff, 0 2px 13px #fdf8ed; }
.scene-index { font-family: Georgia, serif; font-size: 11px; letter-spacing: .22em; }
.scene-name { margin: 11px 0 12px; font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-weight: 400; font-size: clamp(27px, 2.7vw, 42px); letter-spacing: .16em; }
.scene-description { max-width: 420px; max-height: 7.6em; overflow-y: auto; pointer-events: auto; margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .06em; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; scrollbar-width: thin; }
.scene-description, .manager-scroll { overscroll-behavior: contain; }
.bottom-bar { position: absolute; bottom: max(30px, env(safe-area-inset-bottom)); left: 3.5%; right: 3.5%; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.scene-hint { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .13em; color: #214d5d; text-shadow: 0 1px 4px #fff, 0 0 9px #fff; }
.status-dot { width: 4px; height: 4px; border-radius: 50%; background: #286c7e; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: transparent; transition: background .2s; }
.icon-button:hover:not(:disabled) { background: #286c7e14; }
.play-retry { position: absolute; bottom: max(30px, env(safe-area-inset-bottom)); right: 3.5%; z-index: 5; min-height: 42px; padding: 0 18px; border: 1px solid #ffffffa6; border-radius: 24px; background: #f7fbf2e8; color: #163e50; font-size: 12px; }
.notice { position: absolute; z-index: 6; left: 50%; bottom: 110px; transform: translateX(-50%); margin: 0; max-width: min(500px, 90vw); width: max-content; padding: 13px 20px; background: #f6f9f2ed; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; line-height: 1.7; }
dialog { position: fixed; inset: 16px 16px 16px auto; width: min(480px, calc(100vw - 32px)); height: calc(100dvh - 32px); max-height: none; max-width: none; margin: 0; padding: 28px 26px 22px; overflow: hidden; color: var(--ink); background: #f4f8f5fa; border: 1px solid #ffffffa6; border-radius: 18px; box-shadow: 0 24px 90px #10344833; }
dialog[open] { display: flex; flex-direction: column; animation: open-panel .3s ease-out; }
dialog::backdrop { background: #153a4a38; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes open-panel { from { opacity: 0; transform: translateX(18px); } }
.manager-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.eyebrow { color: #57828d; font-family: Georgia, serif; font-size: 10px; letter-spacing: .16em; margin: 0 0 12px; }
h2 { font: 400 24px/1.4 "Songti SC", SimSun, serif; letter-spacing: .05em; margin: 0; }
.manager-heading .icon-button { align-self: flex-start; margin: -7px -10px 0 0; }
.manager-intro { font-size: 12px; color: var(--muted); line-height: 1.9; margin: 14px 0 22px; }
.manager-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 5px 16px; margin: -4px -5px 0; scrollbar-width: thin; scrollbar-color: #6d6c5c transparent; }
.upload-area { position: relative; display: flex; flex-direction: column; gap: 9px; align-items: center; justify-content: center; min-height: 180px; border: 1px dashed #618f9e80; background: #d3e9e52b; border-radius: 9px; cursor: pointer; transition: background .2s, border-color .2s; }
.upload-area:hover, .upload-area.dragging, .upload-area:focus-within { border-color: #3d8295; background: #d3e9e552; }
.upload-area svg { width: 25px; height: 25px; color: #3d8295; margin-bottom: 4px; }
.upload-area strong { font-size: 13px; font-weight: 400; letter-spacing: .05em; }
.upload-area span { font-size: 11px; color: var(--muted); }
.upload-area small { font-size: 10px; color: #617980; }
.upload-area input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.upload-area.busy { opacity: .5; pointer-events: none; }
#manager-status { min-height: 18px; font-size: 12px; line-height: 1.7; color: #326e7d; margin: 12px 0; }
#manager-status.error { color: #a33c25; }
.empty-collection { text-align: center; padding: 24px 0 32px; }
.empty-collection > span { font-size: 10px; color: #617980; letter-spacing: .12em; }
.empty-collection p { font-size: 13px; color: var(--muted); line-height: 2; margin-top: 16px; }
.photo-card { border-top: 1px solid var(--line); padding: 20px 0 22px; }
.card-top { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.thumbnail { width: 86px; height: 66px; object-fit: cover; border-radius: 5px; }
.card-top > div { flex: 1; display: flex; justify-content: space-between; align-items: center; }
.photo-number { color: #617980; font-size: 11px; font-family: Georgia, serif; letter-spacing: .1em; }
.delete-photo { border: 0; background: transparent; padding: 12px 0 12px 10px; font-size: 11px; color: #57717a; text-decoration: underline; text-underline-offset: 4px; }
.delete-photo:hover { color: #a33c25; }
.photo-card label { display: block; color: #57717a; font-size: 11px; margin-top: 12px; }
.photo-card input, .photo-card select, .photo-card textarea { display: block; width: 100%; margin-top: 7px; padding: 10px 12px; border: 1px solid #23536930; border-radius: 5px; color: var(--ink); background: #fff9; font-size: 12px; line-height: 1.6; }
.photo-card textarea { resize: vertical; min-height: 78px; }
.photo-card input::placeholder, .photo-card textarea::placeholder { color: #738b92; }
.photo-card select option { background: #f4f8f5; }
.manager-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.manager-footer p { color: #617980; font-size: 10px; line-height: 1.8; margin: 0; }
.primary-button { min-height: 44px; background: #246578; color: #fff; border: 0; border-radius: 5px; padding: 0 16px; font-size: 12px; white-space: nowrap; }
.primary-button:hover:not(:disabled) { background: #174e60; }
.primary-button span { margin-left: 12px; }
.no-script { position: fixed; bottom: 100px; left: 20px; padding: 12px; background: #f4f8f5; }
@media (max-width: 700px) {
  .site-header { top: 43px; left: 6%; right: 6%; }
  .site-nav { display: none; }
  .header-collection { padding: 0 12px; font-size: 10px; }
  .wordmark { font-size: 12px; gap: 8px; }
  .wordmark svg { width: 30px; }
  .hero-copy { top: 22%; left: 7%; }
  #hero-title { font-size: clamp(58px, 14vw, 90px); }
  .hero-eyebrow { font-size: 8px; letter-spacing: .2em; }
  .hero-description { font-size: 12px; }
  .hero-actions { gap: 16px; }
  .explore-button { min-height: 38px; padding: 0 18px; gap: 20px; }
  .dive-indicator { right: 4%; top: 37%; }
  .bottom-bar { left: 18px; right: 18px; bottom: max(22px, env(safe-area-inset-bottom)); align-items: flex-end; }
  .photo-haze { height: 58%; }
  figcaption { top: 57%; left: 8%; right: 6%; padding-top: 10px; }
  .scene-name { font-size: 26px; margin: 8px 0; }
  .scene-description { font-size: 12px; line-height: 1.9; max-height: 7.6em; }
  .scene-index { font-size: 9px; letter-spacing: .12em; }
  .scene-hint { max-width: 70px; font-size: 10px; line-height: 1.9; gap: 7px; }
  .icon-button { width: 38px; height: 42px; }
  dialog { inset: 8px 8px 8px auto; width: calc(100vw - 16px); height: calc(100dvh - 16px); padding: 24px 20px 20px; border-radius: 12px; }
  .manager-footer p { max-width: 170px; }
}
@media (max-width: 700px) and (orientation: portrait) {
  .scenery { top: auto; bottom: 108px; right: 3%; width: 84%; height: min(43dvh, 380px); transform: none; }
  .has-scenery .hero-copy { top: 16%; }
  .has-scenery #hero-title { font-size: clamp(46px, 12vw, 70px); margin-bottom: 12px; }
  .has-scenery .hero-eyebrow { margin-bottom: 12px; }
  .has-scenery .hero-description, .has-scenery .hero-actions { display: none; }
}
@media (max-height: 550px) and (orientation: landscape) {
  .announcement { height: 20px; font-size: 8px; }
  .site-header { top: 29px; }
  .hero-copy { top: 28%; }
  #hero-title { font-size: clamp(45px, 6vw, 65px); margin-bottom: 12px; }
  .hero-eyebrow { margin-bottom: 10px; font-size: 8px; }
  .hero-description { font-size: 11px; margin-bottom: 12px; }
  .scenery { top: 45%; height: 80vh; width: 38%; }
  figcaption { top: 58%; }
  .photo-haze { height: 66%; }
  .scene-name { font-size: 26px; margin: 8px 0; }
  .scene-description { font-size: 11px; max-height: 3.8em; }
  .bottom-bar { bottom: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-video .dive-indicator { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
