/* ============================================================
   小众点评 · 全局样式
   ============================================================ */

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

:root {
  --accent: #ff4d6a;
  --accent-dark: #e7354f;
  --orange: #ff9f1c;
  --text: #2b2b33;
  --muted: #9a9aab;
  --bg: #f6f6f9;
  --card: #ffffff;
  --line: #efeff4;
  --green: #2ec4b6;
  --radius: 18px;
  --shadow: 0 2px 12px rgba(31, 20, 50, 0.06);
  --shadow-hover: 0 8px 28px rgba(31, 20, 50, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── 顶栏 ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--accent);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo small {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--line);
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 8px 14px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s;
}

.nav a:hover { color: var(--text); background: #f0f0f4; }
.nav a.active { color: #fff; background: var(--accent); }

.nav .nav-post {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff8fa8);
  box-shadow: 0 4px 14px rgba(255, 77, 106, 0.35);
}
.nav .nav-post:hover { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); color: #fff; }

/* ── 模式条 ── */
.mode-bar {
  font-size: 12px;
  text-align: center;
  padding: 6px 12px;
  background: #fff7e0;
  color: #a66a00;
  border-bottom: 1px solid #ffe9b0;
}
.mode-bar.shared { background: #e6f9f6; color: #0b7a6e; border-color: #bfefe8; }
.mode-bar .mode-detail {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.8;
  color: #a66a00;
  word-break: break-all;
}
.mode-bar .mode-detail code {
  background: rgba(0,0,0,.06);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
}

/* ── 页面容器 ── */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.page-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 4px;
}
.page-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 40px 16px 8px;
}
.hero h1 {
  font-size: 38px;
  font-weight: 900;
  background: linear-gradient(120deg, var(--accent), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.hero p { color: var(--muted); font-size: 15px; line-height: 1.8; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 26px 0 4px;
}
.hero-stats .stat { text-align: center; }
.hero-stats .num {
  font-size: 30px;
  font-weight: 900;
  color: var(--text);
}
.hero-stats .lab { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── 地图区 ── */
.map-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin: 28px 0;
}

.map-card h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-card .map-note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

/* 省份网格地图 */
.province-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  grid-template-rows: repeat(12, minmax(38px, 1fr));
  gap: 5px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,77,106,0.06), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(255,159,28,0.06), transparent 40%),
    linear-gradient(180deg, #eef2ff, #e8f7f5);
  border: 1px dashed #d9dceb;
  border-radius: 16px;
  padding: 14px;
  min-height: 420px;
}

.province-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: #f1f1f6;
  color: #9a9aab;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  padding: 4px 2px;
}
.province-chip.has { color: #7a2e00; box-shadow: 0 2px 8px rgba(255, 110, 40, 0.25); }
.province-chip:hover { transform: translateY(-2px) scale(1.04); z-index: 2; box-shadow: 0 6px 16px rgba(255, 90, 40, 0.35); }
.province-chip.active { outline: 3px solid var(--accent); outline-offset: 2px; transform: scale(1.05); }
.province-chip .chip-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(255, 77, 106, 0.4);
}

.map-legend {
  position: absolute;
  left: 18px;
  bottom: 12px;
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.legend-item::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--c);
  margin-right: 4px;
  vertical-align: -1px;
}

/* 真实高德地图 */
.amap-box { position: relative; }
.real-map { width: 100%; height: 460px; border-radius: 16px; overflow: hidden; }
.map-locate { position: absolute; right: 16px; bottom: 16px; z-index: 10; }
.amap-label { background: #fff; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,0.15); white-space: nowrap; }

/* ── 筛选条 ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 14px;
  flex-wrap: wrap;
}
.filter-bar h2 { font-size: 18px; font-weight: 800; }
.filter-chip {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.filter-chip:hover { background: var(--accent-dark); }

/* ── 帖子卡片 ── */
.post-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  padding: 14px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.post-cover {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eee;
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; }

.post-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.post-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.tag {
  background: #fff0f3;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
}
.tag-loc { background: #fff7e8; color: #b87400; }
.tag-count { background: #eef2ff; color: #5a5bd6; }

.post-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 4px;
}
.post-food { font-size: 14px; color: var(--orange); font-weight: 700; margin-bottom: 4px; }
.post-content {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.post-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.meta { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.muted { color: var(--muted); }
.post-stats { display: flex; gap: 14px; font-size: 12px; margin-top: 6px; }

/* 头像 */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}

/* 评分徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
}
.badge-rated { background: #fff4e0; color: #a35a00; }
.badge-rated i { font-style: normal; opacity: 0.75; }
.badge-none { background: #f0f0f4; color: var(--muted); }

/* ── 空态 ── */
.empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
  font-size: 14px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.empty .empty-emoji { font-size: 44px; margin-bottom: 10px; }
.empty .btn { margin-top: 14px; }

/* ── 按钮 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 24px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #ff8fa8); color: #fff; box-shadow: 0 4px 14px rgba(255, 77, 106, 0.32); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(255, 77, 106, 0.42); transform: translateY(-1px); }
.btn-ghost { background: #f0f0f4; color: var(--text); }
.btn-ghost:hover { background: #e5e5ec; }
.btn-plain { background: none; color: var(--muted); }
.btn-plain:hover { color: var(--text); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── 表单（发布页） ── */
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 16px;
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
}
.form-group label .req { color: var(--accent); }

.input, .textarea, .select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #fbfbfd;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 77, 106, 0.12);
  background: #fff;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* 定位 & 地址 */
.loc-row { display: flex; gap: 10px; align-items: center; position: relative; }
.loc-row .input { flex: 1; }
.loc-hint { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; gap: 6px; align-items: center; }

/* 地址联想下拉（高德 AutoComplete） */
.ac-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 80;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 240px;
  overflow-y: auto;
  display: none;
  text-align: left;
}
.ac-dropdown .ac-item {
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.ac-dropdown .ac-item:hover { background: #f5f5f8; }
.ac-dropdown .ac-district { color: var(--muted); font-size: 12px; flex-shrink: 0; }

/* 美食图标选择 */
.food-type-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.food-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.food-type-chip:hover { border-color: var(--accent); background: #fff5f6; }
.food-type-chip.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.food-type-chip .ft-emoji { font-size: 18px; }

/* 标签输入 */
.tag-input-wrap { display: flex; gap: 8px; align-items: center; }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag-remove { cursor: pointer; margin-left: 2px; }

/* 照片上传 */
.photo-upload {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.photo-upload .photo-slot {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #f0f0f4;
  border: 2px dashed #d9d9e3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.photo-upload .photo-slot:hover { border-color: var(--accent); }
.photo-upload .photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-upload .photo-slot .del {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  font-size: 13px;
  cursor: pointer;
  line-height: 1;
}

/* 拉夯选择器 */
.level-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.level-pick {
  border: 2px solid var(--line);
  background: #fbfbfd;
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  min-width: 72px;
}
.level-pick .lv-emoji { font-size: 22px; display: block; }
.level-pick .lv-label { font-size: 12px; font-weight: 700; color: var(--muted); display: block; margin-top: 2px; }
.level-pick:hover { transform: translateY(-2px); border-color: var(--accent); }
.level-pick.selected { background: #fff4e0; border-color: var(--orange); box-shadow: 0 4px 12px rgba(255, 159, 28, 0.25); }
.level-pick.selected .lv-label { color: #a35a00; }
.level-desc { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* 昵称预览 */
.nick-preview { display: flex; align-items: center; gap: 8px; font-size: 14px; }

/* ── 详情页 ── */
.detail-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow); }
.detail-cover img { width: 100%; max-height: 460px; object-fit: cover; }

.detail-head { margin-bottom: 16px; }
.detail-title { font-size: 24px; font-weight: 900; line-height: 1.4; margin-bottom: 10px; }
.detail-author { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.detail-author .name { font-weight: 700; font-size: 15px; }
.detail-author .time { font-size: 12px; color: var(--muted); }

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.detail-meta .addr {
  width: 100%;
  background: #f7f7fb;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: #5a5a6b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(120deg, #fff4e0, #fff0f3);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.rating-summary .big {
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}
.rating-summary .big small { font-size: 15px; font-weight: 700; color: var(--muted); }
.rating-summary .desc { font-size: 13px; color: #8a6a3a; margin-top: 4px; }

.detail-content {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  line-height: 1.9;
  font-size: 15px;
  margin-bottom: 16px;
  white-space: pre-line;
}

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 12px; cursor: pointer; }

.action-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.action-bar .btn { flex: 1; min-width: 140px; }
.liked { background: linear-gradient(135deg, var(--green), #7fe8dd) !important; box-shadow: 0 4px 14px rgba(46, 196, 182, 0.4) !important; }

/* 打分区 */
.rate-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.rate-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.rate-card .sub { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.rate-card .level-picker { justify-content: center; }
.rate-done { text-align: center; color: var(--green); font-weight: 700; font-size: 14px; padding: 6px 0; }

/* 评论区 */
.comment-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.comment-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }

.comment-list { margin-bottom: 16px; }
.comment-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment-item:last-child { border-bottom: none; }
.comment-body { flex: 1; min-width: 0; }
.comment-top { display: flex; gap: 8px; align-items: baseline; }
.comment-top .who { font-weight: 700; font-size: 14px; }
.comment-top .when { font-size: 11px; color: var(--muted); }
.comment-text { font-size: 14px; line-height: 1.6; margin-top: 4px; word-break: break-word; }

.comment-input { display: flex; gap: 10px; }
.comment-input .input { flex: 1; }

/* ── 附近页 ── */
.nearby-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.nearby-info { font-size: 13px; color: var(--muted); }
.dist-badge { background: #eef2ff; color: #5a5bd6; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 20px; }

/* ── 弹窗 ── */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.2s;
}
.modal {
  background: #fff;
  border-radius: 20px;
  padding: 26px;
  width: min(92vw, 360px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: popIn 0.25s;
}
.modal h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.modal-sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.6; }
.modal input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  margin-bottom: 16px;
}
.modal input:focus { outline: none; border-color: var(--accent); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ── Toast ── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30, 30, 40, 0.92);
  color: #fff;
  padding: 11px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  z-index: 200;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.warn { background: rgba(180, 90, 0, 0.95); }

/* ── 动画 ── */
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.92); } }

/* ── 加载 ── */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 14px;
}
.loading::before {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 页脚 ── */
.footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 30px 20px 40px;
  line-height: 1.8;
}

/* ── 个人中心 ── */
.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(120deg, #fff0f3, #ffe8d6);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(255, 77, 106, 0.25);
  overflow: hidden;
}
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.profile-stats { display: flex; gap: 18px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.profile-stats b { color: var(--text); font-size: 17px; margin-right: 2px; }

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 0;
}
.tab {
  border: none;
  background: none;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.mine-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 18px; }
.btn-danger { background: #fff0f1; color: #d6333e; }
.btn-danger:hover { background: #ffe3e6; }

/* ── 邀请 & 统计 ── */
.qrcode-box {
  display: inline-flex;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 8px;
}
.qrcode-box canvas, .qrcode-box img { display: block; border-radius: 8px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat-box {
  background: #f7f7fb;
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
}
.stat-box.hot { background: #fff4e0; }
.stat-num { font-size: 26px; font-weight: 900; line-height: 1.1; }
.stat-box.hot .stat-num { color: #d95b00; }
.stat-lab { font-size: 12px; color: var(--muted); margin-top: 4px; }

.daily-chart { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.bar-lab { width: 44px; text-align: right; color: var(--muted); flex-shrink: 0; }
.bar-track { flex: 1; background: #f0f0f4; border-radius: 8px; height: 22px; overflow: hidden; }
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff8fa8);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  min-width: 4px;
  transition: width 0.5s;
}

@media (max-width: 640px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-stats { gap: 12px; }
}

/* ── 响应式 ── */
@media (max-width: 640px) {
  .topbar-inner { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .logo small { display: none; }
  .nav { order: 3; width: 100%; justify-content: center; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { padding: 7px 10px; font-size: 13px; flex-shrink: 0; }
  .hero h1 { font-size: 30px; }
  .hero-stats { gap: 24px; }
  .post-card { flex-direction: column; }
  .post-cover { width: 100%; height: 180px; }
  .form-row { grid-template-columns: 1fr; }
  .photo-upload { grid-template-columns: repeat(3, 1fr); }
  .province-grid { min-height: 340px; }
  .province-chip { font-size: 11px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .page-title { font-size: 22px; }
}
