/* 群岛首页与 AI 舞台 */
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 12px; color: var(--ink); font-size: 15px; font-weight: 750; text-decoration: none; border-radius: 9px; }
.site-nav a:hover, .site-nav [aria-current] { background: var(--paper-2); }
.wrap { max-width: 1216px; margin-inline: auto; padding-inline: 24px; }

.sea { position: relative; overflow: hidden; padding: 30px 0 34px; background: linear-gradient(#DDF0FF, #BFE5F8 70%, #B3DFF5); border-bottom: 2px solid var(--ink); }
.sea h1 { font-size: clamp(27px, 4vw, 40px); text-align: center; line-height: 1.3; }
.sea-lead { margin: 4px 0 18px; text-align: center; color: #3E4C6B; }
.isles { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 20px 12px; min-height: 196px; }
.island { display: flex; flex-direction: column; align-items: center; flex: 0 1 220px; text-align: center; color: var(--ink); text-decoration: none; }
.island svg { width: 100%; max-width: 232px; transition: transform .25s var(--pop); }
.island:hover svg, .island:focus-visible svg { transform: translateY(-7px); }
.island strong { margin-top: 6px; padding: 3px 18px; font-size: 18px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); }
.island span { margin-top: 7px; font-size: 13px; font-weight: 700; color: #31425F; }
.island-stage strong { background: var(--sun); }
.island-next svg { opacity: .8; }
.island-next strong { border-style: dashed; box-shadow: none; }
.sea-status { margin-top: 8px; text-align: center; }
.cloud { position: absolute; height: 20px; border-radius: 99px; background: #fff; opacity: .85; animation: drift 26s ease-in-out infinite alternate; }
.cloud-a { left: 5%; top: 38px; width: 110px; }
.cloud-b { left: 12%; top: 22px; width: 52px; animation-duration: 33s; }
.cloud-c { right: 19%; top: 60px; width: 80px; animation-duration: 41s; }
.boat { position: absolute; right: 4%; top: 24px; width: 92px; animation: bob 4.5s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(46px); } }
@keyframes bob { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(6px) rotate(3deg); } }

.home-section { padding-top: 34px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 23px; }
.section-head a { display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; font-weight: 750; text-decoration: none; }
.start-card { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px; background: var(--card); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 0 5px 0 var(--ink); }
.start-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; }
.start-card small { display: block; font-size: 13px; font-weight: 800; color: #0E7F71; }
.start-card strong { display: block; font-size: 20px; line-height: 1.4; }
.start-card span { font-size: 14px; color: var(--ink-2); }
.start-card .button { text-decoration: none; padding-inline: 20px; }

.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shelf-card, .work-card { display: block; overflow: hidden; color: var(--ink); text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 22px -14px rgba(31, 42, 68, .35); transition: transform .2s var(--ease), border-color .2s; }
.shelf-card:hover, .work-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.shelf-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); }
.shelf-card div, .work-text { padding: 10px 13px 13px; }
.shelf-card em { display: block; font-style: normal; font-size: 12px; font-weight: 800; color: #0E7F71; }
.shelf-card strong, .work-text strong { display: block; font-size: 16px; line-height: 1.45; }
.shelf-card span, .work-text span { font-size: 13px; color: var(--ink-2); }

.stage-band { margin-top: 38px; padding: 28px 0 34px; background: #1F2A44; color: #fff; }
.stage-band .section-head a { color: var(--sun); }
.work-card { background: #2B3858; border-color: #3B4A6E; color: #fff; }
.work-card:hover { border-color: var(--sun); }
.work-text span { color: #C3CEE6; }
.work-cover { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #4C3FA8, #13A391); }
.work-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-cover i { position: absolute; right: 9px; bottom: 9px; padding: 2px 10px; font-style: normal; font-size: 12px; font-weight: 800; color: #1F2A44; background: var(--sun); border-radius: 99px; }

.mail-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 36px 0 12px; scroll-margin-top: 16px; }
.mail-box { padding: 20px 22px; border: 2px solid var(--ink); border-radius: 20px; box-shadow: 0 5px 0 var(--ink); }
.mail-box.wish { background: #FFF2C7; }
.mail-box.submit { background: #E2F5EF; }
.mail-box h2 { font-size: 20px; }
.mail-box p { margin: 4px 0 14px; font-size: 14px; color: #3E4C6B; }
.mail-box p a { margin-left: 6px; }
.mail-reveal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; }
.mail-reveal p { flex-basis: 100%; margin: 0; font-size: 14px; }
.mail-address { font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }

.stage-main { margin-top: 0; min-height: 52vh; }
.stage-main h1 { font-size: clamp(30px, 4.5vw, 46px); line-height: 1.25; }
.stage-lead { margin: 4px 0 18px; color: #C3CEE6; }
.stage-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.stage-filters button { min-height: 40px; padding: 5px 16px; font-weight: 750; color: #fff; background: transparent; border: 1.5px solid #6B7BA3; border-radius: 99px; }
.stage-filters [aria-pressed="true"] { color: #1F2A44; background: var(--sun); border-color: var(--sun); }
.stage-main :focus-visible, .stage-band :focus-visible { outline-color: var(--sun); }
.submit-panel { margin: 34px 0 16px; padding: 22px 24px 24px; background: #E2F5EF; border: 2px solid var(--ink); border-radius: 20px; box-shadow: 0 5px 0 var(--ink); scroll-margin-top: 16px; }
.submit-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 30px; margin-block: 10px 16px; }
.submit-columns h3 { margin: 4px 0; font-size: 16px; }
.submit-columns ul { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.75; }

.viewer { width: min(1080px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; color: var(--ink); background: var(--card); border: 2px solid var(--ink); border-radius: 18px; }
.viewer::backdrop { background: rgba(12, 18, 34, .78); }
.viewer-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.viewer-bar h2 { margin-right: auto; font-size: 19px; }
.viewer-screen { display: grid; background: #0C1222; aspect-ratio: 16 / 9; max-height: calc(100dvh - 200px); width: 100%; }
.viewer-screen video, .viewer-screen iframe { width: 100%; height: 100%; min-height: 0; border: 0; }
.viewer[data-kind="html"] .viewer-screen { aspect-ratio: auto; height: min(680px, calc(100dvh - 190px)); max-height: none; }
.viewer-about { padding: 10px 16px 16px; font-size: 14px; }
.viewer-about p + p { margin-top: 4px; }
#viewer-credit { color: var(--ink-2); font-size: 13px; }

@media (max-width: 900px) {
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-nav { order: 3; flex-basis: 100%; margin: 0; overflow-x: auto; }
  .site-nav a { flex: 1; justify-content: center; font-size: 14px; white-space: nowrap; min-height: 40px; }
  .wrap { padding-inline: 14px; }
  .sea { padding: 18px 0 22px; }
  .sea-lead { margin-bottom: 10px; font-size: 13px; }
  .isles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 8px; }
  .island strong { font-size: 15px; padding: 2px 13px; }
  .island span { font-size: 12px; }
  .island:last-child:nth-child(odd) { grid-column: 1 / -1; width: 50%; justify-self: center; }
  .boat, .cloud { display: none; }
  .home-section { padding-top: 24px; }
  .section-head h2 { font-size: 19px; }
  .start-card { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; }
  .start-card strong { font-size: 16px; }
  .start-card .button { grid-column: 1 / -1; }
  .shelf { gap: 10px; }
  .shelf-card strong, .work-text strong { font-size: 14px; }
  .shelf-card div, .work-text { padding: 8px 10px 10px; }
  .work-cover i { right: 6px; bottom: 6px; padding: 1px 7px; font-size: 11px; }
  .mail-pair, .submit-columns { grid-template-columns: 1fr; }
  .submit-panel { padding: 18px 16px; }
  .viewer { width: 100vw; max-width: 100vw; max-height: 100dvh; margin: auto 0 0; border-width: 2px 0 0; border-radius: 16px 16px 0 0; }
  .viewer[data-kind="html"] { height: 100dvh; }
  .viewer[data-kind="html"] .viewer-screen { height: calc(100dvh - 190px); }
}
@media (prefers-reduced-motion: reduce) {
  .cloud, .boat { animation: none; }
  .island svg, .shelf-card, .work-card { transition: none; }
}
/* 首页与舞台的页脚居中，按钮用白底 */
body > .site-footer { max-width: 1216px; margin-inline: auto; text-align: center; }
.mail-box .button, .mail-reveal .button, .viewer .button { background: #fff; }
