* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue: #33a6ff;
  --blue-dark: #1e8ae8;
  --bg: #f4f6f9;
  --text: #333;
  --sub: #999;
  --border: #eee;
  --orange: #ff8800;
  --green: #52c41a;
}
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: calc(68px + env(safe-area-inset-bottom));
}

/* ===== 轮播：一屏一张 ===== */
.carousel-section {
  padding: 8px 16px 4px;
  background: var(--bg);
  overflow: hidden;
}
.card-city-sm {
  padding: 3px 10px;
  font-size: 13px;
  margin-bottom: 6px;
}
.card-tag-sm {
  font-size: 11px;
  margin-bottom: 4px;
}
.card-city {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.banner-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 8px;
}
.score-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 0;
  width: 100%;
  min-width: 0;
}
.score-head-left {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.score-head .uv-tip {
  grid-column: 2;
  justify-self: end;
  align-self: start;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.side-marine {
  flex: 1;
  min-width: 0;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-bottom: 3px;
  box-sizing: border-box;
}
.tide-data-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  column-gap: 0;
  min-width: 0;
}
.tide-left-row {
  grid-column: 1;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
}
.tide-marine-group {
  grid-column: 2;
  display: flex;
  align-items: flex-end;
  min-width: 0;
}
.tide-vdivider {
  flex-shrink: 0;
  align-self: stretch;
  width: 1px;
  min-height: 28px;
  margin-right: 5px;
  margin-bottom: 3px;
  background: rgba(255, 255, 255, 0.28);
}
.banner-city {
  align-self: flex-start;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  font-size: 16px;
  font-weight: 700;
}
.uv-tip {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  box-sizing: border-box;
  margin-bottom: 0;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 249, 196, 0.22);
  border: 1px solid rgba(255, 249, 196, 0.35);
}
.uv-icon { flex-shrink: 0; font-size: 11px; line-height: 1.35; margin-top: 1px; }
.uv-text {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  line-height: 1.35;
  opacity: 0.95;
}
.score-stars {
  flex-shrink: 0;
  font-size: 11px;
  color: #fff9c4;
  letter-spacing: 1px;
  line-height: 1;
}
.marine-line { white-space: nowrap; }
.tide-wind {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
.tide-wind-main { font-size: 12px; font-weight: 600; line-height: 1.4; }
.tide-wind-src { font-size: 9px; opacity: 0.65; line-height: 1.35; }
.banner-head-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.banner-head-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.banner-head-left .banner-city,
.banner-head-left .card-city {
  margin-bottom: 0;
}
.banner-head-row .uv-tip {
  flex-shrink: 1;
  max-width: 52%;
}
.banner-score-block {
  margin-bottom: 0;
}
.banner-kicker {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  opacity: 0.75;
}
.banner-score {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.score-value {
  margin-top: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.score-sub {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 400;
  opacity: 0.88;
  line-height: 1.3;
}
.score-sub.passed {
  opacity: 0.65;
}
.score-sub.score-current {
  color: #bbf7d0;
  font-weight: 600;
  opacity: 1;
}
.score-sub.score-next {
  color: #e0f2fe;
  opacity: 0.95;
}
.score-err {
  opacity: 0.95;
  color: #fde68a;
}
.tide-panel,
.service-panel {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
.tide-kicker {
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  opacity: 1;
  letter-spacing: 0.02em;
}
.marine-wind {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: 4px;
}
.tide-main {
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-height: 0;
}
.tide-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.marine-panel {
  flex-shrink: 0;
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
  padding-left: 10px;
  padding-bottom: 3px;
  box-sizing: border-box;
}
.marine-line {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.marine-line + .marine-line { margin-top: 3px; }
.marine-kicker { margin-bottom: 4px; }
.marine-row-label { font-size: 10px; opacity: 0.72; line-height: 1.3; }
.marine-gap { margin-top: 6px; }
.marine-wind { margin-top: 1px; font-size: 12px; font-weight: 600; line-height: 1.4; word-break: break-all; }
.marine-wave { margin-top: 1px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.marine-src { margin-top: 1px; font-size: 9px; opacity: 0.62; line-height: 1.3; }
.marine-muted { opacity: 0.75; font-weight: 500; }
.tide-body {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tide-value {
  display: flex;
  align-items: baseline;
  line-height: 1;
  flex-shrink: 0;
}
.tide-num {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 0.95;
}
.tide-unit {
  font-size: 13px;
  margin-left: 4px;
  opacity: 0.9;
  line-height: 1.3;
}
.tide-meta {
  flex: 0 0 auto;
  min-width: 0;
  padding-bottom: 3px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tide-tag {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.tide-tag-warn {
  color: #fff9c4;
}
.tide-hint {
  font-size: 11px;
  opacity: 0.75;
  line-height: 1.4;
}
.tide-hint-strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.95;
  color: #e0f2fe;
}
.tide-source {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  opacity: 0.65;
  line-height: 1.35;
}
.marine-note { opacity: 0.8; margin-top: 4px; font-size: 10px; line-height: 1.35; max-width: 100%; }
.marine-warn { color: #fde68a; opacity: 1; }
.gold-time {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.25;
}
.gold-hint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.75;
  line-height: 1.4;
}
.service-panel-gold .banner-kicker {
  margin-bottom: 0;
}
.banner-card {
  flex: 0 0 100%;
  width: 100%;
  min-height: 152px;
  scroll-snap-align: start;
  border-radius: 14px;
  padding: 14px 16px 14px;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.service-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-city .city-arr { font-size: 10px; opacity: .85; }
.banner-swiper {
  min-height: 152px;
  border-radius: 14px;
  overflow: hidden;
}
.card-body.merged {
  flex-direction: row;
  align-items: stretch;
  height: auto;
  margin-top: 2px;
}
.merge-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.merge-divider {
  width: 1px;
  margin: 0 12px;
  background: rgba(255,255,255,.28);
  flex-shrink: 0;
}
.merge-label {
  font-size: 11px;
  opacity: .88;
  margin-bottom: 2px;
}
.merge-live {
  display: flex;
  align-items: flex-end;
  line-height: 1;
}
.merge-num {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -1px;
}
.merge-unit {
  font-size: 14px;
  margin: 0 0 4px 4px;
  opacity: .9;
}
.merge-sub {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  opacity: .85;
}
.merge-stars {
  font-size: 14px;
  color: #fff9c4;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.merge-score {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.merge-label {
  font-size: 11px;
  opacity: .9;
  margin-bottom: 4px;
}
.compact-gold {
  height: auto;
  padding-top: 0;
}
.gold-time-sm {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.score-tip-sm {
  font-size: 11px;
  opacity: .85;
  margin-top: 4px;
}
.card-deco {
  position: absolute;
  right: -18px; top: -18px;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.card-deco::after {
  content: '';
  position: absolute;
  left: -20px; bottom: -24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.card-ocean { background: linear-gradient(145deg, #0369a1, #0ea5e9 45%, #38bdf8); }
.card-green { background: linear-gradient(145deg, #047857, #10b981 50%, #6ee7b7); }
.card-sunset { background: linear-gradient(145deg, #c2410c, #f97316 45%, #fdba74); }
.card-body {
  position: relative; z-index: 1;
  height: calc(100% - 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-body.row { flex-direction: row; align-items: center; justify-content: space-between; }
.card-body.center { align-items: center; text-align: center; }
.big-num { display: flex; align-items: flex-start; font-size: 52px; font-weight: 300; line-height: 1; letter-spacing: -2px; }
.big-unit { font-size: 16px; margin: 10px 0 0 4px; opacity: .9; }
.pill { display: inline-block; margin-top: 8px; font-size: 11px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.25); }
.pill-warn { background: rgba(255,200,0,.35); }
.col-side { text-align: right; }
.side-label { display: block; font-size: 11px; opacity: .85; }
.side-val { display: block; font-size: 22px; font-weight: 600; margin: 4px 0; }
.side-sub { display: block; font-size: 11px; opacity: .8; }
.score-stars { font-size: 18px; color: #fff9c4; letter-spacing: 3px; margin-bottom: 6px; }
.score-label { font-size: 24px; font-weight: 600; }
.score-tip { font-size: 12px; opacity: .85; margin-top: 6px; }
.gold-time { font-size: 22px; font-weight: 600; line-height: 1.35; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 0 6px;
}
.carousel-dots .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(0,0,0,.15);
  transition: all .25s;
  cursor: pointer;
}
.carousel-dots .dot.on {
  width: 18px;
  border-radius: 999px;
  background: var(--blue);
}

.moji-head {
  background: linear-gradient(180deg, #33a6ff, #1e8ae8);
  padding: 16px;
  color: #fff;
}
.h-kpi { font-size: 22px; font-weight: 500; }
.h-cap { font-size: 13px; opacity: .75; margin-top: 4px; }
.city-line { background: none; border: none; color: #fff; font-size: 17px; font-weight: 600; cursor: default; }

.moji-body { padding: 8px 0 8px; }
.grp-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 6px;
  font-size: 13px;
  color: var(--sub);
}
.grp-more { color: var(--blue); background: none; border: none; font-size: 13px; cursor: pointer; }
.grp-box {
  background: #fff;
  margin: 0 10px;
  border-radius: 6px;
  overflow: hidden;
}

.feed-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.feed-info { flex: 1; min-width: 0; }
.feed-txt {
  display: block;
  font-size: 15px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-sub { display: block; font-size: 12px; color: var(--sub); margin-top: 4px; }
.feed-like {
  background: none; border: none;
  font-size: 14px; color: var(--blue);
  cursor: pointer; margin-left: 10px; flex-shrink: 0;
}

.cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
}
.cell:last-child { border-bottom: none; }
.cell-l { flex-shrink: 0; margin-right: 12px; }
.cell-r { flex: 1; text-align: right; color: #666; font-size: 14px; }
.cell-hl { background: rgba(14, 165, 233, 0.12); }
.cell-hl .cell-r { color: #0369a1; font-weight: 600; }
.cell-link { cursor: pointer; }
.link { color: var(--blue); }
.danger { color: #ff4d4f; width: 100%; text-align: center; }
.arrow { color: #ccc; font-size: 18px; }

.week-scroll {
  display: flex;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.week-scroll::-webkit-scrollbar { display: none; }
.w-col {
  flex: 0 0 68px;
  text-align: center;
  border-right: 1px solid var(--border);
  padding: 4px 0;
  cursor: pointer;
}
.w-col:last-child { border-right: none; }
.w-col.on .w-wk, .w-col.on .w-md { color: var(--blue); }
.w-col.on .w-lv { color: var(--orange); }
.w-wk { display: block; font-size: 12px; color: var(--sub); }
.w-md { display: block; font-size: 16px; font-weight: 500; margin: 4px 0 2px; }
.w-tide-type { display: block; font-size: 10px; color: #94a3b8; line-height: 1.2; margin-bottom: 2px; }
.w-tide-big { color: #ea580c; font-weight: 600; }
.w-tide-small { color: #94a3b8; }
.w-lv { display: block; font-size: 10px; color: var(--orange); }
.w-time { display: block; font-size: 10px; color: #64748b; margin-top: 2px; line-height: 1.3; }
.w-col.on .w-time { color: var(--blue); }
.w-time.passed { color: #94a3b8; }
.w-tide-range { display: block; font-size: 10px; color: #64748b; margin-top: 2px; line-height: 1.2; }

.tide-page .cell-hl { background: rgba(255, 255, 255, 0.14); }
.tide-page .cell-hl .cell-r { color: #fff; font-weight: 600; }
.tide-page .cell-best .cell-l { color: #fff9c4; font-weight: 700; }
.tide-page .cell-passed .cell-r { color: rgba(255, 255, 255, 0.5); }
.tide-page .meta-line { color: rgba(255, 255, 255, 0.92); }
.tide-page .meta-line strong { color: #fff; font-weight: 700; }
.tide-page .meta-tide-rows { border-top-color: rgba(255, 255, 255, 0.2); }
.tide-page .meta-tide-row { border-bottom-color: rgba(255, 255, 255, 0.14); }
.tide-page .meta-tide-l { color: rgba(255, 255, 255, 0.95); font-weight: 600; }
.tide-page .meta-tide-r { color: rgba(255, 255, 255, 0.78); }
.tide-page .moon-row { border-top-color: rgba(255, 255, 255, 0.2); }
.tide-page .moon-title { color: #fff; font-weight: 700; }
.tide-page .moon-tip { color: rgba(255, 255, 255, 0.82); }
.tide-page .tide-info-card .moon-info { color: rgba(255, 255, 255, 0.82); }
.tide-page .tide-info-card .moon-info b { color: #fff; }

.hourly-head-bar { padding: 10px 16px 6px; }
.hourly-head-title { font-size: 16px; font-weight: 600; color: #222; }
.hourly-head-sub { margin-top: 4px; font-size: 12px; color: #888; }
.hourly-table-wrap { margin: 0 12px 12px; background: #fff; border-radius: 8px; overflow-x: auto; }
.hourly-table { min-width: 640px; }
.hourly-row { display: flex; border-bottom: 1px solid #f0f0f0; font-size: 12px; color: #333; }
.hourly-row-head { background: #f8fafc; color: #888; font-weight: 600; }
.hourly-row-tide { background: #f0f8ff; }
.h-col { padding: 8px 6px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.h-time { width: 44px; }
.h-env { width: 72px; }
.h-wx { width: 64px; }
.h-wave { width: 64px; }
.h-tide { width: 64px; }
.h-wind { width: 96px; }
.h-sub { font-size: 11px; color: #888; }
.h-wave-label { color: var(--blue); }
.tide-up { color: #e74c3c; }
.tide-down { color: var(--blue); }
.tide-mark-time { color: #666; font-weight: 600; }
.h-tide-mark { flex: 1; flex-direction: row; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; }
.wind-bar { margin-top: 4px; height: 4px; background: #eef2f7; border-radius: 2px; overflow: hidden; }
.wind-bar-fill { height: 100%; background: linear-gradient(90deg, #7ec8ff, #33a6ff); border-radius: 2px; }

.panel-tabs { display: flex; gap: 16px; padding: 6px 16px 0; }
.panel-tab { font-size: 15px; color: var(--sub); padding-bottom: 8px; border-bottom: 2px solid transparent; cursor: pointer; }
.panel-tab.on { color: var(--blue); font-weight: 600; border-bottom-color: var(--blue); }
.swipe-hint { padding: 6px 16px 10px; font-size: 12px; color: #b0b8c4; }
.tide-panels { position: relative; }
.tide-panel-page { display: none; }
.tide-panel-page.show { display: block; }
.tide-source-bar, .marine-source-bar { margin: -2px 16px 8px; font-size: 12px; color: #94a3b8; }

/* ===== 潮汐页小卡片（与首页 card-ocean 一致） ===== */
.tide-page {
  padding: 10px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tide-card {
  margin: 0 12px;
  background: linear-gradient(145deg, #0369a1 0%, #0ea5e9 45%, #38bdf8 100%);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px rgba(3, 105, 161, 0.22);
  color: #fff;
}
.tide-card-hd {
  padding: 12px 14px 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.tide-card-bd .cell:first-child { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.tide-card-bd .cell {
  padding: 12px 14px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}
.tide-card .cell-l { color: rgba(255, 255, 255, 0.95); }
.tide-card .cell-r { color: rgba(255, 255, 255, 0.82); }
.tide-card .cell-r.sub { color: rgba(255, 255, 255, 0.68); }
.tide-card .arrow { color: rgba(255, 255, 255, 0.45); }
.tide-card .link { color: #e0f2fe; }
.tide-card .danger { color: #fecaca; }
.tide-chart-card {
  border-color: rgba(255, 255, 255, 0.15);
}
.tide-source-in {
  padding: 10px 14px 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  line-height: 1.4;
}
.tide-info-card {
  padding: 12px 14px;
}
.tide-tip-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #92400e;
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
  border-color: rgba(251, 146, 60, 0.25);
}
.tide-week-card {
  padding: 4px 0 2px;
}
.tide-page .week-scroll {
  padding: 0 0 8px;
}
.tide-card .w-col {
  border-right-color: rgba(255, 255, 255, 0.2);
}
.tide-card .w-wk { color: rgba(255, 255, 255, 0.72); }
.tide-card .w-md { color: #fff; }
.tide-card .w-tide-type { color: rgba(255, 255, 255, 0.68); }
.tide-card .w-time { color: rgba(255, 255, 255, 0.82); }
.tide-card .w-time.passed { color: rgba(255, 255, 255, 0.45); }
.tide-card .w-tide-range { color: rgba(255, 255, 255, 0.75); }
.tide-card .w-tide-big { color: #fff9c4; }
.tide-card .w-tide-small { color: rgba(255, 255, 255, 0.55); }
.tide-card .w-col.on .w-wk,
.tide-card .w-col.on .w-md,
.tide-card .w-col.on .w-tide-type,
.tide-card .w-col.on .w-time { color: #fff; font-weight: 600; }
.tide-card .w-col.on .w-tide-big { color: #fff9c4; }
.tide-page .tide-panels,
.tide-page .tide-panel-page.show {
  display: contents;
}
.tide-page .tide-panel-page:not(.show) {
  display: none;
}

.curve-wrap {
  margin: 0;
  background: transparent;
  border-radius: 0;
  padding: 4px 8px 8px;
  color: rgba(255, 255, 255, 0.9);
  border: none;
  box-shadow: none;
}
#tideCanvas {
  width: 100%;
  height: 228px;
  display: block;
  touch-action: none;
}
.meta-line { font-size: 13px; color: #444; line-height: 1.6; }
.meta-line strong { color: #222; }
.tide-info-card .meta-line { margin: 0; }
.tide-info-card .moon-row { margin-top: 8px; padding-top: 8px; }
.meta-card {
  margin: 0 12px 8px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}
.meta-tide-rows {
  margin-top: 8px;
  padding-top: 4px;
  border-top: 1px solid #f0f0f0;
}
.meta-tide-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px solid #f5f5f5;
}
.meta-tide-row:last-child { border-bottom: none; padding-bottom: 0; }
.meta-tide-l { color: #333; }
.meta-tide-r { color: #666; }
.moon-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}
.moon-emoji { font-size: 28px; line-height: 1; }
.moon-info { font-size: 12px; color: #666; line-height: 1.5; }
.moon-info b { color: #333; font-size: 13px; }

.marine-day { flex-direction: column; align-items: stretch; gap: 6px; }
.marine-day-head { display: flex; justify-content: space-between; gap: 10px; width: 100%; }
.marine-day-note { font-size: 12px; color: #94a3b8; text-align: right; flex: 1; }
.marine-warn { color: #d97706; }
.marine-day-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.marine-tag { font-size: 11px; color: var(--blue); background: #eef7ff; padding: 1px 6px; border-radius: 4px; }
.marine-val { font-size: 13px; color: #555; }
.cell-subhead .cell-l { font-size: 13px; color: var(--sub); }
.cell-compact { padding: 10px 16px; }

.tip-bar {
  margin: 8px 10px 0;
  padding: 10px 14px;
  background: #fff8e6;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #996600;
}
.tip-ico {
  width: 18px; height: 18px; line-height: 18px;
  text-align: center; background: var(--orange); color: #fff;
  border-radius: 50%; font-size: 12px; font-weight: 700; flex-shrink: 0;
}

.chart-wrap { padding: 4px 10px 10px; border-bottom: 1px solid var(--border); }
.bars {
  display: flex; align-items: flex-end; height: 80px; gap: 1px;
  background: #fafafa; border-radius: 4px; padding: 8px 4px 4px;
}
.bar { flex: 1; border-radius: 2px 2px 0 0; min-height: 4px; }

.btn {
  display: block; width: 100%; border: none; border-radius: 6px;
  padding: 12px; font-size: 15px; cursor: pointer; margin-top: 8px;
}
.btn-main, .btn-primary { background: var(--blue); color: #fff; }
.btn-ghost { background: #f5f5f5; color: #666; }

.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 480px;
  background: #fff;
  display: flex;
  border-top: 1px solid #ddd;
  padding: 2px 0 calc(4px + env(safe-area-inset-bottom));
  z-index: 20;
}
.tab {
  flex: 1; border: none; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  font-size: 10px; color: var(--sub); cursor: pointer; padding: 4px 2px;
}
.tab-icon {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
}
.tab-icon .tab-img {
  width: 26px; height: 26px;
  object-fit: contain;
  display: block;
}
.tab-label { line-height: 1.2; }
.tab.on { color: var(--blue); font-weight: 500; }

.toast {
  position: fixed; left: 50%; top: 42%; transform: translate(-50%,-50%);
  background: rgba(0,0,0,.75); color: #fff; padding: 12px 20px;
  border-radius: 6px; font-size: 14px; z-index: 99; display: none;
}
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal.hidden { display: none; }
.modal-box { background: #fff; border-radius: 8px; padding: 20px; width: 100%; max-width: 360px; }
.modal-box h3 { margin-bottom: 12px; font-size: 17px; font-weight: 500; }
.modal-box textarea { width: 100%; border: 1px solid #ddd; border-radius: 6px; padding: 12px; font-size: 14px; font-family: inherit; }
.modal-actions { display: flex; gap: 10px; margin-top: 14px; }
.modal-actions .btn { flex: 1; margin: 0; }
.city-list { max-height: 50vh; overflow-y: auto; }
.city-option { display: flex; align-items: center; gap: 10px; padding: 14px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.city-option.on { color: var(--blue); font-weight: 500; }
.muted { color: var(--sub); font-size: 13px; }

.page-tip { padding: 12px 16px 6px; font-size: 13px; color: var(--sub); }
.post-grp { padding: 14px 16px; margin-bottom: 10px; }
.post-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.av {
  width: 36px; height: 36px; line-height: 36px; text-align: center;
  background: #e8f4ff; border-radius: 50%; font-size: 18px;
}
.nick { font-size: 14px; font-weight: 500; }
.sub { font-size: 12px; color: var(--sub); }
.badge { font-size: 11px; color: var(--orange); margin-left: auto; }
.post-text { font-size: 14px; line-height: 1.6; }
.post-body { cursor: pointer; }
.post-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}
.gallery-cell {
  position: relative;
  overflow: hidden;
}
.gallery-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
}
.post-gallery.grid-1 .gallery-cell {
  width: calc((100% - 6px) / 2);
  aspect-ratio: 4 / 3;
  height: auto;
}
.post-gallery.grid-2 .gallery-cell {
  width: calc((100% - 6px) / 2);
  aspect-ratio: 4 / 3;
  height: auto;
}
.post-gallery.grid-3 .gallery-cell {
  width: calc((100% - 12px) / 3);
  aspect-ratio: 4 / 3;
  height: auto;
}
.gallery-more-mask {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
}
.detail-page { min-height: 100vh; background: var(--bg); }
.detail-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--blue);
  color: #fff;
}
.detail-back {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  padding: 0;
  cursor: pointer;
}
.detail-title { font-size: 16px; font-weight: 500; }
.detail-grp { margin: 10px 12px; }

.loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(51, 166, 255, 0.1);
  cursor: pointer;
}

.loc-pin {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1;
}

.loc-spot {
  color: #0284c7;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loc-sep {
  flex-shrink: 0;
  color: #94a3b8;
  font-size: 12px;
}

.loc-city {
  flex-shrink: 0;
  color: #64748b;
  font-size: 12px;
}

.detail-all-images {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-all-images .gallery-cell {
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  width: calc((100% - 12px) / 3);
  aspect-ratio: 1 / 1;
  height: auto;
}

.detail-all-images .gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.img-viewer-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.img-viewer-body {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.img-viewer-viewport {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.img-viewer-viewport::-webkit-scrollbar { display: none; }

.img-viewer-track {
  display: flex;
  height: 100%;
}

.img-viewer-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-viewer .viewer-img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
}

.img-viewer .viewer-counter {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
}

.img-viewer .viewer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.detail-swiper-wrap {
  position: relative;
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef2f7;
}

.detail-swiper-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.detail-swiper-viewport::-webkit-scrollbar { display: none; }

.detail-swiper-track {
  display: flex;
}

.detail-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.detail-slide-img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #eef2f7;
}

.detail-swiper-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.detail-swiper-meta .img-counter {
  align-self: flex-end;
  margin-right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 11px;
}

.detail-swiper-dots {
  display: flex;
  gap: 5px;
}

.detail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.detail-dot.on {
  width: 16px;
  border-radius: 999px;
  background: #fff;
}

.detail-gallery.grid-4 .gallery-cell {
  width: calc((100% - 6px) / 2);
  height: 120px;
}
.detail-gallery.grid-5 .gallery-cell:nth-child(-n+2) {
  width: calc((100% - 6px) / 2);
  height: 120px;
}
.detail-gallery.grid-5 .gallery-cell:nth-child(n+3) {
  width: calc((100% - 12px) / 3);
  height: 96px;
}
.detail-gallery.grid-6 .gallery-cell {
  width: calc((100% - 12px) / 3);
  height: 110px;
}
.feed-share {
  border: none;
  background: #f5f5f5;
  color: #666;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.feed-share-headline {
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  box-shadow: 0 2px 8px rgba(153, 27, 27, 0.35);
}
.post-foot-wrap {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.post-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.post-foot-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.headline-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.headline-hint {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.4;
  color: #94a3b8;
  white-space: nowrap;
  pointer-events: none;
}
.tabbar-hidden { display: none !important; }

.feed-list { padding: 4px 12px 16px; }
.feed-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 4px 4px 12px;
}
.feed-header-title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.3px;
}
.feed-header-sub {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #8a94a6;
}
.feed-header-count {
  font-size: 12px;
  color: var(--blue);
  background: rgba(51, 166, 255, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}
.post-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}
.pin-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 12px 5px 14px;
  background: linear-gradient(145deg, #0369a1 0%, #0ea5e9 45%, #38bdf8 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  border-bottom-left-radius: 10px;
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.35);
}
.pin-ribbon-on {
  cursor: default;
}
.pin-ribbon-btn {
  margin: 0;
  border: none;
  cursor: pointer;
  font: inherit;
}
.pin-ribbon-icon {
  font-size: 10px;
  font-weight: 700;
}
.post-inner-with-pin {
  padding-top: 10px;
}
.post-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}
.post-card.tone-great .post-accent { background: linear-gradient(180deg, #38bdf8, #33a6ff); }
.post-card.tone-hot .post-accent { background: linear-gradient(180deg, #fb923c, #f97316); }
.post-card.tone-good .post-accent { background: linear-gradient(180deg, #34d399, #10b981); }
.post-card.tone-ok .post-accent { background: linear-gradient(180deg, #94a3b8, #64748b); }
.post-card.tone-default .post-accent { background: linear-gradient(180deg, #cbd5e1, #94a3b8); }
.post-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px 8px 12px;
  overflow: hidden;
}
.post-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0;
}
.head-nick {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.foot-loc {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 52%;
  overflow: hidden;
  cursor: pointer;
}
.foot-loc-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #0284c7;
  font-weight: 600;
}
.post-head-row .av-sm {
  width: 26px;
  height: 26px;
  line-height: 26px;
  font-size: 13px;
  flex-shrink: 0;
}
.author {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.av-sm {
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  background: #e8f4ff;
  border-radius: 50%;
  font-size: 12px;
  flex-shrink: 0;
}
.post-gallery {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 0;
  width: 100%;
  height: 96px;
  align-items: stretch;
}

.post-snippet + .post-gallery {
  margin-top: 6px;
}
.gallery-cell {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  height: 96px;
}
.gallery-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f7;
}
.post-gallery.grid-1 {
  justify-content: flex-start;
}
.post-gallery.grid-1 .gallery-cell {
  width: 32%;
  max-width: 108px;
  aspect-ratio: unset;
  height: 96px;
}
.post-gallery.grid-2 .gallery-cell {
  width: calc((100% - 6px) / 2);
  aspect-ratio: unset;
  height: 96px;
}
.post-gallery.grid-3 .gallery-cell {
  width: calc((100% - 12px) / 3);
  aspect-ratio: unset;
  height: 96px;
}
.gallery-more-mask {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(0,0,0,.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
}
.post-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.post-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.post-top .nick { font-size: 15px; font-weight: 700; color: #1a1a1a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-chip {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
}
.post-card.tone-great .score-chip { background: rgba(51,166,255,.12); color: #0284c7; }
.post-card.tone-hot .score-chip { background: rgba(249,115,22,.12); color: #ea580c; }
.post-card.tone-good .score-chip { background: rgba(16,185,129,.12); color: #059669; }
.post-snippet {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  margin: 0;
}
.tag-row { display: flex; align-items: center; gap: 6px; }
.tag-chip {
  font-size: 11px;
  color: var(--blue);
  background: rgba(51,166,255,.08);
  padding: 2px 8px;
  border-radius: 999px;
}
.tag-more { font-size: 10px; color: #94a3b8; }
.post-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.foot-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  flex-wrap: nowrap;
  overflow: hidden;
}
.foot-share-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.meta-line {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  gap: 6px;
  font-size: 11px;
}
.author-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  max-width: 42%;
}
.author-inline .av-sm {
  width: 20px;
  height: 20px;
  line-height: 20px;
  font-size: 11px;
}
.author-inline .nick {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loc-line {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  font-size: 11px;
  gap: 4px;
}
.loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(51, 166, 255, 0.1);
  cursor: pointer;
}
.loc-chip-city {
  flex-shrink: 1;
  max-width: 36%;
  cursor: default;
}
.loc-chip-city .loc-city {
  color: #0284c7;
  font-weight: 600;
}
.loc-chip-full {
  display: inline-flex;
  margin-top: 8px;
  max-width: 100%;
}
.loc-pin { flex-shrink: 0; font-size: 11px; line-height: 1; }
.loc-spot {
  color: #0284c7;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loc-sep { flex-shrink: 0; color: #94a3b8; }
.loc-city {
  flex-shrink: 0;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loc-link { color: #64748b; cursor: pointer; }
.loc-link:hover { color: var(--blue); }
.loc-dot { margin: 0 2px; flex-shrink: 0; color: #cbd5e1; }
.foot-share {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  font-size: 11px;
  color: var(--blue);
  cursor: pointer;
}
.post-time {
  margin-top: 8px;
  font-size: 12px;
  color: var(--sub);
}
.action-pills { display: flex; gap: 6px; flex-shrink: 0; }
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 11px;
  color: #64748b;
  border: none;
  cursor: pointer;
}
.pill-btn.like.on { background: rgba(255,77,109,.12); color: #ff4d6d; }
.pill-btn.chat { background: rgba(51,166,255,.1); color: var(--blue); }
.pill-icon { font-size: 11px; }
.empty { text-align: center; padding: 48px 16px; color: #94a3b8; font-size: 14px; }
.empty-emoji { display: block; font-size: 36px; margin-bottom: 8px; }
.detail-with-comments { padding-bottom: 72px; }
.comment-section {
  margin: 10px 12px 0;
  background: #fff;
  border-radius: 10px;
  padding: 14px;
}
.comment-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.comment-title { font-size: 15px; font-weight: 600; }
.comment-count { font-size: 12px; color: var(--sub); }
.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.quick-chip {
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f0f8ff;
  color: var(--blue);
  font-size: 12px;
  cursor: pointer;
}
.comment-list { display: flex; flex-direction: column; gap: 12px; }
.comment-item { display: flex; gap: 10px; align-items: flex-start; }
.comment-av {
  width: 28px; height: 28px; line-height: 28px; text-align: center;
  background: #e8f4ff; border-radius: 50%; font-size: 14px; flex-shrink: 0;
}
.comment-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 2px; }
.comment-nick { font-size: 13px; font-weight: 500; }
.comment-time { font-size: 11px; color: var(--sub); }
.comment-text { font-size: 13px; line-height: 1.5; color: #444; }
.comment-empty { text-align: center; padding: 16px 0 4px; color: var(--sub); font-size: 13px; }
.comment-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
.comment-input {
  flex: 1;
  height: 38px;
  padding: 0 14px;
  border: none;
  background: #f5f5f5;
  border-radius: 999px;
  font-size: 13px;
}
.comment-send {
  flex-shrink: 0;
  height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.empty { text-align: center; padding: 40px 16px; color: var(--sub); font-size: 14px; }

.pub-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  justify-content: center;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.pub-dock-btn {
  pointer-events: auto;
  min-width: 0;
  padding: 11px 28px;
  background: linear-gradient(135deg, #38bdf8, #33a6ff);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(51, 166, 255, 0.35);
  cursor: pointer;
}

.banner {
  background: linear-gradient(180deg, #33a6ff, #1e8ae8);
  color: #fff;
  padding: 20px 16px;
}
.banner .big { font-size: 18px; font-weight: 500; }
.banner .sub { font-size: 12px; opacity: .75; margin-top: 4px; }
.spot-name { font-weight: 500; }
.city-select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; margin-top: 8px; }

/* ===== 验潮站选择 ===== */
.station-modal {
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.station-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 10px;
}
.station-modal-head h3 { font-size: 17px; font-weight: 700; }
.station-modal-sub { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.station-current {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  font-size: 14px;
  color: #0369a1;
}
.station-pin { font-size: 16px; }
.station-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 10px;
}
.station-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}
.station-filter .sf-label { color: #94a3b8; font-size: 11px; flex-shrink: 0; }
.station-filter .sf-val { flex: 1; font-weight: 600; color: #0f172a; }
.station-filter .sf-arr { color: #cbd5e1; }
.station-list-label {
  padding: 4px 16px 8px;
  font-size: 12px;
  color: #94a3b8;
}
.station-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 16px;
  max-height: 46vh;
}
.station-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px;
  margin-bottom: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
}
.station-row.on {
  border-color: #38bdf8;
  background: #f0f9ff;
  color: #0369a1;
  font-weight: 600;
}
.station-dist { font-size: 13px; color: #94a3b8; font-weight: 400; }
.station-arr { color: #cbd5e1; }
.station-empty { text-align: center; padding: 24px; color: #94a3b8; font-size: 14px; }

/* ===== 发布战报弹窗 · 图片 ===== */
.publish-modal { max-width: 400px; }
.publish-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.publish-modal-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  flex-shrink: 0;
}
.publish-modal-hint {
  margin: 0;
  flex: 1;
  min-width: 0;
  text-align: right;
  font-size: 11px;
  line-height: 1.45;
  color: #64748b;
}
.publish-modal-hint.error { color: #dc2626; }
.publish-modal-hint.success { color: #059669; }
.publish-modal-hint.info { color: #2563eb; }
.publish-pin-tip {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  line-height: 1.45;
}
.publish-pin-tip.hidden,
.hidden { display: none !important; }
.publish-photo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  min-height: 72px;
}
.publish-photo-left {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  min-width: 0;
}
.publish-photo-spacer {
  flex: 1;
  min-width: 0;
}
.publish-photo-cell {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
}
.publish-photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.publish-photo-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}
.publish-add-photo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
}
.publish-add-photo-center {
  flex: 0 0 72px;
}
.publish-add-photo span {
  padding: 0 4px;
}

/* ===== 我的页 ===== */
.me-page {
  padding-bottom: 16px;
  background: #f4f6f9;
}
.me-hero {
  position: relative;
  padding: 32px 16px 28px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.me-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #0369a1 0%, #0ea5e9 55%, #38bdf8 100%);
}
.me-avatar,
.me-nick,
.me-emoji-row {
  position: relative;
  z-index: 1;
}
.me-avatar { font-size: 56px; line-height: 1; }
.me-nick {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 12px auto 14px;
  padding: 8px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.me-emoji-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.me-emoji {
  border: none;
  background: transparent;
  font-size: 22px;
  padding: 4px 6px;
  border-radius: 8px;
  cursor: pointer;
}
.me-emoji.on { background: rgba(255, 255, 255, 0.28); }
.me-stats {
  display: flex;
  gap: 10px;
  padding: 0 12px;
  margin-top: -20px;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}
.me-stat {
  flex: 1;
  background: #fff;
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}
.me-stat-tap {
  border: none;
  width: 100%;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.me-stat-tap:active {
  opacity: 0.88;
  transform: scale(0.98);
}
.my-posts-page .my-posts-card {
  margin: 12px;
}
.me-stat strong {
  display: block;
  font-size: 18px;
  color: #0284c7;
}
.me-stat strong.me-stat-city { font-size: 15px; }
.me-stat span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #94a3b8;
}
.me-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 12px 14px;
}
.me-action {
  border: none;
  background: #fff;
  border-radius: 14px;
  padding: 12px 4px;
  font-size: 11px;
  color: #475569;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  cursor: pointer;
}
.me-action span {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}
.me-card {
  margin: 0 12px 10px;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}
.me-card-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}
.me-link {
  border: none;
  background: none;
  color: #33a6ff;
  font-size: 13px;
  cursor: pointer;
}
.me-post-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}
.me-post-item:last-child { border-bottom: none; }
.me-post-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.me-post-thumb.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  font-size: 20px;
}
.me-post-body { flex: 1; min-width: 0; }
.me-post-text {
  font-size: 14px;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.me-post-meta { font-size: 11px; margin-top: 4px; }
.me-post-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.me-post-edit {
  border: none;
  background: none;
  color: #2563eb;
  font-size: 12px;
  cursor: pointer;
}
.me-post-del {
  border: none;
  background: none;
  color: #ef4444;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.me-empty { text-align: center; padding: 8px 0; }
.me-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid #f1f5f9;
}
.me-select {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
}
.me-full { width: 100%; margin-top: 10px; }
.me-menu {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
}
.me-menu:last-child { border-bottom: none; }
.me-reminder-on p { margin: 6px 0 0; font-size: 13px; }
.me-about {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  line-height: 1.7;
}
