/* ============================================================
   抖动潢川 · 「液态玻璃 · 极光」设计系统 (Liquid Glass / Aurora)
   主行动 紫罗兰→青蓝 渐变 · 磨砂玻璃浮卡 · 流动极光背景 · 镜面高光
   保留全部原有 class/ID 选择器，JS 不受影响
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  /* 主行动 — 紫罗兰 → 青蓝（极光冷调） */
  --primary: #7c3aed;
  --primary-2: #22d3ee;
  --grad: linear-gradient(135deg, #7c3aed 0%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, #a78bfa, #67e8f9);
  --primary-dark: #6d28d9;
  --primary-deep: #5b21b6;
  --primary-100: #ede9fe;
  --primary-50: #f5f3ff;
  --primary-glow: rgba(124, 58, 237, .18);

  /* 暖色点缀 — 琥珀 / 珊瑚 / 粉（极光暖调，作为重点强调） */
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-100: #fef3c7;
  --accent-50: #fffbeb;
  --coral: #fb7185;
  --coral-100: #ffe4e6;
  --rose: #f472b6;

  /* 文字层级（深紫墨） */
  --text: #1f1b3a;
  --text-2: #57506f;
  --text-3: #9a92b3;

  /* 玻璃表面 */
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .74);
  --glass-border: rgba(255, 255, 255, .72);
  --glass-line: rgba(31, 27, 58, .08);
  --card: rgba(255, 255, 255, .62);
  --surface-2: rgba(255, 255, 255, .42);
  --bg: #eef1fb;

  /* 圆角体系 */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 9999px;

  /* 玻璃阴影（带镜面高光 inset） */
  --shadow-xs: 0 2px 8px rgba(76, 60, 140, .06);
  --shadow-sm: 0 4px 16px rgba(76, 60, 140, .08);
  --shadow-md: 0 12px 32px rgba(76, 60, 140, .12), inset 0 1px 0 rgba(255, 255, 255, .6);
  --shadow-lg: 0 24px 56px rgba(76, 60, 140, .18), inset 0 1px 0 rgba(255, 255, 255, .7);
  --shadow-xl: 0 40px 80px rgba(76, 60, 140, .22), inset 0 1px 0 rgba(255, 255, 255, .7);
  --shadow-primary: 0 12px 30px rgba(124, 58, 237, .35);
  --shadow-accent: 0 10px 26px rgba(245, 158, 11, .30);
  --shadow-coral: 0 8px 20px rgba(251, 113, 133, .30);

  /* 缓动 */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --maxw: 1200px;
}

/* ---------- 重置 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

.red-dot { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; background: var(--coral); border: 2px solid rgba(255, 255, 255, .8); border-radius: var(--r-pill); color: #fff; font-size: 11px; line-height: 12px; text-align: center; font-weight: 600; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  /* 极光流动场：紫 → 青 → 粉 的柔光晕染 */
  background:
    radial-gradient(58vw 58vw at 10% 6%, rgba(124, 58, 237, .20), transparent 55%),
    radial-gradient(50vw 50vw at 90% 12%, rgba(34, 211, 238, .22), transparent 55%),
    radial-gradient(54vw 54vw at 72% 96%, rgba(244, 114, 182, .18), transparent 55%),
    linear-gradient(135deg, #eef1fb 0%, #f3eefe 45%, #eaf6fb 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}
/* 漂浮极光球（天马行空） */
body::before, body::after {
  content: ''; position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(90px); opacity: .55; pointer-events: none;
}
body::before {
  width: 44vw; height: 44vw; left: -8vw; top: -10vw;
  background: radial-gradient(circle, rgba(124, 58, 237, .55), transparent 70%);
  animation: drift1 24s ease-in-out infinite;
}
body::after {
  width: 40vw; height: 40vw; right: -6vw; top: 28vh;
  background: radial-gradient(circle, rgba(34, 211, 238, .5), transparent 70%);
  animation: drift2 28s ease-in-out infinite;
}
@keyframes drift1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(9vw, 7vh); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-7vw, -6vh); } }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- 页头（磨砂玻璃） ---------- */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid var(--glass-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 12px 32px -24px rgba(76, 60, 140, .4);
}
.hd-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  height: 68px; display: flex; align-items: center; gap: 18px;
}
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary) 55%, var(--primary-dark));
  color: #fff; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(124, 58, 237, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.logo-text { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.nav { display: flex; gap: 2px; }
.nav a {
  padding: 9px 16px; border-radius: var(--r-pill); color: var(--text-2);
  font-size: 15px; font-weight: 600; transition: all .2s var(--ease);
}
.nav a:hover { color: var(--primary); background: var(--primary-50); }
.nav a.active { color: #fff; font-weight: 700; background: var(--grad); box-shadow: var(--shadow-primary); }

/* 搜索框 */
.search-box { flex: 1; display: flex; max-width: 440px; margin-left: auto; }
.search-box input {
  flex: 1; height: 44px; border: 1px solid var(--glass-border);
  border-right: none; border-radius: var(--r-pill) 0 0 var(--r-pill); padding: 0 18px; font-size: 14px; outline: none;
  background: rgba(255, 255, 255, .6); transition: all .2s var(--ease);
}
.search-box input::placeholder { color: var(--text-3); }
.search-box button {
  width: 80px; border: none;
  background: var(--grad); color: #fff; border-radius: 0 var(--r-pill) var(--r-pill) 0;
  cursor: pointer; font-size: 14px; font-weight: 700; transition: all .2s var(--ease);
}
.search-box:focus-within input { border-color: var(--primary); background: #fff; box-shadow: inset 0 0 0 1px var(--primary), 0 0 0 3px var(--primary-glow); }
.search-box:focus-within button { box-shadow: var(--shadow-primary); }
.search-box button:hover { filter: brightness(1.06); }

.user-box { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 14px; }
.ub-name { color: var(--primary); font-weight: 700; }
.ub-link { color: var(--text-2); padding: 7px 13px; border-radius: var(--r-pill); font-weight: 600; transition: all .18s var(--ease); }
.ub-link:hover { color: var(--primary); background: var(--primary-50); }

/* 通知铃铛 */
.hd-bell {
  position: relative; flex-shrink: 0; font-size: 18px; line-height: 1; text-decoration: none;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); background: rgba(255, 255, 255, .55); border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px); transition: all .2s var(--ease);
}
.hd-bell:hover { background: #fff; color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.bell-dot, .msg-dot {
  display: none; position: absolute; top: 3px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--coral); color: #fff; font-size: 11px; line-height: 16px;
  text-align: center; border-radius: var(--r-pill); box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, .8); box-shadow: var(--shadow-coral);
}

/* ---------- 私信消息中心 ---------- */
.conv-list { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.conv-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--r-md);
  padding: 16px 20px; cursor: pointer; transition: all .2s var(--ease);
  backdrop-filter: blur(14px); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.conv-item:hover { border-color: rgba(124, 58, 237, .35); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.conv-avatar { width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: rgba(255, 255, 255, .5); }
.conv-avatar--text {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: #fff; font-size: 19px; font-weight: 800;
}
.conv-main { flex: 1; min-width: 0; }
.conv-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.conv-name { font-size: 15px; font-weight: 700; color: var(--text); }
.conv-time { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.conv-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.conv-last { font-size: 13px; color: var(--text-3); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-unread {
  flex-shrink: 0; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--coral); color: #fff; font-size: 11px; line-height: 18px; font-weight: 700;
  text-align: center; border-radius: var(--r-pill); box-sizing: border-box;
}

/* ---------- 页脚（深色玻璃质感） ---------- */
#site-footer {
  background: linear-gradient(180deg, #241b4d 0%, #15102e 100%);
  color: #b6aee0; margin-top: 56px; position: relative; overflow: hidden;
}
#site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--rose), var(--primary));
  background-size: 200% 100%; animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 200% 0; } }
.ft-inner { max-width: var(--maxw); margin: 0 auto; padding: 44px 20px 28px; display: flex; gap: 44px; flex-wrap: wrap; }
.ft-col { flex: 1; min-width: 200px; }
.ft-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 700; position: relative; padding-left: 14px; }
.ft-col h4::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(135deg, var(--primary-2), var(--primary)); }
.ft-col p { font-size: 13px; margin-bottom: 9px; color: #b6aee0; }
.ft-col a { transition: color .18s var(--ease); }
.ft-col a:hover { color: #c4b5fd; }
.ft-copy { text-align: center; padding: 18px; font-size: 12px; color: #8b83b8; border-top: 1px solid rgba(255, 255, 255, .08); }
.ft-copy a { color: #8b83b8; }
.ft-copy a:hover { color: #c4b5fd; }

/* ---------- 通用容器 ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 8px; }
.page-gap { padding-top: 20px; }
.section { margin-bottom: 36px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; position: relative; padding-left: 16px; color: var(--text); }
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 24px; border-radius: 3px;
  background: var(--grad);
}
.section-head .more { font-size: 13px; color: var(--text-3); padding: 6px 14px; border-radius: var(--r-pill); font-weight: 600; transition: all .18s var(--ease); }
.section-head .more:hover { color: var(--primary); background: var(--primary-50); }

/* ---------- Banner ---------- */
.banner { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 26px; box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, .6); position: relative; }
.banner-item { position: relative; display: block; }
.banner img { width: 100%; height: 300px; object-fit: cover; transition: transform .6s var(--ease); }
.banner:hover img { transform: scale(1.05); }
.banner-ad { position: absolute; right: 12px; bottom: 12px; background: rgba(21, 16, 46, .5); backdrop-filter: blur(8px); color: #fff; font-size: 12px; padding: 4px 12px; border-radius: var(--r-pill); font-weight: 500; }

/* ---------- 分类九宫格 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; }
.cat-item {
  background: var(--glass); border-radius: var(--r-md); padding: 20px 6px 18px;
  text-align: center; cursor: pointer; border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: all .25s var(--ease);
}
.cat-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(124, 58, 237, .3); }
.cat-icon {
  width: 56px; height: 56px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md); background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  font-size: 28px; line-height: 1; transition: all .25s var(--ease);
}
.cat-item:hover .cat-icon { transform: scale(1.1) rotate(-5deg); background: var(--grad); box-shadow: var(--shadow-primary); }
.cat-name { font-size: 13px; margin-top: 2px; color: var(--text); font-weight: 600; }
.cat-merchant { background: linear-gradient(180deg, var(--accent-50), rgba(255, 255, 255, .6)); border: 1px solid var(--accent-100); }
.cat-merchant .cat-icon { background: linear-gradient(135deg, var(--accent-100), #fde68a); }
.cat-merchant:hover { border-color: var(--accent); box-shadow: var(--shadow-accent); }
.cat-merchant:hover .cat-icon { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); box-shadow: var(--shadow-accent); }

/* ---------- 信息卡片网格 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--glass); border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--glass-border); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: all .25s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-img { position: relative; height: 180px; background-size: cover; background-position: center; overflow: hidden; }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .18)); }
.card-img .tag-top {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: var(--r-sm);
  box-shadow: var(--shadow-accent);
}
.card-img .card-price {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  background: rgba(21, 16, 46, .65); backdrop-filter: blur(8px); color: #fff;
  font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: var(--r-sm);
}
.card-body { padding: 14px 15px 15px; }
.card-title { font-size: 15px; font-weight: 700; color: var(--text); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; transition: color .18s var(--ease); }
.card:hover .card-title { color: var(--primary); }
.card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: 10px; font-weight: 500; }
.card-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: 7px; font-weight: 500; }
.card-loc { color: var(--text-2); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 24px; border-radius: var(--r-pill); border: none; cursor: pointer;
  font-size: 15px; font-weight: 700; transition: all .2s var(--ease);
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-primary); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(124, 58, 237, .4); }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; box-shadow: var(--shadow-accent); }
.btn-accent:hover { filter: brightness(1.05); transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .6); color: var(--text-2); border: 1.5px solid var(--glass-border); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.btn-block { width: 100%; }

/* ---------- 商家推荐 ---------- */
.merchant-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.merchant-card {
  display: block; background: var(--glass); border-radius: var(--r-md); padding: 20px;
  border: 1px solid var(--glass-border); text-align: center; text-decoration: none; color: inherit;
  backdrop-filter: blur(14px); transition: all .25s var(--ease);
  box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.merchant-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.merchant-logo {
  width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, .5); margin: 0 auto 13px;
  background-size: cover; background-position: center; border: 3px solid rgba(255, 255, 255, .85); box-shadow: var(--shadow-sm);
  transition: all .25s var(--ease);
}
.merchant-card:hover .merchant-logo { box-shadow: var(--shadow-primary); transform: scale(1.05); }
.merchant-card h4 { font-size: 16px; font-weight: 800; }
.merchant-card p { font-size: 13px; color: var(--text-3); margin-top: 6px; }

/* ---------- 列表页 ---------- */
.filter-bar { background: var(--glass); border-radius: var(--r-md); padding: 20px; margin-bottom: 22px; border: 1px solid var(--glass-border); backdrop-filter: blur(14px); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .6); }
.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.filter-row:last-child { margin-bottom: 0; }
.filter-label { font-size: 14px; color: var(--text-3); width: 64px; flex-shrink: 0; font-weight: 600; }
.chip {
  padding: 8px 16px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .55); font-size: 13px; cursor: pointer; color: var(--text-2);
  font-weight: 600; transition: all .18s var(--ease); border: 1px solid rgba(31, 27, 58, .06);
}
.chip:hover { background: var(--primary-50); color: var(--primary); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-primary); }
.list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.sort-tabs { display: flex; gap: 6px; }
.sort-tabs .chip { background: transparent; border: 1.5px solid var(--glass-border); }
.sort-tabs .chip.active { background: rgba(255, 255, 255, .7); color: var(--primary); border-color: var(--primary); font-weight: 700; }
.list-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* 价格区间 */
.price-input { width: 86px; padding: 8px 12px; border: 1.5px solid var(--glass-border); border-radius: var(--r-sm); font-size: 13px; outline: none; transition: all .18s var(--ease); background: rgba(255, 255, 255, .6); }
.price-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.price-tilde { color: var(--text-3); }
.price-apply, .price-reset { padding: 8px 16px; border-radius: var(--r-sm); font-size: 13px; cursor: pointer; border: none; margin-left: 4px; font-weight: 600; transition: all .18s var(--ease); }
.price-apply { background: var(--grad); color: #fff; box-shadow: var(--shadow-primary); }
.price-apply:hover { filter: brightness(1.06); }
.price-reset { background: rgba(255, 255, 255, .55); color: var(--text-2); }
.price-reset:hover { background: rgba(255, 255, 255, .85); }

/* ---------- 商家详情页 ---------- */
.merchant-card-detail {
  display: flex; gap: 26px; align-items: flex-start; background: var(--glass);
  border-radius: var(--r-lg); padding: 30px; border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.mc-logo { width: 128px; height: 128px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .5); flex-shrink: 0; background-size: cover; background-position: center; border: 1px solid var(--glass-border); }
.mc-body { flex: 1; min-width: 0; }
.mc-name { font-size: 26px; font-weight: 800; margin-bottom: 10px; letter-spacing: -.02em; }
.mc-badge { display: inline-block; font-size: 12px; color: var(--primary-deep); background: var(--primary-100); border: 1px solid #c4b5fd; padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: 14px; font-weight: 700; }
.mc-intro { font-size: 15px; color: var(--text-2); line-height: 1.7; margin-bottom: 14px; white-space: pre-wrap; }
.mc-meta { font-size: 14px; color: var(--text-2); margin: 6px 0; }
.mc-meta a { color: var(--primary); text-decoration: none; font-weight: 700; }

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; gap: 8px; margin: 32px 0; }
.pager button { min-width: 42px; height: 42px; border-radius: var(--r-sm); border: 1.5px solid var(--glass-border); background: rgba(255, 255, 255, .6); cursor: pointer; font-size: 14px; font-weight: 600; transition: all .18s var(--ease); color: var(--text-2); backdrop-filter: blur(8px); }
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-xs); }
.pager button.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-primary); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 详情页 ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.detail-main { background: var(--glass); border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--glass-border); backdrop-filter: blur(16px); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .6); }
.detail-title { font-size: 28px; font-weight: 800; line-height: 1.35; letter-spacing: -.02em; }
.detail-price { color: var(--accent); font-size: 30px; font-weight: 800; margin: 14px 0; }
.detail-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); padding-bottom: 18px; border-bottom: 1px dashed var(--glass-line); font-weight: 500; }
.detail-content { margin: 20px 0; font-size: 15px; line-height: 1.9; white-space: pre-wrap; color: var(--text); }
.detail-content-footer { margin-top: 14px; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.detail-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.detail-imgs img { border-radius: var(--r-md); width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: all .25s var(--ease); }
.detail-imgs img:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }
.detail-side { background: var(--glass); border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--glass-border); position: sticky; top: 88px; backdrop-filter: blur(16px); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .6); }
.side-contact .phone { font-size: 24px; font-weight: 800; color: var(--primary); letter-spacing: -.01em; }
.side-actions { display: flex; gap: 8px; margin-top: 16px; }
.side-actions .btn { flex: 1; min-width: 0; padding: 10px 4px; font-size: 13px; gap: 2px; white-space: nowrap; border-radius: var(--r-sm); }
.detail-tags { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.detail-tags .tag { background: var(--primary-50); color: var(--primary-deep); font-size: 12px; padding: 5px 12px; border-radius: var(--r-pill); font-weight: 700; }

.comments { margin-top: 22px; background: var(--glass); border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--glass-border); backdrop-filter: blur(16px); box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255, 255, 255, .6); }
.comment-item { padding: 14px 0; border-bottom: 1px solid var(--glass-line); }
.comment-item:last-child { border-bottom: none; }
.comment-name { font-size: 14px; font-weight: 700; color: var(--text-2); }
.comment-text { font-size: 14px; margin: 5px 0; }
.comment-time { font-size: 12px; color: var(--text-3); }
.comment-form { display: flex; gap: 10px; margin-top: 16px; }
.comment-form textarea { flex: 1; height: 46px; border: 1.5px solid var(--glass-border); border-radius: var(--r-sm); padding: 10px 14px; resize: none; outline: none; transition: all .18s var(--ease); font-family: inherit; font-size: 14px; background: rgba(255, 255, 255, .6); }
.comment-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

/* ---------- 表单 ---------- */
.form-card { background: var(--glass); border-radius: var(--r-lg); padding: 30px; border: 1px solid var(--glass-border); backdrop-filter: blur(16px); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .6); }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 9px; color: var(--text); }
.form-row label .req { color: var(--coral); }
.form-control {
  width: 100%; height: 46px; border: 1.5px solid var(--glass-border); border-radius: var(--r-sm);
  padding: 0 14px; font-size: 14px; outline: none; transition: all .18s var(--ease); background: rgba(255, 255, 255, .6); font-family: inherit;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
textarea.form-control { height: 130px; padding: 12px 14px; resize: vertical; }
.cat-select { display: flex; gap: 10px; }
.cat-select select { flex: 1; }
.radio-row { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 6px; font-weight: 500; cursor: pointer; color: var(--text-2); }

/* 个人中心布局 */
.user-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.user-aside { background: var(--glass); border-radius: var(--r-lg); padding: 20px; border: 1px solid var(--glass-border); backdrop-filter: blur(16px); box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255, 255, 255, .6); }
.user-aside .u-head { text-align: center; padding-bottom: 16px; border-bottom: 1px solid var(--glass-line); margin-bottom: 12px; }
.user-aside .u-avatar { width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: #fff; font-size: 27px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; box-shadow: var(--shadow-primary); }
.user-aside .u-menu a { display: block; padding: 12px 14px; border-radius: var(--r-sm); color: var(--text-2); font-size: 14px; font-weight: 600; transition: all .18s var(--ease); }
.user-aside .u-menu a.active, .user-aside .u-menu a:hover { background: var(--primary-50); color: var(--primary); font-weight: 700; }
.user-main { background: var(--glass); border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--glass-border); backdrop-filter: blur(16px); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .6); min-height: 400px; }

.empty { text-align: center; color: var(--text-3); padding: 56px 0; font-size: 15px; }

/* ---------- 通用弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(21, 16, 46, .4); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; animation: fadeIn .2s ease;
}
.modal {
  background: var(--glass-strong); border: 1px solid var(--glass-border); border-radius: var(--r-lg); width: 100%; max-width: 520px;
  backdrop-filter: blur(26px) saturate(160%); box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, .8);
  position: relative; overflow: hidden; animation: slideUp .3s var(--ease-spring);
}
.modal h3 { margin: 0; padding: 22px 24px; font-size: 18px; font-weight: 800; border-bottom: 1px solid var(--glass-line); letter-spacing: -.01em; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--glass-line); text-align: right; }
.close-x { position: absolute; top: 16px; right: 18px; width: 32px; height: 32px; border: none; background: rgba(255, 255, 255, .5); font-size: 22px; line-height: 1; color: var(--text-2); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: var(--r-sm); transition: all .18s var(--ease); }
.close-x:hover { color: var(--text); background: rgba(255, 255, 255, .85); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(24px) scale(.97); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

/* ---------- 站内私信会话弹层 ---------- */
.msg-modal { width: 440px; max-width: 92vw; height: 580px; max-height: 86vh; display: flex; flex-direction: column; }
.msg-modal .modal-close { position: absolute; top: 10px; right: 16px; font-size: 26px; color: var(--text-3); cursor: pointer; line-height: 1; z-index: 2; }
.msg-peer { font-size: 18px; font-weight: 800; color: var(--text); padding: 16px 30px 0 16px; }
.msg-sub { font-size: 13px; color: var(--text-3); padding: 4px 30px 12px 16px; }
.msg-list { flex: 1; overflow-y: auto; padding: 16px; background: rgba(255, 255, 255, .35); display: flex; flex-direction: column; gap: 10px; }
.msg-row { display: flex; }
.msg-row.mine { justify-content: flex-end; }
.msg-bubble { max-width: 76%; padding: 10px 14px; border-radius: var(--r-md); font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.msg-row.peer .msg-bubble { background: rgba(255, 255, 255, .8); border: 1px solid var(--glass-border); color: var(--text); border-bottom-left-radius: 5px; }
.msg-row.mine .msg-bubble { background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.msg-empty { text-align: center; color: var(--text-3); font-size: 13px; padding: 36px 0; }
.msg-compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--glass-line); background: rgba(255, 255, 255, .6); }
.msg-compose textarea { flex: 1; border: 1.5px solid var(--glass-border); border-radius: var(--r-md); padding: 10px 12px; font-size: 14px; resize: none; height: 44px; font-family: inherit; outline: none; transition: all .18s var(--ease); background: rgba(255, 255, 255, .7); }
.msg-compose textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.msg-compose button { background: var(--grad); color: #fff; border: none; border-radius: var(--r-md); padding: 0 20px; font-size: 14px; cursor: pointer; font-weight: 700; transition: all .18s var(--ease); }
.msg-compose button:hover { filter: brightness(1.06); }

/* ---------- 免费置顶分享弹窗 ---------- */
.modal-mask.free-top-mask { align-items: center; justify-content: center; padding: 20px; }
.free-top-modal { width: 720px; max-width: 100%; border-radius: var(--r-lg); }
.ft-close { position: absolute; top: 14px; right: 18px; font-size: 24px; color: var(--text-3); cursor: pointer; z-index: 10; width: 34px; height: 34px; line-height: 32px; text-align: center; border-radius: 50%; transition: all .18s var(--ease); }
.ft-close:hover { background: rgba(255, 255, 255, .7); color: var(--text); }
.ft-body { display: flex; min-height: 320px; }
.ft-left { width: 230px; flex-shrink: 0; background: linear-gradient(160deg, var(--rose), #ec4899); color: #fff; padding: 28px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ft-left-title { font-size: 20px; font-weight: 800; margin-bottom: 18px; }
.ft-qrcode { background: #fff; padding: 10px; border-radius: var(--r-sm); width: 168px; height: 168px; display: flex; align-items: center; justify-content: center; }
.ft-qrcode img { width: 148px; height: 148px; display: block; }
.ft-qr-placeholder { color: var(--text-3); font-size: 13px; text-align: center; }
.ft-left-tip { font-size: 13px; line-height: 1.6; margin-top: 18px; opacity: .95; }
.ft-right { flex: 1; padding: 28px 30px 30px; }
.ft-success { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.ft-title { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 14px; }
.ft-title span { color: var(--rose); }
.ft-desc { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 16px; }
.ft-info-box { border: 1px solid var(--glass-line); border-radius: var(--r-sm); padding: 14px; background: rgba(255, 255, 255, .5); margin-bottom: 18px; }
.ft-info-title { font-size: 15px; color: var(--text); font-weight: 700; margin-bottom: 6px; }
.ft-info-url { font-size: 13px; color: var(--text-3); word-break: break-all; }
.ft-share-label { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.ft-share-btns { display: flex; gap: 16px; }
.ft-share-btn { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; padding: 6px 4px; border-radius: var(--r-sm); transition: all .15s; font-weight: 600; }
.ft-share-btn:hover { background: rgba(255, 255, 255, .7); }
.ft-icon { width: 22px; height: 22px; border-radius: 50%; display: inline-block; }
.wechat-icon { background: var(--primary); }
.qzone-icon { background: var(--accent); }
.weibo-icon { background: var(--coral); }

/* ---------- 发布防重确认弹窗 ---------- */
.dup-modal { max-width: 460px; padding: 24px 24px 20px; }
.dup-modal .dm-title { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.dup-modal .dm-tip { font-size: 13px; color: var(--text-2); line-height: 1.6; margin-bottom: 12px; }
.dup-modal .dm-list { list-style: none; margin: 0 0 16px; padding: 0; max-height: 220px; overflow-y: auto; }
.dup-modal .dm-list li { padding: 10px 12px; border: 1px solid var(--glass-line); border-radius: var(--r-sm); margin-bottom: 8px; font-size: 13px; transition: all .18s var(--ease); }
.dup-modal .dm-list li:hover { border-color: rgba(124, 58, 237, .3); background: var(--primary-50); }
.dup-modal .dm-list a { color: var(--text); }
.dup-modal .dm-list a:hover { color: var(--primary); }
.dup-modal .dm-time { float: right; color: var(--text-3); font-size: 12px; }
.dup-modal .dm-actions { display: flex; gap: 12px; justify-content: flex-end; }
.dup-modal .dm-actions .btn { min-width: 96px; }

/* ---------- 入场微动效 ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.card, .cat-item, .merchant-card { animation: fadeUp .5s var(--ease) both; }
.card:nth-child(2), .cat-item:nth-child(2), .merchant-card:nth-child(2) { animation-delay: .05s; }
.card:nth-child(3), .cat-item:nth-child(3), .merchant-card:nth-child(3) { animation-delay: .10s; }
.card:nth-child(4), .cat-item:nth-child(4), .merchant-card:nth-child(4) { animation-delay: .15s; }
.card:nth-child(5), .cat-item:nth-child(5), .merchant-card:nth-child(5) { animation-delay: .20s; }
.card:nth-child(n+6), .cat-item:nth-child(n+6), .merchant-card:nth-child(n+6) { animation-delay: .25s; }

/* ---------- 页面标题（messages 等页复用） ---------- */
.page-head { margin-bottom: 20px; }
.page-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.page-sub { font-size: 14px; color: var(--text-3); margin-top: 6px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
  .card-grid, .list-grid, .merchant-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .hd-inner { flex-wrap: wrap; height: auto; padding: 12px 14px; gap: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .search-box { order: 2; max-width: none; }
  .user-box { order: 4; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid, .list-grid, .merchant-row { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .user-layout { grid-template-columns: 1fr; }
  .banner img { height: 180px; }
  .free-top-modal { width: 100%; }
  .ft-body { flex-direction: column; }
  .ft-left { width: auto; padding: 22px 18px; }
  .ft-right { padding: 22px 18px; }
  body { padding-bottom: 64px; }
  .bottom-tab {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    height: 64px; background: rgba(255, 255, 255, .7); backdrop-filter: blur(18px);
    border-top: 1px solid var(--glass-line);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(76, 60, 140, .1);
  }
  .bt-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; text-decoration: none; color: var(--text-3); font-size: 11px; font-weight: 600;
  }
  .bt-item .bt-icon { font-size: 22px; line-height: 1; }
  .bt-item.active { color: var(--primary); }
  .section-head h2 { font-size: 20px; }
  .detail-title { font-size: 22px; }
}
