/* 旅清AI 原型 - 公共样式 | TX-PRD prototype */

:root {
  --primary: #2A82E4;
  --secondary: #D48B46;
  --vip: #F5A623;
  --ok: #00B42A;
  --danger: #F53F3F;
  --bg: #F5F7FA;
  --card: #fff;
  --text: #1D2129;
  --sub: #86909C;
  --line: #E5E6EB;
  --safe-bottom: env(safe-area-inset-bottom, 12px);
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #E8ECF0; color: var(--text); }
a { color: var(--primary); text-decoration: none; }

.proto-frame {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  padding-bottom: calc(56px + var(--safe-bottom));
  box-shadow: 0 0 40px rgba(0,0,0,.12);
}

.proto-top {
  padding: 12px 16px 8px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.proto-top h1 { margin: 0; font-size: 18px; font-weight: 700; }
.proto-back { font-size: 14px; color: var(--primary); }

/* 子页面顶栏（非四个 Tab 根页）：左尖括号返回、右侧不放操作，标题相对整栏水平居中 */
.proto-top.proto-top--sub {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 0;
  padding-left: 8px;
  padding-right: 8px;
}
.proto-top.proto-top--sub h1 {
  grid-column: 2;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  justify-self: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proto-top.proto-top--sub .proto-back {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -6px 0 -6px -4px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}
.proto-top.proto-top--sub .proto-back-icon {
  display: block;
  transform: translateX(1px);
}
.proto-top.proto-top--sub .proto-top-trailing {
  grid-column: 3;
  width: 48px;
  height: 1px;
  visibility: hidden;
  pointer-events: none;
}

/* PAGE-MP-002：首行天气条 + 品牌 Banner（与 ui_manifest §5.1 对齐） */
.home-topbar {
  padding: 10px 16px 8px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.home-topbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 12px;
  font-size: 14px;
}
.home-city-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #E8F3FF;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font: inherit;
}
.home-temp { font-weight: 700; color: var(--text); }
.home-condition { color: var(--text); }
.home-alert-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
  background: #FFF2F0;
  padding: 2px 8px;
  border-radius: 6px;
}
.home-banner {
  margin: 12px 16px;
  padding: 20px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #E8F4FF 0%, #F0F9FF 45%, #FFF 100%);
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(42, 130, 228, 0.12);
}
.home-banner-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.home-banner-tagline {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 14px;
  margin: 12px 16px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

/* PAGE-MP-003：相册选区；选图后在同一虚线框内原位预览（宽 100%、height 随比例，对齐 widthFix） */
.upload-drop {
  border: 2px dashed var(--line);
  border-radius: 16px;
  padding: 36px 16px;
  background: #FAFAFA;
  cursor: pointer;
  text-align: center;
}
.upload-drop--has-file {
  padding: 0;
  background: #EBEEF2;
  overflow: hidden;
  border-color: var(--line);
}
.upload-drop-placeholder .upload-drop-icon {
  font-size: 40px;
  margin-bottom: 8px;
  line-height: 1;
}
.upload-drop-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.upload-drop-hint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--sub);
}
.upload-drop-preview {
  line-height: 0;
}
.upload-drop-preview img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

/* PAGE-MP-003：视口锁高 + 仅主区滚动，底栏始终贴底（避免整页滚动把底栏带走） */
.proto-frame--upload-bottom {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
}
.proto-frame--upload-bottom > .upload-page-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
}
.upload-fixed-bar {
  flex-shrink: 0;
  width: 100%;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
}
/* PAGE-MP-003 底栏：单行积分（左本次 = 模板定价；右可点可用） */
.upload-fixed-bar .upload-points-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.35;
  flex-wrap: nowrap;
}
.upload-fixed-bar .upload-points-row__left {
  flex: 1;
  min-width: 0;
  text-align: left;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-fixed-bar .upload-points-row__left strong {
  font-weight: 700;
  color: var(--text);
}
.upload-fixed-bar .upload-points-row__avail {
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 6px 2px;
  margin: -6px 0;
  font: inherit;
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  text-align: right;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.upload-fixed-bar .upload-points-row__avail strong {
  font-weight: 700;
}
.upload-fixed-bar .upload-points-row__avail:active {
  opacity: 0.75;
}
.upload-fixed-bar .btn {
  width: 100%;
  min-height: 48px;
}
/* PAGE-MP-003：底栏双主按钮（标清修复 + 高清修复） */
.upload-fixed-bar .upload-action-row {
  display: flex;
  gap: 10px;
  width: 100%;
}
.upload-fixed-bar .upload-action-row .btn {
  flex: 1;
  width: auto;
  min-height: 48px;
}

/* 用户案例：两列瀑布流；列宽约半屏，缩略图宽度撑满列、高度随比例（实装用 img{width:100%;height:auto}） */
.case-waterfall {
  column-count: 2;
  column-gap: 8px;
}
.case-waterfall > * {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 8px;
  width: 100%;
  display: inline-block;
  vertical-align: top;
}
.case-waterfall--tab {
  padding: 8px 16px calc(72px + var(--safe-bottom));
}
.case-waterfall--in-card {
  padding: 0;
}
.case-feed-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.case-feed-card .case-thumb {
  width: 100%;
  height: auto;
  display: block;
}
.case-waterfall img.case-thumb,
.case-item img.case-thumb {
  width: 100%;
  height: auto;
  display: block;
}
.case-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.case-item .case-thumb,
.case-item .ph {
  width: 100%;
  height: auto;
  display: block;
  min-height: 56px;
}
.case-item .txt {
  padding: 10px 12px;
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border-radius: 24px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .08s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-ghost { background: #E8F3FF; color: var(--primary); }

/* 主包 TabBar：iconfont 字形（Material Icons 子集 woff2，仅含首页/模板/案例/我的 4 个字形） */
@font-face {
  font-family: "iconfont";
  src: url("fonts/lqai-tabbar.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
.iconfont {
  font-family: "iconfont" !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.tabbar .iconfont {
  display: block;
  font-size: 22px;
  line-height: 1;
  color: inherit;
}
.tabbar .iconfont::before { display: block; }
.icon-tab-home::before { content: "\e88a"; }
.icon-tab-template::before { content: "\e5c3"; }
.icon-tab-case::before { content: "\e3f4"; }
.icon-tab-mine::before { content: "\e7fd"; }

.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 4px 0 calc(4px + var(--safe-bottom));
  z-index: 50;
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  font-size: 11px;
  color: var(--sub);
  padding: 2px 0 5px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.tabbar a .tabbar-label {
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tabbar a.active { color: var(--primary); font-weight: 700; }

/* TemplateTagStrip：模板 Tab 顶栏下标签横滑（API-MP-019 allTags） */
.template-tag-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}
.template-tag-strip::-webkit-scrollbar { display: none; }
.tpl-tag-chip {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font: inherit;
  background: #F2F3F5;
  color: var(--text);
}
.tpl-tag-chip.active {
  background: var(--primary);
  color: #fff;
}
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 16px 12px;
  padding: 0;
  list-style: none;
}
.detail-tags li {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: #E8F3FF;
  color: var(--primary);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #FFF7E8;
  color: var(--vip);
  font-weight: 600;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.78);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.toast.show { opacity: 1; }

.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: none; align-items: flex-end; justify-content: center; z-index: 150;
}
.modal-mask.show { display: flex; }
.modal-sheet {
  width: 100%; max-width: 430px;
  background: var(--card);
  border-radius: 16px 16px 0 0;
  padding: 16px;
  max-height: 70vh;
  overflow: auto;
}
/* /tx-prd-prototype：移动端页顶下拉刷新示意（配合 proto-pull-refresh.js + .proto-frame--pull） */
.pull-hint {
  text-align: center; font-size: 12px; color: var(--sub);
  padding: 8px; display: none;
}
.pull-hint.show { display: block; }

.compare-wrap {
  position: relative;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 16px;
  border: 1px solid var(--line);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.compare-layer {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #9CA3AF 0%, #6B7280 100%);
}
.compare-layer.after {
  background: linear-gradient(135deg, #34D399 0%, #2A82E4 100%);
  clip-path: inset(0 0 0 50%);
}
/* 中缝分割线 + 线上控制器；整条竖向命中区可拖，支持鼠标/触屏；无底部滑杆 */
.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  margin-left: -14px;
  left: 50%;
  z-index: 10;
  cursor: ew-resize;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare-divider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
  border-radius: 2px;
  pointer-events: none;
}
.compare-handle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  flex-shrink: 0;
}
.compare-handle::after {
  content: "◀ ▶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  letter-spacing: -1px;
  color: var(--primary);
  font-weight: 700;
}

.h-scroll {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 8px 16px 4px;
  scroll-snap-type: x mandatory;
}
.h-scroll::-webkit-scrollbar { display: none; }

/* RepairTemplatePicker：上传页 / 详情内嵌（与 API-MP-003 / templateId 联动；上传页为进度条下、选图区上） */
.template-picker {
  margin: 0 0 4px;
}
.template-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.template-picker-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.template-picker-head a {
  font-size: 13px;
  white-space: nowrap;
}

/* RepairTemplatePicker 内嵌：无标题栏时的幽灵容器（透明底、无边框与投影，与 page 背景衔接） */
.card.template-picker--ghost {
  background: transparent;
  border: none;
  box-shadow: none;
}

.template-chip-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 12px 10px;
  margin: 0;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 12px;
  -webkit-overflow-scrolling: touch;
  /* 避免选型卡贴齐卡片内缘；模板多时整行横向滑动，首尾留白一致 */
}
.template-chip-row::-webkit-scrollbar {
  display: none;
}

/* RepairTemplatePicker 选型卡：封面 + 底部半透明黑渐变 + 白字；左上：仅等级 Base/Pro/Vip（不展示地域）；选中：全幅蒙版居中「当前」 */
.template-option {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 120px;
  height: 100px;
  border-radius: 12px;
  border: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  text-align: left;
  background-color: #64748b;
  background-image: var(--tpl-cover);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.08s;
}
.template-option:active {
  transform: scale(0.98);
}
.template-option::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0) 72%);
  pointer-events: none;
  z-index: 1;
}
.template-option-label {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}
.template-option-badges {
  position: absolute;
  top: 5px;
  left: 5px;
  right: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
}
.tpl-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.tpl-badge-tier.tpl-tier-base {
  background: rgba(71, 85, 105, 0.92);
}
.tpl-badge-tier.tpl-tier-pro {
  background: rgba(42, 130, 228, 0.92);
}
.tpl-badge-tier.tpl-tier-vip {
  background: rgba(212, 139, 70, 0.95);
}
.template-option-mask {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.48);
  border-radius: inherit;
  pointer-events: none;
}
.template-option[aria-selected="true"] .template-option-mask {
  display: flex;
}
.template-option-mask-text {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.template-option:disabled {
  cursor: default;
}

/* 模板详情页底部主 CTA（无 TabBar）：积分说明 + 主按钮同栏固定 */
.template-detail-cta-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}
.template-detail-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  z-index: 40;
}

.template-picker-section.is-locked {
  opacity: 0.48;
  pointer-events: none;
  user-select: none;
}
.template-picker-section.is-locked .template-picker-hint {
  display: block;
}
.template-picker-hint {
  display: none;
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.45;
}
.dest-card {
  flex: 0 0 120px;
  height: 100px;
  border-radius: 12px;
  background: linear-gradient(145deg, #7CB9FF, #2A82E4);
  color: #fff;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  scroll-snap-align: start;
  display: flex;
  align-items: flex-end;
}

.poster {
  width: 72%; max-width: 300px; margin: 16px auto;
  aspect-ratio: 9/16;
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 3px solid var(--secondary);
}
.poster .shot {
  flex: 1; border-radius: 8px;
  background: linear-gradient(135deg, #34D399, #2A82E4);
  margin: 8px 0;
}
.poster .qr {
  width: 56px; height: 56px; background: #fff; border-radius: 8px; align-self: flex-end;
}

/* 修复流程通用进度条：1️⃣2️⃣3️⃣，仅展示、无交互；父级 data-repair-current="1"|"2"|"3" 控制高亮 */
.repair-progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px 10px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  user-select: none;
  pointer-events: none;
}
.repair-progress-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  line-height: 1.2;
  opacity: 0.36;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.repair-progress-step-emoji {
  font-size: 18px;
  line-height: 1;
}
.repair-progress-step-label {
  font-size: 12px;
  white-space: nowrap;
}
.repair-progress-divider {
  width: 28px;
  height: 2px;
  background: var(--line);
  border-radius: 1px;
  flex-shrink: 0;
  opacity: 0.85;
}
.repair-progress-bar[data-repair-current="1"] .repair-progress-step[data-step="1"],
.repair-progress-bar[data-repair-current="2"] .repair-progress-step[data-step="2"],
.repair-progress-bar[data-repair-current="3"] .repair-progress-step[data-step="3"] {
  opacity: 1;
  transform: scale(1.15);
}

.admin-wrap { max-width: 1200px; margin: 0 auto; background: #fff; min-height: 100vh; }
.admin-head { background: #1D2129; color: #fff; padding: 14px 24px; display: flex; justify-content: space-between; }
.admin-body { display: grid; grid-template-columns: 200px 1fr; min-height: calc(100vh - 52px); }
.admin-side { background: #F2F3F5; padding: 16px 0; border-right: 1px solid var(--line); }
.admin-side a { display: block; padding: 10px 20px; color: var(--text); font-size: 14px; }
.admin-side a:hover, .admin-side a.active { background: #E5F2FF; color: var(--primary); }
.admin-main { padding: 20px; }

.kpi-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.kpi { background: var(--bg); border-radius: 10px; padding: 14px; border: 1px solid var(--line); }
.kpi h3 { margin: 0 0 6px; font-size: 13px; color: var(--sub); font-weight: 500; }
.kpi p { margin: 0; font-size: 22px; font-weight: 700; }

table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }

/* CityPickerSheet：main_spec / ui_manifest — API-MP-021 + API-MP-022 */
.city-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.45);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}
.city-picker-overlay[aria-hidden="false"] { display: flex; }
.city-picker-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 78vh;
  overflow: auto;
  background: var(--card);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.12);
  padding: 12px 0 20px;
}
.city-picker-sheet h2 {
  margin: 0 0 8px;
  padding: 0 16px 8px;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.city-picker-section {
  padding: 8px 16px 4px;
}
.city-picker-section h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sub);
  text-transform: none;
  letter-spacing: 0;
}
.city-picker-locate {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: #F7F8FA;
  border-radius: 10px;
  font-size: 14px;
}
.city-picker-locate .loc-name { font-weight: 600; color: var(--text); }
.city-picker-list { list-style: none; margin: 0; padding: 0; }
.city-picker-list li { border-bottom: 1px solid var(--line); }
.city-picker-list button {
  width: 100%;
  text-align: left;
  padding: 12px 4px;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  color: var(--text);
}
.city-picker-list button:hover { color: var(--primary); }
.city-picker-list li:last-child { border-bottom: none; }
.city-picker-foot {
  margin-top: 8px;
  padding: 0 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font: inherit;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* LaunchSplashOverlay：视口等高（一整屏），不随页面滚动伸长；宽度与原型手机栏对齐（ui_manifest §5.1） */
.lq-launch-splash {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: min(430px, 100%);
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  max-height: 100svh;
  margin-left: auto;
  margin-right: auto;
  z-index: 350;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: #0b1220;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.lq-launch-splash.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lq-launch-splash__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
  pointer-events: none;
}
.lq-launch-splash__top {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: calc(10px + env(safe-area-inset-right, 0px));
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lq-launch-splash__count {
  min-width: 36px;
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.lq-launch-splash__skip {
  height: 32px;
  padding: 0 14px;
  border: none;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font: inherit;
}
.lq-launch-splash__skip:hover {
  background: rgba(0, 0, 0, 0.6);
}
.lq-launch-splash__reset {
  position: fixed;
  z-index: 360;
  bottom: calc(56px + var(--safe-bottom));
  right: calc(50vw - min(430px, 100vw) / 2 + 8px);
  padding: 6px 10px;
  font-size: 11px;
  color: var(--sub);
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.lq-launch-splash__reset:hover { color: var(--primary); border-color: #C3D7F5; }
