/* ============ 奶蛙目击情报站 · 河海大学 ============ */
:root {
  --bg: #fff9dc;
  --bg-soft: #fffdf2;
  --card: #ffffff;
  --ink: #33322e;
  --ink-2: #6b6a62;
  --line: #efe9cf;
  --blue: #0a84e8;
  --blue-deep: #0877d7;
  --red: #e2504c;
  --red-live: #ff3b30;
  --yellow: #ffd94e;
  --green: #2e9e5b;
  --green-soft: #cbe6e7;
  --pink-soft: #fff0f1;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(160, 140, 40, 0.12);
  --shadow-soft: 0 4px 14px rgba(160, 140, 40, 0.10);
  --tabbar-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 15% -5%, #fff3b8 0%, transparent 60%),
    radial-gradient(1000px 500px at 90% 0%, #e8f4ff 0%, transparent 55%),
    var(--bg);
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: #fff; padding: 8px 14px; z-index: 99; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.site-shell { max-width: 760px; margin: 0 auto; }

/* ============ 顶部世界公告 ============ */
.world-announcement {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 251, 226, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.world-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; font-size: 13px;
}
.world-brand { display: flex; align-items: center; gap: 10px; color: #8a6d1f; font-weight: 600; white-space: nowrap; }
.online-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #ffffffc9; border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 999px; font-weight: 500; color: var(--ink-2);
}
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #35c759; box-shadow: 0 0 0 3px #35c75922; }
.online-badge strong { color: var(--ink); }
.world-ticker { flex: 1; overflow: hidden; min-width: 0; position: relative; height: 22px; }
.world-empty { color: #a89a6a; font-size: 12.5px; }
.world-strip { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.world-strip.is-paused, .world-track.is-paused { animation-play-state: paused; }
.world-track { display: flex; gap: 34px; padding-right: 34px; animation: ticker 36s linear infinite; }
.world-strip { animation: none; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.world-msg { white-space: nowrap; color: var(--ink-2); font-size: 13px; }
.world-msg b { color: var(--blue-deep); margin-right: 6px; font-weight: 600; }
.world-pause, .world-send {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  height: 30px; padding: 0 12px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.world-send { background: var(--blue); color: #fff; border-color: var(--blue); display: inline-flex; align-items: center; gap: 5px; }
.world-send:hover { background: var(--blue-deep); }

/* ============ 页面主体 ============ */
main { padding: 14px 14px calc(var(--tabbar-h) + 86px); }
main.no-tabbar { padding-bottom: 60px; }

.cloud-pill {
  display: flex; justify-content: center;
  margin: 4px 0 14px;
}
.cloud-pill span {
  background: #fffdf2; border: 1px dashed #e8d98f; color: #8a6d1f;
  font-size: 12px; padding: 5px 14px; border-radius: 999px;
}

/* ============ 英雄横幅 ============ */
.hero {
  position: relative; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid #ffffff88;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; display: flex; padding: 26px 22px 22px; min-height: 240px; }
.hero-copy { flex: 1 1 55%; }
.hero-sticker {
  display: inline-block; background: var(--blue); color: #fff;
  font-weight: 800; letter-spacing: 1px; font-size: 22px;
  padding: 4px 16px; border-radius: 10px; transform: rotate(-3deg);
  box-shadow: 0 4px 10px rgba(8, 119, 215, 0.35);
}
.hero-title {
  margin: 10px 0 6px; font-size: 40px; line-height: 1.18; font-weight: 900; letter-spacing: 2px;
}
.hero-title .hl {
  background: linear-gradient(transparent 58%, var(--yellow) 58% 92%, transparent 92%);
  padding: 0 4px;
}
.hero-pin { display: inline-block; transform: translateY(2px); margin-left: 4px; }
.hero-slogan { font-size: 15px; font-weight: 600; color: #4d4c44; margin: 4px 0 0; }
.hero-art { flex: 0 0 44%; position: relative; }
.hero-mascot {
  position: absolute; right: 2px; bottom: -6px; width: 168px;
  filter: drop-shadow(0 8px 14px rgba(120, 96, 20, 0.25));
}
.hero-bubble {
  position: absolute; left: -4px; top: 34px; background: #fff;
  border: 2px solid #2b2b2b; border-radius: 14px 14px 14px 3px;
  font-size: 12.5px; font-weight: 700; padding: 7px 10px; line-height: 1.5;
  box-shadow: 0 4px 8px rgba(0,0,0,.08); max-width: 110px;
}
.hero-bubble::after {
  content: "♥"; display: block; color: var(--red); font-size: 11px; text-align: right;
}
.hero-back {
  position: absolute; left: 12px; top: 12px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%;
  background: #ffffffd9; border: 1px solid #ffffff; color: var(--ink);
  font-size: 18px; cursor: pointer; display: grid; place-items: center; text-decoration: none;
}
.hero-notify {
  position: absolute; right: 12px; top: 12px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%;
  background: #ffffffd9; border: 1px solid #ffffff; cursor: pointer; display: grid; place-items: center;
}
.hero-notify .dot {
  position: absolute; right: 7px; top: 7px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--red-live);
}

/* ============ 通用卡片/区块 ============ */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); border: 1px solid #ffffffb8;
  padding: 16px;
}
.section { margin-top: 16px; }
.section-head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 10px; }
.section-head h2 { margin: 0; font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.section-head .more { margin-left: auto; color: var(--ink-2); font-size: 13.5px; text-decoration: none; }
.section-head .more:hover { color: var(--blue-deep); }
.badge-live {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--red-live); color: #fff; font-size: 11px; font-weight: 800;
  border-radius: 999px; padding: 3px 10px; letter-spacing: 1px;
}
.badge-live .wave { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ============ LIVE 最新目击 ============ */
.live-card { display: flex; gap: 14px; }
.live-photo {
  flex: 0 0 46%; border-radius: 12px; overflow: hidden; background: #f3efdd;
  aspect-ratio: 4 / 3; position: relative;
}
.live-photo img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.live-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.live-place { font-weight: 800; font-size: 16.5px; display: flex; align-items: center; gap: 6px; }
.live-time { color: var(--ink-2); font-size: 13px; display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; }
.live-note { color: var(--ink-2); font-size: 13.5px; margin-top: 8px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.live-like { margin-top: auto; display: flex; justify-content: flex-end; }
.empty-tip { color: #a89a6a; font-size: 13.5px; padding: 18px 0; text-align: center; }

/* ============ 目击缩略卡 ============ */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.shot {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
}
.shot-photo { aspect-ratio: 1 / 0.9; background: #f3efdd; overflow: hidden; cursor: zoom-in; }
.shot-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.shot:hover .shot-photo img { transform: scale(1.05); }
.shot-meta { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 5px; }
.shot-place { font-size: 13px; font-weight: 700; 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; color: var(--ink-2); font-size: 12px; }
.like-btn {
  display: inline-flex; align-items: center; gap: 4px; border: none; background: none;
  color: var(--ink-2); font-size: 12.5px; cursor: pointer; padding: 2px 4px; border-radius: 8px;
}
.like-btn:hover { background: var(--pink-soft); }
.like-btn.is-liked { color: var(--red); font-weight: 700; }
.like-btn.is-liked svg { fill: var(--red); }
.shot-open {
  margin-top: 2px; border: 1px solid #dfe9f5; background: #f4f9ff; color: var(--blue-deep);
  font-size: 12.5px; border-radius: 999px; padding: 6px 0; cursor: pointer;
}
.shot-open:hover { background: #eaf3ff; }

/* ============ 分段选择器(校区切换) ============ */
.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0;
  background: #f1f4f8; border-radius: 12px; padding: 4px; margin: 10px 0 12px;
}
.seg button {
  border: none; background: none; padding: 9px 6px; border-radius: 9px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2); cursor: pointer;
  transition: all .18s;
}
.seg button.is-active { background: var(--blue); color: #fff; box-shadow: 0 3px 8px rgba(10, 132, 232, .3); }

/* ============ 地图 ============ */
.map-wrap {
  position: relative;
  z-index: 0;              /* 建立层叠上下文，把 Leaflet 内部高 z-index 关在地图内 */
  isolation: isolate;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
}
#map, #pick-map, #foot-map { height: 380px; background: #e8efe2; }
.map-hint { color: var(--ink-2); font-size: 12.5px; margin: 8px 2px 0; }
.map-loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: #f6f7e9; color: #a89a6a; font-size: 13px; z-index: 5;
}
.map-zoomkit {
  position: absolute; right: 10px; bottom: 18px; z-index: 500;
  display: flex; flex-direction: column; gap: 6px;
}
.map-zoomkit button {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; font-size: 16px; cursor: pointer; box-shadow: var(--shadow-soft); color: var(--ink);
}
.leaflet-container { font: inherit; }
.naiwa-tag { filter: drop-shadow(0 3px 5px rgba(90,70,0,.35)); }
.naiwa-tag.is-active svg { animation: tagPulse 1.2s ease-in-out infinite; transform-origin: 50% 92%; }
@keyframes tagPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { margin: 10px 12px; font-family: var(--font); }
.pop-photo { width: 190px; height: 120px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.pop-place { font-weight: 800; font-size: 14px; }
.pop-meta { color: var(--ink-2); font-size: 12px; margin-top: 3px; }

/* ============ 上报表单 ============ */
.steps { display: flex; align-items: flex-start; gap: 0; margin: 6px 0 4px; }
.step { flex: 1; text-align: center; position: relative; color: var(--ink-2); font-size: 13.5px; }
.step .dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #eceff3; color: var(--ink-2); font-weight: 800; margin: 0 auto 6px;
  border: 2px solid #e3e7ec;
}
.step.is-done .dot, .step.is-active .dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.step.is-active { color: var(--blue-deep); font-weight: 700; }
.step-line { flex: 0 0 46px; height: 3px; background: #e3e7ec; border-radius: 3px; margin-top: 13px; }
.step-line.is-done { background: var(--blue); }

.form-block { margin-top: 14px; }
.form-block-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.form-block-head .idx {
  width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
}
.form-block-head h3 { margin: 0; font-size: 16.5px; font-weight: 800; }
.form-block-head .req { color: var(--red); font-weight: 900; }
.form-block-head .count { margin-left: auto; color: var(--ink-2); font-size: 13px; }

.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.up-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); }
.up-item img { width: 100%; height: 100%; object-fit: cover; }
.up-item .del {
  position: absolute; right: 5px; top: 5px; width: 22px; height: 22px; border-radius: 50%;
  background: #000000a6; color: #fff; border: none; cursor: pointer; font-size: 13px; line-height: 1;
}
.up-add {
  aspect-ratio: 1; border: 2px dashed #cfd8e6; border-radius: 12px; background: #f8fbff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--ink-2); font-size: 12.5px; cursor: pointer; text-align: center; padding: 6px;
}
.up-add:hover { border-color: var(--blue); color: var(--blue-deep); }
.up-add.hidden { display: none; }
.up-tip { color: #a89a6a; font-size: 12px; margin-top: 8px; }

.field { margin-top: 10px; }
.field label { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.field input[type="text"], .field textarea, .field select {
  width: 100%; border: 1.5px solid #e3e7ec; border-radius: 12px; padding: 11px 12px;
  font-size: 14.5px; font-family: inherit; background: #fbfcfe; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.field textarea { resize: vertical; min-height: 76px; }
.field .hint { font-size: 12px; color: #a89a6a; margin-top: 5px; }

.submit-row { margin-top: 18px; }
.btn-locate {
  display: block; width: 100%; margin-top: 10px;
  border: 1.5px solid var(--blue); background: #f2f9ff; color: var(--blue-deep);
  font-size: 14.5px; font-weight: 700; padding: 11px; border-radius: 12px; cursor: pointer;
}
.btn-locate:hover { background: #e6f2ff; }
.btn-locate:disabled { opacity: .6; cursor: wait; }
.btn-primary {
  width: 100%; border: none; background: linear-gradient(135deg, #ffa23a, #ff7d52);
  color: #fff; font-size: 16.5px; font-weight: 800; padding: 14px; border-radius: 14px;
  cursor: pointer; box-shadow: 0 8px 18px rgba(255, 141, 66, .35);
}
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-blue {
  width: 100%; border: none; background: var(--blue); color: #fff; font-size: 15.5px;
  font-weight: 700; padding: 13px; border-radius: 14px; cursor: pointer;
}
.btn-ghost {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 9px 18px; font-size: 14px; cursor: pointer;
}
.form-error { color: var(--red); background: var(--pink-soft); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-top: 12px; }

/* 成功页 */
.success-card { text-align: center; padding: 34px 18px; }
.success-card .big { font-size: 44px; }
.success-card h2 { margin: 10px 0 6px; }
.success-card p { color: var(--ink-2); font-size: 14px; }
.success-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

/* ============ 列表页 ============ */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.chip {
  border: 1px solid var(--line); background: #fffdf6; color: var(--ink-2);
  border-radius: 999px; padding: 7px 14px; font-size: 13.5px; cursor: pointer;
}
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.report-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.report-row:last-child { border-bottom: none; }
.report-thumb { flex: 0 0 96px; height: 96px; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #f3efdd; }
.report-thumb img { width: 100%; height: 100%; object-fit: cover; }
.report-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.report-place { font-weight: 800; font-size: 15px; }
.report-note { color: var(--ink-2); font-size: 13.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.report-foot { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 12.5px; margin-top: auto; }
.report-foot .like-btn { margin-left: auto; font-size: 13px; }

/* ============ 统计页 ============ */
.countdown-card { position: relative; }
.countdown-title { text-align: center; color: var(--ink-2); font-size: 13px; margin: 4px 0 8px; }
.countdown-head { text-align: center; font-size: 30px; font-weight: 900; color: var(--red); margin: 0 0 12px; letter-spacing: 2px; }
.countdown-box {
  background: #232d3f; color: #fff; border-radius: 14px; padding: 14px 12px;
  text-align: center; font-size: 30px; font-weight: 800; letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}
.countdown-box small { display: block; font-size: 12px; color: #b9c4d8; letter-spacing: 4px; margin-top: 6px; font-weight: 500; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.stat-cell { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; }
.stat-cell .label { color: var(--ink-2); font-size: 13px; }
.stat-cell .num { font-size: 26px; font-weight: 900; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.stat-cell .num small { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-left: 3px; }
.stat-cell .sub { color: #a89a6a; font-size: 11.5px; }
.stat-cell.accent { background: linear-gradient(150deg, #fff8e2, #fffdf2); }
.top-list { list-style: none; margin: 0; padding: 0; }
.top-list li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.top-list li:last-child { border-bottom: none; }
.top-rank { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: #fff3c4; color: #8a6d1f; }
.top-list li:nth-child(1) .top-rank { background: var(--yellow); }
.top-list li:nth-child(2) .top-rank { background: #e8ecf2; color: #5b6470; }
.top-list li:nth-child(3) .top-rank { background: #f5e2cb; color: #996633; }
.top-name { flex: 1; font-weight: 600; }
.top-count { color: var(--ink-2); font-size: 13px; }
.sticky-note {
  position: absolute; right: 10px; top: -8px; width: 118px; padding: 10px 10px 14px;
  background: #fff6b3; border-radius: 4px 14px 6px 10px; transform: rotate(6deg);
  font-size: 12px; font-weight: 700; color: #6d5a12; box-shadow: 0 6px 12px rgba(120,100,20,.18);
  line-height: 1.5;
}
.sticky-note::before {
  content: ""; position: absolute; left: 50%; top: -7px; margin-left: -30px;
  width: 60px; height: 14px; background: rgba(255,255,255,.5); transform: rotate(-2deg);
}

/* ============ 关于 ============ */
.about-hero { text-align: center; padding: 10px 0 4px; }
.about-hero .hello { color: var(--blue-deep); font-weight: 900; letter-spacing: 3px; font-size: 14px; }
.about-hero h2 { font-size: 26px; margin: 8px 0; }
.how-list { list-style: none; padding: 0; margin: 0; }
.how-list li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.how-list li:last-child { border-bottom: none; }
.how-ico { flex: 0 0 40px; height: 40px; border-radius: 12px; background: #fff3c4; display: grid; place-items: center; font-size: 20px; }
.how-list b { display: block; margin-bottom: 2px; }
.how-list p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }

@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.postcard {
  background: #fffdf2; border: 1px solid #eadfae; border-radius: 14px; padding: 16px;
  text-align: left; margin-top: 12px; position: relative;
}
.postcard::before {
  content: ""; position: absolute; right: 12px; top: 10px; width: 18px; height: 24px; opacity: .75;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 42"><path d="M16 41C16 41 4.5 25.5 4.5 15.5a11.5 11.5 0 1 1 23 0C27.5 25.5 16 41 16 41Z" fill="%23ffc917" stroke="%235c4a06" stroke-width="2.2"/></svg>') no-repeat center / contain;
}
.postcard .spot { color: var(--blue-deep); font-weight: 800; font-size: 15px; }
.postcard p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.7; color: #55534a; }
.postcard .meta { color: #a89a6a; font-size: 12px; margin-top: 8px; }

/* ============ 底部导航 ============ */
.tabbar {
  position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%);
  width: min(688px, calc(100% - 24px)); height: var(--tabbar-h);
  background: #ffffffee; backdrop-filter: blur(12px);
  border: 1px solid #ffffff; border-radius: 20px; box-shadow: 0 12px 30px rgba(120, 100, 30, .18);
  display: flex; z-index: 55; overflow: hidden;
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: #8b8a80; font-size: 11.5px; font-weight: 600; position: relative;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.is-active { color: var(--red); }
.tabbar a.is-active::before {
  content: ""; position: absolute; inset: 7px 12px; background: var(--pink-soft);
  border-radius: 13px; z-index: -1;
}

/* ============ 弹幕输入弹窗 ============ */
.danmaku-mask, .lightbox-mask {
  position: fixed; inset: 0; background: rgba(30, 26, 10, .45); z-index: 90;
  display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px);
}
.danmaku-card {
  width: min(360px, 100%); background: #fff; border-radius: 18px; padding: 18px;
  box-shadow: var(--shadow);
}
.danmaku-card h3 { margin: 0 0 12px; font-size: 17px; }
.danmaku-card label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.danmaku-card input, .danmaku-card textarea {
  width: 100%; margin-top: 5px; border: 1.5px solid #e3e7ec; border-radius: 10px;
  padding: 9px 11px; font-size: 14px; font-family: inherit;
}
.danmaku-card input:focus, .danmaku-card textarea:focus { outline: none; border-color: var(--blue); }
.danmaku-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.btn-primary.sm { width: auto; padding: 9px 20px; font-size: 14px; border-radius: 999px; background: var(--blue); box-shadow: none; }
.danmaku-error { color: var(--red); font-size: 13px; margin: 4px 0 8px; }

/* ============ 图片灯箱 ============ */
.lightbox-mask { z-index: 95; cursor: zoom-out; }
.lightbox-card { max-width: min(560px, 94vw); }
.lightbox-card img { border-radius: 14px; max-height: 62vh; object-fit: contain; margin: 0 auto; }
.lightbox-meta { background: #fff; border-radius: 14px; padding: 14px 16px; margin-top: 10px; }
.lightbox-meta .row { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.lightbox-meta .sub { color: var(--ink-2); font-size: 13px; margin-top: 5px; }
.lightbox-meta .note { font-size: 13.5px; margin-top: 8px; color: var(--ink); line-height: 1.7; }
.lightbox-meta .like-btn { margin-left: auto; font-size: 14px; }
.card > .pin-ico { width: 44px; height: 58px; display: block; margin: 0 auto 12px; }
.lightbox-close {
  position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%;
  background: #ffffffd9; border: none; font-size: 17px; cursor: pointer;
}

/* ============ 页脚 ============ */
.site-footer { text-align: center; color: #a89a6a; font-size: 13px; padding: 26px 0 10px; line-height: 2; }
.site-footer .brand-line { color: #8a877a; }
.site-footer a { color: var(--blue-deep); text-decoration: none; }

/* ============ 响应式 ============ */
@media (max-width: 560px) {
  .hero-title { font-size: 30px; }
  .hero-mascot { width: 128px; }
  .hero-bubble { max-width: 92px; font-size: 11px; top: 20px; }
  .hero-inner { min-height: 200px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .live-card { flex-direction: column; }
  .live-photo { flex-basis: auto; }
  .world-brand span:first-child { display: none; }
  #map, #pick-map, #foot-map { height: 320px; }
  .sticky-note { position: static; transform: rotate(3deg); margin: 0 auto 10px; width: 150px; }
}
@media (min-width: 900px) {
  body { background-attachment: fixed; }
}

/* 小坐标旗图标(替代 emoji，与地图标记同形同色) */
.pin-ico {
  width: 15px; height: 20px; vertical-align: -0.4em;
  filter: drop-shadow(0 1px 2px rgba(90, 70, 0, .3));
}
.success-card .big .pin-ico { width: 44px; height: 58px; vertical-align: baseline; }
.btn-primary .pin-ico { width: 16px; height: 21px; vertical-align: -0.45em; }
.stat-cell .label .pin-ico { width: 14px; height: 18px; vertical-align: -0.35em; }

/* ============ 图标工厂(NW.ico) 尺寸与对齐 ============ */
.ico { width: 1.1em; height: 1.1em; vertical-align: -0.2em; }
.world-pause .ico { width: 13px; height: 13px; vertical-align: middle; display: block; margin: 0 auto; }
.hero-back .ico { width: 17px; height: 17px; vertical-align: middle; }
.cloud-pill .ico { width: 16px; height: 13px; vertical-align: -0.12em; }
.how-ico .ico { width: 24px; height: 24px; }
.stat-cell .label .ico { width: 15px; height: 15px; vertical-align: -0.25em; }
.btn-blue .ico, .btn-primary .ico { width: 16px; height: 21px; vertical-align: -0.4em; }
.section-head .ico { width: 20px; height: 20px; vertical-align: -0.25em; }
.map-loading .ico { width: 18px; height: 18px; vertical-align: -0.3em; margin-right: 4px; }
.field label .ico { width: 15px; height: 15px; vertical-align: -0.25em; }
.pop-place .ico, .pop-meta .ico, .top-name .ico, .report-note .ico, .live-note .ico, .note .ico { width: 13px; height: 13px; vertical-align: -0.18em; }

/* 举报按钮 */
.flag-btn {
  border: none; background: none; color: #a89a6a; font-size: 12px;
  cursor: pointer; padding: 2px 6px; border-radius: 8px; margin-left: 8px;
}
.flag-btn:hover { background: var(--pink-soft); color: var(--red); }
.flag-btn:disabled { cursor: default; opacity: .75; }
.report-foot .flag-btn { margin-left: auto; }

/* 作者邮箱按钮 */
.author-mail {
  display: inline-block; padding: 10px 22px; border-radius: 999px;
  background: #fff3c4; border: 1.5px solid #e8d98f; color: #6d5a12;
  font-size: 14.5px; font-weight: 700; text-decoration: none;
}
.author-mail:hover { background: #ffeead; }
.btn-locate .ico { width: 16px; height: 16px; vertical-align: -0.3em; }
.btn-blue .ico.ico-plane, .btn-primary .ico.ico-plane { width: 17px; height: 17px; vertical-align: -0.3em; }

/* TOP5 行的校区小标签 */
.top-campus {
  flex: 0 0 auto; font-size: 11px; font-weight: 600; color: var(--blue-deep);
  background: #eaf4ff; border-radius: 6px; padding: 2px 7px;
}

/* 关于页：奶龙社二维码 */
#club-qr { scroll-margin-top: 70px; }
.club-qr {
  display: block; width: min(320px, 78%); margin: 0 auto;
  border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
