:root {
  --bg: #f3f6f8;
  --surface: #ffffff;
  --surface-2: #f8fafb;
  --ink: #142029;
  --muted: #6c7d8b;
  --brand: #0f6e7e;
  --brand-dark: #0a505d;
  --brand-soft: #e6f3f4;
  --accent: #e0a03c;
  --border: #e2e9ee;
  --danger: #d4504f;
  --shadow: 0 8px 30px rgba(20, 40, 55, .08);
  --shadow-lg: 0 20px 60px rgba(20, 40, 55, .16);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
button, input, textarea { font-family: inherit; }
button { cursor: pointer; }

/* ---------- shared ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; line-height: 1; transition: .18s ease;
  background: var(--brand); color: #fff;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.danger { background: #fff; color: var(--danger); border-color: #f0cfcf; }
.btn.danger:hover { background: #fff2f2; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; color: #43535f; }
.input, .textarea {
  width: 100%; border: 1px solid var(--border); background: #fff; border-radius: 10px;
  padding: 11px 13px; font-size: 14px; color: var(--ink); outline: none; transition: .18s;
}
.input:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,110,126,.12); }
.textarea { min-height: 78px; resize: vertical; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.6; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.badge.lock { background: #fff3e2; color: #a76b17; }
.badge.open { background: var(--brand-soft); color: var(--brand); }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty .big { font-size: 46px; margin-bottom: 12px; opacity: .55; }

/* ---------- toast ---------- */
#toast {
  position: fixed; top: 22px; left: 50%; transform: translate(-50%, -20px);
  z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; opacity: 0; transition: .25s ease;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-item {
  background: #142029; color: #fff; padding: 11px 18px; border-radius: 10px;
  font-size: 13px; box-shadow: var(--shadow-lg); max-width: 80vw;
}
.toast-item.err { background: #a63b3b; }
.toast-item.ok { background: #0f6e7e; }

/* ---------- login / share ---------- */
.auth-page {
  min-height: 100%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 15% -10%, #dcecef 0%, transparent 55%),
              radial-gradient(900px 500px at 95% 110%, #f6e9d5 0%, transparent 50%), var(--bg);
  padding: 24px;
}
.auth-card {
  width: 100%; max-width: 420px; background: var(--surface); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: 38px 36px; border: 1px solid rgba(255,255,255,.7);
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 13px; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--brand), #0a505d); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  box-shadow: 0 8px 18px rgba(15,110,126,.28);
}
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: .3px; }
.brand-sub { font-size: 11px; color: var(--muted); margin-top: 3px; letter-spacing: 1.2px; }
.auth-title { font-size: 23px; font-weight: 700; margin: 0 0 8px; }
.auth-desc { font-size: 13px; color: var(--muted); margin: 0 0 26px; line-height: 1.6; }
.auth-card .btn { width: 100%; height: 46px; margin-top: 4px; }
.auth-foot { margin-top: 22px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- admin ---------- */
.topbar {
  height: 66px; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; position: sticky; top: 0; z-index: 50;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.topbar .brand { margin: 0; }
.topbar .brand-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }
.topbar .brand-name { font-size: 16px; }
.topbar .brand-sub { display: none; }
.top-actions { display: flex; align-items: center; gap: 10px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 34px 0 24px; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 27px; margin: 0 0 6px; letter-spacing: -.4px; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; }

.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding-bottom: 60px; }
.album-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: .2s ease; cursor: pointer;
}
.album-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.album-cover {
  height: 152px; background: linear-gradient(135deg, #123c46, #0f6e7e 55%, #2a95a3);
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-cover .ph { color: rgba(255,255,255,.5); font-size: 44px; }
.album-cover .count {
  position: absolute; right: 10px; bottom: 10px; background: rgba(8,20,26,.66); color: #fff;
  font-size: 11px; padding: 4px 9px; border-radius: 99px; backdrop-filter: blur(4px);
}
.album-body { padding: 16px 18px 18px; }
.album-title { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.album-desc { font-size: 12px; color: var(--muted); min-height: 18px; margin: 0 0 14px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.album-stats { display: flex; gap: 14px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.album-stats span { display: inline-flex; align-items: center; gap: 4px; }
.share-row { display: flex; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.share-link {
  flex: 1; min-width: 0; font-size: 11px; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* detail panel */
.detail-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); background: none; border: 0; padding: 0; margin-bottom: 18px; }
.detail-back:hover { color: var(--brand); }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.detail-head h1 { font-size: 25px; margin: 0 0 6px; }
.detail-head p { margin: 0; font-size: 13px; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.panel h3 { margin: 0 0 18px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.panel h3 .dot { width: 6px; height: 16px; border-radius: 4px; background: var(--brand); }
.panel-count { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface-2); border-radius: 99px; padding: 2px 8px; }
.comment-manage-list { display: flex; flex-direction: column; gap: 10px; }
.comment-manage-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.comment-manage-item .cmi-body { flex: 1; min-width: 0; }
.cmi-meta { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.cmi-nick { font-size: 13px; font-weight: 600; color: var(--ink); }
.cmi-time { font-size: 11px; color: var(--muted); }
.cmi-text { font-size: 13px; line-height: 1.55; color: #43535f; word-break: break-word; white-space: pre-wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 680px) { .grid-2 { grid-template-columns: 1fr; } }

.dropzone {
  border: 2px dashed #cbd8de; border-radius: 14px; background: var(--surface-2);
  padding: 34px 20px; text-align: center; transition: .2s; cursor: pointer;
}
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-soft); }
.dropzone .icon { font-size: 38px; margin-bottom: 10px; opacity: .8; }
.dropzone .t { font-size: 14px; font-weight: 600; }
.dropzone .s { font-size: 12px; color: var(--muted); margin-top: 6px; }
.progress { height: 5px; border-radius: 99px; background: #e8eef1; overflow: hidden; margin-top: 16px; display: none; }
.progress i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }

.scene-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.scene-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.scene-thumb { height: 104px; background: #0f2a33; position: relative; }
.scene-thumb img { width: 100%; height: 100%; object-fit: cover; }
.scene-thumb .cover-tag { position: absolute; left: 7px; top: 7px; background: var(--accent); color: #fff; font-size: 10px; padding: 3px 7px; border-radius: 99px; }
.scene-info { padding: 10px 11px; }
.scene-info input {
  width: 100%; border: 1px solid transparent; background: transparent; font-size: 12px; font-weight: 600;
  padding: 4px 5px; border-radius: 6px; outline: none; color: var(--ink);
}
.scene-info input:hover, .scene-info input:focus { border-color: var(--border); background: #fff; }
.scene-actions { display: flex; gap: 6px; margin-top: 8px; }
.scene-actions button { flex: 1; font-size: 11px; padding: 6px 0; }

/* background music (admin) */
.switch-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #43535f; margin: 0 0 18px; cursor: pointer; }
.switch-row input { width: 16px; height: 16px; accent-color: var(--brand); }
.music-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.music-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.music-item .mi-icon { color: var(--brand); font-size: 18px; flex: 0 0 auto; }
.music-item .mi-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-item audio { height: 34px; max-width: 240px; flex: 0 1 auto; }
@media (max-width: 680px) { .music-item { flex-wrap: wrap; } .music-item audio { max-width: 100%; width: 100%; } }

/* modal */
.modal-mask {
  position: fixed; inset: 0; background: rgba(12,24,31,.55); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px);
}
.modal-mask.show { display: flex; }
.modal {
  width: 100%; max-width: 460px; background: #fff; border-radius: 18px; padding: 26px;
  box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto;
}
.modal h3 { margin: 0 0 6px; font-size: 19px; }
.modal .sub { font-size: 12px; color: var(--muted); margin: 0 0 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* ---------- viewer ---------- */
.viewer-page { height: 100%; background: #061217; color: #fff; position: relative; overflow: hidden; }
#panorama { position: absolute; inset: 0; }
.viewer-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; background: linear-gradient(to bottom, rgba(3,12,16,.82), transparent);
  pointer-events: none;
}
.viewer-top > * { pointer-events: auto; }
.vt-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.viewer-title { min-width: 0; flex: 1; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.viewer-title .vt-name { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-title .vt-sub { display: block; font-size: 10px; font-weight: 400; opacity: .72; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 99px;
  background: rgba(10,25,32,.55); border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.85);
  font-size: 10px; font-weight: 600; backdrop-filter: blur(6px); white-space: nowrap; flex: 0 0 auto;
}
.view-badge svg { opacity: .85; width: 12px; height: 12px; }
.viewer-tools { display: flex; gap: 5px; flex: 0 0 auto; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(10,25,32,.55); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; backdrop-filter: blur(6px); transition: .18s; position: relative; padding: 0; flex: 0 0 auto;
}
.icon-btn:hover { background: rgba(15,110,126,.85); border-color: rgba(255,255,255,.45); }
.icon-btn.active { background: var(--brand); border-color: var(--brand); }
.music-icon.active:not(.muted) { color: #6ee7d8; border-color: rgba(110,231,216,.55); }
.music-icon.muted { opacity: .45; }
@media (max-width: 560px) {
  .viewer-top { gap: 6px; padding: 8px 10px; }
  .vt-left { gap: 6px; }
  .viewer-tools { gap: 3px; }
  .icon-btn { width: 27px; height: 27px; font-size: 13px; border-radius: 7px; }
  .icon-btn svg { width: 14px; height: 14px; }
  .view-badge { padding: 3px 6px; font-size: 9px; }
  .view-badge svg { width: 11px; height: 11px; }
  .viewer-title .vt-name { font-size: 13px; }
  .viewer-title .vt-sub { font-size: 9px; }
}
.viewer-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 11; padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(3,12,16,.95), rgba(3,12,16,.7) 70%, transparent);
  pointer-events: none; transform: translateY(105%); opacity: 0; visibility: hidden;
  transition: transform .32s cubic-bezier(.22,.61,.36,1), opacity .28s ease, visibility .32s;
}
.viewer-bottom.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.strip-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 4px; font-size: 12px; font-weight: 600; letter-spacing: .5px; color: rgba(255,255,255,.85); pointer-events: auto; }
.strip-head button { width: 26px; height: 26px; border: 0; border-radius: 8px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); font-size: 13px; cursor: pointer; }
.strip-head button:hover { background: rgba(255,255,255,.2); color: #fff; }
.guide-fab {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 12;
  display: none; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,.32); background: rgba(10,25,32,.82); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: .5px; backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,.45); cursor: pointer; transition: .18s;
}
.guide-fab:hover { background: rgba(15,110,126,.9); border-color: rgba(255,255,255,.5); }
.guide-fab.active { background: var(--brand); border-color: var(--brand); }
.guide-fab.hidden-by-panel { opacity: 0; pointer-events: none; }
.scene-strip { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 2px; pointer-events: auto; scrollbar-width: thin; }
.scene-chip {
  flex: 0 0 auto; width: 104px; border-radius: 10px; overflow: hidden; border: 2px solid transparent;
  background: rgba(255,255,255,.08); cursor: pointer; transition: .18s; padding: 0; color: #fff; text-align: left;
}
.scene-chip.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(224,160,60,.3); }
.scene-chip img { width: 100%; height: 62px; object-fit: cover; display: block; }
.scene-chip span { display: block; font-size: 10px; padding: 6px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-note {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 9;
  max-width: min(520px, 80vw); background: rgba(6,18,23,.72); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 18px 22px; font-size: 14px; line-height: 1.7; text-align: center;
  backdrop-filter: blur(8px); display: none; pointer-events: none;
}
.viewer-note.show { display: block; }

/* ---------- 打点评论 (viewer) ---------- */
/* 打点模式下全景显示十字光标 */
#panorama.pinning { cursor: crosshair; }
#panorama.pinning canvas { cursor: crosshair; }

/* 评论图层：盖在全景上，自身不吃事件；标记每帧由 JS 投影定位，钉死在图上 */
#pinLayer {
  position: absolute; inset: 0; z-index: 6;
  pointer-events: none; overflow: hidden;
}
/* 地图标记点（自绘，不再用 Pannellum 热点）
   left/top 固定在 0，靠 JS 设 transform: translate(x,y) 跟随视角，避免任何 3D 投影偏移 */
.pin-marker {
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.pin-dot {
  width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--accent); border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.5);
  position: relative; transition: transform .18s;
}
.pin-dot::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px;
  background: #fff; border-radius: 50%; transform: translate(-50%, -50%);
}
.pin-marker:hover .pin-dot { transform: rotate(-45deg) scale(1.2); }

/* 常驻评论标签（挂在打点处，随标记 2D 投影移动，不依赖 3D 变换） */
.pin-label {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(220px, 60vw);
  padding: 8px 11px;
  border-radius: 11px;
  /* 不用 backdrop-filter：微信/部分安卓内核会渲染异常甚至整块消失。
     用偏深的半透明底 + 强文字阴影，既看得见又不压主图。 */
  background: rgba(6,16,22,.55);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
  color: #fff;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 6px rgba(0,0,0,.7);
  pointer-events: none;      /* 标签不拦截全景拖动/打点 */
}
.pin-label::after {
  content: '';
  position: absolute; left: 50%; bottom: -6px;
  width: 10px; height: 10px; margin-left: -5px;
  background: rgba(6,16,22,.55);
  border-right: 1px solid rgba(255,255,255,.16);
  border-bottom: 1px solid rgba(255,255,255,.16);
  transform: rotate(45deg);
}
.pin-label-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.pin-label-name { font-size: 12px; font-weight: 700; color: var(--accent); }
.pin-label-time { font-size: 9px; color: rgba(255,255,255,.68); }
.pin-label-text {
  font-size: 11px; line-height: 1.5; color: rgba(255,255,255,.98);
  word-break: break-word; white-space: normal;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4;
  overflow: hidden;
}
@media (max-width: 680px) {
  .pin-label { max-width: min(180px, 56vw); padding: 7px 9px; bottom: 22px; }
  .pin-label-text { font-size: 10px; -webkit-line-clamp: 3; }
}

/* 打点模式提示条 */
.pin-hint {
  position: absolute; left: 50%; top: 68px; transform: translateX(-50%); z-index: 14;
  align-items: center; gap: 14px; padding: 9px 10px 9px 16px; border-radius: 99px;
  background: rgba(9,22,28,.92); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0,0,0,.4);
  color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pin-hint button {
  border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 99px;
  padding: 5px 14px; font-size: 12px; font-weight: 600; cursor: pointer;
}

/* 打点输入框 */
.pin-composer {
  position: absolute; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 15; width: min(360px, calc(100vw - 28px));
  padding: 14px; border-radius: 14px; background: rgba(9,22,28,.96);
  border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.pin-composer .cp-name,
.pin-composer .cp-text {
  width: 100%; box-sizing: border-box; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14); border-radius: 9px; color: #fff;
  font-size: 13px; padding: 9px 11px; outline: none; resize: none;
  font-family: var(--font);
}
.pin-composer .cp-name { margin-bottom: 8px; }
.pin-composer .cp-text::placeholder,
.pin-composer .cp-name::placeholder { color: rgba(255,255,255,.4); }
.pin-composer .cp-name:focus,
.pin-composer .cp-text:focus { border-color: rgba(255,255,255,.45); }
.pc-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.pc-actions button {
  border: 0; border-radius: 9px; padding: 8px 18px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.pc-cancel { background: rgba(255,255,255,.12); color: #fff; }
.pc-send { background: var(--brand); color: #fff; }
.pc-send:hover { background: #0f8fa0; }
.pc-send:disabled { opacity: .5; cursor: default; }

@media (max-width: 680px) {
  .view-badge { padding: 4px 8px; }
  .pin-hint { top: 58px; font-size: 11px; }
}
.nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(10,25,32,.5); color: #fff;
  font-size: 22px; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px);
}
.nav-arrow:hover { background: var(--brand); }
.nav-arrow.prev { left: 18px; }
.nav-arrow.next { right: 18px; }
.viewer-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: rgba(255,255,255,.6); }
.viewer-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 5; font-size: 13px; color: rgba(255,255,255,.75); }

/* 背景音乐：界面零占用，仅顶栏一个小音符图标，无面板、无需隐藏 */
