/* 旅行攻略 - 样式表 */
/* 从 index.html 提取 */

/* ========== Reset & Base ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  display: flex; align-items: center; justify-content: center;
  background: #2a2a2a;
  font-family: "Sarasa Gothic SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ========== CSS Variables ========== */
:root {
  --bg: #FFF6EC;
  --card-bg: #FFFFFF;
  --text-primary: #4A2511;
  --text-secondary: #6B3A1F;
  --text-muted: #999999;
  --accent: #FF8C42;
  --accent-light: #FFAD6B;
  --accent-lighter: #FFD9AD;
  --highlight-bg: #FFF0E0;
  --border: #FFE5CC;
  --unread: #FF3B30;
  --map-bg: #E8E0D8;
  --shadow-sm: 0 2px 12px rgba(255,140,66,0.08);
  --shadow-md: 0 4px 16px rgba(255,140,66,0.15);
  --shadow-up: 0 -2px 16px rgba(255,140,66,0.10);
}

/* ========== Phone Frame ========== */
.phone {
  width: 375px; height: 812px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
}

/* ========== Pages ========== */
.page {
  display: none;
  flex-direction: column;
  width: 100%; height: 100%;
  background: var(--bg);
  overflow: hidden;
}
.page.active { display: flex; }

/* ========== Status Bar ========== */
.status-bar {
  height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}
.status-bar .time {
  font-family: "Inter", sans-serif;
  font-size: 16px; font-weight: 600;
  color: var(--text-primary);
}
.status-bar.light .time { color: #FFFFFF; }
.status-bar .status-icons {
  display: flex; align-items: center; gap: 6px;
}

/* ========== Bottom Tab Bar ========== */
.tab-bar {
  height: 95px;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12px 21px 21px 21px;
  flex-shrink: 0;
  background: var(--bg);
}
.tab-pill {
  width: 100%; height: 62px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 36px;
  display: flex;
  box-shadow: var(--shadow-up);
  overflow: hidden;
}
.tab-item {
  flex: 1; height: 54px;
  margin: 4px;
  border-radius: 26px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.tab-item.active {
  background: var(--accent);
}
.tab-item svg { width: 18px; height: 18px; }
.tab-item .tab-label {
  font-size: 10px; font-weight: 400;
  color: var(--text-muted);
}
.tab-item.active svg path,
.tab-item.active svg circle,
.tab-item.active svg rect { stroke: #FFFFFF; fill: #FFFFFF; }
.tab-item.active .tab-label { color: #FFFFFF; }

/* ========== Scroll Area ========== */
.scroll-area {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.scroll-area::-webkit-scrollbar { display: none; }

/* ========== Common Components ========== */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.section-title {
  font-size: 18px; font-weight: 700;
  color: var(--text-primary);
}
.more-link {
  font-size: 12px;
  color: var(--accent);
}

/* ========== PAGE 1: Home ========== */
.home-search {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 0;
}
.location-pill {
  display: flex; align-items: center; gap: 4px;
  background: #FFF; border-radius: 19px;
  height: 38px; padding: 0 12px;
  box-shadow: var(--shadow-sm);
}
.location-pill .loc-text { font-size: 14px; color: var(--text-primary); }
.search-bar-pill {
  flex: 1; display: flex; align-items: center; gap: 6px;
  background: #FFF; border-radius: 19px;
  height: 38px; padding: 0 12px;
  box-shadow: var(--shadow-sm);
}
.search-bar-pill .placeholder { font-size: 13px; color: var(--text-muted); }

.home-content { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }

.hero-banner {
  margin: 0 16px;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.hero-banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}
.hero-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(74,38,18,0.15) 0%,
    rgba(74,38,18,0.30) 50%,
    rgba(74,38,18,0.65) 100%);
}
.hero-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}
.hero-dot {
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
}
.hero-dot.active {
  width: 16px;
  background: #FFF;
}
.hero-badge-rec {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 4;
  backdrop-filter: blur(4px);
}
.hero-badge-rec::before {
  content: '✦';
  font-size: 9px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(74,38,18,0.15) 0%,
    rgba(74,38,18,0.30) 50%,
    rgba(74,38,18,0.65) 100%);
}
.hero-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.hero-tag {
  display: inline-block; width: fit-content;
  background: rgba(255,255,255,0.30);
  border-radius: 10px;
  padding: 3px 8px;
  font-size: 10px; color: #FFF;
}
.hero-title { font-size: 24px; color: #FFF; }
.hero-subtitle { font-size: 12px; color: #FFF; }

.category-carousel {
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
}
.cat-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  width: 56px;
}
.cat-icon-bg {
  width: 44px; height: 44px;
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
}
.cat-label { font-size: 11px; color: var(--text-primary); }

.guide-card {
  display: flex; gap: 12px; align-items: center;
  margin: 0 16px;
  background: #FFF;
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.guide-card:active { transform: scale(0.98); }
.guide-card .img-wrap { position: relative; flex-shrink: 0; width: 100px; height: 100px; }
.guide-card img { width: 100px; height: 100px; border-radius: 12px; object-fit: cover; }
.guide-card-content { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.guide-card-title { font-size: 15px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-card-meta { font-size: 12px; color: var(--text-secondary); }
.guide-card-stats { display: flex; gap: 14px; }
.guide-card-stats .likes { color: var(--accent); }
.guide-card-stats span { font-size: 11px; color: var(--text-muted); }
.card-badge {
  position: absolute; top: 4px; left: 4px;
  background: var(--accent);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 10px; color: #FFF;
}
.guide-card .img-wrap { position: relative; }
.guide-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.guide-tag {
  display: inline-block;
  background: var(--highlight-bg);
  color: var(--accent);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ========== PAGE 2: Guide Detail ========== */
.detail-hero {
  height: 260px; position: relative; overflow: hidden;
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(74,38,18,0.05) 0%,
    rgba(74,38,18,0.20) 40%,
    rgba(74,38,18,0.65) 100%);
}
.detail-hero-buttons {
  position: absolute; top: 62px; left: 16px; right: 16px;
  display: flex; justify-content: space-between;
}
.detail-back-btn, .detail-share-btn {
  width: 36px; height: 36px;
  border-radius: 18px;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.detail-hero-title-wrap {
  position: absolute; left: 20px; right: 20px; bottom: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.detail-location-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 3px 8px;
  font-size: 10px; color: #FFF;
  width: fit-content;
}
.detail-hero-title { font-size: 24px; font-weight: 700; color: #FFF; }
.detail-hero-subtitle { font-size: 12px; color: #FFF; }

.detail-content { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.author-bar { display: flex; align-items: center; justify-content: space-between; }
.author-left { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 40px; height: 40px; border-radius: 20px; object-fit: cover; }
.author-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.author-meta { font-size: 11px; color: var(--text-muted); }
.follow-btn {
  background: var(--accent); border-radius: 16px;
  height: 32px; padding: 0 16px;
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: #FFF;
  cursor: pointer; border: none;
}

.stats-row { display: flex; gap: 10px; }
.stat-card {
  flex: 1; background: #FFF; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}
.stat-value { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.stat-label { font-size: 11px; color: var(--text-muted); }

.timeline { display: flex; flex-direction: column; }
.day-card {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid rgba(255,229,204,0.5);
}
.day-card:last-child { border-bottom: none; }
.day-left {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 44px; flex-shrink: 0;
}
.day-number { font-size: 20px; font-weight: 700; color: var(--accent); }
.day-label { font-size: 10px; color: var(--text-muted); }
.day-content { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.day-content .day-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.day-content .day-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

.detail-bottom-bar {
  height: 72px; display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  background: #FFF;
  box-shadow: 0 -2px 12px rgba(255,140,66,0.08);
  flex-shrink: 0;
}
.act-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 44px; }
.act-btn .act-label { font-size: 9px; color: var(--text-secondary); }
.start-trip-btn {
  flex: 1; height: 44px;
  background: var(--accent); border-radius: 22px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 15px; font-weight: 700; color: #FFF;
  border: none; cursor: pointer;
  box-shadow: 0 4px 12px rgba(255,140,66,0.30);
}

/* ========== PAGE 2.5: Trip Editor ========== */
.trip-editor-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: 52px;
}
.trip-editor-back {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,140,66,0.1); cursor: pointer;
}
.trip-editor-title { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.trip-editor-scroll { flex: 1; overflow-y: auto; }
.trip-edit-cover { width: 100%; height: 180px; overflow: hidden; }
.trip-edit-cover img { width: 100%; height: 100%; object-fit: cover; }
.trip-edit-info { padding: 16px 16px 4px; }
.trip-edit-name { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.trip-edit-meta { font-size: 13px; color: var(--text-muted); }
.trip-edit-section { padding: 12px 16px; }
.trip-edit-label {
  font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 10px;
}
.trip-edit-date-row { cursor: pointer; }
.trip-edit-date-box {
  background: var(--bg); border: 1.5px dashed var(--accent); border-radius: 12px;
  padding: 14px; text-align: center;
}
.trip-edit-date-val { font-size: 16px; font-weight: 600; color: var(--accent); }

/* 每日行程卡片 */
.trip-day-edit-card {
  background: #FFF; border-radius: 14px; padding: 14px;
  margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.trip-day-edit-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.trip-day-edit-date {
  font-size: 12px; color: var(--accent); font-weight: 600;
}
.trip-day-edit-input {
  width: 100%; border: 1.5px solid #f0e0d0; border-radius: 10px;
  padding: 10px 12px; font-size: 14px; color: var(--text-primary);
  font-family: inherit; outline: none; margin-bottom: 6px; box-sizing: border-box;
  background: var(--bg);
}
.trip-day-edit-input:focus { border-color: var(--accent); }
.trip-day-edit-desc {
  width: 100%; border: 1.5px solid #f0e0d0; border-radius: 10px;
  padding: 10px 12px; font-size: 13px; color: var(--text-secondary);
  font-family: inherit; outline: none; resize: vertical; min-height: 56px;
  box-sizing: border-box; background: var(--bg);
}
.trip-day-edit-desc:focus { border-color: var(--accent); }

/* 底部按钮 */
.trip-editor-bottom {
  height: 72px; display: flex; align-items: center; gap: 12px;
  padding: 0 16px; background: #FFF; border-top: 1px solid #f0e0d0;
}
.trip-editor-cancel {
  width: 80px; height: 44px; background: var(--bg); border-radius: 22px;
  border: 1.5px solid #e0d0c0; font-size: 15px; color: var(--text-secondary);
  cursor: pointer; font-family: inherit;
}
.trip-editor-save {
  flex: 1; height: 44px; background: var(--accent); border-radius: 22px;
  border: none; font-size: 15px; font-weight: 700; color: #FFF; cursor: pointer;
  box-shadow: 0 4px 12px rgba(255,140,66,0.30); font-family: inherit;
}

/* ========== PAGE 3: Trip Planning ========== */
.trip-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: 52px;
}
.trip-title { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.add-trip-btn {
  display: flex; align-items: center; gap: 4px;
  background: var(--accent); border-radius: 16px;
  height: 32px; padding: 0 12px;
  font-size: 12px; color: #FFF;
  border: none; cursor: pointer;
}
.trip-content { flex: 1; overflow-y: auto; padding: 0 16px; display: flex; flex-direction: column; gap: 16px; }

.upcoming-trip-card {
  background: #FFF; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-md); cursor: pointer;
}
.upcoming-trip-img-wrap { position: relative; }
.upcoming-trip-img-wrap img { width: 100%; height: 120px; object-fit: cover; }
.upcoming-status {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255,140,66,0.95); color: #FFF;
  padding: 3px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 600;
}
.upcoming-info { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.upcoming-info .trip-name { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.upcoming-info .trip-dates { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.trip-countdown-row { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.trip-countdown-num { font-size: 22px; font-weight: 700; color: var(--accent); }
.trip-countdown-text { font-size: 12px; color: var(--text-muted); }

.trip-actions { display: flex; gap: 10px; }
.trip-action-btn {
  flex: 1; height: 36px; background: var(--bg); border: 1px solid #e0d0c0;
  border-radius: 18px; font-size: 13px; color: var(--text-primary);
  cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 4px;
}
.trip-action-delete { color: #e74c3c; }

.trip-empty { text-align: center; padding: 60px 20px; }
.trip-empty-icon { font-size: 48px; margin-bottom: 16px; }
.trip-empty-title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.trip-empty-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }

.trip-mini-list { display: flex; flex-direction: column; gap: 10px; }
.trip-mini-card {
  display: flex; gap: 12px; background: #FFF; border-radius: 14px; padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04); cursor: pointer;
}
.trip-mini-card img { width: 80px; height: 60px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.trip-mini-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.trip-mini-title { font-size: 14px; font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-mini-meta { font-size: 12px; color: var(--text-muted); }
.trip-mini-route { font-size: 11px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 天气区域 */
.trip-weather-wrap { min-height: 20px; }
.trip-weather-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #FFF; border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.trip-weather-main { display: flex; align-items: center; gap: 12px; }
.trip-weather-icon { font-size: 32px; }
.trip-weather-info { display: flex; flex-direction: column; gap: 2px; }
.trip-weather-temp { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.trip-weather-desc { font-size: 12px; color: var(--text-muted); }
.trip-weather-meta { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.trip-weather-meta span { font-size: 11px; color: var(--text-muted); }

/* 地图区域 */
.trip-map-area {
  width: 100%; height: 120px; background: var(--map-bg);
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-sm); position: relative;
}
.trip-map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(255,246,236,0.5);
}

/* 行程详情页 */
.trip-detail-scroll { flex: 1; overflow-y: auto; }
.trip-detail-cover { width: 100%; height: 140px; position: relative; }
.trip-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.trip-detail-cover-status {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255,140,66,0.95); color: #FFF;
  padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600;
}
.trip-detail-info { padding: 14px 16px 4px; }
.trip-detail-name { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.trip-detail-meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.trip-detail-section { padding: 12px 16px; }
.trip-detail-section-title {
  font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 10px;
}
.llm-section {
  background: linear-gradient(135deg, #FFF8F0 0%, #FFF0E5 100%);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  margin: 0 16px 8px;
}
.llm-content {
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
}
.trip-detail-itin { display: flex; flex-direction: column; gap: 8px; }
.trip-detail-itin-card {
  display: flex; gap: 12px; background: #FFF; border-radius: 12px;
  padding: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); cursor: pointer;
}
.trip-detail-itin-day {
  width: 40px; flex-shrink: 0; text-align: center;
  font-size: 20px; font-weight: 700; color: var(--accent); line-height: 1;
}
.trip-detail-itin-date {
  font-size: 10px; color: var(--text-muted); margin-top: 2px;
}
.trip-detail-itin-body { flex: 1; min-width: 0; }
.trip-detail-itin-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.trip-detail-itin-desc { font-size: 12px; color: var(--text-secondary); margin-top: 3px; line-height: 1.4; }

/* 每日行程详情页 */
.trip-day-scroll { flex: 1; overflow-y: auto; padding-top: 8px; }
.trip-day-info { padding: 0 16px 12px; }
.trip-day-date { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.trip-day-name { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.trip-day-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.trip-day-nav { padding: 16px; display: flex; gap: 10px; }
.trip-day-nav-btn {
  flex: 1; height: 44px; background: #FFF; border: 1px solid #e0d0c0;
  border-radius: 22px; font-size: 14px; color: var(--text-primary); cursor: pointer; font-family: inherit;
}
.trip-day-nav-btn:disabled { color: var(--text-muted); cursor: not-allowed; background: var(--bg); }

/* 每日详情扩展内容 */
.day-spot-grid { display: flex; flex-direction: column; gap: 10px; }
.day-spot-card { display: flex; gap: 12px; background: #FFF; border-radius: 12px; padding: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.day-spot-img-wrap { width: 72px; height: 56px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--bg); }
.day-spot-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.day-spot-body { flex: 1; min-width: 0; }
.day-spot-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.day-spot-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.day-spot-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.day-spot-tag { font-size: 10px; background: var(--bg); color: var(--accent); padding: 1px 6px; border-radius: 8px; }

.day-meal-card { display: flex; gap: 12px; background: #FFF; border-radius: 12px; padding: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); margin-bottom: 10px; }
.day-meal-card img { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.day-meal-body { flex: 1; min-width: 0; }
.day-meal-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.day-meal-info { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.day-meal-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.day-meal-tag { font-size: 10px; background: #FFF0E0; color: #E07030; padding: 1px 6px; border-radius: 8px; }

.day-transport-card { display: flex; align-items: center; gap: 12px; background: #FFF; border-radius: 12px; padding: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.day-transport-icon { font-size: 32px; }
.day-transport-name { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.day-transport-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.day-budget-row { display: flex; gap: 8px; }
.day-budget-item { flex: 1; background: #FFF; border-radius: 12px; padding: 12px 8px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.day-budget-num { font-size: 16px; font-weight: 700; color: var(--accent); }
.day-budget-label { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

.day-packing-list { display: flex; flex-wrap: wrap; gap: 6px; }
.day-packing-item { font-size: 12px; background: #FFF; border: 1px solid #f0e0d0; border-radius: 16px; padding: 5px 10px; color: var(--text-secondary); }
.day-weather-tip { font-size: 13px; color: #C05820; background: #FFF9F2; border-radius: 10px; padding: 12px; line-height: 1.5; }

.today-header { display: flex; align-items: center; justify-content: space-between; }
.today-date { font-size: 12px; color: var(--text-muted); }

.map-preview {
  background: var(--map-bg); border-radius: 16px;
  height: 130px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-preview svg { width: 100%; height: 100%; }
.map-label {
  position: absolute; top: 12px; left: 12px;
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.9);
  border-radius: 10px;
  padding: 4px 8px;
  font-size: 11px; color: var(--text-primary);
}

.itinerary-timeline { display: flex; flex-direction: column; }
.itin-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid rgba(255,229,204,0.5);
}
.itin-item:last-child { border-bottom: none; }
.itin-time {
  width: 50px; flex-shrink: 0;
  font-size: 14px; font-weight: 600; color: var(--accent);
}
.itin-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.itin-body .itin-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.itin-body .itin-desc { font-size: 12px; color: var(--text-secondary); }

/* ========== PAGE 4: Profile ========== */
.profile-header {
  height: 240px; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(to bottom, #FF8C42 0%, #FFAD6B 60%, #FFD9AD 100%);
  display: flex; flex-direction: column;
}
.profile-top-row {
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px; flex: 1;
}
.profile-avatar {
  width: 64px; height: 64px;
  border-radius: 32px;
  border: 2px solid #FFF;
  object-fit: cover;
}
.profile-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.profile-name { font-size: 20px; font-weight: 700; color: #FFF; }
.profile-bio { font-size: 12px; color: rgba(255,255,255,0.8); }
.profile-stats-row {
  display: flex; align-items: center; justify-content: space-evenly;
  height: 78px;
}
.profile-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.profile-stat .stat-num { font-size: 20px; font-weight: 700; color: #FFF; }
.profile-stat .stat-text { font-size: 11px; color: rgba(255,255,255,0.8); }
.profile-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.3); }

.profile-content { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.quick-actions { display: flex; gap: 10px; }
.qa-card {
  flex: 1; background: #FFF; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}
.qa-card .qa-label { font-size: 11px; color: var(--text-secondary); }

.saved-list { display: flex; flex-direction: column; gap: 10px; }
.saved-card {
  display: flex; gap: 12px;
  background: #FFF; border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.saved-card img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; margin: 0 0 0 12px; align-self: center; }
.saved-card-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 12px 0; }
.saved-card-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.saved-card-meta { font-size: 12px; color: var(--text-muted); }

/* ========== PAGE 5: Search Results ========== */
.search-header {
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; height: 64px;
}
.search-back-btn {
  width: 32px; height: 32px; border-radius: 16px;
  background: #FFF;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.search-input {
  flex: 1; height: 40px;
  background: #FFF; border-radius: 20px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  box-shadow: var(--shadow-sm);
}
.search-input .search-text { font-size: 14px; color: var(--text-primary); }
.search-btn-text { font-size: 14px; font-weight: 700; color: var(--accent); }

.filter-chips { display: flex; gap: 8px; padding: 0 16px; height: 56px; align-items: center; }
.chip {
  display: flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 12px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
}
.chip.active { background: var(--accent); color: #FFF; font-weight: 700; }
.chip.inactive { background: #FFF; color: var(--text-secondary); }

.sort-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: 39px;
}
.result-count { font-size: 12px; color: var(--text-muted); }
.sort-dropdown { display: flex; align-items: center; gap: 4px; }
.sort-text { font-size: 12px; font-weight: 700; color: var(--text-primary); }

.search-card-list { flex: 1; overflow-y: auto; padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.result-card {
  display: flex; gap: 12px; align-items: center;
  background: #FFF; border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.result-card img { width: 90px; height: 90px; border-radius: 10px; object-fit: cover; }
.result-card-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.result-card-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.result-card-meta { font-size: 12px; color: var(--text-secondary); }
.result-card-stats { display: flex; gap: 12px; }
.result-card-stats span { font-size: 11px; color: var(--text-muted); }
.result-card-stats .likes { color: var(--accent); }
.result-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* ========== PAGE 6: City Explore ========== */
.city-hero {
  height: 280px; position: relative; overflow: hidden; flex-shrink: 0;
}
.city-hero img { width: 100%; height: 100%; object-fit: cover; }
.city-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
}
.city-hero-buttons {
  position: absolute; top: 62px; left: 16px; right: 16px;
  display: flex; justify-content: space-between;
}
.city-title-block {
  position: absolute; left: 20px; right: 20px; bottom: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.city-name { font-size: 28px; font-weight: 700; color: #FFF; }
.city-desc { font-size: 13px; color: rgba(255,255,255,0.8); }

.city-tabs { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; height: 50px; }
.city-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.city-tab .ct-text { font-size: 14px; color: var(--text-secondary); }
.city-tab.active .ct-text { font-size: 16px; font-weight: 700; color: var(--accent); }
.city-tab .ct-line { width: 24px; height: 3px; border-radius: 1.5px; background: var(--accent); }

.spots-grid { flex: 1; overflow-y: auto; padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.spots-row { display: flex; gap: 12px; }
.spot-card {
  flex: 1; background: #FFF; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.spot-card img { width: 100%; height: 120px; object-fit: cover; }
.spot-card-body { padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.spot-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.spot-rating { display: flex; align-items: center; gap: 4px; }
.spot-rating .stars { color: var(--accent); font-size: 11px; }
.spot-rating .rating-text { font-size: 11px; color: var(--text-muted); }
.spot-tags { display: flex; gap: 4px; }
.spot-tag { font-size: 10px; color: var(--accent); background: var(--highlight-bg); border-radius: 4px; padding: 1px 4px; }

/* ========== PAGE 7: Messages ========== */
.msg-header { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; height: 55px; }
.msg-title { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.read-all-btn {
  display: flex; align-items: center; gap: 4px;
  background: var(--highlight-bg); border-radius: 16px;
  height: 31px; padding: 0 12px;
  font-size: 12px; color: var(--accent);
  border: none; cursor: pointer;
}

.msg-tabs { display: flex; gap: 12px; padding: 0 16px; height: 56px; align-items: center; }
.msg-tab {
  display: flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 12px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
}
.msg-tab.active { background: var(--accent); color: #FFF; font-weight: 700; }
.msg-tab.inactive { background: #FFF; color: var(--text-secondary); }
.msg-badge {
  width: 16px; height: 16px; border-radius: 8px;
  background: #FFF; color: var(--accent);
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.msg-list { flex: 1; overflow-y: auto; padding: 0 16px; display: flex; flex-direction: column; gap: 4px; }
.msg-item {
  display: flex; gap: 12px; align-items: center;
  background: #FFF; border-radius: 12px;
  padding: 12px;
}
.msg-item.highlight { background: var(--highlight-bg); }
.msg-avatar {
  width: 40px; height: 40px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.msg-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.msg-item-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.msg-item-desc { font-size: 12px; color: var(--text-muted); }
.msg-item-time { font-size: 11px; color: var(--text-muted); }
.msg-unread-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--unread); flex-shrink: 0; }

/* ========== PAGE 8: Food ========== */
.food-header { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; height: 62px; }
.food-title-block { display: flex; flex-direction: column; gap: 2px; }
.food-title { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.food-subtitle { font-size: 12px; color: var(--text-muted); }
.filter-btn {
  width: 36px; height: 36px; border-radius: 18px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
}

.food-cat-bar { display: flex; gap: 8px; padding: 0 16px; height: 56px; align-items: center; }
.food-featured { padding: 0 16px; }
.food-featured-card {
  background: #FFF; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.food-featured-card img { width: 100%; height: 110px; object-fit: cover; }
.food-featured-body { padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; }
.food-featured-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.food-featured-info { font-size: 11px; color: var(--text-muted); }

.food-section-title { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; height: 27px; }
.food-section-title .fst-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.food-section-title .fst-more { font-size: 12px; color: var(--text-muted); }

.food-list { flex: 1; overflow-y: auto; padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.food-card {
  display: flex; gap: 12px; align-items: center;
  background: #FFF; border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}
.food-card img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; }
.food-card-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.food-card-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.food-card-tags { display: flex; gap: 4px; }
.food-card-tag { font-size: 10px; color: var(--accent); background: var(--highlight-bg); border-radius: 4px; padding: 1px 4px; }
.food-card-info { display: flex; align-items: center; gap: 8px; }
.food-card-info .rating { font-size: 11px; color: var(--accent); }
.food-card-info .distance { font-size: 11px; color: var(--text-muted); }

/* ========== SVG Icons ========== */
.icon { display: inline-block; vertical-align: middle; }

/* ========== 城市选择弹窗 ========== */
.city-sheet-mask {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.city-sheet-mask.show { display: block; opacity: 1; }
.city-sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #FFF6EC;
  border-radius: 20px 20px 0 0;
  max-height: 75%;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 101;
}
.city-sheet.show { transform: translateY(0); }
.city-sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #FFE5CC;
}
.city-sheet-title { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.city-sheet-close {
  width: 28px; height: 28px; border-radius: 14px;
  background: #FFF; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; font-size: 16px; color: var(--text-secondary);
}
.city-sheet-tabs {
  display: flex; gap: 6px; padding: 12px 16px;
  overflow-x: auto; border-bottom: 1px solid #FFE5CC;
  scrollbar-width: none;
}
.city-sheet-tabs::-webkit-scrollbar { display: none; }
.city-sheet-tab {
  padding: 6px 14px; border-radius: 16px;
  font-size: 13px; white-space: nowrap;
  background: #FFF; color: var(--text-secondary);
  cursor: pointer; border: 1px solid #FFE5CC;
}
.city-sheet-tab.active {
  background: var(--accent); color: #FFF; border-color: var(--accent);
}
.city-sheet-body { flex: 1; overflow-y: auto; padding: 8px 0 24px; }
.city-group { margin-bottom: 14px; }
.city-group-title {
  font-size: 12px; color: var(--text-muted);
  padding: 4px 20px; font-weight: 600; letter-spacing: 0.5px;
}
.city-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: #FFE5CC; padding: 1px;
}
.city-cell {
  background: #FFF6EC; padding: 14px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer; transition: background 0.15s;
}
.city-cell:hover, .city-cell:active { background: #FFF0E0; }
.city-cell-name { font-size: 14px; color: var(--text-primary); font-weight: 500; }
.city-cell-pinyin { font-size: 9px; color: var(--text-muted); }
.city-cell.active .city-cell-name { color: var(--accent); font-weight: 700; }
.city-cell.active { background: #FFF0E0; }

/* ========== 搜索弹窗 ========== */
.search-modal-mask {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 110;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.search-modal-mask.show { display: block; opacity: 1; }
.search-modal {
  position: absolute; left: 0; right: 0; top: 0;
  background: #FFF6EC;
  height: 100%;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 111;
}
.search-modal.show { transform: translateY(0); }
.search-modal-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 16px 12px;
  background: #FFF6EC;
}
.search-modal-back {
  width: 32px; height: 32px; border-radius: 16px;
  background: #FFF; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; flex-shrink: 0;
}
.search-modal-input-wrap {
  flex: 1; height: 40px; background: #FFF;
  border-radius: 20px; padding: 0 16px;
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid #FFE5CC;
}
.search-modal-input-wrap:focus-within { border-color: var(--accent); }
.search-modal-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--text-primary);
  font-family: inherit;
}
.search-modal-input::placeholder { color: var(--text-muted); }
.search-modal-clear {
  width: 16px; height: 16px; border-radius: 8px;
  background: #DDD; color: #FFF; font-size: 10px;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.search-modal-input.has-value ~ .search-modal-clear { display: flex; }
.search-modal-body { flex: 1; overflow-y: auto; padding: 4px 16px 24px; }
.search-section { margin-bottom: 20px; }
.search-section-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 10px; padding: 0 2px;
}
.search-section-action { font-size: 12px; color: var(--text-muted); cursor: pointer; }
.search-hot-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.search-hot-tag {
  padding: 6px 14px; background: #FFF; border-radius: 16px;
  font-size: 13px; color: var(--text-secondary);
  cursor: pointer; border: 1px solid #FFE5CC;
}
.search-hot-tag.hot { color: var(--accent); border-color: #FFD4B0; }
.search-history {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.search-history-item {
  padding: 6px 14px; background: #FFF0E0; border-radius: 16px;
  font-size: 13px; color: var(--text-secondary); cursor: pointer;
}
.search-suggest-list { display: flex; flex-direction: column; gap: 2px; }
.search-suggest-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px; background: #FFF;
  border-radius: 12px; cursor: pointer; margin-bottom: 6px;
}
.search-suggest-icon {
  width: 28px; height: 28px; border-radius: 14px;
  background: var(--highlight-bg); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.search-suggest-text { flex: 1; }
.search-suggest-name { font-size: 14px; color: var(--text-primary); }
.search-suggest-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.search-suggest-go {
  font-size: 12px; color: var(--accent); font-weight: 600;
}
.search-empty {
  text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 13px;
}
.search-empty-icon { font-size: 40px; margin-bottom: 8px; opacity: 0.3; }