/* ============================================================
   天府风情同城 PC 前台视觉基线
   - 主色：天府蓝，暖色强调：川味橙；成功/认证：青绿
   - 目标：清爽、可信、友好，适配本地便民与招聘场景
   - 页面级差异只做局部补充，不在这里堆业务样式
   ============================================================ */

:root {
  --brand: #2457d6;
  --brand-strong: #1742b3;
  --brand-soft: #edf3ff;
  --brand-line: #d8e4ff;
  --accent: #ff7a1a;
  --accent-soft: #fff4e9;
  --success: #079669;
  --success-soft: #ecfbf5;
  --ink: #172033;
  --text: #354258;
  --muted: #6f7c8f;
  --faint: #9aa6b6;
  --line: #e5eaf2;
  --line-soft: #f0f3f8;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --shadow-sm: 0 2px 10px rgba(23, 38, 68, 0.05);
  --shadow-md: 0 10px 30px rgba(23, 38, 68, 0.09);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(900px 400px at 50% -180px, rgba(36, 87, 214, 0.09), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; }

/* ---------------- 顶部导航 ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 234, 242, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(23, 38, 68, 0.02);
}

.topbar-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-strong), #4b82ff);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  box-shadow: 0 6px 16px rgba(36, 87, 214, 0.22);
}

.brand-mark.has-image {
  width: auto;
  min-width: 40px;
  max-width: 132px;
  padding: 3px 5px;
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-strong), #4b82ff);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 16px rgba(36, 87, 214, 0.22);
}

.brand-mark.has-image img {
  display: block;
  max-width: 120px;
  max-height: 32px;
  object-fit: contain;
}

.brand-text b {
  display: block;
  font-size: 19px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.brand-text small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.6px;
}

.nav {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 9px;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover { color: var(--brand); background: var(--brand-soft); }
.nav a.on { color: var(--brand); background: var(--brand-soft); font-weight: 600; }

/* 头部“更多”下拉：外站与矩阵入口，避免挤压主导航 */
.nav-more { position: relative; }
.nav-more-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  padding: 8px 12px;
  border-radius: 9px;
  cursor: pointer;
}
.nav-more-btn:hover,
.nav-more:focus-within .nav-more-btn { color: var(--brand); background: var(--brand-soft); }
.nav-more-caret { font-size: 10px; margin-left: 2px; }
.nav-more-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  z-index: 40;
}
.nav-more:hover .nav-more-menu,
.nav-more:focus-within .nav-more-menu { display: block; }
.nav-more-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  white-space: nowrap;
}
.nav-more-link:hover { color: var(--brand); background: var(--brand-soft); }
.nav-more-mark { color: var(--faint); font-size: 12px; }

.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 0 5px 0 17px;
  height: 42px;
  min-width: 330px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.search:focus-within {
  background: #fff;
  border-color: #aec6ff;
  box-shadow: 0 0 0 4px rgba(36, 87, 214, 0.08);
}

.search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 210px;
  flex: 1;
  font-size: 13px;
  color: var(--ink);
}

.search input::placeholder { color: #98a4b5; }

.search button {
  border: 0;
  background: var(--brand);
  color: #fff;
  border-radius: 19px;
  height: 32px;
  padding: 0 18px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
}

.search button:hover { background: var(--brand-strong); }

/* ---------------- 公告 ---------------- */

.notice {
  background: linear-gradient(90deg, #fff8e8, #fffdf7);
  border-bottom: 1px solid #f4e6c4;
  color: #875400;
  font-size: 13px;
}

.notice-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px;
  line-height: 1.7;
}

.notice-in b {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: 20px;
  background: #f2b544;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

/* ---------------- 页面容器与区域条 ---------------- */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px 64px;
}

.regionbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 12px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.regionbar .region-now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
}

.regionbar .region-now::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.regionbar b {
  font-size: 14px;
  color: var(--ink);
}
.regionbar em {
  font-style: normal;
  color: var(--muted);
  background: #f5f8fc;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
}
.regionbar form { margin-left: auto; }
.regionbar select {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 10px;
  font-size: 12px;
  color: var(--text);
  background: #fff;
  max-width: 220px;
}
.regionbar .region-local {
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--brand-soft);
}
.regionbar .region-local:hover { background: #e2ebff; }

.area-note,
.city-notice {
  background: #fff9eb;
  border: 1px solid #f3e4bf;
  color: #84580a;
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.city-notice b { color: #714c06; }

/* ---------------- 首页 Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(420px 260px at 92% 18%, rgba(255, 122, 26, 0.26), transparent 68%),
    linear-gradient(125deg, #0c2c60 0%, #17479b 52%, #2457d6 100%);
  color: #fff;
  border-radius: 22px;
  padding: 42px 38px 36px;
  margin-bottom: 22px;
  box-shadow: 0 16px 38px rgba(20, 55, 120, 0.18);
}

.hero::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255, 255, 255, 0.05), 0 0 0 80px rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  color: #eef4ff;
  letter-spacing: 0.4px;
  margin-bottom: 16px;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.3px;
  max-width: 760px;
}

.hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 720px;
  font-size: 14px;
  color: rgba(238, 244, 255, 0.82);
  line-height: 1.9;
}

.hero .hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  background: #fff;
  color: var(--brand-strong);
  border-radius: 24px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  transition: transform 0.15s, box-shadow 0.15s;
}
.hero .cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18); }
.hero .cta.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: none;
  margin-left: 0;
}
.hero .cta.ghost:hover { background: rgba(255, 255, 255, 0.08); }

.hero .stats-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.hero .pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 12px;
  color: rgba(247, 250, 255, 0.9);
}
.hero .pill strong { color: #fff; font-weight: 700; }
.city-hero { padding: 34px 36px; }
.city-hero h1 { font-size: clamp(25px, 3vw, 34px); }
.city-contact { margin: 10px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.86); }

.city-banner { display: block; margin: 0 0 16px; }
.city-banner img {
  display: block;
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

/* ---------------- 区块标题 ---------------- */

h2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 18px;
  line-height: 1.4;
  margin: 34px 0 14px;
  color: var(--ink);
}
h2 small { font-weight: 400; color: var(--faint); font-size: 12px; }
h2 a { font-size: 13px; color: var(--brand); font-weight: 600; }
h2 a:hover { color: var(--brand-strong); }

/* ---------------- 分类入口 ---------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.cat {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 15px;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.cat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--cat-tone, var(--brand));
  opacity: 0.85;
}
.cat:hover {
  transform: translateY(-2px);
  border-color: var(--brand-line);
  box-shadow: 0 10px 24px rgba(25, 55, 110, 0.09);
}
.cat .cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.cat .cat-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--cat-tone, var(--brand)) 11%, white);
  color: var(--cat-tone, var(--brand));
  font-size: 15px;
  font-weight: 700;
}
.cat .cat-count {
  display: inline-block;
  font-size: 11px;
  color: var(--faint);
  background: #f6f8fb;
  border-radius: 20px;
  padding: 3px 8px;
  white-space: nowrap;
  line-height: 1.6;
}
.cat b {
  display: block;
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 4px;
  color: var(--ink);
}
.cat .cat-desc {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.cat.tone-1 { --cat-tone: #2457d6; }
.cat.tone-2 { --cat-tone: #ff7a1a; }
.cat.tone-3 { --cat-tone: #079669; }
.cat.tone-4 { --cat-tone: #8a56d8; }

/* ---------------- 信息卡片 ---------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 12px;
}

.card {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-line);
  box-shadow: 0 10px 26px rgba(25, 55, 110, 0.08);
}

.thumb {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f2f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 18px;
  font-weight: 700;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.none {
  background:
    linear-gradient(145deg, rgba(36, 87, 214, 0.09), rgba(255, 122, 26, 0.08)),
    #f6f8fc;
}

.card-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tag {
  display: inline-block;
  font-size: 11px;
  font-style: normal;
  border-radius: 5px;
  padding: 1px 6px;
  margin-right: 6px;
  vertical-align: 1px;
}
.tag.top { background: var(--accent); color: #fff; }

.card-price {
  margin-top: auto;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  padding-top: 8px;
  letter-spacing: -0.2px;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--faint);
  font-size: 12px;
  margin-top: 3px;
}
.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-meta span:not(.fresh)::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c9d3e2;
}
.fresh {
  color: var(--success);
  background: var(--success-soft);
  border-radius: 5px;
  padding: 1px 6px;
}
.fresh::before { display: none !important; }

/* ---------------- 商家卡片 ---------------- */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.shop-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.shop-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-line);
  box-shadow: 0 10px 24px rgba(25, 55, 110, 0.08);
}
.shop-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-strong), #4b82ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 17px;
}
.shop-card-body { min-width: 0; flex: 1; }
.shop-card-body b {
  display: block;
  font-size: 14px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-card-body span { display: block; font-size: 12px; color: var(--faint); margin-top: 3px; }
.shop-card i {
  font-style: normal;
  font-size: 11px;
  color: var(--success);
  background: var(--success-soft);
  border-radius: 5px;
  padding: 2px 7px;
  white-space: nowrap;
}

/* ---------------- 标签/筛选/分页 ---------------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 15px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.chip:hover { color: var(--brand); border-color: var(--brand-line); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.chip span { color: var(--faint); }
.chip.on span { color: rgba(255, 255, 255, 0.72); }

.filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.filterbar select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  max-width: 260px;
}
.filterbar .btn {
  height: 38px;
  padding: 0 20px;
  border: 0;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.filterbar .btn:hover { background: var(--brand-strong); }
.filterbar .count { margin-left: auto; color: var(--faint); font-size: 12px; }

.crumb { font-size: 12px; color: var(--faint); margin: 2px 0 16px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }
.empty {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 56px 20px;
  text-align: center;
  color: var(--muted);
}
.empty span { color: var(--faint); }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 38px;
  height: 38px;
  line-height: 36px;
  text-align: center;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  padding: 0 11px;
}
.pager a:hover { color: var(--brand); border-color: var(--brand-line); }
.pager a.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.street-note { color: var(--faint); font-size: 12px; margin: -6px 0 18px; line-height: 1.7; }

/* ---------------- 详情页 ---------------- */

.detail { display: grid; grid-template-columns: 1fr 310px; gap: 18px; align-items: start; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.detail h1 { margin: 0 0 14px; font-size: 24px; line-height: 1.5; letter-spacing: -0.2px; }
.price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.price-row .price { color: var(--accent); font-size: 28px; font-weight: 700; }
.price-row .status {
  font-size: 12px;
  color: var(--success);
  background: var(--success-soft);
  border-radius: 6px;
  padding: 3px 9px;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--faint);
  font-size: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.trustbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--success-soft);
  color: #087a56;
  font-size: 12px;
  border-radius: 9px;
  padding: 10px 12px;
  margin: 14px 0 2px;
}
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 18px 0; }
.gallery img { width: 100%; height: 150px; object-fit: cover; border-radius: 11px; display: block; }
.extras {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  background: #f7f9fc;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
}
.extra b { display: block; font-size: 12px; color: var(--faint); font-weight: 400; margin-bottom: 3px; }
.extra span { font-size: 14px; color: var(--ink); }
.content { font-size: 15px; line-height: 1.95; color: var(--text); white-space: pre-wrap; margin: 16px 0 0; }
.side .panel { margin-bottom: 14px; }
.contact-name { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.contact-mobile { font-size: 23px; font-weight: 700; color: var(--brand); letter-spacing: 0.4px; }
.contact-tip { font-size: 12px; color: var(--faint); line-height: 1.7; margin-top: 10px; }
.side h3 { font-size: 14px; margin: 0 0 12px; color: var(--text); }
.qr-chat { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--brand-line); border-radius: 12px; background: #f7faff; }
.qr-img { width: 104px; height: 104px; flex-shrink: 0; border-radius: 8px; background: #fff; }
.qr-copy { min-width: 0; }
.qr-copy b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 5px; }
.qr-copy span { display: block; font-size: 12px; line-height: 1.7; color: var(--muted); }
@media (max-width: 760px) { .qr-chat { display: none; } }
.side .mini { display: block; font-size: 13px; color: var(--text); padding: 9px 0; border-bottom: 1px dashed var(--line-soft); line-height: 1.55; }
.side .mini:last-child { border-bottom: 0; }
.side .mini em { font-style: normal; color: var(--accent); font-size: 12px; margin-left: 6px; }
.mini-none { color: var(--faint); font-size: 12px; line-height: 1.7; }
.muted-text { color: var(--faint); }
.safety-note {
  background: #fff9ee;
  border-color: #f4e5c6;
  color: #8a5a00;
  font-size: 12px;
  line-height: 1.85;
  box-shadow: none;
}
.status.top { background: var(--accent); color: #fff; }
.filter-label { color: var(--faint); font-size: 12px; white-space: nowrap; }
.filter-input {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 12px;
  font-size: 13px;
  min-width: 200px;
  color: var(--ink);
  background: #fff;
}
.filter-input:focus {
  outline: none;
  border-color: #aec6ff;
  box-shadow: 0 0 0 3px rgba(36, 87, 214, 0.08);
}

/* ---------------- 商家主页 ---------------- */

.shop-head {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.shop-avatar {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-strong), #4b82ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(36, 87, 214, 0.18);
}
.shop-main { min-width: 0; flex: 1; }
.shop-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shop-title h1 { font-size: 26px; margin: 0; }
.shop-badge {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid #c9efe0;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
}
.shop-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; margin-top: 8px; }
.shop-stats { display: flex; flex-wrap: wrap; gap: 16px; color: var(--faint); font-size: 12px; margin-top: 10px; }
.shop-stats b { color: var(--brand); font-size: 15px; }
.shop-cta {
  background: var(--brand);
  color: #fff;
  border-radius: 24px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(36, 87, 214, 0.18);
}
.shop-cta:hover { background: var(--brand-strong); }
.shop-cta.ghost {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--brand);
  box-shadow: none;
}
.shop-cta.ghost:hover { background: var(--brand-soft, #eef3ff); }
.shop-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.shop-layout { display: grid; grid-template-columns: 1fr 310px; gap: 18px; align-items: start; }
.shop-layout h2 { margin-top: 8px; }
.shop-intro { font-size: 14px; line-height: 1.95; color: var(--text); }
.shop-side .panel { margin-bottom: 14px; }
.shop-tip { font-size: 12px; color: var(--faint); line-height: 1.7; margin: 0 0 10px; }
.lead-form { display: flex; flex-direction: column; gap: 9px; }
.lead-form input, .lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13px;
  background: #fff;
  resize: vertical;
  color: var(--ink);
}
.lead-form input:focus, .lead-form textarea:focus {
  outline: none;
  border-color: #aec6ff;
  box-shadow: 0 0 0 3px rgba(36, 87, 214, 0.08);
}
.lead-form button {
  border: 0;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px;
  cursor: pointer;
}
.lead-form button:hover { background: var(--brand-strong); }
.shop-link { display: inline-block; margin-top: 10px; color: var(--brand); font-size: 13px; font-weight: 600; }
.inline-form { display: inline; }

/* ---------------- 提示、认证标识、规则 ---------------- */

.form-note { border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; line-height: 1.7; }
.form-note.ok { background: var(--success-soft); border: 1px solid #c9efe0; color: var(--success); }
.form-note.err { background: #fff1f0; border: 1px solid #f3c9c4; color: #b3261e; }

.merchant-badge {
  display: inline-block;
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid #c9efe0;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 12px;
  margin-left: 6px;
  vertical-align: 2px;
}
.merchant-badge:hover { background: #d9f8eb; }

.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.rule {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.rule:hover { border-color: var(--brand-line); box-shadow: var(--shadow-sm); }
.rule b { display: block; font-size: 14px; margin-bottom: 6px; color: var(--brand); }
.rule span { font-size: 12px; color: var(--muted); line-height: 1.75; }

/* ---------------- PC 首页手机端引导条 ---------------- */

.mobile-guide {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 42px;
  margin: 28px 0 0;
  padding: 28px 32px;
  background:
    radial-gradient(360px 160px at 4% 0%, rgba(47, 111, 237, 0.06), transparent 72%),
    #fff;
  border: 1px solid #dfe8f5;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(25, 57, 112, 0.07);
  overflow: hidden;
}
.mobile-guide::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 26px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #2f6fed, #6e9bff);
}
.guide-copy { padding-left: 4px; }
.guide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  padding: 5px 11px;
  background: #eef4ff;
  border: 1px solid #dbe8ff;
  border-radius: 999px;
  color: #205bd1;
  font-size: 12px;
  letter-spacing: 0.2px;
}
.guide-eyebrow i {
  display: block;
  width: 6px;
  height: 6px;
  background: #2f6fed;
  border-radius: 50%;
  font-style: normal;
}
.guide-copy h3 {
  margin: 0 0 8px;
  color: #14233a;
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: -0.5px;
}
.guide-copy p {
  max-width: 430px;
  margin: 0;
  color: #74839a;
  font-size: 13px;
  line-height: 1.85;
}
.guide-points {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 15px 0 14px;
  color: #5f6f85;
  font-size: 12px;
}
.guide-points span { display: inline-flex; align-items: center; gap: 6px; }
.guide-points b {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #7ea3ef;
  border-radius: 50%;
}
.guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1f5bd8;
  font-size: 13px;
  font-weight: 700;
}
.guide-link em {
  font-style: normal;
  font-size: 15px;
  transition: transform 0.15s;
}
.guide-link:hover em { transform: translateX(3px); }
.qr-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.qr-group.count-1 { grid-template-columns: 160px; justify-content: end; }
.qr-group.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qr-card {
  padding: 11px 10px 10px;
  background: #f8fafd;
  border: 1px solid #e3eaf4;
  border-radius: 14px;
  text-align: center;
}
.qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 7px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(24, 48, 90, 0.04);
}
.qr-box img { display: block; width: 100%; height: 100%; object-fit: contain; }
.qr-card b { display: block; margin-top: 8px; color: #28374d; font-size: 12px; letter-spacing: 0.1px; }
.qr-card span { display: block; margin-top: 2px; color: #9aa6b8; font-size: 10px; }
.qr-note {
  grid-column: 1 / -1;
  margin-top: -1px;
  color: #9aa6b8;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}
body.page-home .wrap { padding-bottom: 34px; }
body.page-home .foot { margin-top: 0; }
@media (max-width: 980px) {
  .mobile-guide { grid-template-columns: 1fr; gap: 24px; }
  .guide-copy p { max-width: none; }
  .qr-group { max-width: 430px; }
}
@media (max-width: 760px) {
  .mobile-guide { display: none; }
}
/* ---------------- PC 首页右侧固定导航 ---------------- */
.right-rail{position:fixed;right:24px;top:50%;transform:translateY(-50%);z-index:70;width:64px;display:none}
.right-rail-box{background:#fff;border:1px solid #dfe7f3;border-radius:16px;box-shadow:0 14px 38px rgba(24,48,90,.14)}
.rail-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:62px;height:62px;color:#5d6d83;font-size:11px;line-height:1.2;text-decoration:none;border-bottom:1px solid #eef3f9;cursor:pointer;background:none;font-family:inherit;padding:0}
.rail-item:first-child{border-radius:15px 15px 0 0}
.rail-item:last-child{border-bottom:0;border-radius:0 0 15px 15px}
.rail-item:hover{background:#f7faff;color:#1f5bd8}
.rail-item .rail-ico{width:21px;height:21px;display:flex;align-items:center;justify-content:center;color:#71829b}
.rail-item:hover .rail-ico,.rail-item.publish .rail-ico{color:#1f5bd8}
.rail-item.publish{color:#1f5bd8;font-weight:600}
.rail-item svg{width:21px;height:21px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
.rail-top{margin-top:8px;width:64px;height:38px;border:1px solid #dfe7f3;border-radius:12px;background:#fff;color:#71829b;font-size:11px;display:none;align-items:center;justify-content:center;gap:5px;box-shadow:0 8px 22px rgba(24,48,90,.09);cursor:pointer;font-family:inherit;padding:0}
.right-rail.scrolled .rail-top{display:flex}
.rail-top:hover{background:#f7faff;color:#1f5bd8}
.rail-top svg{width:14px;height:14px;stroke:currentColor;stroke-width:1.8;fill:none}
.rail-top .rail-ico{width:14px;height:14px;display:flex;align-items:center;justify-content:center}

/* 联系客服展开卡：仅 ≥1600px 在侧边展开 */
.pc-rail-contact-wrap{position:relative}
.pc-rail-contact-card{position:absolute;right:calc(100% + 12px);top:50%;transform:translateY(-50%);width:252px;background:#fff;border:1px solid #dfe7f3;border-radius:18px;box-shadow:0 18px 48px rgba(20,44,84,.18);padding:16px 16px 12px;text-align:left;color:#475467;display:none;z-index:75}
.pc-rail-contact-card.show{display:block}
.pc-rail-contact-card::after{content:"";position:absolute;right:-6px;top:50%;margin-top:-5px;width:10px;height:10px;background:#fff;border-right:1px solid #dfe7f3;border-top:1px solid #dfe7f3;transform:rotate(45deg)}
.pc-rail-contact-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.pc-rail-contact-head b{font-size:14px;color:#172033;letter-spacing:.1px}
.pc-rail-time{font-size:10px;color:#22a05a;background:#effaf3;border-radius:999px;padding:3px 7px;white-space:nowrap}
.pc-rail-contact-body{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;align-items:center}
.pc-rail-contact-body.no-qr{grid-template-columns:1fr}
.pc-rail-qr{width:96px;height:96px;background:#f8fafd;border:1px solid #e3eaf4;border-radius:12px;padding:6px;display:flex;align-items:center;justify-content:center}
.pc-rail-qr img{width:100%;height:100%;display:block;object-fit:contain}
.pc-rail-contact-info b{display:block;font-size:13px;color:#172033;margin-bottom:5px}
.pc-rail-contact-info span{display:block;font-size:11px;color:#7d8ca2;line-height:1.8}
.pc-rail-contact-info strong{font-size:14px;color:#1f5bd8;font-weight:600;word-break:break-all}
.pc-rail-contact-note{margin-top:10px;padding-top:9px;border-top:1px dashed #edf1f6;font-size:10px;color:#a0acbd;line-height:1.5}

/* 1280–1599px 用居中弹层，避免挤压正文 */
.pc-rail-modal{position:fixed;inset:0;z-index:95;display:none;align-items:center;justify-content:center;padding:24px}
.pc-rail-modal.show{display:flex}
.pc-rail-modal-mask{position:absolute;inset:0;background:rgba(10,22,40,.46)}
.pc-rail-modal-card{position:relative;width:360px;max-width:100%;background:#fff;border-radius:18px;box-shadow:0 24px 70px rgba(10,26,55,.28);padding:18px 18px 14px}
.pc-rail-modal-close{position:absolute;right:10px;top:8px;width:30px;height:30px;border:0;background:none;color:#8a98ab;font-size:22px;line-height:28px;cursor:pointer;border-radius:8px}
.pc-rail-modal-close:hover{background:#f3f6fb;color:#334155}
.pc-rail-modal-card .pc-rail-contact-head{padding-right:34px}

@media (min-width:1280px){
  .right-rail{display:block}
}
@media (min-width:1280px) and (max-width:1439px){
  .right-rail{right:6px;width:56px}
  .rail-item{width:54px;height:56px;font-size:10px;gap:3px}
  .rail-item svg{width:19px;height:19px}
  .rail-item .rail-ico{width:19px;height:19px}
  .rail-top{width:56px;height:36px;font-size:10px}
}
@media (min-width:1600px) and (max-width:1759px){
  .right-rail{right:12px}
  .pc-rail-contact-card{width:210px;padding:14px 14px 10px}
  .pc-rail-contact-body{grid-template-columns:78px minmax(0,1fr);gap:10px}
  .pc-rail-qr{width:78px;height:78px}
}@media (max-width:1599px){
  .pc-rail-contact-card{display:none!important}
}
@media (max-width:1279px){
  .pc-rail-modal{display:none!important}
}
/* ---------------- 页脚 ---------------- */

.foot {
  margin-top: 48px;
  padding: 34px 24px 42px;
  background: #101a2b;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.95;
}
.foot-in { max-width: 1180px; margin: 0 auto; text-align: center; }
.foot-line { margin-bottom: 6px; }
.foot-links { margin-top: 10px; }
.foot-links a { color: #7f8da3; margin: 0 5px; }
.foot-links a:hover { color: #dbe4f2; }
.foot-matrix { margin: 12px auto 2px; display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 8px; }
.foot-matrix-title { color: #64748b; letter-spacing: 1px; }
.foot-matrix-links { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.foot-matrix-links a { color: #8fa2bc; }
.foot-matrix-links a:hover { color: #fff; }
.foot-matrix-links i { color: #475569; font-style: normal; margin: 0 3px; }
.foot-matrix-mark { color: #64748b; font-size: 11px; }
.foot a { color: #8fa2bc; }
.foot a:hover { color: #fff; }

/* ---------------- 需求池局部覆盖 ---------------- */

.demand-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.demand-sub { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0; max-width: 650px; }
.d-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.d-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 19px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.d-card:hover { transform: translateY(-2px); border-color: var(--brand-line); box-shadow: var(--shadow-sm); }
.d-top { display: flex; align-items: flex-start; gap: 8px; }
.d-top h3 { font-size: 15px; margin: 0; line-height: 1.5; flex: 1; color: var(--ink); }
.d-type { font-style: normal; font-size: 11px; border-radius: 6px; padding: 2px 7px; white-space: nowrap; margin-top: 2px; }
.d-type.seek { background: var(--brand-soft); color: var(--brand); }
.d-type.offer { background: var(--accent-soft); color: #b35a0a; }
.d-meta { color: var(--muted); font-size: 12px; margin-top: 9px; }
.d-content { color: var(--text); font-size: 13px; line-height: 1.75; margin: 8px 0 0; }
.d-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; border-top: 1px solid var(--line-soft); padding-top: 11px; margin-top: 13px; }
.d-actions { display: flex; align-items: center; gap: 10px; }
.d-chat {
  background: var(--brand);
  color: #fff;
  border-radius: 14px;
  padding: 5px 11px;
  font-size: 12px;
  white-space: nowrap;
}
.d-chat:hover { background: var(--brand-strong); }

/* ---------------- 通用按钮与发布引导 ---------------- */

.btn-primary,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 24px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(36, 87, 214, 0.18);
}
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-1px); }
.btn-soft {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--brand-line);
}
.btn-soft:hover { background: var(--brand-soft); border-color: #b9cdff; }

.publish-panel { max-width: 780px; margin: 0 auto; }
.pub-title { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.2px; }
.pub-lead { color: var(--muted); line-height: 1.85; margin: 0 0 18px; }
.pub-closed { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 12px 14px; margin: 0 0 16px; border: 1px solid #ffd8a8; border-radius: 10px; background: #fff8ed; color: #8a4b00; line-height: 1.7; }
.pub-closed b { color: #ad5a00; white-space: nowrap; }
.pub-rule { background: #fff; border: 1px solid var(--line); margin-bottom: 10px; box-shadow: none; }
.pub-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 900px) {
  .topbar-in { height: auto; flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-text b { font-size: 17px; }
  .nav { order: 3; width: 100%; overflow-x: auto; gap: 4px; padding-bottom: 2px; }
  .nav a { white-space: nowrap; padding: 7px 10px; }
  .search { order: 2; flex: 1 1 100%; width: 100%; min-width: 0; margin-left: 0; flex-wrap: nowrap; }
  .search input { width: 100%; min-width: 0; flex: 1 1 auto; }
  .search button { flex: 0 0 auto; }
  .wrap { padding: 16px 16px 48px; }
  .hero { padding: 32px 24px 28px; border-radius: 18px; }
  .hero h1 { font-size: 28px; }
  .regionbar form { margin-left: 0; width: 100%; }
  .regionbar select { max-width: 100%; width: 100%; }
  .detail, .shop-layout { grid-template-columns: 1fr; }
  .shop-head { display: block; }
  .shop-avatar { margin-bottom: 12px; }
  .shop-cta { display: inline-block; margin-top: 0; }
  .shop-actions { flex-direction: row; margin-top: 14px; }
  .cards { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .d-grid { grid-template-columns: 1fr; }
  .demand-head { display: block; }
  .demand-head > a { display: inline-block; margin-top: 14px; }
  .foot { padding: 28px 16px 34px; }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 28px 20px 24px; }
  .hero h1 { font-size: 25px; }
  .cat { padding: 13px 13px 12px; }
  .cat b { font-size: 15px; }
}
