/* ==========================================================================
   奶蛙目击情报站 · 海南大学 —— 全站样式
   配色：奶黄主题 + 椰绿点缀，圆角卡片、底部五栏导航、移动优先
   ========================================================================== */

:root {
  --yan: #ffc917;
  --yan-deep: #f0b400;
  --yan-soft: #fff3c4;
  --yan-wash: #fff9e3;
  --paper: #fffdf6;
  --bg: #fff9dc;
  --ink: #2f2c26;
  --ink-2: #6d675c;
  --ink-3: #9c9587;
  --line: #ece3cb;
  --line-soft: #f4eeda;
  --ink-brown: #5c4a06;
  --blue: #2f8fd8;
  --blue-deep: #1f6fae;
  --green: #63b06a;
  --green-soft: #e6f6e6;
  --red: #e2504c;
  --shadow-sm: 0 1px 2px rgba(92, 74, 6, 0.06), 0 2px 8px rgba(92, 74, 6, 0.05);
  --shadow: 0 2px 6px rgba(92, 74, 6, 0.07), 0 10px 26px rgba(92, 74, 6, 0.08);
  --shadow-lg: 0 18px 44px rgba(92, 74, 6, 0.18);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --shell: 640px;
  --tabbar-h: 62px;
  --z-header: 60;
  --z-tabbar: 60;
  --z-mask: 200;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.01em; }

.ico { width: 1em; height: 1em; vertical-align: -0.14em; display: inline-block; }
/* data-ico 占位符（<i data-ico="...">）原地替换后的容器 */
.ico-host { display: inline-flex; align-items: center; justify-content: center; width: 1.05em; height: 1.05em; vertical-align: -0.16em; }
.ico-host > svg { width: 100%; height: 100%; }
.pin-ico { width: 17px; height: 22px; vertical-align: -4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- 顶部世界公告 */

.world-announcement {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(47, 44, 38, 0.96);
  color: #fff8e0;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}
.world-bar {
  max-width: var(--shell); margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 10px;
}
.world-brand { display: flex; align-items: center; gap: 8px; flex: none; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.world-brand > span:first-child { display: inline-flex; align-items: center; gap: 4px; color: var(--yan); }
.online-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, 0.12); border-radius: 999px;
  padding: 1px 9px 1px 7px; font-size: 11.5px; font-weight: 500; color: #fff; white-space: nowrap;
}
.online-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #58d97a;
  box-shadow: 0 0 0 3px rgba(88, 217, 122, 0.24); animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.45; } }

.world-ticker { flex: 1; overflow: hidden; white-space: nowrap; min-width: 40px; position: relative; }
.world-strip { display: flex; width: max-content; }
.world-track { display: flex; gap: 26px; padding-right: 26px; animation: ticker 34s linear infinite; }
.world-track.is-paused, .world-strip.is-paused .world-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.world-msg { font-size: 12.5px; color: #fff2c9; }
.world-msg b { color: var(--yan); margin-right: 6px; }
.world-empty { font-size: 12.5px; color: rgba(255, 248, 224, 0.6); }

.world-pause, .world-send {
  flex: none; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.14);
  color: #fff8e0; height: 26px; display: inline-flex; align-items: center; justify-content: center;
}
.world-pause { width: 26px; }
.world-pause:hover, .world-send:hover { background: rgba(255, 255, 255, 0.26); }
.world-send { padding: 0 11px; gap: 4px; font-size: 12px; font-weight: 700; }

/* ---------------------------------------------------------------- 页壳 */

.site-shell { max-width: var(--shell); margin: 0 auto; padding: 0 12px calc(var(--tabbar-h) + 22px); }
main { display: block; }

/* ---------------------------------------------------------------- Hero */

.hero {
  position: relative; overflow: hidden;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  margin: 0 -12px 14px;
  min-height: 218px;
  background: var(--yan-soft);
  box-shadow: var(--shadow);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero-inner { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 20px 18px 18px; }
.hero-copy { flex: 1; min-width: 0; }
.hero-sticker {
  display: inline-block; background: var(--ink); color: var(--yan);
  font-weight: 800; font-size: 11.5px; letter-spacing: 1.6px;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 9px;
}
.hero-title { font-size: 30px; line-height: 1.16; color: #3a3323; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }
.hero-title .hl { color: #d98324; }
.hero-pin { display: inline-block; margin-left: 4px; vertical-align: 2px; }
.hero-slogan { margin: 9px 0 0; font-size: 13.5px; color: #6a5c3a; font-weight: 600; }
.hero-art { position: relative; flex: none; }
.hero-mascot { width: 116px; filter: drop-shadow(0 10px 18px rgba(92, 74, 6, 0.28)); }
.hero-bubble {
  position: absolute; right: 84px; top: -6px; width: max-content; max-width: 132px;
  background: #fff; border: 2px solid var(--ink-brown); border-radius: 14px;
  padding: 6px 10px; font-size: 12px; font-weight: 800; color: var(--ink-brown);
  line-height: 1.35; box-shadow: var(--shadow-sm);
}
.hero-bubble::after {
  content: ''; position: absolute; right: -6px; bottom: 10px;
  width: 10px; height: 10px; background: #fff;
  border-right: 2px solid var(--ink-brown); border-bottom: 2px solid var(--ink-brown);
  transform: rotate(-45deg);
}
.hero-back {
  position: absolute; left: 12px; top: 12px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); border: 1px solid var(--line);
  display: grid; place-items: center; box-shadow: var(--shadow-sm); text-decoration: none;
}
.hero-back .ico { width: 20px; height: 20px; }
/* 有返回按钮的页面：标题整体右移，避免与返回按钮重叠 */
.hero.has-back .hero-copy { padding-left: 46px; }

/* ---------------------------------------------------------------- 通用块 */

.cloud-pill { display: flex; justify-content: center; margin: 0 0 14px; }
.cloud-pill > span {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 14px; font-size: 12px; font-weight: 700; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.cloud-pill .ico { color: var(--blue); }

.section { margin-bottom: 14px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px; box-shadow: var(--shadow-sm);
}
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-head h2 { font-size: 16.5px; display: inline-flex; align-items: center; gap: 6px; }
.section-head h2 .ico { color: var(--yan-deep); width: 18px; height: 18px; }
.more { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.more:hover { color: var(--blue-deep); }

.badge-live {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.6px; padding: 2px 8px; border-radius: 999px;
}
.badge-live .wave {
  width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite;
}

.empty-tip { margin: 0; text-align: center; color: var(--ink-3); font-size: 13.5px; padding: 16px 6px; }
.empty-tip img { margin: 0 auto 8px; }

.btn-primary, .btn-blue, .btn-ghost {
  border: 0; border-radius: 12px; padding: 12px 18px;
  font-weight: 800; font-size: 14.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn-primary { background: linear-gradient(180deg, #ffd54a, var(--yan-deep)); color: #3f3306; box-shadow: 0 3px 0 #c89400, var(--shadow-sm); }
.btn-blue { background: linear-gradient(180deg, #4aa3e6, var(--blue-deep)); color: #fff; box-shadow: 0 3px 0 #175a90, var(--shadow-sm); width: 100%; }
.btn-ghost { background: var(--paper); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-primary:active, .btn-blue:active, .btn-ghost:active { transform: translateY(1px); filter: brightness(0.97); }
.btn-primary:disabled, .btn-blue:disabled { filter: grayscale(0.5) brightness(1.05); cursor: not-allowed; }

/* ---------------------------------------------------------------- 首页 LIVE */

.live-card { display: flex; gap: 13px; }
.live-photo {
  flex: none; width: 128px; height: 128px; border-radius: 13px; overflow: hidden;
  background: var(--yan-wash); border: 1px solid var(--line);
}
.live-photo img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.live-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.live-place { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 5px; }
.live-time { font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.live-note { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.live-note .ico { color: var(--yan-deep); }
.live-like { margin-top: auto; }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.shot { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.shot-photo { aspect-ratio: 4 / 3; background: var(--yan-wash); overflow: hidden; }
.shot-photo img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 0.25s ease; }
.shot-photo img:hover { transform: scale(1.04); }
.shot-meta { padding: 8px 10px 10px; }
.shot-place { font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-sub { display: flex; align-items: center; justify-content: space-between; margin: 5px 0 8px; font-size: 11.5px; color: var(--ink-3); }
.shot-open {
  width: 100%; border: 1px solid var(--line); background: var(--yan-wash);
  border-radius: 9px; padding: 6px 0; font-size: 12.5px; font-weight: 800; color: var(--ink-brown);
}
.shot-open:hover { background: var(--yan-soft); }

.like-btn {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 3px 10px; font-size: 12px; font-weight: 700; color: var(--ink-2);
}
.like-btn.is-liked { border-color: #f3bcb9; background: #fff2f1; color: var(--red); }
.like-btn.is-liked svg { fill: var(--red); }
.flag-btn {
  border: 0; background: none; color: var(--ink-3);
  font-size: 11.5px; padding: 2px 4px; text-decoration: underline;
}
.flag-btn:hover { color: var(--red); }
.flag-btn:disabled { text-decoration: none; cursor: default; }

/* ---------------------------------------------------------------- 目击记录列表 */

.chip-row, .seg {
  display: flex; gap: 7px; overflow-x: auto; padding-bottom: 3px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.chip-row::-webkit-scrollbar, .seg::-webkit-scrollbar { display: none; }
.chip, .seg button {
  flex: none; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 7px 15px; font-size: 13px; font-weight: 700;
  white-space: nowrap; box-shadow: var(--shadow-sm);
}
.chip.is-active, .seg button.is-active {
  background: linear-gradient(180deg, #ffd54a, var(--yan-deep));
  border-color: var(--yan-deep); color: #3f3306;
}
.chip-row { margin-bottom: 12px; }
.seg { margin: 10px 0 12px; }

.report-row {
  display: flex; gap: 12px; padding: 11px; margin-bottom: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.report-thumb {
  flex: none; width: 84px; height: 84px; border-radius: 11px; overflow: hidden;
  background: var(--yan-wash); border: 1px solid var(--line);
}
.report-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.report-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.report-place { font-weight: 800; font-size: 14.5px; display: flex; align-items: center; gap: 5px; }
.report-note { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.report-note .ico { color: var(--yan-deep); }
.report-foot { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 11.5px; color: var(--ink-3); }
.report-foot .like-btn { margin-left: auto; }

/* ---------------------------------------------------------------- 地图 */

.map-wrap { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
#map, #pick-map, #foot-map { width: 100%; height: 320px; background: #eef3ea; z-index: 1; }
#pick-map { height: 300px; }
#foot-map { height: 240px; }
.map-loading {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 6px;
  background: rgba(255, 253, 246, 0.92); color: var(--ink-2); font-size: 13.5px; font-weight: 700;
  z-index: 500; text-align: center; padding: 20px;
}
.map-loading .ico { width: 26px; height: 26px; color: var(--yan-deep); }
.map-hint { margin: 9px 0 0; font-size: 12.5px; color: var(--ink-2); }
.map-zoomkit {
  position: absolute; right: 10px; bottom: 10px; z-index: 600;
  display: flex; flex-direction: column; gap: 6px;
}
.map-zoomkit button {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95); font-size: 16px; font-weight: 800; color: var(--ink-brown);
  box-shadow: var(--shadow-sm); line-height: 1;
}
.map-zoomkit button:hover { background: var(--yan-soft); }

/* Leaflet 标记：奶蛙黄水滴 */
.naiwa-tag { background: none; border: 0; }
.naiwa-tag svg { width: 30px; height: 40px; filter: drop-shadow(0 3px 4px rgba(92, 74, 6, 0.3)); }
.naiwa-tag.is-active svg { transform: scale(1.12); transform-origin: bottom center; }

.leaflet-popup-content-wrapper { border-radius: 13px; box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 10px 12px; font: inherit; }
.pop-photo { width: 100%; max-height: 150px; object-fit: cover; border-radius: 9px; margin-bottom: 7px; }
.pop-place { font-weight: 800; font-size: 13.5px; display: flex; align-items: center; gap: 4px; }
.pop-meta { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 4px; margin-top: 3px; }

/* ---------------------------------------------------------------- 统计页 */

.count-card {
  background: linear-gradient(180deg, #fff8de, #fffdf6);
  border: 1px solid var(--line); border-radius: var(--r); padding: 18px 15px;
  text-align: center; box-shadow: var(--shadow-sm); margin-bottom: 14px;
}
.count-head { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.count-timer {
  margin-top: 8px; font-size: 30px; font-weight: 800; letter-spacing: 0.5px;
  color: #cf7a1a; font-variant-numeric: tabular-nums;
}
/* 还没有任何目击记录时，倒计时位置显示提示文字 */
.count-timer.is-empty { font-size: 19px; letter-spacing: 0; color: var(--ink-2); }
.count-sub { margin-top: 7px; font-size: 12.5px; color: var(--ink-3); }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.stat-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow-sm); }
.stat-card .num { font-size: 25px; font-weight: 800; color: #3a3323; }
.stat-card .num small { font-size: 12.5px; font-weight: 700; color: var(--ink-3); margin-left: 3px; }
.stat-card .label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.stat-card .label .ico { color: var(--yan-deep); }
.stat-card .sub { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

.top-list { list-style: none; margin: 0; padding: 0; }
.top-list li {
  display: flex; align-items: center; gap: 8px; padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft); font-size: 13.5px;
}
.top-list li:last-child { border-bottom: 0; }
.top-rank {
  flex: none; width: 21px; height: 21px; border-radius: 50%;
  background: var(--yan-soft); color: var(--ink-brown);
  font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.top-list li:nth-child(1) .top-rank { background: var(--yan); }
.top-name { flex: 1; min-width: 0; font-weight: 700; display: flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-campus { flex: none; font-size: 11.5px; color: var(--ink-3); }
.top-count { flex: none; font-size: 12px; font-weight: 800; color: var(--ink-brown); }

/* ---------------------------------------------------------------- 上报表单 */

.steps { display: flex; align-items: center; gap: 6px; margin: 0 2px 14px; }
.step { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.step .dot {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--ink-3);
}
.step.is-active { color: var(--ink); }
.step.is-active .dot { background: var(--yan); border-color: var(--yan-deep); color: #3f3306; }
.step.is-done { color: var(--green); }
.step.is-done .dot { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.step-line { flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.step-line.is-done { background: var(--green); }

.form-block-head { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.form-block-head .idx {
  width: 22px; height: 22px; border-radius: 7px; background: var(--yan);
  color: #3f3306; font-size: 12.5px; font-weight: 800; display: grid; place-items: center;
}
.form-block-head h3 { font-size: 15.5px; }
.form-block-head .req { color: var(--red); font-weight: 800; }
.form-block-head .count { margin-left: auto; font-size: 12px; color: var(--ink-3); }

.up-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.up-item, .up-add {
  position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  border: 1px dashed var(--line); background: var(--yan-wash);
}
.up-item { border-style: solid; }
.up-item img { width: 100%; height: 100%; object-fit: cover; }
.up-item .del {
  position: absolute; right: 4px; top: 4px; width: 22px; height: 22px;
  border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.55); color: #fff;
  font-size: 12px; line-height: 1; display: grid; place-items: center;
}
.up-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: var(--ink-2); font-size: 12px; font-weight: 700; text-align: center; cursor: pointer;
  border-style: dashed;
}
.up-add:hover { background: var(--yan-soft); }
.up-add.hidden { display: none; }
.up-tip { margin: 9px 0 0; font-size: 12px; color: var(--ink-3); }

.field { margin-top: 13px; }
.field > label { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field > label .ico { color: var(--yan-deep); }
.field input[type="text"], .field input[type="datetime-local"], .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 11px;
  padding: 11px 13px; background: #fff; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { border-color: var(--yan-deep); box-shadow: 0 0 0 3px rgba(255, 201, 23, 0.22); }
.field .hint { margin: 6px 0 0; font-size: 12px; color: var(--ink-3); }

.btn-locate {
  width: 100%; margin-top: 10px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; padding: 10px; font-size: 13.5px; font-weight: 700; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-shadow: var(--shadow-sm);
}
.btn-locate:hover { background: var(--yan-wash); }
.btn-locate:disabled { opacity: 0.6; cursor: default; }
.btn-locate .ico { color: var(--blue); }

.form-error {
  margin: 0 0 12px; padding: 11px 13px; border-radius: 11px;
  background: #fff2f1; border: 1px solid #f5cdca; color: #b83833; font-size: 13.5px; font-weight: 700;
}
.submit-row { margin-bottom: 14px; }
.submit-row .btn-primary { width: 100%; padding: 14px; font-size: 15.5px; }

.success-card { text-align: center; padding: 26px 18px; }
.success-card .big { display: flex; justify-content: center; margin-bottom: 10px; }
.success-card .big .pin-ico { width: 42px; height: 54px; }
.success-card h2 { font-size: 20px; margin-bottom: 8px; }
.success-card p { margin: 0 0 16px; color: var(--ink-2); font-size: 13.5px; }
.success-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.success-actions .btn-ghost { padding: 9px 15px; font-size: 13.5px; }

/* ---------------------------------------------------------------- 关于页 */

.prose { font-size: 14.5px; color: var(--ink); }
.prose p { margin: 0 0 12px; }
.prose h3 { font-size: 15.5px; margin: 0 0 6px; }
.prose .lead { font-size: 17px; font-weight: 800; line-height: 1.6; }
.prose .meta { font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; }
.figure { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin: 0 0 14px; box-shadow: var(--shadow-sm); }
.figure img { width: 100%; }
.hello { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--yan-deep); }
.howto { list-style: none; margin: 0; padding: 0; }
.howto li { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px dashed var(--line-soft); }
.howto li:last-child { border-bottom: 0; }
.howto .num {
  flex: none; width: 26px; height: 26px; border-radius: 9px; background: var(--yan-soft);
  color: var(--ink-brown); font-weight: 800; font-size: 13px; display: grid; place-items: center;
}
.howto b { display: block; font-size: 14px; margin-bottom: 2px; }
.howto span.desc { font-size: 13px; color: var(--ink-2); }
.qr-box { text-align: center; }
.qr-box img { width: 200px; margin: 0 auto 8px; border-radius: 13px; border: 1px solid var(--line); }
.qr-placeholder {
  width: 200px; height: 200px; margin: 0 auto 8px; border-radius: 13px;
  border: 2px dashed var(--line); background: var(--yan-wash);
  display: grid; place-items: center; text-align: center; padding: 16px;
  font-size: 12.5px; color: var(--ink-3); line-height: 1.6;
}

/* ---------------------------------------------------------------- 页脚 / 底栏 */

.site-footer { text-align: center; padding: 22px 6px 8px; font-size: 12.5px; color: var(--ink-3); line-height: 1.9; }
.site-footer .brand-line { font-size: 14px; font-weight: 800; color: var(--ink-2); letter-spacing: 0.3px; }

.tabbar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: var(--shell); z-index: var(--z-tabbar);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 253, 246, 0.97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -3px 16px rgba(92, 74, 6, 0.07);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: var(--tabbar-h); font-size: 11px; font-weight: 700; color: var(--ink-3); text-decoration: none;
}
.tabbar a:hover { text-decoration: none; color: var(--ink-2); }
.tabbar a.is-active { color: var(--ink-brown); }
.tabbar a.is-active svg { color: var(--yan-deep); }
.tabbar svg { width: 21px; height: 21px; }

/* ---------------------------------------------------------------- 弹窗：发弹幕 */

.danmaku-mask, .lightbox-mask {
  position: fixed; inset: 0; z-index: var(--z-mask);
  background: rgba(30, 26, 14, 0.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: fade 0.16s ease;
}
@keyframes fade { from { opacity: 0; } }
.danmaku-card {
  width: 100%; max-width: 400px; background: var(--paper); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--shadow-lg);
}
.danmaku-card h3 { font-size: 17px; margin-bottom: 14px; }
.danmaku-card label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 12px; }
.danmaku-card input, .danmaku-card textarea {
  width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 11px;
  padding: 10px 12px; background: #fff; outline: none; resize: vertical;
}
.danmaku-card input:focus, .danmaku-card textarea:focus { border-color: var(--yan-deep); box-shadow: 0 0 0 3px rgba(255, 201, 23, 0.22); }
.danmaku-error { margin: 0 0 10px; color: var(--red); font-size: 13px; font-weight: 700; }
.danmaku-actions { display: flex; gap: 9px; justify-content: flex-end; }
.danmaku-actions .btn-ghost, .danmaku-actions .btn-primary { padding: 10px 18px; font-size: 14px; }

/* ---------------------------------------------------------------- 灯箱 */

.lightbox-card {
  width: 100%; max-width: 420px; background: var(--paper); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); animation: pop 0.18s ease;
}
@keyframes pop { from { transform: scale(0.95); opacity: 0.4; } }
.lightbox-card > img { width: 100%; max-height: 64vh; object-fit: contain; background: #f3efe2; }
.lightbox-meta { padding: 13px 15px 15px; }
.lightbox-meta .row { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: 14.5px; flex-wrap: wrap; }
.lightbox-meta .row .like-btn { margin-left: auto; }
.lightbox-meta .sub { margin-top: 6px; font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.lightbox-meta .note { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); background: var(--yan-wash); border-radius: 10px; padding: 9px 11px; line-height: 1.6; }
.lightbox-meta .note .ico { color: var(--yan-deep); }

/* ---------------------------------------------------------------- 提示条 */

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 18px); transform: translateX(-50%);
  background: rgba(47, 44, 38, 0.94); color: #fff8e0; font-size: 13.5px; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; z-index: 300; box-shadow: var(--shadow);
  animation: fade 0.16s ease;
}

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 380px) {
  .hero-title { font-size: 26px; }
  .hero-mascot { width: 96px; }
  .hero-bubble { right: 66px; font-size: 11px; }
  .live-photo { width: 104px; height: 104px; }
  .count-timer { font-size: 25px; }
}

@media (min-width: 700px) {
  .shots { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .world-track, .online-dot, .badge-live .wave { animation: none !important; }
  * { transition: none !important; }
}
