/* ============================================
   机位便签 — 排版小动物风格
   手绘简笔 · 微手账拼贴 · 暖色调平面风
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
  --bg: #FBFAF7;
  --card: #FFFEF9;
  --border: #E8E0D8;
  --text: #4A4543;
  --text-secondary: #9B9590;
  --text-light: #C4BFB8;
  --accent: #E8A87C;
  --accent-light: #FFF5EE;
  --orange: #E8A87C;
  --orange-light: #FFF8F2;
  --pink: #E8C4B8;
  --pink-light: #FBF0EB;
  --pink-bg: #FDFAF8;
  --blue: #B8CCD8;
  --blue-light: #F0F4F7;
  --green: #C4D4B8;
  --green-light: #F2F6EF;
  --yellow: #F5E6C8;
  --yellow-light: #FDF9F0;
  --sunny: #E0C080;
  --sunny-light: #FFF9EE;
  --sunny-bg: #FFFCF6;
  --cloudy: #A0ADB8;
  --cloudy-light: #F0F2F5;
  --cloudy-bg: #F6F8FA;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --phone-w: 375px;
  --phone-h: 812px;
  --tab-h: 56px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease: 0.2s ease;
}

/* ---------- 全局 ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: var(--font);
  background: var(--bg);
  background-image: radial-gradient(circle, #E8E0D8 0.5px, transparent 0.5px);
  background-size: 20px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button { font-family: var(--font); cursor: pointer; border: none; outline: none; background: none; }
input, textarea { font-family: var(--font); outline: none; border: none; }
a { color: inherit; text-decoration: none; }

/* ---------- 手机框架 ---------- */
.phone-frame {
  width: var(--phone-w); height: var(--phone-h);
  background: var(--bg);
  background-image: radial-gradient(circle, #E8E0D8 0.5px, transparent 0.5px);
  background-size: 20px 20px;
  overflow: hidden; position: relative;
  display: flex; flex-direction: column;
}

/* ---------- 页面容器 ---------- */
.page-container { flex: 1; overflow: hidden; position: relative; }
.page {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  display: none; flex-direction: column;
  -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
  padding-top: 8px;
}
.page.active { display: flex; }
.page::-webkit-scrollbar { width: 0; }

/* ---------- 页面头部 ---------- */
.page-header {
  padding: 10px 16px 6px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; gap: 10px;
}
.page-header .title { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: 0.5px; }
.page-header .title .emoji { font-size: 20px; margin-right: 2px; }
.btn-back {
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 20px; cursor: pointer; border: none; background: none;
  color: var(--text); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.btn-back:active { background: var(--pink-light); }

/* ---------- 底部 Tab 栏 ---------- */
.tab-bar {
  height: var(--tab-h); background: var(--card);
  display: flex; align-items: center;
  border-top: 1px solid var(--border);
  flex-shrink: 0; padding-bottom: 4px;
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; color: var(--text-secondary);
  font-size: 10px; transition: color var(--ease); padding: 4px 0;
}
.tab-item .tab-icon { font-size: 22px; line-height: 1; transition: transform var(--ease); }
.tab-item.active { color: var(--pink); font-weight: 600; }
.tab-item.active .tab-icon { transform: scale(1.1); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 24px; border-radius: 20px;
  font-size: 14px; font-weight: 600; transition: all var(--ease);
  letter-spacing: 0.5px; border: 1.5px solid transparent;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--pink); color: #fff; border-color: var(--pink); }
.btn-outline { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--pink); color: var(--pink); }
.btn-sm { padding: 6px 16px; font-size: 12px; border-radius: 16px; }
.btn-block { width: 100%; padding: 12px; font-size: 15px; }

/* ---------- 搜索栏 ---------- */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 0 16px 12px; padding: 9px 14px;
  background: var(--card); border-radius: 20px;
  border: 1.5px solid var(--border);
}
.search-bar:focus-within { border-color: var(--accent); }
.search-icon { font-size: 16px; opacity: 0.5; flex-shrink: 0; }
.search-input { flex: 1; font-size: 14px; color: var(--text); background: none; border: none; outline: none; }
.search-input::placeholder { color: var(--text-light); }
.search-clear {
  width: 22px; height: 22px; border-radius: 50%; font-size: 11px;
  color: var(--text-secondary); background: var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all var(--ease);
}
.search-clear:active { background: #d4c8c0; }

/* ---------- 错误横幅 ---------- */
.error-banner {
  margin: 0 16px 10px; padding: 10px 14px;
  background: #FFF0F0; border-radius: var(--radius-sm);
  font-size: 12px; color: #C44; display: none;
  line-height: 1.5; border: 1px solid #FDD;
}
.error-banner.show { display: block; }

/* ---------- 卡片 ---------- */
.spot-list { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.spot-card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; border: 1.5px solid var(--border);
  transition: all var(--ease); position: relative;
}
.spot-card:active { transform: scale(0.985); }
.spot-card .card-img { width: 100%; height: 200px; object-fit: cover; display: block; background: var(--blue-light); }
.card-img-placeholder {
  display: flex !important; align-items: center; justify-content: center;
  font-size: 48px; background: var(--pink-light); color: rgba(0,0,0,0.12);
}
.spot-card .card-body { padding: 14px 16px; }
.spot-card .card-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.spot-card .card-meta { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; display: flex; align-items: center; gap: 4px; }
.spot-card .card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.spot-card .card-user { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); flex-shrink: 0; }
.spot-card .tag-row { gap: 8px; padding-top: 2px; }
.card-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--pink-light); display: flex;
  align-items: center; justify-content: center;
  font-size: 14px; overflow: hidden; flex-shrink: 0;
}
.card-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 标签 ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 4px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 500; white-space: nowrap;
  transition: all var(--ease); cursor: default;
}
.tag.clickable { cursor: pointer; }
.tag.clickable:active { transform: scale(0.94); }
.tag-weather { background: var(--cloudy-light); color: var(--cloudy); border: 1px solid var(--cloudy); border-style: dashed; }
.tag-weather.sun-tag { background: var(--sunny-light); color: var(--sunny); border-color: var(--sunny); border-style: dashed; }
.tag-scene { background: var(--green-light); color: #7B9E7B; border: 1px dashed #C4D4B8; }
.tag.selected { background: var(--pink); color: #fff; border-style: solid; border-color: var(--pink); }

/* ---------- 添加页面 ---------- */
.add-page-inner { padding: 0 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 40px 20px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: var(--card); cursor: pointer; transition: all var(--ease);
  position: relative; overflow: hidden; min-height: 180px;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--pink); background: var(--pink-light); }
.upload-zone .upload-icon { font-size: 48px; opacity: 0.6; transition: transform var(--ease); }
.upload-zone:hover .upload-icon { transform: translateY(-4px); }
.upload-zone .upload-text { font-size: 14px; color: var(--text-secondary); }
.upload-zone .upload-hint { font-size: 11px; color: var(--text-light); }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone .zone-deco {
  position: absolute; font-size: 36px; opacity: 0.12; pointer-events: none; transition: all 0.4s ease;
}
.upload-zone .zone-deco.cat { bottom: 8px; right: 16px; }
.upload-zone .zone-deco.dog { bottom: 6px; left: 14px; }
.upload-zone:hover .zone-deco { opacity: 0.25; transform: scale(1.05); }

.preview-area { position: relative; border-radius: var(--radius); overflow: hidden; display: none; }
.preview-area.has-image { display: block; }
.preview-area img { width: 100%; max-height: 280px; object-fit: cover; display: block; border-radius: var(--radius); }
.preview-area .preview-overlay { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.preview-area .preview-overlay button {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.35); color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 表单 ---------- */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-input, .form-textarea {
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--card); border: 1.5px solid var(--border);
  font-size: 14px; color: var(--text); transition: border-color var(--ease);
}
.form-input:focus, .form-textarea:focus { border-color: var(--pink); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-light); }
.form-textarea { resize: none; height: 80px; line-height: 1.5; }
.tag-section { display: flex; flex-direction: column; gap: 8px; }
.tag-section .section-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }

.ai-status {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: 12px; background: var(--blue-light);
  font-size: 13px; color: var(--blue); margin-bottom: 8px;
}
.ai-status-icon { font-size: 18px; }

/* ---------- 首页 ---------- */
.home-brand { padding: 8px 16px 12px; }
.home-brand .brand-name { font-size: 22px; font-weight: 700; color: var(--text); }
.home-brand .brand-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.home-brand .brand-row { display: flex; align-items: center; justify-content: space-between; }

#citySelector {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 16px; border-radius: 20px; font-size: 13px;
  font-weight: 500; cursor: pointer; transition: all 0.2s;
  background: var(--card); color: var(--accent);
  border: 1.5px solid var(--accent);
}
#citySelector:active { transform: scale(0.96); background: var(--accent-light); }

/* 天气卡片 */
.weather-card {
  margin: 12px 16px; padding: 16px;
  border-radius: var(--radius); background: var(--sunny-bg);
  display: flex; align-items: center; justify-content: space-between;
  border: 1.5px dashed var(--sunny);
}
.weather-card .weather-info { display: flex; align-items: center; gap: 10px; }
.weather-card .weather-icon { font-size: 32px; }
.weather-card .weather-text { display: flex; flex-direction: column; gap: 2px; }
.weather-card .weather-temp { font-size: 16px; font-weight: 700; color: var(--text); }
.weather-card .weather-city { font-size: 12px; color: var(--text-secondary); }
.weather-card .weather-msg { font-size: 13px; color: var(--accent); font-weight: 500; }

/* 天气Tab */
.weather-tabs { display: flex; gap: 8px; margin: 0 16px 12px; }
.weather-tab {
  flex: 1; padding: 10px 0; border-radius: 14px; font-size: 13px;
  cursor: pointer; border: none; transition: all 0.2s; text-align: center; font-weight: 500;
}
.weather-tab-sunny { background: var(--sunny-light); color: #C08040; border: 1.5px dashed var(--sunny); }
.weather-tab-cloudy { background: var(--cloudy-light); color: #607080; border: 1.5px dashed var(--cloudy); }
.weather-tab.active-sunny { background: var(--sunny); color: #fff; font-weight: 700; border-style: solid; }
.weather-tab.active-cloudy { background: var(--cloudy); color: #fff; font-weight: 700; border-style: solid; }

/* 类型筛选标签 */
.tag-group {
  display: flex; gap: 8px; flex-wrap: nowrap;
  margin-bottom: 12px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; padding: 0 16px; scrollbar-width: none;
}
.tag-group::-webkit-scrollbar { display: none; }
.tag-group .tag {
  padding: 7px 14px; border-radius: 16px; font-size: 12px;
  cursor: pointer; user-select: none; transition: all 0.2s;
  border: 1.5px dashed transparent; font-weight: 500; flex-shrink: 0;
}
.tag-group .tag.active { border-color: var(--accent); border-style: solid; font-weight: 700; }
.filter-tag { background: #E3F2FD; color: #5A8090; }
.filter-tag:nth-child(2n) { background: #E8F5E9; color: #5A8E5A; }
.filter-tag:nth-child(3n) { background: #FFF3E0; color: #A07050; }
.filter-tag:nth-child(4n) { background: #FFF9C4; color: #A09040; }
.tag-more { flex-shrink: 0; }

/* 景点分组卡片 */
.group-card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; border: 1.5px solid var(--border);
  transition: all var(--ease); margin-bottom: 14px; cursor: pointer; position: relative;
}
.group-card:active { transform: scale(0.985); }
.group-card .card-img { width: 100%; height: 200px; object-fit: cover; display: block; background: var(--blue-light); }
.group-card .card-body { padding: 14px 16px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.card-title-text { font-size: 16px; font-weight: 600; color: var(--text); flex: 1; min-width: 0; }
.card-title-tags { display: flex; gap: 6px; flex-shrink: 0; }
.group-card .card-meta { font-size: 12px; color: var(--text-secondary); }
.group-back { display: inline-block; padding: 6px 0; font-size: 13px; color: var(--accent); cursor: pointer; margin-bottom: 4px; }
.group-back:active { opacity: 0.6; }
.group-header { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 10px; }

.section-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-bottom: 12px; padding: 0 16px;
  display: flex; align-items: center; gap: 6px;
}

/* ---------- 城市选择弹窗 ---------- */
.city-picker-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.2);
  z-index: 200; display: flex; align-items: flex-end; justify-content: center;
}
.city-picker-sheet {
  width: 100%; max-width: 375px; max-height: 60vh;
  background: var(--card); border-radius: 20px 20px 0 0;
  padding: 16px 20px 30px; overflow-y: auto;
  border-top: 1px solid var(--border);
}
.city-picker-title { font-size: 16px; font-weight: 600; text-align: center; margin-bottom: 12px; color: var(--text); }
.city-picker-list { display: flex; flex-wrap: wrap; gap: 10px; }
.city-picker-item {
  width: calc(33.33% - 7px); padding: 12px 0;
  text-align: center; border-radius: 12px; font-size: 14px;
  background: var(--bg); color: var(--text); cursor: pointer;
  border: 1.5px solid transparent; transition: all 0.15s;
}
.city-picker-item.active { border-color: var(--pink); background: var(--pink-light); font-weight: 600; }
.city-picker-item:active { transform: scale(0.95); }

/* ---------- 登录/注册 ---------- */
.auth-container { display: flex; flex-direction: column; align-items: center; padding: 40px 20px; gap: 20px; }
.auth-tabs { display: flex; background: var(--card); border-radius: 24px; padding: 4px; border: 1px solid var(--border); }
.auth-tab {
  padding: 8px 28px; border-radius: 20px; font-size: 14px;
  font-weight: 600; color: var(--text-secondary); transition: all var(--ease);
}
.auth-tab.active { background: var(--pink); color: #fff; }
.auth-form { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.auth-form .form-input { padding: 12px 16px; font-size: 14px; }
.auth-avatar-pick { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.avatar-main-wrap { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.avatar-main {
  width: 64px; height: 64px; border-radius: 50%; font-size: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--pink); background: var(--pink-light); overflow: hidden;
}
.avatar-main img { width: 100%; height: 100%; object-fit: cover; }
.avatar-plus-badge {
  position: absolute; bottom: -2px; right: -2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--pink); color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: 2px solid #fff;
}
.avatar-plus-badge:active { transform: scale(0.9); }
.avatar-dice-text { font-size: 13px; color: var(--text-secondary); cursor: pointer; user-select: none; }
.avatar-dice-text:active { opacity: 0.6; }
.auth-hero { font-size: 56px; animation: bounce-hero 2s ease-in-out infinite; }
@keyframes bounce-hero { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ---------- 我的页面 ---------- */
#profileArea, #authArea { padding: 8px 16px 0; }
.profile-header { display: flex; flex-direction: column; align-items: center; padding: 28px 0 20px; gap: 10px; }
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--pink-light); font-size: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--border); position: relative; overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 18px; font-weight: 700; color: var(--text); }
.profile-stats { display: flex; gap: 24px; font-size: 13px; color: var(--text-secondary); }
.profile-stats span { font-weight: 700; color: var(--text); }
.logout-btn {
  padding: 6px 18px; border-radius: 16px; font-size: 12px;
  color: var(--text-secondary); background: var(--card);
  border: 1px solid var(--border); transition: all var(--ease);
}
.logout-btn:hover { color: #D48B8B; border-color: #D48B8B; }
.edit-profile-btn { transition: all var(--ease); cursor: pointer; }
.edit-profile-btn:hover { border-color: var(--pink); color: var(--pink); }

/* 我的机位列表 */
.my-spots { padding: 0 16px 20px; }
.my-spot-item {
  display: flex; gap: 12px; align-items: center;
  padding: 10px; background: var(--card); border-radius: var(--radius-sm);
  margin-bottom: 8px; border: 1px solid var(--border); transition: all var(--ease);
}
.my-spot-img { width: 64px; height: 64px; border-radius: var(--radius-xs); object-fit: cover; flex-shrink: 0; background: var(--blue-light); }
.my-spot-item .my-spot-info { flex: 1; min-width: 0; }
.my-spot-item .my-spot-name { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-spot-item .my-spot-meta { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.my-spot-item .delete-btn { color: #D48B8B; font-size: 18px; padding: 6px; flex-shrink: 0; opacity: 0.5; transition: all var(--ease); }
.my-spot-item .delete-btn:hover { opacity: 1; }

/* ---------- 搜索页 ---------- */
.search-overlay {
  position: absolute; inset: 0; background: var(--bg);
  z-index: 100; display: flex; flex-direction: column;
}
.search-header { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--bg); flex-shrink: 0; }
.search-back { font-size: 20px; cursor: pointer; padding: 4px; color: var(--text); }
.search-overlay-input {
  flex: 1; padding: 10px 14px; border-radius: 20px;
  border: 1.5px solid var(--border); background: var(--card); font-size: 14px; outline: none;
}
.search-overlay-input:focus { border-color: var(--pink); }
.search-overlay-clear { font-size: 16px; cursor: pointer; padding: 4px; color: var(--text-secondary); }
.search-body { flex: 1; overflow-y: auto; padding: 0 16px 20px; }
.search-hot-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 12px; background: var(--card);
  margin-bottom: 8px; cursor: pointer; transition: all 0.15s;
  border: 1px solid var(--border);
}
.search-hot-card:active { transform: scale(0.98); }
.search-hot-card .hot-icon { font-size: 28px; }
.search-hot-card .hot-info { flex: 1; }
.search-hot-card .hot-name { font-size: 14px; font-weight: 600; color: var(--text); }
.search-hot-card .hot-meta { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.city-tag-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.city-tag-grid .city-tag-item {
  padding: 8px 16px; border-radius: 16px; font-size: 13px;
  background: var(--card); color: var(--text); cursor: pointer;
  border: 1px solid var(--border); transition: all 0.15s;
}
.city-tag-grid .city-tag-item:active { transform: scale(0.95); background: var(--pink-light); border-color: var(--pink); }
#searchResultsList { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- 空状态 ---------- */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 48px 16px; gap: 12px; color: var(--text-light);
}
.empty-state .empty-icon { font-size: 56px; opacity: 0.5; }
.empty-state .empty-text { font-size: 14px; }

/* ---------- 机位详情弹窗（旧版保留） ---------- */
.modal-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.2);
  z-index: 100; display: none; align-items: flex-end; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-sheet {
  background: var(--card); border-radius: 20px 20px 0 0;
  width: 100%; max-height: 85%; overflow-y: auto;
  padding-bottom: var(--safe-bottom);
  border-top: 1px solid var(--border);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from{transform:translateY(100%)} to{transform:translateY(0)} }
.modal-sheet::-webkit-scrollbar { width: 0; }
.modal-handle { width: 36px; height: 4px; background: var(--text-light); border-radius: 2px; margin: 12px auto 8px; }
.modal-close {
  position: absolute; top: 12px; right: 16px; width: 28px; height: 28px;
  border-radius: 50%; background: var(--border); font-size: 16px;
  display: flex; align-items: center; justify-content: center; z-index: 101; transition: all var(--ease);
}
.modal-close:active { background: var(--pink-light); }

/* ---------- 全屏机位详情页 ---------- */
.detail-main-img { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); display: block; background: var(--blue-light); }
.detail-content { padding: 0 16px 120px; display: flex; flex-direction: column; gap: 10px; }
.detail-section { background: var(--card); border-radius: var(--radius); padding: 14px; border: 1px solid var(--border); }
.detail-section .ds-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.detail-section .ds-title { font-size: 14px; font-weight: 600; color: var(--text); }
.detail-section .ds-meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.detail-section .ds-desc { font-size: 14px; color: var(--text); line-height: 1.5; }
#favBtn { margin: 4px 16px 16px; }

/* 照片画廊 */
.photo-gallery { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.photo-gallery::-webkit-scrollbar { height: 0; }
.photo-gallery-item { flex-shrink: 0; width: 140px; height: 140px; border-radius: 12px; overflow: hidden; scroll-snap-align: start; position: relative; }
.photo-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-gallery-item .photo-author {
  position: absolute; bottom: 4px; left: 4px; font-size: 10px;
  color: #fff; background: rgba(0,0,0,0.4); padding: 2px 6px; border-radius: 8px;
}

/* 同类型推荐 */
.related-thumb-row { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px 0; }
.related-thumb-row::-webkit-scrollbar { display: none; }
.related-thumb { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; width: 72px; cursor: pointer; }
.related-thumb img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); }
.related-thumb-placeholder { width: 72px; height: 72px; border-radius: 10px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 28px; color: rgba(0,0,0,0.12); }
.related-thumb-label { font-size: 10px; color: var(--text-secondary); text-align: center; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }





/* ---------- Toast ---------- */
.toast {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
  z-index: 200; padding: 10px 20px; border-radius: 20px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: rgba(74,69,67,0.85); opacity: 0;
  transition: opacity 0.3s ease; pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; }
.toast.success { background: rgba(132,148,128,0.9); }
.toast.error { background: rgba(200,150,140,0.9); }

/* ---------- 响应式 ---------- */
@media (max-width: 420px) { .phone-frame { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; } }
@media (min-width: 421px) { .phone-frame { width: 375px; height: 812px; border-radius: 20px; border: 1px solid var(--border); } }
