:root {
  color-scheme: dark;
  --bg: #050506;
  --text: #f5f5f7;
  --text-dim: #a1a1a6;
  --text-faint: #6e6e73;
  --glass: rgba(19, 19, 23, 0.78);
  --glass-border: rgba(255, 255, 255, 0.08);
  --accent: #30d158;
  --accent-hover: #45dd69;
  --on-accent: #04170b;
  --accent-soft: rgba(48, 209, 88, 0.14);
  --blue: #4da3ff;
  --red: #ff5c50;
  --orange: #ffa726;
  --control-bg: rgba(255, 255, 255, 0.06);
  --control-bg-focus: rgba(255, 255, 255, 0.10);
  --card-bg: #101012;
  --card-bg-hi: #17171a;
  --card-border: rgba(255, 255, 255, 0.08);
  --side-bg: #131316;
  --hover-bg: rgba(255, 255, 255, 0.06);
  --active-bg: rgba(48, 209, 88, 0.13);
  --track: rgba(255, 255, 255, 0.08);
  --menu-bg: #17171a;
  --qr-bg: #ffffff;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --r-lg: 20px;
  --r-md: 12px;
  --shadow-float: 0 24px 70px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; overflow-x: clip; background: #050506 url('../assets/bg~47fc6f39.png') center / cover no-repeat fixed; }
a { text-decoration: none; color: inherit; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-x: clip;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url('../assets/bg~47fc6f39.png') center / cover no-repeat scroll;
  opacity: 0.16;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(48, 209, 88, 0.06), transparent 62%),
    radial-gradient(1500px 900px at 50% 120%, rgba(0, 0, 0, 0.5), transparent 58%);
}

/* ── 浮岛导航栏 ── */
.island {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 900;
  display: flex; align-items: center; gap: 4px;
  height: 54px; padding: 0 10px 0 18px;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  box-shadow: var(--shadow-float);
  max-width: calc(100vw - 24px);
  transition: height 0.35s var(--ease), padding 0.35s var(--ease), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.isl-brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; padding-right: 8px; cursor: pointer; }
.isl-brand svg { height: 15px; width: auto; fill: var(--text); }
.isl-brand svg .logo-dim { fill: var(--text-faint); }
.isl-brand .bn { font-size: 13px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.isl-links {
  display: flex; align-items: center; gap: 2px;
  position: relative;
  transition: opacity 0.28s ease;
}
.island .isl-fade {
  display: none; position: absolute; top: 0; bottom: 0; width: 18px;
  pointer-events: none; z-index: 2; opacity: 0;
  transition: opacity 0.25s ease;
}
.island .isl-fade-l { left: 0; border-radius: 999px 0 0 999px; background: linear-gradient(to right, rgba(19, 19, 23, 0.92), rgba(19, 19, 23, 0)); }
.island .isl-fade-r { right: 0; border-radius: 0 999px 999px 0; background: linear-gradient(to left, rgba(19, 19, 23, 0.92), rgba(19, 19, 23, 0)); }
.island .isl-fade.on { display: block; opacity: 1; }
.isl-back { position: relative; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0; margin-right: 2px; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 50%; background: transparent; color: var(--text-dim); cursor: pointer; }
.isl-back:hover { background: var(--hover-bg); color: var(--text); }
.isl-back svg { width: 15px; height: 15px; }
.isl-back::after { content: attr(data-label); position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-4px); background: var(--menu-bg); border: 1px solid var(--glass-border); color: var(--text); font-size: 11px; font-weight: 500; padding: 5px 11px; border-radius: 9px; white-space: nowrap; opacity: 0; pointer-events: none; z-index: 30; transition: opacity 0.2s ease, transform 0.2s ease; }
.isl-back:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.seat-state-note { display: flex; justify-content: center; padding: 6px 0; }
.main[data-page="todos"], .main[data-page="announce"], .main[data-page="schedule"], .main[data-page="team"] {
  max-width: 1120px; margin: 0 auto;
}

.page-head .more[data-back="1"] { display: none; }

.isl-links::-webkit-scrollbar { display: none; }
.isl-link {
  position: relative;
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 8px 14px; border-radius: 999px;
  color: var(--text-dim); font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.isl-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.isl-link:hover { background: var(--hover-bg); color: var(--text); }
.isl-link.active { background: transparent; color: var(--accent); }
.isl-ink {
  position: absolute; left: 0; top: 50%; height: 34px; margin-top: -17px;
  border-radius: 999px; background: var(--accent-soft); pointer-events: none; z-index: 0;
  opacity: 0; transition: transform 0.28s var(--ease), width 0.28s var(--ease), opacity 0.2s ease;
}
.isl-link { z-index: 1; }
.isl-la {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  height: 34px; padding: 0 14px; margin-left: 4px;
  border: none; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  animation: la-in 0.45s var(--ease);
  transition: background-color 0.2s ease, transform 0.2s var(--ease);
}
.isl-la:hover { background: var(--accent-hover); }
.isl-la:active { transform: scale(0.94); }
.isl-la svg { width: 13px; height: 13px; }
.isl-la b { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.isl-la[hidden] { display: none; }
@keyframes la-in { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.isl-k {
  width: 34px; height: 34px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 999px; background: transparent;
  color: var(--text-dim); cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, max-width 0.4s var(--ease), opacity 0.28s ease, padding 0.4s var(--ease);
}
.isl-k:hover { background: var(--hover-bg); color: var(--text); }
.isl-k svg { width: 15px; height: 15px; }
.island .lang-slot { display: flex; align-items: center; max-width: 150px; flex-shrink: 0; transition: max-width 0.4s var(--ease), opacity 0.28s ease; }
.island .lang-btn { white-space: nowrap; flex-shrink: 0; }
.island .isl-k { flex-shrink: 0; }
.island .user {
  position: relative; display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 4px 8px 4px 5px; border-radius: 999px; cursor: pointer;
  transition: background-color 0.2s ease;
}
.island .user:hover { background: var(--hover-bg); }
.island .user .avatar {
  position: relative; overflow: hidden;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--control-bg); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.island .user .avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.island .user .u-info { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
.island .user .urole { font-size: 10px; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; }
.island .user .uname { font-size: 12.5px; color: var(--text-dim); max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 14px);
  min-width: 156px; padding: 6px;
  background: var(--menu-bg); border: 1px solid var(--glass-border); border-radius: 16px;
  box-shadow: var(--shadow-float); z-index: 20;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.user-menu.on { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
.user-menu button {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border: none; background: transparent; border-radius: 10px;
  font-family: inherit; font-size: 13px; color: var(--text-dim); cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.user-menu button:hover { background: var(--hover-bg); color: var(--text); }
.user-menu .btn-logout:hover { color: var(--red); }
/* ── 简化态回到顶部圆钮 ── */
.isl-top {
  display: none; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-left: 2px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--glass-border);
  background: var(--control-bg); color: var(--text-dim); cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.isl-top:hover { background: var(--hover-bg); color: var(--text); border-color: rgba(255, 255, 255, 0.22); }
.isl-top svg { width: 14px; height: 14px; }
.island.small .isl-top { display: inline-flex; animation: la-in 0.3s var(--ease); }
/* 滚动收缩态 */
.island.small { height: 46px; padding: 0 8px 0 14px; background: rgba(19, 19, 23, 0.92); }
.island.small .isl-links, .island.small .isl-k, .island.small .lang-slot { max-width: 0; opacity: 0; pointer-events: none; padding-left: 0; padding-right: 0; }

/* ── 简化态待办进度(logo 与个人信息之间 + 岛下边缘进度条) ── */
.isl-progress-chip { display: none; align-items: center; flex-shrink: 0; height: 30px; padding: 0 13px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.isl-progress-chip[hidden] { display: none !important; }
.island.small .isl-progress-chip:not([hidden]) { display: inline-flex; }

/* ── 命令面板(⌘K) ── */
.pal { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: flex-start; justify-content: center; padding-top: 14vh; }
.pal[hidden] { display: none; }
.pal-mask { position: absolute; inset: 0; background: rgba(3, 3, 4, 0.66); }
.pal-box { position: relative; width: min(620px, calc(100vw - 32px)); background: var(--menu-bg); border: 1px solid var(--glass-border); border-radius: 22px; box-shadow: var(--shadow-float); overflow: hidden; }
.pal-input { border-bottom: 1px solid var(--glass-border); }
.pal-input input { width: 100%; padding: 17px 20px; background: transparent; border: none; outline: none; color: var(--text); font-family: inherit; font-size: 15px; }
.pal-input input::placeholder { color: var(--text-faint); }
.pal-list { max-height: 46vh; overflow-y: auto; padding: 8px; }
.pal-list { max-height: 46dvh; }
.pal-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 14px; border: none; background: transparent; border-radius: 14px;
  color: var(--text-dim); font-family: inherit; font-size: 13px; text-align: left; cursor: pointer;
  transition: background-color 0.15s ease;
}
.pal-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.pal-item .pi-hint { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--text-faint); letter-spacing: 0.04em; }
.pal-item.on, .pal-item:hover { background: var(--active-bg); color: var(--text); }
.pal-empty { padding: 24px; text-align: center; color: var(--text-faint); font-size: 13px; }
.pal-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--glass-border); font-family: var(--mono); font-size: 10px; color: var(--text-faint); letter-spacing: 0.06em; }

/* ── 直连页语言位 ── */
.direct-topbar { position: absolute; top: 18px; right: 24px; }
.icp-link { color: var(--text-faint); text-decoration: none; transition: color 0.2s ease; }
.icp-link:hover { color: var(--text-dim); }
.icp-fixed { position: fixed; left: 16px; bottom: 20px; z-index: 300; font-size: 11px; color: var(--text-faint); transition: color 0.2s ease; }
.icp-fixed:hover { color: var(--text-dim); }
.icp-fixed.ga-fixed { left: auto; right: 16px; display: flex; align-items: center; gap: 4px; }
.ga-fixed img { height: 14px; width: auto; }

/* ── 主区 ── */
.main {
  padding: clamp(72px, 11vh, 96px) 36px clamp(40px, 8vh, 64px);
  padding: clamp(72px, 11dvh, 96px) 36px clamp(40px, 8dvh, 64px);
  position: relative; z-index: 1;
}
.main:has(.stage-wrap) { padding-bottom: clamp(48px, 7vh, 72px); }
.main:not(:has(.stage-wrap)) {
  display: flex; flex-direction: column; gap: 16px;
}
.main > .card { margin-bottom: 0; }
.page-title { text-align: center; font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; color: var(--text); margin-bottom: 4px; letter-spacing: -0.03em; line-height: 1.08; }
.page-sub { text-align: center; font-size: 13px; color: var(--text-dim); margin-bottom: 24px; margin-top: 6px; }
.page-sub a { color: var(--accent); }

/* ── 页头(标题 + 副题 + 右侧操作位) ── */
.page-head { display: block; text-align: center; margin-bottom: 22px; }
.page-head-main { min-width: 0; }
.page-head .page-title { margin-bottom: 0; }
.page-head .page-sub { margin: 10px 0 0; }
.page-head-side { display: block; margin-top: 12px; }

/* ── 权限隐藏元素 ── */
.perm-hidden { display: none !important; }

/* ── 入场编排(仅 JS 就绪时启用, 无 JS 则完全可见; 用 animation 不占 transition, 悬停 rotate/translate 过渡不受影响) ── */
html.nx-reveal .card,
html.nx-reveal .panel,
html.nx-reveal .stage,
html.nx-reveal .gallery-hold,
html.nx-reveal .bento > *,
html.nx-reveal .ann-grid > *,
html.nx-reveal .sch-grid > *,
html.nx-reveal .contact-grid > *,
html.nx-reveal .todo-grid > *,
html.nx-reveal .hotel-grid > *,
html.nx-reveal .team-grid > *,
html.nx-reveal .wb-hero {
  visibility: hidden;
}
html.nx-reveal .nx-in { visibility: visible; animation: nx-reveal-in 0.35s ease-out; }
@keyframes nx-reveal-in { from { opacity: 0; } to { opacity: 1; } }

/* ── 响应式 ── */

.isl-fab, .mnav { display: none; }

@media (max-width: 820px) {
  .island { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); height: 58px; padding: 0 6px; max-width: calc(100vw - 12px); }
  .island.small { height: 58px; }
  .isl-brand { display: none; }
  .isl-links { max-width: none; overflow-x: auto; gap: 1px; }
  .isl-link { min-width: 42px; padding: 11px 11px; }
  .isl-link span { display: none; }
  .isl-more, .isl-pop, .isl-k, .isl-top { display: none; }
  .island .lang-slot { max-width: none; }
  .island .lang-btn { height: 40px; padding: 0 9px; }
  .island .lang-btn #langLabel, .island .lang-btn .lang-chevron { display: none; }
  .island .user { padding: 3px 4px 3px 2px; }
  .island .user .avatar { width: 34px; height: 34px; }
  .island .user .u-info { display: none; }
  .main { padding: 24px 14px calc(120px + env(safe-area-inset-bottom)); flex: 1 0 auto; }
  .direct-topbar { top: 14px; right: 14px; }
  .center-wrap { padding-top: 80px; }
  #app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
  .icp-fixed { display: block; position: static; width: fit-content; margin: 0 auto 8px; }
  .icp-fixed.ga-fixed { display: flex; margin: 0 auto calc(78px + env(safe-area-inset-bottom)); }
  /* 底岛弹层朝上弹(语言/用户菜单在屏幕底部不能朝下) */
  .island .lang-menu { top: auto; bottom: calc(100% + 10px); transform-origin: bottom right; }
  .island .user-menu { top: auto; bottom: calc(100% + 10px); transform-origin: bottom right; }
  /* 移动端底岛常收起: 中间圆钮开全屏导航 */
  .island { justify-content: center; gap: 10px; }
  .isl-links, .island .isl-fade { display: none; }
  .isl-fab { display: flex; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; align-items: center; justify-content: center; border: none; flex: none; cursor: pointer; box-shadow: 0 2px 10px rgba(48, 209, 88, 0.3); }
  .isl-fab svg { width: 20px; height: 20px; }
  .mnav { position: fixed; inset: 0; z-index: 220; background: var(--bg); display: flex; flex-direction: column; animation: mnavIn 0.28s var(--ease); }
  .mnav-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--glass-border); }
  .mnav-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--text); }
  .mnav-brand svg { width: 26px; height: 26px; }
  .mnav-close { width: 38px; height: 38px; border-radius: 50%; background: var(--control-bg); color: var(--text); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .mnav-close svg { width: 18px; height: 18px; }
  .mnav-list { flex: 1; overflow-y: auto; padding: 10px 14px calc(24px + env(safe-area-inset-bottom)); }
  .mnav-a { display: flex; align-items: center; gap: 12px; padding: 13px 10px; border-radius: 12px; color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
  .mnav-a svg { width: 20px; height: 20px; color: var(--text-dim); flex: none; }
  .mnav-a.active { background: var(--accent-soft); color: var(--accent); }
  .mnav-a.active svg { color: var(--accent); }
}

@keyframes mnavIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

body.mnav-open { overflow: hidden; }
body.mnav-open .island { display: none; }


:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── 滚动条: 保留浏览器原生样式 ── */
 .guest-home { width:auto; height:auto; inset:0; display:grid; grid-template-columns:minmax(0,1fr); place-items:center; position:fixed; overflow:hidden; background:transparent; color:var(--text); padding:24px; }
.guest-art { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.guest-art path { fill:none; stroke-linecap:round; stroke-linejoin:round; }
.guest-line-a { stroke:#30d158; stroke-width:7; opacity:.72; }
.guest-line-b { stroke:#64d2ff; stroke-width:5; opacity:.78; }
.guest-line-c { stroke:#ffd60a; stroke-width:6; opacity:.72; }
.guest-confetti-a { fill:#ff375f; }
.guest-confetti-b { fill:#bf5af2; }
.guest-confetti-c { fill:#ff9f0a; }
.guest-card { position:relative; z-index:1; text-align:center; padding:clamp(40px,7vw,72px) clamp(24px,6vw,64px); backdrop-filter:blur(18px) saturate(1.1); }
.guest-card h1 { margin:0 0 30px; font-size:clamp(32px,5vw,56px); line-height:1.14; letter-spacing:-.045em; }
.guest-card .btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-width:min(100%,240px); }
.guest-card .btn svg { width:17px; height:17px; }
@media (max-width:700px) { .guest-card { width:70vw; max-width:70vw; min-width:0; margin:0 auto; padding:40px 22px; } }
html:has(.guest-home) { background:#0d140f linear-gradient(135deg,#07110b,#08090c 52%,#111c12); }
html:has(.guest-home), body:has(.guest-home) { overflow:hidden; }
body:has(.guest-home) { background:transparent; }
html:has(.guest-home) body::before, html:has(.guest-home) body::after { display:none; }
