/* ============================================================
 * 森趣灵·异宠社 H5 — 小程序风格样式（移动优先，零构建）
 * 主色 #FFC300（呼应店 logo 黄），最大宽 480px 居中，桌面模拟手机列
 * 目录：变量/基础 → 布局骨架 → 通用组件 → 首页 → 论坛/板块 →
 *       帖子详情 → 发帖 → 门店/活动 → 我的/后台 → 登录 → 状态与动画
 * ============================================================ */

/* ---------------- 1. 变量与基础 ---------------- */

:root {
  --primary: #FFC300;
  --primary-strong: #F0B000;
  --primary-deep: #B98300;
  --primary-soft: #FFF6D6;
  --primary-tint: #FFFBEF;
  --ink: #1F2329;
  --ink-2: #4E5969;
  --ink-3: #86909C;
  --ink-4: #B4BCC8;
  --line: #EFF1F4;
  --bg: #F3F4F6;
  --card: #FFFFFF;
  --danger: #F5483B;
  --danger-soft: #FFF1F0;
  --live: #00A32A;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-sm: 12px;
  --shadow: 0 2px 10px rgba(20, 24, 32, 0.05);
  --shadow-lg: 0 10px 28px rgba(20, 24, 32, 0.10);
  --tabbar-h: 62px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
}

h1, h2, h3, h4, p, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  color: inherit;
}

img {
  max-width: 100%;
}

img.is-broken {
  opacity: 0;
}

input, textarea {
  font-family: inherit;
}

::selection {
  background: #FFE9A8;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------------- 2. 布局骨架 ---------------- */

.app-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
}

.view {
  display: block;
  min-height: 100vh;
}

.page {
  padding: 0 16px 32px;
  animation: pageIn 0.22s ease both;
}

.page--home,
.page--forum,
.page--store,
.page--me,
.page--notfound {
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
}

body.has-tabbar .page {
  padding-bottom: calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom, 0px));
}

body[data-route="post"] .page {
  padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
}

body[data-route="newPost"] .page {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

body[data-route="admin"] .page {
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

.center {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.is-hidden {
  display: none !important;
}

.boot-loading {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ink-3);
  font-size: 13px;
}

.noscript {
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-2);
}

/* ---------------- 3. 通用组件 ---------------- */

.ic {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 auto;
}

/* 页面头部（tab 页） */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 12px;
}

.page-head--home {
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand__logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: #3A2E12;
  background: linear-gradient(140deg, #FFE066, #FFC300);
  box-shadow: 0 4px 12px rgba(255, 195, 0, 0.35);
}

.brand__logo--md {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 24px;
}

.brand__logo--lg {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  font-size: 36px;
  margin: 0 auto;
}

.brand__text {
  min-width: 0;
}

.brand__text h1 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__text p {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.page-subtitle {
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-3);
}

/* 顶部返回栏（二级页） */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 -16px 10px;
  padding: 10px 12px;
  background: rgba(243, 244, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.topbar__title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.topbar__right {
  min-width: 56px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.icon-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease;
}

.icon-btn:active {
  background: rgba(31, 35, 41, 0.06);
}

.icon-btn .ic {
  width: 22px;
  height: 22px;
}

.icon-btn--sm {
  width: 32px;
  height: 32px;
}

.text-btn {
  height: 34px;
  padding: 0 10px;
  border: none;
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.text-btn--danger {
  color: var(--danger);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.975);
}

.btn .ic {
  width: 17px;
  height: 17px;
}

.btn--primary {
  background: linear-gradient(135deg, #FFD83D, #FFC300);
  color: #3A2E12;
  box-shadow: 0 5px 14px rgba(255, 195, 0, 0.30);
}

.btn--primary:active {
  box-shadow: 0 2px 8px rgba(255, 195, 0, 0.28);
}

.btn--ghost {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.btn--danger {
  background: var(--danger);
  color: #fff;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 10px;
}

.btn[disabled],
.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.mini-btn {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.mini-btn:active {
  background: #F7F8FA;
}

.mini-btn[disabled] {
  opacity: 0.5;
}

/* 卡片 / 区块 */
.sheet-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.section {
  margin-top: 18px;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.section__title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.section__title .comment-count {
  color: var(--primary-deep);
  font-size: 15px;
}

.section__more {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}

.section__more .ic {
  width: 13px;
  height: 13px;
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.tag--live {
  background: #E8F9EA;
  color: #00873A;
}

.tag--soon {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.tag--gray {
  background: #F2F3F5;
  color: var(--ink-3);
}

.tag--soft {
  background: #F5F6F8;
  color: var(--ink-2);
  font-weight: 500;
}

.pin-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 6px;
  margin-right: 6px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  vertical-align: 1px;
}

.pin-tag .ic {
  width: 11px;
  height: 11px;
}

.role-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  margin-left: 6px;
  border-radius: 5px;
  background: var(--ink);
  color: #FFC300;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  vertical-align: 2px;
}

/* 头像 */
.avatar {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--avatar-color, #FFC300);
  color: rgba(31, 35, 41, 0.82);
  font-weight: 700;
  overflow: hidden;
  user-select: none;
}

.avatar--xs { width: 20px; height: 20px; font-size: 10px; }
.avatar--sm { width: 30px; height: 30px; font-size: 13px; }
.avatar--md { width: 42px; height: 42px; font-size: 17px; }
.avatar--lg { width: 64px; height: 64px; font-size: 26px; border: 2px solid rgba(255, 255, 255, 0.7); }

/* 搜索框 */
.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin-top: 2px;
  padding: 0 6px 0 13px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.searchbar__icon {
  display: inline-flex;
  color: var(--ink-3);
}

.searchbar__icon .ic {
  width: 18px;
  height: 18px;
}

.searchbar__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
}

.searchbar__input::placeholder {
  color: var(--ink-4);
}

.searchbar__btn {
  height: 32px;
  padding: 0 13px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #3A2E12;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* 横向 chip */
.chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chips--scroll {
  margin: 8px -16px 0;
  padding: 2px 16px 8px;
}

.chips--wrap {
  flex-wrap: wrap;
  overflow: visible;
  padding-bottom: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 13px;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.chip__icon {
  font-size: 14px;
  line-height: 1;
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--primary);
  font-weight: 600;
}

/* 分段控件 */
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  background: rgba(31, 35, 41, 0.06);
}

.seg__item {
  padding: 7px 16px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.2;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.seg__item.is-active {
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(20, 24, 32, 0.10);
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 4px;
}

.list-meta {
  font-size: 12px;
  color: var(--ink-3);
}

/* 帖子卡片 */
.post-list {
  display: block;
}

.post-card {
  position: relative;
  margin-bottom: 10px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.post-card:active {
  transform: scale(0.992);
}

.post-card__body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.post-card__main {
  flex: 1;
  min-width: 0;
}

.post-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.1px;
  word-break: break-word;
}

.post-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-3);
  word-break: break-word;
}

.post-card__thumb {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: #F3F4F6;
}

.post-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__thumb--empty {
  display: grid;
  place-items: center;
  font-size: 30px;
  background: linear-gradient(135deg, #FFF9E6, #FFEDB8);
}

.post-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.4;
}

.post-card__author {
  max-width: 96px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink-2);
}

.post-card__board {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #F5F6F8;
  color: var(--ink-3);
  font-size: 10.5px;
}

.post-card__time {
  margin-left: auto;
  color: var(--ink-4);
}

.post-card__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  border: none;
  background: none;
  color: var(--ink-3);
  font-size: 12px;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
}

.stat .ic {
  width: 15px;
  height: 15px;
}

.like-btn.is-liked {
  color: var(--danger);
}

.like-btn.is-liked .ic--heart path {
  fill: currentColor;
}

.post-card__enter {
  display: inline-flex;
  margin-left: auto;
  color: var(--ink-4);
}

.post-card__enter .ic {
  width: 14px;
  height: 14px;
}

.like-btn.pop .ic {
  animation: heartPop 0.34s ease;
}

/* 活动卡片（横滑/纵向） */
.hscroll {
  display: flex;
  gap: 12px;
  margin: 0 -16px;
  padding: 4px 16px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hscroll::-webkit-scrollbar {
  display: none;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-card {
  flex: 0 0 218px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.activity-card__cover {
  aspect-ratio: 16 / 10;
  background: #F3F4F6;
  overflow: hidden;
}

.activity-card__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-card__cover--empty,
.activity-detail__cover--empty {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #FFF6D6, #FFD24D);
}

.activity-card__cover--empty span {
  font-size: 40px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(122, 78, 0, 0.18));
}

.activity-detail__cover--empty span {
  font-size: 62px;
  line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(122, 78, 0, 0.18));
}

.activity-card__body {
  padding: 10px 12px 12px;
}

.activity-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.activity-card__date {
  font-size: 10.5px;
  color: var(--ink-4);
  white-space: nowrap;
}

.activity-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.activity-card__summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

.activity-card--wide {
  flex: none;
  width: 100%;
  flex-direction: row;
  align-items: stretch;
}

.activity-card--wide .activity-card__cover {
  flex: 0 0 104px;
  width: 104px;
  aspect-ratio: auto;
  height: auto;
  min-height: 100px;
}

.activity-card--wide .activity-card__body {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 加载更多 / 到底 */
.load-more {
  display: block;
  width: 100%;
  height: 44px;
  margin: 14px 0 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.load-more:active {
  background: #F7F8FA;
}

.load-more[disabled] {
  opacity: 0.6;
}

.list-end {
  padding: 16px 0 8px;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-4);
}

/* 浮动发帖按钮 */
.fab {
  position: fixed;
  right: max(16px, calc(50vw - 240px + 16px));
  bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD83D, #FFC300);
  color: #3A2E12;
  box-shadow: 0 8px 22px rgba(255, 195, 0, 0.45);
  transition: transform 0.15s ease;
}

.fab:active {
  transform: scale(0.94);
}

.fab .ic {
  width: 25px;
  height: 25px;
  stroke-width: 2;
}

body[data-route="board"] .fab {
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

/* 底部 tabbar */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  display: flex;
  width: 100%;
  max-width: 480px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.22s ease;
}

.tabbar--hidden {
  transform: translate(-50%, 110%);
}

.tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0 7px;
  color: #8F959E;
  font-size: 11px;
  line-height: 1;
}

.tabbar__item .ic {
  width: 23px;
  height: 23px;
  transition: transform 0.18s ease;
}

.tabbar__item.is-active {
  color: var(--primary-deep);
  font-weight: 700;
}

.tabbar__item.is-active .ic {
  transform: translateY(-1px);
  stroke-width: 2;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  max-width: 78%;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(31, 35, 41, 0.92);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  white-space: pre-wrap;
  word-break: break-word;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast--show {
  opacity: 1;
  transform: translate(-50%, 0);
}

body[data-route="post"] .toast {
  bottom: calc(140px + env(safe-area-inset-bottom, 0px));
}

body[data-route="newPost"] .toast {
  bottom: calc(104px + env(safe-area-inset-bottom, 0px));
}

/* ---------------- 4. 首页 ---------------- */

.hero-card {
  position: relative;
  display: block;
  overflow: hidden;
  margin-top: 2px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #3A2E12, #8A6A12 60%, #FFC300);
}

.hero-card__img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 35, 41, 0.62);
  color: #FFE9A8;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.hero-card__badge .ic {
  width: 13px;
  height: 13px;
}

.store-summary {
  margin-top: 12px;
  padding: 15px 16px;
}

.store-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.store-summary__head h2 {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.store-summary__route {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.store-summary__route .ic {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--primary-deep);
}

.store-summary__actions {
  display: flex;
  gap: 10px;
  margin-top: 13px;
}

.store-summary__actions .btn {
  flex: 1;
  padding: 0 10px;
  font-size: 14px;
}

.store-summary__promo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed #FFCF4D;
  border-radius: 12px;
  background: var(--primary-tint);
  font-size: 12.5px;
  color: var(--ink);
}

.store-summary__promo-tag {
  flex: 0 0 auto;
}

.store-summary__promo-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.store-summary__promo-arrow {
  color: var(--ink-4);
}

.store-summary__promo-arrow .ic {
  width: 14px;
  height: 14px;
}

.announce {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 12.5px;
  line-height: 1.55;
}

.announce__label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  color: var(--primary-deep);
  font-weight: 700;
}

.announce__label .ic {
  width: 14px;
  height: 14px;
}

.announce__text {
  flex: 1;
  min-width: 0;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guest-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: #7A5600;
  font-size: 11.5px;
  line-height: 1.5;
}

.guest-tip span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-weight: 600;
  white-space: nowrap;
}

.guest-tip .ic {
  width: 13px;
  height: 13px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 13px 4px 11px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.quick-item:active {
  transform: scale(0.97);
}

.quick-item__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary-soft);
  font-size: 23px;
  line-height: 1;
}

.quick-item__label {
  font-size: 12px;
  font-weight: 600;
}

.quick-item__meta {
  font-size: 10px;
  color: var(--ink-4);
}

.home-foot {
  margin: 26px 0 8px;
  text-align: center;
  font-size: 11px;
  line-height: 1.8;
  color: #A8B0BA;
}

/* ---------------- 5. 板块页 ---------------- */

.board-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #FFF9E6, #FFEDB8);
  box-shadow: var(--shadow);
}

.board-hero__icon {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--card);
  font-size: 30px;
  line-height: 1;
  box-shadow: var(--shadow);
}

.board-hero__body {
  flex: 1;
  min-width: 0;
}

.board-hero__body h1 {
  font-size: 18px;
  font-weight: 800;
}

.board-hero__body p {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #7A5600;
}

.board-hero__count {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  color: #8A6A00;
}

.board-hero .btn {
  flex: 0 0 auto;
}

/* ---------------- 6. 帖子详情 ---------------- */

.post-detail {
  margin-top: 4px;
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.post-detail__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.board-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 11.5px;
  font-weight: 600;
}

.post-detail__time {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-4);
}

.post-detail__title {
  margin: 12px 0 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -0.3px;
  word-break: break-word;
}

.post-detail__author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.post-detail__nickname {
  font-size: 14px;
  font-weight: 700;
}

.post-detail__author-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 11px;
  color: var(--ink-3);
}

.post-detail__author-meta .role-tag {
  margin-left: 0;
}

.post-detail__content {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.8;
  color: #2A2F36;
  word-break: break-word;
}

.post-detail__content p {
  margin-bottom: 14px;
}

.post-detail__content p:last-child {
  margin-bottom: 0;
}

.post-detail__images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.post-detail__images img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: #F3F4F6;
  cursor: zoom-in;
}

.post-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: #F7F8FA;
  color: var(--ink-2);
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.action-btn .ic {
  width: 18px;
  height: 18px;
}

.action-btn.is-liked {
  background: var(--danger-soft);
  color: var(--danger);
}

.action-btn.is-liked .ic--heart path {
  fill: currentColor;
}

.action-btn__label {
  font-size: 11.5px;
}

/* 内容 → 到店 转化卡 */
.to-store-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #FFE9A8;
  border-radius: 14px;
  background: linear-gradient(135deg, #FFF9E6, #FFF1B8);
}

.to-store-card__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--card);
  color: var(--primary-deep);
  box-shadow: var(--shadow);
}

.to-store-card__icon .ic {
  width: 19px;
  height: 19px;
}

.to-store-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.to-store-card__body b {
  font-size: 12.5px;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.to-store-card__body span {
  font-size: 11px;
  color: var(--ink-3);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.to-store-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-deep);
}

.to-store-card__cta .ic {
  width: 13px;
  height: 13px;
}

/* 评论 */
.comments {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.comments .section__head {
  margin-bottom: 2px;
}

.comment-list {
  display: block;
}

.comment {
  display: flex;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.comment:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.comment__main {
  flex: 1;
  min-width: 0;
}

.comment__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.comment__author {
  font-size: 13px;
  font-weight: 600;
}

.comment__time {
  font-size: 10.5px;
  color: var(--ink-4);
}

.comment__ops {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.comment__op {
  padding: 2px 0;
  border: none;
  background: none;
  color: var(--ink-3);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
}

.comment__op--danger {
  color: var(--danger);
}

.comment__content {
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #2A2F36;
  word-break: break-word;
}

.replies {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 12px;
  background: #F8F9FB;
}

.reply {
  display: flex;
  gap: 8px;
}

.reply__main {
  flex: 1;
  min-width: 0;
}

.reply__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reply__author {
  font-size: 12px;
  font-weight: 600;
}

.reply__content {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
  word-break: break-word;
}

.reply__ops {
  display: flex;
  gap: 10px;
  margin-top: 3px;
}

/* 底部评论输入条 */
.comment-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: 100%;
  max-width: 480px;
  transform: translateX(-50%);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.comment-bar__reply {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: #8A6A00;
  font-size: 11.5px;
}

.comment-bar__reply[hidden] {
  display: none;
}

.comment-bar__cancel {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(138, 106, 0, 0.12);
  color: #8A6A00;
  cursor: pointer;
}

.comment-bar__cancel .ic {
  width: 12px;
  height: 12px;
}

.comment-bar__row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.comment-bar__input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: none;
  border-radius: 20px;
  background: #F3F4F6;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.comment-bar__input::placeholder {
  color: var(--ink-4);
}

.comment-bar__row .btn {
  flex: 0 0 auto;
}

/* ---------------- 7. 发帖 ---------------- */

.compose .field {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.field__label {
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 700;
}

.field__label em {
  color: var(--danger);
  font-style: normal;
}

.text-input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: none;
  border-radius: 12px;
  background: #F6F7F9;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: box-shadow 0.18s ease;
}

.text-input:focus,
.text-area:focus {
  box-shadow: 0 0 0 2px rgba(255, 195, 0, 0.5);
}

.text-area {
  width: 100%;
  min-height: 168px;
  padding: 12px 13px;
  border: none;
  border-radius: 12px;
  background: #F6F7F9;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  outline: none;
  resize: vertical;
}

.text-input::placeholder,
.text-area::placeholder {
  color: var(--ink-4);
}

.field__count {
  margin-top: 6px;
  text-align: right;
  font-size: 10.5px;
  color: var(--ink-4);
}

.uploader {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.upload-item,
.upload-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #F6F7F9;
}

.upload-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-item--loading {
  display: grid;
  place-items: center;
  background: #FAFBFC;
  border: 1px dashed #E2E6EC;
}

.upload-item__del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(31, 35, 41, 0.62);
  color: #fff;
  cursor: pointer;
}

.upload-item__del .ic {
  width: 12px;
  height: 12px;
}

.upload-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1.5px dashed #D9DEE5;
  background: #FAFBFC;
  color: var(--ink-3);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
}

.upload-tile .ic {
  width: 22px;
  height: 22px;
}

.hint {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 4px 4px 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

.hint .ic {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--primary-deep);
}

.fab-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: 100%;
  max-width: 480px;
  transform: translateX(-50%);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---------------- 8. 门店 ---------------- */

.gallery {
  display: flex;
  overflow-x: auto;
  margin: 2px -16px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery__item {
  flex: 0 0 100%;
  scroll-snap-align: center;
  height: 196px;
  background: #F3F4F6;
}

.gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
}

.gallery__dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #D9DEE5;
  transition: width 0.2s ease, background 0.2s ease;
}

.gallery__dots span.is-active {
  width: 16px;
  background: var(--primary);
}

.store-card {
  margin-top: 12px;
}

.store-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.store-card__id {
  flex: 1;
  min-width: 0;
}

.store-card__id h2 {
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.store-card__intro {
  margin: 12px 0 4px;
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--ink-2);
}

.store-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.store-row:last-of-type {
  border-bottom: none;
}

.store-row__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.store-row__icon .ic {
  width: 18px;
  height: 18px;
}

.store-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.store-row__label {
  font-size: 10.5px;
  color: var(--ink-3);
}

.store-row__value {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  word-break: break-word;
}

.store-row__value--link {
  color: var(--primary-deep);
  font-weight: 700;
}

.store-row__value--link em {
  margin-left: 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  color: var(--ink-3);
}

.store-row .mini-btn {
  flex: 0 0 auto;
}

.store-card__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.store-card__btns .btn:only-child {
  grid-column: 1 / -1;
}

.promo-card {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px dashed #FFCF4D;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--ink);
  font-size: 12.5px;
}

.promo-card__tag {
  flex: 0 0 auto;
}

.promo-card__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.promo-card__arrow {
  color: var(--ink-4);
}

.promo-card__arrow .ic {
  width: 14px;
  height: 14px;
}

.notice-card {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #FFF9E6;
  color: #6B4A00;
  font-size: 12.5px;
  line-height: 1.65;
}

.notice-card--warning {
  background: linear-gradient(135deg, #FFF9E6, #FFF3C4);
}

.notice-card > .ic {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--primary-deep);
  margin-top: 1px;
}

.notice-card b {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.notice-list {
  margin: 5px 0 0 15px;
  padding: 0;
  list-style: disc;
}

.notice-list li {
  margin: 3px 0;
}

.notice-list b {
  display: inline;
  font-size: inherit;
}

.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.feature-card__emoji {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--primary-soft);
  font-size: 23px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 14px;
  font-weight: 700;
}

.feature-card p {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* ---------------- 9. 活动详情 ---------------- */

.activity-detail {
  overflow: hidden;
  margin-top: 4px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.activity-detail__cover {
  aspect-ratio: 16 / 9;
  background: #F3F4F6;
}

.activity-detail__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-detail__body {
  padding: 16px;
}

.activity-detail__tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-detail__title {
  margin: 10px 0 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.3px;
}

.activity-detail__date {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.activity-detail__date .ic {
  width: 14px;
  height: 14px;
}

.activity-detail__summary {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.activity-detail__content {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #2A2F36;
}

.activity-detail__content p {
  margin-bottom: 12px;
}

.activity-detail__rule {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 14px 0;
  padding: 10px 11px;
  border-radius: 10px;
  background: #FFF9E6;
  color: #8A6A00;
  font-size: 11.5px;
  line-height: 1.6;
}

.activity-detail__rule .ic {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.activity-detail__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

/* ---------------- 10. 我的 ---------------- */

.guest-card {
  margin-top: 4px;
  padding: 28px 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}

.guest-card__icon {
  font-size: 46px;
  line-height: 1;
}

.guest-card h2 {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 800;
}

.guest-card p {
  margin: 8px auto 0;
  max-width: 300px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-3);
}

.guest-card__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.guest-card__actions .btn {
  min-width: 112px;
}

.profile-card {
  margin-top: 4px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, #FFE066, #FFC300);
  color: #3A2E12;
  box-shadow: 0 10px 26px rgba(255, 195, 0, 0.32);
}

.profile-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-card__id {
  min-width: 0;
}

.profile-card__id h2 {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.profile-card__id p {
  margin-top: 4px;
  font-size: 11.5px;
  color: rgba(58, 46, 18, 0.72);
}

.profile-card__id .role-tag {
  background: rgba(58, 46, 18, 0.88);
  color: #FFE066;
}

.profile-card__bio {
  margin: 13px 0 15px;
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(58, 46, 18, 0.82);
}

.profile-card__stats {
  display: flex;
  padding: 10px 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
}

.profile-stat {
  flex: 1;
  text-align: center;
}

.profile-stat + .profile-stat {
  border-left: 1px solid rgba(58, 46, 18, 0.10);
}

.profile-stat b {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.profile-stat span {
  font-size: 10.5px;
  color: rgba(58, 46, 18, 0.68);
}

.menu-list {
  margin-top: 14px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.menu-list .menu-item:last-child {
  border-bottom: none;
}

.menu-item:active {
  background: #FAFBFC;
}

.menu-item__icon {
  display: inline-flex;
  color: var(--primary-deep);
}

.menu-item__icon .ic {
  width: 19px;
  height: 19px;
}

.menu-item__label {
  flex: 1;
}

.menu-item__badge {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 10px;
  font-weight: 600;
}

.menu-item__chev {
  display: inline-flex;
  color: var(--ink-4);
}

.menu-item__chev .ic {
  width: 14px;
  height: 14px;
}

.menu-logout {
  margin-top: 14px;
  color: var(--danger);
  background: var(--card);
  border: 1px solid var(--line);
  justify-content: flex-start;
  padding-left: 16px;
  gap: 10px;
}

.menu-logout .ic {
  width: 19px;
  height: 19px;
}

.about-card {
  margin-top: 14px;
}

.about-card h3 {
  font-size: 14px;
  font-weight: 700;
}

.about-card p {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
}

.about-card__meta {
  color: #A8B0BA !important;
  font-size: 10.5px !important;
}

/* ---------------- 11. 管理后台 ---------------- */

.admin-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.admin-head__avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--ink);
  color: var(--primary);
}

.admin-head__avatar .ic {
  width: 23px;
  height: 23px;
}

.admin-head b {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.admin-head span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.stat-card {
  padding: 14px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.stat-card__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.stat-card__icon .ic {
  width: 16px;
  height: 16px;
}

.stat-card__value {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.stat-card__label {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
}

.admin-tabs {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  padding: 4px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.admin-tab {
  flex: 1;
  height: 38px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.admin-tab.is-active {
  background: var(--ink);
  color: var(--primary);
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

#adminStatusChips {
  margin-top: 12px;
}

.admin-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.admin-row__body {
  flex: 1;
  min-width: 0;
}

.admin-row__title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.admin-row__meta {
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.5;
}

.admin-row__tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.admin-row__actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.admin-user__main {
  flex: 1;
  min-width: 0;
}

.admin-user__name {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13.5px;
  font-weight: 600;
}

.admin-user__name .role-tag {
  margin-left: 6px;
}

.admin-user__meta {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ---------------- 12. 登录 / 注册 ---------------- */

.page--auth {
  min-height: 100vh;
  padding: 0 24px 40px;
  background:
    radial-gradient(420px 260px at 50% -40px, #FFF3C4 0%, rgba(255, 243, 196, 0) 70%),
    var(--bg);
}

.auth__back {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: calc(16px + env(safe-area-inset-top, 0px));
  font-size: 13px;
  color: var(--ink-2);
}

.auth__back .ic {
  width: 16px;
  height: 16px;
}

.auth__brand {
  margin-top: 34px;
  text-align: center;
}

.auth__brand h1 {
  margin-top: 15px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.auth__slogan {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.input-wrap > .ic {
  width: 18px;
  height: 18px;
  color: var(--ink-3);
}

.input-wrap input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
}

.input-wrap input::placeholder {
  color: var(--ink-4);
}

.auth__form .btn {
  height: 48px;
  margin-top: 4px;
}

.auth__switch {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}

.auth__switch a {
  color: var(--primary-deep);
  font-weight: 700;
}

.auth__demo {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 11.5px;
  color: var(--ink-2);
}

.auth__demo b {
  font-size: 12px;
  color: var(--primary-deep);
}

.auth__tips {
  margin-top: 18px;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.6;
  color: #A8B0BA;
}

/* ---------------- 13. 空态 / 骨架屏 / 弹层 / 其他 ---------------- */

.empty {
  padding: 34px 20px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}

.empty__icon {
  font-size: 38px;
  line-height: 1.1;
}

.empty__title {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.empty__text {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-3);
}

.empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.empty--error .empty__icon {
  filter: saturate(0.9);
}

.skeleton-card {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.skeleton-card__main {
  flex: 1;
  min-width: 0;
}

.skeleton-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.skeleton-hero {
  margin-top: 4px;
}

.skeleton-hero__row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.sk {
  border-radius: 8px;
  background: linear-gradient(90deg, #EEF0F3 25%, #F7F8FA 37%, #EEF0F3 63%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease infinite;
}

.sk--hero {
  height: 176px;
  border-radius: var(--radius-lg);
}

.sk--pill {
  flex: 1;
  height: 40px;
  border-radius: 14px;
}

.sk--title {
  width: 78%;
  height: 16px;
}

.sk--line {
  width: 100%;
  height: 12px;
  margin-top: 9px;
}

.sk--line.short {
  width: 58%;
}

.sk--avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.sk--meta {
  width: 44%;
  height: 11px;
}

.sk--thumb {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 12px;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 2.5px solid rgba(31, 35, 41, 0.12);
  border-top-color: var(--primary-deep);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner--dark {
  border-color: rgba(255, 195, 0, 0.25);
  border-top-color: var(--primary);
}

/* 弹窗 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 24, 0.46);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.modal__panel {
  position: relative;
  width: min(320px, 100%);
  padding: 22px 20px 18px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.modal--show .modal__mask {
  opacity: 1;
}

.modal--show .modal__panel {
  transform: scale(1);
  opacity: 1;
}

.modal__title {
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.modal__text {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-3);
  text-align: center;
}

.modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.modal__actions .btn {
  flex: 1;
}

/* 图片查看器 */
.img-viewer {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 10, 14, 0.94);
  opacity: 0;
  transition: opacity 0.18s ease;
  cursor: zoom-out;
}

.img-viewer--show {
  opacity: 1;
}

.img-viewer img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
}

.img-viewer__close {
  position: absolute;
  top: calc(20px + env(safe-area-inset-top, 0px));
  right: 20px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
}

.img-viewer__close .ic {
  width: 20px;
  height: 20px;
}

/* 404 */
.notfound {
  padding: 90px 20px 40px;
  text-align: center;
}

.notfound__emoji {
  font-size: 58px;
  line-height: 1;
}

.notfound h1 {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 800;
}

.notfound p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-3);
}

.notfound .empty__actions {
  margin-top: 24px;
}

/* ---------------- P1 合规文案（SAFE-02/03/04） ---------------- */

.board-hint {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

.board-hint[hidden] {
  display: none;
}

.compliance-notice {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FFF6D6;
  border-left: 3px solid var(--primary);
  color: #7A5600;
  font-size: 12px;
  line-height: 1.6;
}

.compliance-notice .ic {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--primary-deep);
}

.compliance-notice[hidden] {
  display: none;
}

.site-footer {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 10.5px;
  line-height: 1.75;
  color: #A8B0BA;
}

.site-footer p {
  margin: 0;
}

.site-footer__sub {
  margin-top: 3px !important;
  color: #B4BCC8;
  font-size: 10px;
}

/* ---------------- 14. 动画 ---------------- */

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heartPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ---------------- 15. 桌面（居中手机列） ---------------- */

@media (min-width: 560px) {
  body {
    background:
      radial-gradient(900px 420px at 50% -8%, #FFF0B8 0%, rgba(255, 240, 184, 0) 70%),
      #E9EBEF;
  }

  .app-frame {
    box-shadow: 0 0 0 1px rgba(20, 24, 32, 0.04), 0 20px 70px rgba(20, 24, 32, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
