/* ============================================================
   各功能模块专用样式
   ============================================================ */

/* ==================== ① 旅行足迹地图 ==================== */
.map-wrap { position: relative; width: 100%; height: 100%; }
#amap { width: 100%; height: 100%; background: var(--dora-100); }
#offlineMap { width: 100%; height: 100%; display: block; background: #EEF1F4; }
#offlineMap path.prov {
  fill: #DCE1E6; stroke: #FFFFFF; stroke-width: .8;
  cursor: pointer; transition: fill .18s;
}
#offlineMap path.prov:hover { fill: #C3CAD2; }
#offlineMap path.prov.lit { fill: #8C2F39; }
#offlineMap path.prov.lit:hover { fill: #A63A45; }

.map-panel {
  position: absolute; top: 16px; left: 16px; z-index: 10;
  width: 268px; background: rgba(255, 255, 255, .97);
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--border); overflow: hidden;
  backdrop-filter: blur(6px);
}
.map-panel .mp-head {
  padding: 12px 14px; background: var(--dora-800); color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.map-panel .mp-head img { width: 26px; height: 26px; }
.map-panel .mp-head b { font-size: 13.5px; }
.map-panel .mp-head span { font-size: 11px; color: var(--dora-400); display: block; }
.map-panel .mp-body { padding: 12px 14px; }
.map-stats { display: flex; gap: 10px; margin-bottom: 11px; }
.map-stats > div { flex: 1; text-align: center; padding: 8px 4px; background: var(--dora-50); border-radius: 7px; }
.map-stats b { display: block; font-size: 19px; color: var(--blue-700); line-height: 1.2; }
.map-stats span { font-size: 11px; color: var(--text-3); }
.map-tip {
  font-size: 11.5px; color: var(--text-2); line-height: 1.65;
  background: var(--blue-100); border-left: 2.5px solid var(--blue-600);
  padding: 8px 10px; border-radius: 0 6px 6px 0;
}
.lit-list { max-height: 230px; overflow-y: auto; margin-top: 10px; }
.lit-city {
  display: flex; align-items: center; gap: 7px; padding: 6px 8px;
  border-radius: 6px; cursor: pointer; font-size: 12.5px;
}
.lit-city:hover { background: var(--dora-100); }
.lit-city .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-700); flex: 0 0 7px; }
.lit-city .p { margin-left: auto; font-size: 11px; color: var(--text-3); }

.map-legend {
  position: absolute; bottom: 16px; left: 16px; z-index: 10;
  background: rgba(255, 255, 255, .96); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 12px; box-shadow: var(--shadow-sm);
  display: flex; gap: 14px; font-size: 11.5px; color: var(--text-2);
}
.map-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.map-search {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  display: flex; gap: 7px; align-items: center;
  background: rgba(255, 255, 255, .97); padding: 7px;
  border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border);
}
.map-search .input { width: 168px; height: 30px; }

/* 城市详情弹窗 */
.city-modal .cm-hero {
  padding: 18px 20px; background: linear-gradient(135deg, var(--dora-800), var(--blue-800));
  color: #fff; display: flex; align-items: center; gap: 12px;
}
.city-modal .cm-hero h3 { font-size: 19px; font-weight: 600; }
.city-modal .cm-hero .sub { font-size: 12px; color: rgba(255, 255, 255, .72); }
.city-modal .cm-tabs { display: flex; border-bottom: 1px solid var(--border); padding: 0 14px; gap: 2px; }
.cm-tab {
  padding: 10px 14px; font-size: 13px; color: var(--text-2);
  border-bottom: 2px solid transparent; cursor: pointer; transition: all var(--t);
}
.cm-tab:hover { color: var(--text-1); }
.cm-tab.on { color: var(--blue-700); border-bottom-color: var(--blue-700); font-weight: 600; }
.cm-tab .n { font-size: 11px; color: var(--text-3); margin-left: 3px; }
.cm-pane { padding: 16px 18px; max-height: 400px; overflow-y: auto; }
.cm-mini {
  display: flex; gap: 10px; padding: 9px; border-radius: 8px;
  border: 1px solid var(--border); margin-bottom: 8px; align-items: center;
}
.cm-mini img { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; flex: 0 0 46px; }
.cm-mini .t { font-size: 13px; font-weight: 500; }
.cm-mini .d { font-size: 11.5px; color: var(--text-3); }

/* 离线模式：省-市点选面板 */
.offline-box { position: absolute; inset: 0; overflow: auto; padding: 18px 22px; background: #EEF1F4; }
.offline-note {
  font-size: 12.5px; color: var(--text-2); line-height: 1.7;
  background: var(--dora-50); border-left: 2.5px solid var(--dora-400);
  padding: 10px 13px; border-radius: 0 8px 8px 0; margin-bottom: 4px;
}
.prov-block { margin-bottom: 16px; }
.prov-block h4 { font-size: 13.5px; color: var(--text-1); margin-bottom: 8px; font-weight: 600; }
.city-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.city-chip {
  padding: 6px 13px; border-radius: 14px; border: 1px solid var(--border-strong);
  background: var(--bg-card); cursor: pointer; font-size: 12.5px;
  transition: all var(--t); user-select: none;
}
.city-chip:hover { border-color: var(--dora-400); }
.city-chip.lit { background: var(--blue-700); color: #fff; border-color: var(--blue-700); box-shadow: var(--shadow-sm); }

/* ==================== ② 车次查询 ==================== */
.train-search { display: grid; grid-template-columns: 1fr auto 1fr 150px auto; gap: 11px; align-items: flex-end; }
.swap-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; background: var(--bg-card);
  transition: all var(--t); font-size: 14px; color: var(--text-2);
}
.swap-btn:hover { background: var(--blue-700); color: #fff; border-color: var(--blue-700); transform: rotate(180deg); }

.filter-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; padding-top: 12px; margin-top: 12px; border-top: 1px dashed var(--border); }
.filter-group { display: flex; align-items: center; gap: 7px; }
.filter-group > label { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.chip-group { display: flex; gap: 5px; }
.chip {
  padding: 4px 11px; border-radius: 14px; font-size: 12px;
  border: 1px solid var(--border-strong); background: var(--bg-card);
  cursor: pointer; transition: all var(--t); white-space: nowrap; user-select: none;
}
.chip:hover { border-color: var(--dora-400); }
.chip.on { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.price-range { display: flex; align-items: center; gap: 5px; }
.price-range .input { width: 74px; height: 28px; text-align: center; }

.train-list { display: flex; flex-direction: column; gap: 10px; }
.train-card {
  display: grid; grid-template-columns: 92px 1fr 128px 1fr auto;
  gap: 16px; align-items: center;
  padding: 14px 18px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all var(--t);
}
.train-card:hover { border-color: var(--blue-500); box-shadow: var(--shadow); }
.tc-no { font-size: 16px; font-weight: 600; letter-spacing: .5px; }
.tc-no .lb { font-size: 11px; color: var(--text-3); font-weight: 400; display: block; }
.tc-time { text-align: center; }
.tc-time .h { font-size: 19px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tc-time .s { font-size: 11.5px; color: var(--text-3); }
.tc-mid { text-align: center; position: relative; }
.tc-mid .dur { font-size: 12px; color: var(--text-2); }
.tc-mid .line { height: 1px; background: var(--border-strong); margin: 5px 0; position: relative; }
.tc-mid .line::before, .tc-mid .line::after {
  content: ''; position: absolute; top: 50%; width: 5px; height: 5px; border-radius: 50%;
  background: var(--dora-400); transform: translateY(-50%);
}
.tc-mid .line::before { left: 0; }
.tc-mid .line::after { right: 0; background: var(--blue-700); }
.tc-mid .km { font-size: 11px; color: var(--text-3); }
.tc-seats { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.seat-pill {
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 9px; border-radius: 6px; background: var(--dora-50);
  border: 1px solid var(--border); min-width: 62px;
}
.seat-pill .p { font-size: 13px; font-weight: 600; color: var(--blue-700); line-height: 1.25; }
.seat-pill .n { font-size: 10.5px; color: var(--text-3); }
.seat-pill .l { font-size: 10px; }
.seat-pill.none { opacity: .5; }
.seat-pill.none .p { color: var(--text-3); }
.seat-pill .l.ok { color: var(--ok); }
.seat-pill .l.few { color: var(--warn); }
.seat-pill .l.no { color: var(--text-3); }
.tc-act { display: flex; flex-direction: column; gap: 5px; }

.kind-badge { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 10.5px; margin-top: 2px; }
.kind-badge.hsr { background: #E8F0EA; color: #3F6B46; }
.kind-badge.normal { background: #F0EDE6; color: #8A7340; }

/* ==================== ③ 美食 ==================== */
.food-card { display: flex; flex-direction: column; overflow: hidden; }
.fcat { padding: 7px 15px; background: linear-gradient(135deg,#17ACEC,#0B8AC9); color:#fff; font-size:12.5px; font-weight:600; letter-spacing:.5px; }
.fcat .cat-emoji { margin-right: 5px; }
.scat { padding: 7px 15px; background: linear-gradient(135deg,#2BA37A,#178E66); color:#fff; font-size:12.5px; font-weight:600; letter-spacing:.5px; }
.scat .cat-emoji { margin-right: 5px; }
.food-head {
  padding: 13px 15px 11px; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 9px;
}
.food-head .nm { font-size: 15px; font-weight: 600; flex: 1; }
.fav-btn { font-size: 16px; color: var(--dora-300); transition: all .16s; line-height: 1; }
.fav-btn:hover { transform: scale(1.18); }
.fav-btn.on { color: var(--blue-600); }
.food-body { padding: 11px 15px; flex: 1; }
.food-intro { font-size: 12.5px; color: var(--text-2); line-height: 1.65; min-height: 40px; }
.food-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.food-review {
  margin-top: 10px; padding: 9px 11px; background: var(--dora-50);
  border-radius: 7px; font-size: 12px; border-left: 2.5px solid var(--blue-500);
}
.food-review .r { display: flex; gap: 12px; color: var(--text-2); margin-bottom: 3px; flex-wrap: wrap; }
.food-review .c { color: var(--text-1); line-height: 1.6; }
.food-foot {
  padding: 9px 15px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 7px; background: var(--bg-sub);
}
.food-foot .sp { flex: 1; }

/* ==================== ④ 景点 ==================== */
.spot-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.spot-card .top { display: flex; align-items: flex-start; gap: 9px; }
.spot-card .nm { font-size: 14.5px; font-weight: 600; flex: 1; }
.spot-card .intro { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.spot-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11.5px; color: var(--text-3); }
.spot-meta span { display: inline-flex; align-items: center; gap: 3px; }
.check-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 13px; font-size: 12px; border: 1px solid var(--border-strong);
  transition: all var(--t); background: var(--bg-card);
}
.check-btn.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.check-btn:not(.done):hover { border-color: var(--ok); color: var(--ok); }

/* ==================== ⑤ 行程时间轴 ==================== */
.trip-layout { display: grid; grid-template-columns: 250px 1fr; gap: 16px; align-items: start; }
.trip-side { display: flex; flex-direction: column; gap: 8px; }
.trip-pick {
  padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); cursor: pointer; transition: all var(--t);
}
.trip-pick:hover { border-color: var(--dora-400); }
.trip-pick.on { border-color: var(--blue-700); background: var(--blue-100); }
.trip-pick .t { font-size: 13.5px; font-weight: 600; }
.trip-pick .d { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

.day-block { margin-bottom: 20px; }
.day-head {
  display: flex; align-items: center; gap: 9px; margin-bottom: 11px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.day-badge {
  width: 30px; height: 30px; border-radius: 8px; background: var(--blue-700); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
  flex: 0 0 30px;
}
.day-head .dt { font-size: 14px; font-weight: 600; }
.day-head .ds { font-size: 11.5px; color: var(--text-3); }
.day-head .right { margin-left: auto; }

.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border); border-radius: 1px;
}
.tl-item { position: relative; margin-bottom: 10px; }
.tl-item::before {
  content: ''; position: absolute; left: -22px; top: 15px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue-600); z-index: 1;
}
.tl-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 14px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all var(--t);
}
.tl-card:hover { border-color: var(--blue-500); box-shadow: var(--shadow-sm); }
.tl-time { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--blue-700); flex: 0 0 42px; }
.tl-main { flex: 1; min-width: 0; }
.tl-main .t { font-size: 13.5px; font-weight: 500; }
.tl-main .d { font-size: 12px; color: var(--text-2); margin-top: 2px; line-height: 1.55; }
.tl-cost { font-size: 13px; font-weight: 600; color: var(--text-1); }
.type-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }

/* ==================== ⑥ 住宿 ==================== */
.hotel-card { padding: 14px 16px; }
.hotel-card .top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.hotel-card .nm { font-size: 14.5px; font-weight: 600; flex: 1; }
.hotel-card .price { font-size: 17px; font-weight: 600; color: var(--blue-700); }
.hotel-card .price small { font-size: 11px; color: var(--text-3); font-weight: 400; }
.pc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.pc-box { padding: 8px 10px; border-radius: 7px; font-size: 12px; line-height: 1.55; }
.pc-box.pro { background: #EDF4EE; border-left: 2.5px solid var(--ok); }
.pc-box.con { background: #FAF0EF; border-left: 2.5px solid var(--blue-600); }
.pc-box b { display: block; font-size: 11px; margin-bottom: 2px; opacity: .8; }

/* ==================== ⑦ 账本 ==================== */
.budget-top { display: grid; grid-template-columns: 300px 1fr; gap: 16px; margin-bottom: 16px; }
.budget-total {
  padding: 20px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(135deg, var(--dora-700), var(--blue-800));
  box-shadow: var(--shadow);
}
.budget-total .lb { font-size: 12.5px; opacity: .82; }
.budget-total .num { font-size: 33px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.budget-total .sub { font-size: 11.5px; opacity: .72; margin-top: 5px; }

.cat-bars { display: flex; flex-direction: column; gap: 9px; }
.cat-bar { display: grid; grid-template-columns: 58px 1fr 92px; gap: 10px; align-items: center; font-size: 12.5px; }
.cat-bar .track { height: 8px; background: var(--dora-100); border-radius: 4px; overflow: hidden; }
.cat-bar .fill { height: 100%; border-radius: 4px; transition: width .5s cubic-bezier(.3,1,.5,1); }
.cat-bar .amt { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--bg-card); }
.tbl th {
  text-align: left; padding: 10px 13px; font-size: 12px; font-weight: 600; color: var(--text-2);
  background: var(--bg-sub); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.tbl td { padding: 10px 13px; border-bottom: 1px solid var(--border); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: var(--dora-50); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.tbl-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }

/* ==================== ⑧ 备忘录 / 游记 ==================== */
.note-layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
.note-list { display: flex; flex-direction: column; gap: 7px; }
.note-pick {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; background: var(--bg-card); transition: all var(--t);
}
.note-pick:hover { border-color: var(--dora-400); }
.note-pick.on { border-color: var(--blue-700); background: var(--blue-100); }
.note-pick .t { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.note-pick .d { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.checklist { display: flex; flex-direction: column; gap: 4px; }
.cl-row {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px;
  border-radius: 7px; transition: background var(--t);
}
.cl-row:hover { background: var(--dora-50); }
.cl-box {
  width: 17px; height: 17px; border-radius: 5px; border: 1.6px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  flex: 0 0 17px; transition: all var(--t); font-size: 11px; color: transparent;
}
.cl-box.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.cl-row.done .cl-txt { text-decoration: line-through; color: var(--text-3); }
.cl-txt { flex: 1; font-size: 13px; }

.editor {
  width: 100%; min-height: 340px; padding: 15px 17px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13.5px; line-height: 1.85; resize: vertical; background: var(--bg-card);
}
.editor:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(166,58,69,.09); }

.ref-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.ref-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px;
  border: 1px solid var(--border); border-radius: 15px; font-size: 12px;
  cursor: pointer; transition: all var(--t); background: var(--bg-card);
}
.ref-chip:hover { border-color: var(--blue-600); color: var(--blue-700); }
.ref-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.ref-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.ref-item {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  background: var(--blue-100); border: 1px solid var(--blue-200); border-radius: 15px;
  font-size: 12px; color: var(--blue-800);
}
.ref-item img { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; }

/* ==================== 设置抽屉 ==================== */
.set-row { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 13px; }
.set-hint {
  font-size: 12px; color: var(--text-2); line-height: 1.7;
  background: var(--dora-50); padding: 11px 13px; border-radius: 8px;
  border-left: 2.5px solid var(--dora-400);
}
.set-hint code {
  background: var(--dora-200); padding: 1px 5px; border-radius: 4px;
  font-size: 11.5px; font-family: Consolas, monospace;
}
.set-hint ol { padding-left: 17px; list-style: decimal; }
.set-hint a { text-decoration: underline; }

/* ==================== ① 矢量中国地图（首页） ==================== */
.home-map { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.china-host {
  flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
  padding: 6px 0; overflow: hidden;
}
.china-svg { width: 100%; height: 100%; max-height: 100%; display: block; }
.china-svg .province {
  fill: #DCE3EA; stroke: #FFFFFF; stroke-width: .6;
  transition: fill .18s, filter .18s; cursor: pointer;
}
.china-svg .province:hover { fill: #A9CBD9; }
.china-svg .province.lit {
  fill: var(--blue-700);
  filter: drop-shadow(0 0 6px rgba(23, 172, 236, .55));
}
.map-foot { padding: 10px 2px 0; border-top: 1px solid var(--line); background: #FAFCFE; }
.city-search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.city-search .input { flex: 1; max-width: 440px; }
.map-stat { margin-top: 8px; font-size: 13px; color: var(--text-2); }
.map-stat b { color: var(--blue-700); }
.lit-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-height: 64px; overflow: auto; }
.lit-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px;
  border-radius: 13px; background: var(--blue-100); border: 1px solid var(--blue-200);
  font-size: 12px; color: var(--blue-800); cursor: pointer;
}
.lit-chip i { font-style: normal; cursor: pointer; opacity: .65; }
.lit-chip i:hover { opacity: 1; color: var(--blue-700); }
.prov-pop {
  position: absolute; z-index: 40; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow); padding: 10px; width: 244px;
}
.pp-head { font-size: 12.5px; font-weight: 600; margin-bottom: 8px; color: var(--text-1); }
.pp-cities { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-chip {
  padding: 4px 10px; border-radius: 13px; border: 1px solid var(--border-strong);
  background: var(--bg-card); cursor: pointer; font-size: 12px; transition: all var(--t);
}
.pp-chip:hover { border-color: var(--dora-400); }
.pp-chip.on { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }

/* 各栏底部 ＋ / － 操作条 */
.bottom-bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px; margin-top: 14px;
  background: rgba(255, 255, 255, .86); border: 1px solid var(--border);
  border-radius: var(--radius); position: sticky; bottom: 0; backdrop-filter: blur(6px);
}
.bottom-bar .sp { flex: 1; }

/* ==================== ③④ 美食 / 景点 图文卡片 ==================== */
.fimg {
  width: 100%; height: 122px; overflow: hidden; display: flex;
  align-items: center; justify-content: center; position: relative; flex: 0 0 auto;
}
.fimg img { width: 100%; height: 100%; object-fit: cover; }
.food-card .fimg, .spot-card .fimg { border-radius: var(--radius) var(--radius) 0 0; }
.spot-card { padding: 0; overflow: hidden; gap: 0; }
.ing-row {
  margin-top: 8px; font-size: 12px; color: var(--text-2);
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap; line-height: 1.5;
}
.ing {
  display: inline-block; padding: 1px 7px; border-radius: 10px;
  background: var(--dora-50); border: 1px solid var(--border); font-size: 11px;
}
.ing-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* 详情弹窗：原料 / 价格 */
.food-detail { display: flex; gap: 16px; flex-wrap: wrap; }
.food-detail .fimg { width: 200px; height: 152px; border-radius: 10px; flex: 0 0 200px; }
.fd-info { flex: 1; min-width: 260px; }
.fd-info h3 { font-size: 18px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.fd-sub { font-size: 12.5px; color: var(--text-3); margin-bottom: 8px; }
.fd-intro { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-bottom: 10px; }
.fd-block { margin-bottom: 10px; }
.fd-t { font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 3px; }
.fd-price { font-size: 15px; font-weight: 600; color: var(--blue-700); }

/* 按钮 / 标签补充 */
.btn-bell {
  background: var(--bell, #FFC800); color: #3a2a00; border-color: var(--bell-dark, #E0A200);
  font-weight: 600;
}
.btn-bell:hover { filter: brightness(1.05); }
.tag-nose {
  background: var(--nose-100, #FDECEC); color: var(--nose, #E60012); border: 1px solid var(--nose-200, #F9CFD1);
}
.tag-bell { background: #FFF4D6; color: #9a6b00; border: 1px solid #F1D894; }

/* 各栏主页面淡化背景图（叠加白纱保证文字可读） */
.with-bg {
  position: relative; background-size: cover; background-position: center top;
  background-repeat: no-repeat; background-attachment: fixed;
}
.with-bg::before {
  content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .64);
  pointer-events: none; z-index: 0;
}
.with-bg > * { position: relative; z-index: 1; }

