/* ============================================================
   main.css —— 鹅山亲子游
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  color: #333;
  background: #f4f3ef;
  -webkit-tap-highlight-color: transparent;
}

#app {
  min-height: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header { padding: 14px 20px; text-align: center; }
.app-header h1 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 600;
  color: #3d3d3a;
}
.header-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

/* Tabs - 底部导航栏 */
.tabs {
  display: flex;
  background: #fff;
  border-top: 1px solid #e8e6df;
  border-bottom: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding-bottom: env(safe-area-inset-bottom, 0);
  height: 58px;
}
.tab {
  flex: 1;
  padding: 12px 4px;
  background: none;
  border: none;
  font-size: 12px;
  color: #8a8880;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border-bottom: none;
  border-top: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.tab-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.tab.active {
  color: #88947a;
  font-weight: 600;
  border-top-color: #88947a;
  border-bottom-color: transparent;
}

/* Pages */
.app-main {
  flex: 1;
  padding: 16px;
  padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 12px);
}
.page { display: none; }
.page.active { display: block; }

/* Buttons */
.btn {
  background: #eeeae2;
  color: #333;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn:hover { background: #dddcd4; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: #88947a; color: #fff; }
.btn-primary:hover { background: #6f7b62; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* Select */
.select {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dddcd4;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: #333;
  appearance: auto;
}

/* ============================================================
   规划页
   ============================================================ */
.plan-header {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
}
.trip-row { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; }
.trip-row .select { flex: 1; min-width: 0; }
.trip-row .btn { flex-shrink: 0; white-space: nowrap; }
.plan-actions { display: flex; gap: 10px; }
.plan-actions .btn { flex: 1; }

.plan-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 地图 */
.map-wrap {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  position: relative;
}
#map-container {
  width: 100%;
  height: 280px;
  display: block;
}
.fallback-card {
  padding: 24px;
  text-align: center;
}
.fallback-title { font-weight: 600; color: #c2956b; margin-bottom: 8px; }
.fallback-desc { font-size: 13px; color: #8a8880; line-height: 1.5; }
.fallback-amap-hint {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e4ded0;
  font-size: 12px;
  color: #6f6d66;
  line-height: 1.7;
}
.fallback-amap-hint a {
  color: #7a94a8;
  text-decoration: none;
}
.fallback-amap-hint a:hover {
  text-decoration: underline;
}

/* 底部免责声明 */
.legal-disclaimer {
  margin-top: 16px;
  padding: 10px 16px;
  font-size: 11px;
  color: #a09d95;
  line-height: 1.6;
  text-align: center;
}
.legal-disclaimer p:first-child {
  font-weight: 600;
  color: #8a8880;
  margin-bottom: 6px;
}
.legal-disclaimer p {
  margin: 4px 0;
  line-height: 1.7;
}
.legal-disclaimer p:not(:first-child) {
  text-align: left;
}

/* 景点列表 */
.spots-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.spots-wrap h3 {
  font-size: 15px;
  font-weight: 600;
  color: #3d3d3a;
  margin-bottom: 12px;
}
.spot-list { display: flex; flex-direction: column; gap: 0; }
.spot-day-header {
  font-size: 12px;
  font-weight: 600;
  color: #88947a;
  padding: 8px 0 4px;
}
.spot-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eeeae2;
  cursor: pointer;
}
.spot-item:last-child { border-bottom: none; }
.spot-item.active { background: #eef1ea; border-radius: 8px; padding: 12px 8px; margin: 0 -8px; }
.spot-idx {
  width: 26px;
  height: 26px;
  background: #88947a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.spot-info { flex: 1; min-width: 0; }
.spot-name { font-size: 14px; color: #3d3d3a; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-addr { font-size: 12px; color: #8a8880; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.spot-btn {
  font-size: 11px;
  padding: 3px 10px;
  border: 1px solid #dddcd4;
  border-radius: 12px;
  background: #fff;
  color: #6f6d66;
  cursor: pointer;
  transition: all 0.15s;
}
.spot-btn:hover { border-color: #8a8880; color: #3d3d3a; }
.spot-btn-edit { color: #88947a; border-color: #d5ddc8; }
.spot-btn-edit:hover { background: #eef1ea; border-color: #88947a; }
.spot-btn-del { color: #b4665c; border-color: #dfc4bd; }
.spot-btn-del:hover { background: #f5e8e5; border-color: #b4665c; }

/* 空提示 */
.empty-hint {
  text-align: center;
  padding: 20px 10px;
  color: #8a8880;
  font-size: 13px;
}

/* ============================================================
   Modal —— 景点编辑弹窗
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  align-items: flex-end;
  justify-content: center;
  overscroll-behavior: none; /* 阻止浏览器下拉刷新 */
}
.modal.show { display: flex; }
.modal-body {
  background: #fff;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain; /* 阻止弹窗内滚动穿透到外层触发下拉刷新 */
  padding: 20px;
  padding-bottom: calc(env(safe-area-inset-bottom) + 20px);
  animation: slideUp 0.25s ease;
  -webkit-overflow-scrolling: touch;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.modal-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #3d3d3a;
}

/* 顶部下滑手柄 + 关闭按钮 */
.modal-handle {
  display: flex;
  justify-content: center;
  padding-top: 6px;
  cursor: grab;
  touch-action: none;
}
.modal-handle-bar {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #d9d6cc;
}
.modal-title-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 14px;
}
.modal-title-row h3 { flex: 1; margin: 0; }
.modal-close-btn {
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  border: 0 !important;
  outline: none;
  box-shadow: none;
  color: #ccc9bf;
  cursor: pointer;
  padding: 4px 0 4px 8px;
  display: inline-flex !important;
  align-items: center;
  line-height: 0;
}
.modal-close-btn:active { color: #8a8880; }

.poi-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.poi-search-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #dddcd4;
  border-radius: 8px;
  font-size: 14px;
}
.poi-results {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e8e6df;
  border-radius: 8px;
  margin-bottom: 14px;
}
.poi-item {
  padding: 10px 12px;
  border-bottom: 1px solid #eeeae2;
  cursor: pointer;
  transition: background 0.15s;
}
.poi-item:last-child { border-bottom: none; }
.poi-item:hover { background: #f4f3ef; }
.poi-name { font-size: 14px; color: #3d3d3a; margin-bottom: 2px; }
.poi-addr { font-size: 12px; color: #8a8880; }
.loading, .error { padding: 12px; text-align: center; font-size: 13px; color: #8a8880; }
.error { color: #b4665c; }

.spot-form { display: flex; flex-direction: column; gap: 10px; }
.spot-form input, .spot-form select {
  padding: 10px 12px;
  border: 1px solid #dddcd4;
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
}
.coord-row { display: flex; gap: 10px; }
.coord-row input { flex: 1; }
.coord-row-3 input { flex: 1 1 0; }

/* 粘贴识别区 */
.paste-import {
  background: #fffbf5;
  border: 1px solid #f2eadf;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.paste-import-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.paste-title {
  font-size: 13px;
  font-weight: 600;
  color: #c2956b;
}
.paste-hint {
  font-size: 11px;
  color: #8a8880;
}
.paste-import textarea {
  width: 100%;
  min-height: 70px;
  border: 1px solid #dddbd4;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
  background: #fff;
}
.paste-import textarea:focus {
  outline: none;
  border-color: #c2956b;
}
.paste-import-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.paste-import-footer .btn {
  flex-shrink: 0;
}
.paste-parse-result {
  font-size: 12px;
  color: #8a8880;
  flex: 1;
  line-height: 1.4;
}
.paste-parse-result.ok {
  color: #88947a;
}
.paste-parse-result.error {
  color: #b4665c;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.form-actions .btn { flex: 1; }

/* ============================================================
   设置页（状态卡片）
   ============================================================ */
.status-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
}
.status-card h2 { font-size: 15px; font-weight: 600; color: #3d3d3a; margin-bottom: 12px; }
.status-list { list-style: none; }
.status-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eeeae2;
}
.status-list li:last-child { border-bottom: none; }
.status-list .label { color: #6f6d66; font-size: 13px; }
.status-list .value { font-size: 13px; font-weight: 500; }
.value.pending  { color: #8a8880; }
.value.ok       { color: #88947a; }
.value.warn     { color: #c2956b; }
.value.crit     { color: #b4665c; }
.value.error    { color: #b4665c; }

.output {
  background: #3d3d3a;
  color: #ecf0f1;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  min-height: 60px;
  white-space: pre-wrap;
  word-break: break-all;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* iOS safe area */
@supports (padding-top: env(safe-area-inset-top)) {
  .app-header { padding-top: calc(env(safe-area-inset-top) + 12px); }
}

/* ============================================================
   回顾页
   ============================================================ */

/* Header：trip 选择 + 统计 */
.review-header {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
}
.review-trip-row { display: flex; gap: 10px; }
.review-trip-row .select { flex: 1; }

.review-summary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eeeae2;
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #6f6d66;
}
.review-summary .sum-item strong {
  display: block;
  font-size: 16px;
  color: #3d3d3a;
  font-weight: 600;
  line-height: 1.2;
}
.review-summary .sum-item strong.ok { color: #88947a; }
.review-summary .sum-item strong.warn { color: #c2956b; }
.review-summary .sum-item strong.muted { color: #8a8880; }

/* Day 容器 */
.review-day-list { display: flex; flex-direction: column; gap: 14px; }

.review-day-group {
  background: #fff;
  border-radius: 12px;
  padding: 0 16px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.review-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 8px;
  border-bottom: 1px solid #eeeae2;
  margin-bottom: 4px;
}
.review-day-title {
  font-size: 14px;
  font-weight: 600;
  color: #3d3d3a;
}
.review-day-sub {
  font-size: 12px;
  color: #8a8880;
}

/* Day 路线卡片 */
.review-route-block {
  background: #f7f4ec;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 12px;
  border: 1px solid #eeeae2;
}
.route-block-title {
  font-size: 12px;
  font-weight: 600;
  color: #7a8a9a;
  margin-bottom: 8px;
}
.route-row {
  padding: 8px 0;
  border-bottom: 1px dashed #e6e2d8;
}
.route-row:last-child { border-bottom: none; }
.route-path {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.route-endpoint {
  font-weight: 500;
  color: #3d3d3a;
}
.route-arrow {
  color: #8a8880;
}
.route-mode {
  font-size: 11px;
  color: #8a8880;
  background: #eeeae2;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: auto;
}
.route-plan {
  font-size: 12px;
  color: #7a8880;
  margin-top: 4px;
}
.route-plan strong {
  color: #3d3d3a;
  font-weight: 500;
}
.route-actual {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  color: #7a8880;
  flex-wrap: wrap;
}
.route-input {
  width: 58px;
  padding: 3px 6px;
  border: 1px solid #d4cfc3;
  border-radius: 4px;
  font-size: 12px;
  font-family: inherit;
  background: #fff;
  color: #3d3d3a;
}
.route-input:focus {
  outline: none;
  border-color: #7a94a8;
}
.route-save {
  margin-left: auto;
  padding: 3px 10px;
  background: #7a94a8;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}
.route-save:hover { background: #62798c; }
.route-diffs {
  margin-top: 4px;
  display: flex;
  gap: 8px;
  font-size: 11px;
  flex-wrap: wrap;
}
.route-diff.ok {
  color: #88947a;
}
.route-diff.over {
  color: #b07878;
}
.route-diff.under {
  color: #88947a;
}

/* Spot 卡片 */
.review-spot-item {
  padding: 12px 0;
  border-bottom: 1px solid #eeeae2;
  cursor: pointer;
  transition: background 0.15s;
}
.review-spot-item:last-child { border-bottom: none; }
.review-spot-item:active { background: #f4f3ef; }

.spot-top-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}
.spot-type-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #eef1ea;
  color: #88947a;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 600;
}
.spot-type-icon.food  { background: #f2eadf; color: #c2956b; }
.spot-type-icon.hotel { background: #eef1ea; color: #88947a; }
.spot-type-icon.other { background: #eeeae2; color: #8a8880; }

.spot-name-wrap { flex: 1; min-width: 0; }
.spot-name {
  font-size: 14px;
  font-weight: 500;
  color: #3d3d3a;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spot-addr {
  font-size: 12px;
  color: #8a8880;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spot-extra {
  font-size: 11px;
  color: #a09d95;
  margin-top: 2px;
}

.spot-status-badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}
.badge-arrived { background: #eef1ea; color: #88947a; }
.badge-skipped { background: #eeeae2; color: #8a8880; }
.badge-pending { background: #f2eadf; color: #c2956b; }
.badge-planned { background: #eef1ea; color: #88947a; }

.spot-time-row {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #6f6d66;
  margin-top: 4px;
  padding-left: 36px;
}
.spot-time-row .time-label { color: #8a8880; margin-right: 2px; }
.spot-time-row .diff-highlight { color: #c2956b; font-weight: 500; }

.spot-feedback-row {
  margin-top: 6px;
  padding-left: 36px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.spot-feedback-row .fb-stars-mini { color: #c2956b; letter-spacing: -1px; }
.spot-feedback-row .fb-pros-mini {
  color: #6f6d66;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.spot-feedback-row .photo-count {
  color: #8a8880;
  font-size: 11px;
}

/* food 推荐卡片 */
.review-spot-item.food-recommend {
  border-left: 3px solid #c2956b;
  padding-left: 10px;
  margin-left: -10px;
}
.review-spot-item.food-recommend .spot-type-icon.food {
  background: #c2956b;
  color: #fff;
}
.spot-feedback-row.food-recommend-row {
  background: #fff8f0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
  margin-left: -36px;
  margin-right: 0;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  line-height: 1.6;
}
.spot-feedback-row.food-recommend-row .food-rec-stars {
  color: #c2956b;
  font-size: 15px;
  letter-spacing: 1px;
  margin-right: 4px;
}
.spot-feedback-row.food-recommend-row .food-rec-pros {
  color: #3d3d3a;
  font-weight: 500;
  flex: 1 0 100%;
}
.spot-feedback-row.food-recommend-row .food-rec-cons {
  color: #b4665c;
  flex: 1 0 100%;
}
.spot-feedback-row.food-recommend-row .food-rec-tips {
  color: #88947a;
  flex: 1 0 100%;
}
.spot-feedback-row.food-recommend-row .food-rec-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 2px;
  flex: 1 0 100%;
}
.spot-feedback-row.food-recommend-row .food-rec-tags em {
  font-style: normal;
  font-size: 11px;
  padding: 2px 8px;
  background: #f2eadf;
  color: #c2956b;
  border-radius: 10px;
}

/* 美食推荐汇总区（回顾页顶部） */
.review-food-summary {
  background: linear-gradient(135deg, #fff8f0 0%, #fffbf5 100%);
  border: 1px solid #f2eadf;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.food-summary-header {
  margin-bottom: 10px;
}
.food-summary-title {
  font-size: 15px;
  font-weight: 600;
  color: #c2956b;
}
.food-summary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.food-item {
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #eeeae2;
  cursor: pointer;
  transition: all 0.15s;
}
.food-item:active {
  background: #fff8f0;
  transform: scale(0.99);
}
.food-item.has-rec {
  border-left: 3px solid #c2956b;
  border-color: #f2eadf;
  background: #fffbf5;
}
.food-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.food-item-name {
  font-size: 14px;
  font-weight: 500;
  color: #3d3d3a;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.food-item-addr {
  font-size: 12px;
  color: #8a8880;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.food-item.has-rec .spot-extra {
  font-size: 11px;
  margin-top: 2px;
}
.food-item-empty {
  font-size: 11px;
  color: #8a8880;
  font-style: italic;
}

.food-item-stars {
  color: #c2956b;
  font-size: 13px;
  letter-spacing: 0;
  flex-shrink: 0;
  margin-left: 6px;
}
.food-item-pros {
  font-size: 12px;
  color: #3d3d3a;
  font-weight: 500;
  line-height: 1.5;
}
.food-item-cons {
  font-size: 12px;
  color: #b4665c;
  line-height: 1.5;
}

/* 无 Day / 无 Spot 状态 */
.review-empty {
  text-align: center;
  padding: 40px 10px;
  color: #8a8880;
  font-size: 13px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* -------- 回顾页弹窗内 -------- */
.review-modal-tabs {
  display: flex;
  border-bottom: 1px solid #e8e6df;
  margin-bottom: 14px;
}
.review-tab-btn {
  flex: 1;
  padding: 10px 0;
  background: none;
  border: none;
  font-size: 13px;
  color: #8a8880;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.review-tab-btn.active {
  color: #88947a;
  font-weight: 600;
  border-bottom-color: #88947a;
}

.review-tab-panel { display: none; }
.review-tab-panel.active { display: block; }

/* 补打卡 tab */
.checkin-status-row {
  display: flex;
  gap: 18px;
  margin-bottom: 14px;
}
.checkin-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #3d3d3a;
}
.checkin-switch input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #88947a;
  cursor: pointer;
}

.checkin-time-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.ci-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.ci-field label { font-size: 12px; color: #8a8880; }
.ci-field input[type="text"],
.ci-field input[type="time"],
.ci-field textarea {
  padding: 10px 12px;
  border: 1px solid #dddcd4;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  resize: vertical;
}
.ci-field textarea { min-height: 50px; }
.ci-plan-time {
  padding: 10px 12px;
  background: #f4f3ef;
  border-radius: 8px;
  font-size: 14px;
  color: #6f6d66;
}
.checkin-time-row .ci-field { flex: 1; min-width: 0; }
.checkin-time-row .ci-plan-time { min-width: 0; }

/* 反馈 tab */
.fb-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.fb-stars { font-size: 28px; line-height: 1; letter-spacing: 2px; }
.fb-stars span {
  cursor: pointer;
  color: #ddd;
  transition: color 0.15s;
}
.fb-stars span.active { color: #c2956b; }
.fb-rating-val { font-size: 13px; color: #8a8880; }

/* 照片 tab */
.photo-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  min-height: 60px;
}
.photo-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #eeeae2;
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-delete {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  background: rgba(180, 102, 92, 0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  line-height: 22px;
  cursor: pointer;
  padding: 0;
}
.photo-add-row { padding: 6px 0; }
.photo-add-row input[type="file"] { font-size: 13px; }

/* ============================================================
   备份相关（设置页）
   ============================================================ */
.backup-info {
  background: #f4f3ef;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 13px;
}
.backup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}
.backup-row span { color: #8a8880; }
.backup-row strong { color: #3d3d3a; font-weight: 600; }

.backup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.backup-actions .btn { flex: 1; min-width: 100px; text-align: center; }
.backup-import-btn {
  display: inline-block;
  cursor: pointer;
  user-select: none;
}

/* 描述文字（分享卡片等） */
.status-desc {
  font-size: 12px;
  color: #8a8880;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* ============================================================
   分享配置弹窗
   ============================================================ */
.share-field { margin-bottom: 14px; }
.share-field label { font-size: 12px; color: #8a8880; margin-bottom: 6px; display: block; }
.share-field .select { width: 100%; }

.share-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #f4f3ef;
  border-radius: 8px;
}
.share-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #3d3d3a;
  line-height: 1.5;
}
.share-opt input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #88947a;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.share-size-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #eef1ea;
  border-radius: 6px;
  font-size: 13px;
  color: #6f6d66;
  margin-bottom: 6px;
}
.share-size-row strong { color: #88947a; font-weight: 600; }
.share-size-warn {
  background: #f2eadf;
  color: #c2956b;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* ============================================================
   Day 切换器
   ============================================================ */
.day-tabs-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.day-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}
.day-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 16px;
  background: #eeeae2;
  color: #6f6d66;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.day-chip:hover { background: #dddcd4; color: #3d3d3a; }
.day-chip.active {
  background: #88947a;
  color: #fff;
}
.day-chip .day-chip-label { line-height: 1; }
.day-chip-menu {
  width: 18px;
  height: 18px;
  border: none;
  background: rgba(255,255,255,0.3);
  color: inherit;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.day-chip:not(.active) .day-chip-menu {
  background: #fff;
  color: #8a8880;
}

.btn-day-add {
  background: #fff;
  border: 1px dashed #88947a;
  color: #88947a;
  padding: 5px 12px;
  white-space: nowrap;
}
.btn-day-add:hover {
  background: #eef1ea;
  border-color: #88947a;
}

.btn-danger-outline {
  background: #fff;
  border: 1px solid #dfc4bd;
  color: #b4665c;
}
.btn-danger-outline:hover {
  background: #f5e8e5;
  border-color: #b4665c;
}

/* 景点卡片里的 Day 移动下拉 */
.spot-day-move-wrap {
  flex-shrink: 0;
}
.spot-day-move {
  padding: 4px 8px;
  border: 1px solid #dddcd4;
  border-radius: 6px;
  font-size: 11px;
  background: #fff;
  color: #6f6d66;
  cursor: pointer;
}

/* Day chip 上的颜色圆点（与地图 marker 同色） */
.day-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Day 操作弹窗按钮列 */
.day-menu-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.btn-danger {
  background: #b4665c;
  color: #fff;
}
.btn-danger:hover { background: #c0392b; }

/* 地图点选提示 */
.map-pick-hint {
  font-size: 12px;
  color: #c2956b;
  background: #fff8f0;
  border: 1px dashed #f0c58f;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

/* 点选模式：弹窗遮罩透明且可穿透，露出下面的地图 */
#spot-modal.pick-mode {
  background: transparent;
  pointer-events: none;
}
#spot-modal.pick-mode .modal-body {
  pointer-events: auto;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

/* 路线规划模式浮条 */
.route-mode-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(136, 148, 122, 0.95);
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
}
.route-mode-tip {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.route-mode-bar .btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 12px;
  font-size: 12px;
}
.route-mode-bar .btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* 出行方式选择 */
.route-mode-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.route-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 10px;
  background: #f4f3ef;
  border: 2px solid #dddcd4;
  border-radius: 10px;
  font-size: 13px;
  color: #3d3d3a;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}
.route-mode-btn:hover {
  background: #eef1ea;
  border-color: #88947a;
  color: #88947a;
}
.route-mode-btn:active {
  transform: scale(0.98);
}
