/* ============================================================
   云分类 · 分类信息发布系统  样式表
   自包含、无外部依赖；CSS 变量统一主题；移动优先响应式
   ============================================================ */
:root {
  /* 地方门户风格：橙 #f78015 发布、蓝 #3592e2 搜索/导航、绿 #42b712、红 #ee4341 */
  --primary: #3592e2;
  --primary-dark: #2283d4;
  --primary-light: #eaf5ff;
  --accent: #f78015;
  --accent-dark: #eb6d13;
  --accent-light: #fff4e8;
  --green: #42b712;
  --green-light: #eefae6;
  --warn: #e68a00;
  --warn-light: #fff8e8;
  --danger: #ee4341;
  --danger-light: #fdeced;
  --text: #333333;
  --text-2: #555555;
  --muted: #999999;
  --bg: #f7f8fa;
  --card: #ffffff;
  --border: #dddddd;
  --border-2: #e8e8e8;
  --radius: 4px;
  --radius-sm: 3px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-lg: 0 3px 12px rgba(0, 0, 0, .08);
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", -apple-system,
          BlinkMacSystemFont, "Source Han Sans SC", "Noto Sans CJK SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 13px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color .18s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.35; font-weight: 700; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 17px; }
p { margin: 0 0 1em; }
code { background: #f1f4fa; padding: 1px 5px; border-radius: 4px; font-size: 12px; color: #c0341d; }
pre { background: #f7f9fd; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; overflow: auto; font-size: 12px; line-height: 1.6; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
small { font-size: 12px; color: var(--muted); }
.container, .wrap-inner { width: min(1000px, calc(100% - 24px)); margin: 0 auto; }
.container-narrow { width: min(760px, calc(100% - 32px)); margin: 0 auto; }
.mt-0 { margin-top: 0 !important; } .mt-2 { margin-top: 16px; } .mb-2 { margin-bottom: 16px; }
.text-muted { color: var(--muted); } .text-accent { color: var(--accent); }
.text-center { text-align: center; } .text-right { text-align: right; }
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; }
.gap { gap: 12px; } .wrap { flex-wrap: wrap; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; font-weight: 500; line-height: 1.5;
  cursor: pointer; transition: all .18s; white-space: nowrap; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(47,107,255,.22); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(255,106,61,.22); }
.btn-accent:hover { background: #ef5427; color: #fff; }
.btn-ghost { background: #fff; color: var(--text-2); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn.disabled, .btn:disabled { opacity: .45; pointer-events: none; }
.btn-block { width: 100%; }

/* ---------------- 页头 ---------------- */
.topbar { background: #fff; border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #7aa2ff); color: #fff;
  font-size: 20px; font-weight: 800; letter-spacing: -1px;
}
.logo-text { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: .5px; }
.logo-text span { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.city-switch { position: relative; flex-shrink: 0; }
.city-switch select {
  border: 0; background: transparent; font-size: 14px; color: var(--text-2);
  padding: 6px 4px; cursor: pointer; font-family: inherit; max-width: 110px;
}
.top-search { flex: 1; display: flex; max-width: 480px; margin-left: auto; }
.top-search input {
  flex: 1; min-width: 0; height: 38px; padding: 0 14px; font-size: 14px;
  border: 1px solid var(--border-2); border-right: 0; border-radius: 20px 0 0 20px;
  outline: none; font-family: inherit; background: #fafbfe;
}
.top-search input:focus { border-color: var(--primary); background: #fff; }
.top-search button {
  border: 0; background: var(--primary); color: #fff; padding: 0 20px;
  border-radius: 0 20px 20px 0; cursor: pointer; font-family: inherit; font-size: 14px;
  white-space: nowrap; min-width: 68px; flex-shrink: 0;
}
.top-search button:hover { background: var(--primary-dark); }
.top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.user-chip { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-light); color: var(--primary); font-weight: 700; font-size: 13px;
  object-fit: cover; overflow: hidden; flex-shrink: 0;
}
.avatar-lg { width: 56px; height: 56px; font-size: 22px; }
.main-nav { background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 2px 8px rgba(28,52,99,.03); }
.main-nav-inner { display: flex; align-items: center; gap: 4px; height: 46px; overflow-x: auto; }
.main-nav a {
  padding: 0 18px; height: 46px; line-height: 46px; color: var(--text-2);
  font-size: 15px; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); border-bottom-color: var(--primary); }
.main-nav .nav-publish { margin-left: auto; color: var(--accent); font-weight: 700; }

/* ---------------- 首屏 / 搜索 ---------------- */
.hero {
  background: linear-gradient(120deg, #1e4fd0 0%, #2f6bff 48%, #6d8dff 100%);
  color: #fff; padding: 44px 0 40px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(255,255,255,.07);
}
.hero::before {
  content: ''; position: absolute; left: 8%; bottom: -160px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(255,255,255,.05);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 30px; margin-bottom: 6px; letter-spacing: 1px; }
.hero p { opacity: .85; margin-bottom: 22px; font-size: 15px; }
.hero-search { display: flex; max-width: 660px; background: #fff; border-radius: 10px; padding: 5px; box-shadow: 0 10px 30px rgba(0,0,0,.14); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 16px; font-size: 15px; font-family: inherit; color: var(--text); }
.hero-search button { border: 0; background: var(--accent); color: #fff; border-radius: 8px; padding: 0 30px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; }
.hero-search button:hover { background: #ef5427; }
.hot-words { margin-top: 14px; font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hot-words span { opacity: .75; }
.hot-words a { color: #fff; opacity: .92; border-bottom: 1px dashed rgba(255,255,255,.5); }
.hot-words a:hover { opacity: 1; }
.hero-stats { display: flex; gap: 34px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats div strong { font-size: 22px; display: block; line-height: 1.2; }
.hero-stats div span { font-size: 12px; opacity: .8; }

/* ---------------- 通用区块 / 卡片 ---------------- */
main.site-main { padding: 26px 0 50px; min-height: 60vh; }
.section { margin-bottom: 26px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.section-head h2 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 9px; }
.section-head h2::before { content: ''; width: 4px; height: 19px; border-radius: 3px; background: var(--primary); }
.section-head .more { font-size: 13px; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.side-card { padding: 18px; margin-bottom: 16px; }
.side-card h3 { font-size: 16px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

/* v1.5.17：单页「站点服务」纯文字导航。原先复用 .news-item（为带缩略图的资讯条目设计），
   且内部 <h3> 会被 .side-card h3 命中而带上标题下边框和额外间距，导致侧栏散乱错位。 */
.side-card .side-nav-link {
  display: block; padding: 9px 10px; margin: 0 -10px; border-radius: 6px;
  font-size: 13.5px; line-height: 1.4; color: var(--text-2);
  border-bottom: 1px dashed var(--border);
}
.side-card .side-nav-link:last-child { border-bottom: 0; }
.side-card .side-nav-link:hover { background: #f4f7ff; color: var(--primary); }
.side-card .side-nav-link.on { background: var(--primary-light); color: var(--primary); font-weight: 600; }

.empty { text-align: center; padding: 54px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--border-2); border-radius: var(--radius); }
.empty strong { display: block; font-size: 16px; color: var(--text-2); margin-bottom: 6px; }

/* ---------------- 分类图标网格 ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.cat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 8px; text-align: center; transition: all .2s; display: block; color: var(--text);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text); }
.cat-icon {
  width: 46px; height: 46px; border-radius: 14px; margin: 0 auto 9px;
  display: grid; place-items: center; color: #fff; font-size: 19px; font-weight: 800;
}
.cat-card b { display: block; font-size: 14px; font-weight: 600; }
.cat-card small { color: var(--muted); font-size: 11px; }
.cat-subs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cat-subs a { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 4px 13px; font-size: 13px; color: var(--text-2); }
.cat-subs a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ---------------- 信息列表 ---------------- */
.filter-bar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; }
.filter-row { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--border); flex-wrap: wrap; }
.filter-row:last-child { border-bottom: 0; padding-bottom: 0; }
.filter-row:first-child { padding-top: 0; }
.filter-label { color: var(--muted); font-size: 13px; width: 52px; flex-shrink: 0; padding-top: 3px; }
.filter-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.filter-links a { font-size: 13px; color: var(--text-2); padding: 2px 0; }
.filter-links a:hover, .filter-links a.on { color: var(--primary); font-weight: 600; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; padding: 10px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.list-toolbar .sorts a { font-size: 13px; color: var(--text-2); margin-right: 16px; }
.list-toolbar .sorts a.on { color: var(--primary); font-weight: 700; }
.info-list { background: #fff; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.info-item { display: flex; gap: 15px; padding: 16px; border-bottom: 1px solid var(--border); transition: background .18s; }
.info-item:last-child { border-bottom: 0; }
.info-item:hover { background: #fafbff; }
.info-thumb {
  width: 132px; height: 96px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, #dfe8ff, #eef3ff); position: relative;
}
.info-thumb img { width: 100%; height: 100%; object-fit: cover; }
.info-thumb .ph { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(47,107,255,.55); font-size: 26px; font-weight: 800; }
.info-main { flex: 1; min-width: 0; }
.info-title { font-size: 16px; font-weight: 600; color: var(--text); display: block; margin-bottom: 5px; line-height: 1.45; }
.info-title:hover { color: var(--primary); }
.info-desc { color: var(--muted); font-size: 13px; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tag { font-size: 11px; padding: 1px 8px; border-radius: 4px; background: #f2f5fa; color: var(--muted); }
.tag-blue { background: var(--primary-light); color: var(--primary); }
.tag-top { background: var(--accent); color: #fff; font-weight: 600; }
.tag-verified { background: var(--green-light); color: var(--green); }
.tag-orange { background: var(--accent-light); color: var(--accent); }
.badge { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 20px; line-height: 1.6; }
.badge-ok { background: var(--green-light); color: var(--green); }
.badge-warn { background: var(--warn-light); color: var(--warn); }
.badge-bad { background: var(--danger-light); color: var(--danger); }
.badge-gray { background: #f0f2f6; color: var(--muted); }
.badge-blue { background: var(--primary-light); color: var(--primary); }
.info-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.info-side { text-align: right; flex-shrink: 0; min-width: 96px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.price { color: var(--accent); font-size: 18px; font-weight: 700; }
.price-free { color: var(--green); font-size: 15px; }
.price-unit { font-size: 12px; color: var(--muted); margin-left: 2px; }
.price-wrap { white-space: nowrap; display: inline-block; }
.info-item.is-top { background: linear-gradient(90deg, #fffaf7, #fff 40%); }
.info-item.is-top:hover { background: linear-gradient(90deg, #fff4ed, #fff 40%); }

/* ---------------- 商家 / 资讯卡片 ---------------- */
.shop-card { padding: 16px; display: flex; gap: 13px; align-items: flex-start; transition: all .2s; }
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.shop-logo { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--primary-light); }
.shop-logo-ph { display: grid; place-items: center; color: var(--primary); font-size: 22px; font-weight: 800; }
.shop-card h3 { font-size: 15px; margin: 0 0 4px; overflow-wrap: anywhere; }
.shop-card p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.shop-card-txt { min-width: 0; flex: 1 1 auto; }

/* v1.5.17：/goods.html 单页商家网格。单页主区比商家频道窄（右侧还有 300px 侧栏），
   用 2 列并锁定 logo 尺寸，避免原始大图撑破卡片、把内容挤到侧栏上。 */
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shop-grid .shop-card { min-width: 0; }
/* app.js 图片加载失败时把 <img> 替换成 .img-broken，此时 .shop-logo 类已丢失，
   若不单独锁定尺寸，占位块会撑到 100% 宽再次把卡片挤歪（商家频道同样受益）。 */
.shop-card > .img-broken { width: 58px; height: 58px; min-height: 0; flex-shrink: 0; border-radius: 12px; }
@media (max-width: 1000px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .shop-grid { grid-template-columns: 1fr; } }
.news-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.news-item:last-child { border-bottom: 0; }
.news-item img { width: 92px; height: 66px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.news-item h3 { font-size: 15px; margin: 0 0 4px; line-height: 1.45; }
.news-item p { font-size: 12px; color: var(--muted); margin: 0; }
.rank-list { counter-reset: rank; }
.rank-list a { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--text-2); border-bottom: 1px dashed var(--border); }
.rank-list a:last-child { border-bottom: 0; }
.rank-list a::before {
  counter-increment: rank; content: counter(rank); width: 20px; height: 20px; border-radius: 5px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; background: #f0f2f6; color: var(--muted); flex-shrink: 0;
}
.rank-list a:nth-child(1)::before { background: var(--accent); color: #fff; }
.rank-list a:nth-child(2)::before { background: #ff9a5a; color: #fff; }
.rank-list a:nth-child(3)::before { background: #ffc53d; color: #fff; }

/* ---------------- 详情页 ---------------- */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }
.detail-card { padding: 24px; }
.detail-head h1 { font-size: 24px; margin-bottom: 10px; }
.detail-price { font-size: 26px; color: var(--accent); font-weight: 700; margin: 8px 0 16px; }
.detail-attrs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; background: #fafbfe; border-radius: var(--radius-sm); padding: 12px 18px; margin-bottom: 20px; }
.detail-attrs div { display: flex; gap: 8px; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed var(--border); }
.detail-attrs div:last-child, .detail-attrs div:nth-last-child(2) { border-bottom: 0; }
.detail-attrs span { color: var(--muted); min-width: 66px; }
.detail-content { font-size: 15px; line-height: 1.9; color: var(--text-2); }
.detail-content img { max-width: 100%; border-radius: 8px; margin: 10px 0; }
.detail-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.detail-gallery img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.contact-box { background: linear-gradient(135deg, #eef4ff, #f7faff); border: 1px solid #dce7ff; border-radius: var(--radius); padding: 20px; }
.contact-box .phone { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: 1px; margin: 6px 0 14px; }
/* v1.5.19 信息内页联系电话：默认掩码，点击展开后才显示明文 */
.contact-box .phone.phone-mask { display: inline-block; cursor: pointer; user-select: none; border-bottom: 1px dashed var(--primary); }
.contact-box .phone.phone-mask:hover { color: var(--accent); }
.contact-box .phone.phone-mask::after { content: " 点击查看"; font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
/* v1.5.54：商家资料表内的联系电话掩码（与信息详情页一致，可点击展开） */
.detail-attrs b.phone-mask { cursor: pointer; color: var(--primary); border-bottom: 1px dashed var(--primary); }
.detail-attrs b.phone-mask:hover { color: var(--accent); }
.detail-attrs b.phone-mask::after { content: " 点击查看"; font-size: 12px; font-weight: 400; color: var(--muted); }
.contact-box .phone.is-loading::after { content: " 获取中…"; font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.contact-box .contact-extra { margin: 0 0 12px; font-size: 14px; color: var(--text); }
.contact-box .contact-extra > div { margin: 2px 0; }
.contact-box .ce-label { display: inline-block; min-width: 38px; color: var(--primary); font-weight: 600; margin-right: 6px; }
.article-content { font-size: 15px; line-height: 1.95; color: var(--text-2); }
.article-content h2, .article-content h3 { color: var(--text); margin-top: 26px; }
.article-content img { max-width: 100%; border-radius: 8px; }
.article-content blockquote { border-left: 3px solid var(--primary); background: #f7f9fd; padding: 10px 16px; margin: 16px 0; color: var(--text-2); }

/* ---------------- 表单 ---------------- */
.img-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.img-grid a { display: block; width: 120px; height: 120px; border: 1px solid var(--border, #e6e8eb); border-radius: 8px; overflow: hidden; background: #f5f6f8; }
.img-grid img { width: 100%; height: 100%; object-fit: cover; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.form-grid label, .form-row { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); }
.form-grid label small, .form-row small { display: block; font-weight: 400; margin-top: 3px; }
.form-row { margin-bottom: 16px; }
input[type=text], input[type=password], input[type=email], input[type=number],
input[type=date], input[type=datetime-local], input[type=url], input[type=file],
select, textarea {
  width: 100%; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  padding: 9px 12px; font-size: 14px; font-family: inherit; color: var(--text);
  background: #fff; outline: none; transition: border-color .18s, box-shadow .18s; margin-top: 5px;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,107,255,.1); }
textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
input[type=file] { padding: 7px; }
select { cursor: pointer; }
label.check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; cursor: pointer; margin: 14px 0; }
label.check input { width: auto; margin: 0; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.radio-group label {
  border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: 8px 15px;
  cursor: pointer; font-weight: 500; font-size: 13px; display: flex; align-items: center; gap: 6px;
}
.radio-group label:has(input:checked) { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.radio-group input { width: auto; margin: 0; }

/* ---------------- 提示 / 表格 / 分页 ---------------- */
.alert { border-radius: var(--radius-sm); padding: 11px 15px; margin-bottom: 16px; font-size: 13px; border: 1px solid transparent; }
.alert-ok, .alert-info { background: var(--green-light); border-color: #c8ecd5; color: #146c33; }
.alert-info { background: var(--primary-light); border-color: #d3e0ff; color: var(--primary-dark); }
.alert-warn { background: var(--warn-light); border-color: #f6dfae; color: #92580b; }
.alert-bad { background: var(--danger-light); border-color: #f6c9cb; color: #a51d1d; }
.table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { background: #f8fafd; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.table tr:hover td { background: #fbfcff; }
.table td .btn { margin-right: 4px; }
/* v1.5.11 后台实名认证查看/编辑页 */
.table-bordered th, .table-bordered td { border: 1px solid var(--border); }
.table-bordered th { width: 140px; }
.table-bordered td input.input, .table-bordered td .input { width: 100%; max-width: 360px; padding: 7px 10px; border: 1px solid var(--border-2, #d9dee7); border-radius: 6px; font-size: 13px; }
.realname-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table-wrap .table { border-radius: 0; }
.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 18px; justify-content: center; }
.page-link { display: inline-block; min-width: 34px; padding: 6px 11px; text-align: center; border: 1px solid var(--border-2); border-radius: 6px; background: #fff; color: var(--text-2); font-size: 13px; }
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-link.disabled { color: #c4cad6; pointer-events: none; background: #fafbfd; }
.page-ellipsis, .page-total { color: var(--muted); font-size: 12px; padding: 0 4px; }
/* v1.5.59：提示页内容整体居中，上下留出间距（不再贴边） */
.msg-body { display: grid; place-items: center; min-height: 100vh; padding: 64px 20px; box-sizing: border-box; background: var(--bg, #f4f6f9); }
.msg-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 40px 34px; max-width: 520px; width: 100%; box-sizing: border-box; text-align: center; }
.msg-card .msg-icon { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: #fff2ee; color: var(--accent);
  display: flex; align-items: center; justify-content: center; }
.msg-card .msg-icon svg { width: 26px; height: 26px; display: block; }
.msg-card h1 { font-size: 22px; margin-bottom: 10px; } .msg-card p { color: var(--text-2); line-height: 1.9; margin-bottom: 6px; }
.msg-card .btn { margin: 18px 4px 0; }

/* v1.5.62：提示页带上站头站脚后，提示卡在「头部与页脚之间」垂直居中，上下留白 */
main.site-main.msg-main {
  padding: 56px 0; box-sizing: border-box; min-height: 58vh;
  display: flex; align-items: center; justify-content: center;
}
.msg-main .msg-page { width: 100%; display: flex; justify-content: center; padding: 0 20px; box-sizing: border-box; }
.msg-main .msg-card { margin: 0 auto; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 30px 0 20px; margin-top: 10px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid h4 { font-size: 14px; margin-bottom: 10px; }
.footer-grid a, .footer-grid p { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 16px; text-align: center; color: var(--muted); font-size: 12px; }

/* ---------------- 会员中心 / 后台通用布局 ---------------- */
.panel-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 20px; align-items: start; }
.panel-side { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); position: sticky; top: 16px; }
.panel-side .side-user { display: flex; gap: 10px; align-items: center; padding: 6px 8px 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.panel-side .side-user b { display: block; font-size: 14px; }
.panel-side a.menu {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 14px; margin-bottom: 2px;
}
.panel-side a.menu:hover { background: #f5f8ff; color: var(--primary); }
.panel-side a.menu.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.panel-side .menu-group { font-size: 11px; color: var(--muted); padding: 12px 11px 5px; letter-spacing: 1px; }
.panel-main { min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h1 { font-size: 22px; margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat-card span { font-size: 12px; color: var(--muted); }
.stat-card strong { display: block; font-size: 25px; margin-top: 4px; color: var(--text); }
.stat-card i { display: block; width: 34px; height: 4px; border-radius: 3px; background: var(--primary); margin-top: 10px; }
.stat-card:nth-child(2) i { background: var(--accent); } .stat-card:nth-child(3) i { background: var(--green); } .stat-card:nth-child(4) i { background: #9254de; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 9px 16px; color: var(--text-2); font-size: 14px; border-bottom: 2px solid transparent; }
.tabs a:hover, .tabs a.on { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ---------------- 后台 ---------------- */
.admin-body { background: #f4f6fb; }
.admin-top { background: #182338; color: #fff; height: 56px; display: flex; align-items: center; }
.admin-top .container { display: flex; align-items: center; justify-content: space-between; }
.admin-top .logo-text { color: #fff; font-size: 17px; }
.admin-top .logo-mark { width: 30px; height: 30px; font-size: 16px; border-radius: 9px; }
.admin-top a { color: #cfd8ea; font-size: 13px; margin-left: 16px; }
.admin-top a:hover { color: #fff; }
.admin-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; padding: 18px 0 40px; align-items: start; }
.admin-side { background: #fff; border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow-y: auto; }
.admin-side .menu-group { padding: 12px 12px 5px; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.admin-side a.menu { display: block; padding: 9px 12px; border-radius: 7px; color: var(--text-2); font-size: 13.5px; margin-bottom: 2px; }
.admin-side a.menu:hover { background: #f4f7ff; color: var(--primary); }
.admin-side a.menu.active { background: var(--primary); color: #fff; font-weight: 600; }

/* v1.5.14：后台左侧导航分组折叠 + 搜索，避免几十项菜单把侧栏拉得过长 */
.admin-side .menu-filter { padding: 2px 2px 10px; }
.admin-side .menu-filter input {
  width: 100%; box-sizing: border-box; margin: 0; padding: 8px 10px;
  border: 1px solid var(--border, #e3e9f2); border-radius: 7px;
  background: #f7f9fd; font-size: 13px; font-family: inherit;
}
.admin-side .menu-filter input:focus { outline: none; border-color: var(--primary); background: #fff; }
.admin-side .menu-sec { border-bottom: 1px solid #f0f3f8; margin-bottom: 4px; padding-bottom: 4px; }
.admin-side .menu-sec:last-of-type { border-bottom: 0; }
.admin-side .menu-sec > summary.menu-group {
  display: flex; align-items: center; justify-content: space-between;
  list-style: none; cursor: pointer; user-select: none;
  margin: 0; padding: 9px 12px; border-radius: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: 0; color: #5b6b82;
}
.admin-side .menu-sec > summary.menu-group::-webkit-details-marker { display: none; }
/* 纯 CSS 箭头，不使用字形字符，避免部分浏览器显示成乱码方块 */
.admin-side .menu-sec > summary.menu-group::after {
  content: ""; width: 6px; height: 6px; flex: 0 0 6px;
  border-right: 1.5px solid #9aa7b8; border-bottom: 1.5px solid #9aa7b8;
  transform: rotate(-45deg); transition: transform .18s ease;
}
.admin-side .menu-sec[open] > summary.menu-group::after { transform: rotate(45deg); }
.admin-side .menu-sec > summary.menu-group:hover { background: #f4f7ff; color: var(--primary); }
.admin-side .menu-items { padding: 0 0 2px; }
.admin-side .menu-sec[hidden], .admin-side a.menu[hidden] { display: none !important; }
.admin-main { min-width: 0; }
.admin-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.admin-card h2 { font-size: 18px; margin-bottom: 16px; }
.admin-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.admin-toolbar input, .admin-toolbar select { width: auto; min-width: 130px; margin: 0; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; margin: 0; }
/* 后台登录框（美化） */
.admin-login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(1200px 600px at 70% -10%, #2f6bff22, transparent),
              linear-gradient(135deg, #1e2c4a 0%, #243b6b 48%, #1c2a4d 100%); }
.admin-login { width: min(400px, 100%); background: #fff; border-radius: 14px; box-shadow: 0 24px 70px rgba(10,18,40,.45); overflow: hidden; }
.admin-login-brand { background: linear-gradient(135deg, var(--primary), #5d83ff); color: #fff; padding: 26px 32px 22px; text-align: center; }
.admin-login-brand .logo-mark { width: 46px; height: 46px; border-radius: 13px; font-size: 24px; margin: 0 auto 10px;
  background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.admin-login-brand .logo-text { color: #fff; font-size: 20px; letter-spacing: .5px; }
.admin-login-brand p { color: rgba(255,255,255,.85); font-size: 12.5px; margin: 6px 0 0; }
.admin-login-body { padding: 26px 32px 30px; }
.admin-login-body h1 { font-size: 18px; text-align: center; margin: 0 0 4px; }
.admin-login-body p.sub { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.admin-login-wrap .admin-login-body .form-row { margin-bottom: 16px; }
.admin-login-wrap .admin-login-body .btn-primary { box-shadow: 0 6px 18px rgba(47,107,255,.28); }
.admin-login-wrap .admin-login-body .text-center { margin-top: 14px; }

/* 后台表单 / 输入框美化（仅作用于后台卡片，不影响前台） */
.admin-card input[type=text], .admin-card input[type=password], .admin-card input[type=email],
.admin-card input[type=number], .admin-card input[type=date], .admin-card input[type=datetime-local],
.admin-card input[type=url], .admin-card input[type=file], .admin-card select, .admin-card textarea {
  border: 1px solid #dfe4ee; border-radius: 8px; padding: 10px 13px; background: #fbfcfe;
  box-shadow: none; transition: border-color .18s, box-shadow .18s, background .18s;
}
.admin-card input:not([type=file]):focus, .admin-card select:focus, .admin-card textarea:focus {
  border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(47,107,255,.12); }
.admin-card .form-row > label, .admin-card .form-grid > label { color: #344054; font-weight: 600; }
.admin-card .form-row small, .admin-card .form-grid > label small { color: #7a869a; }
.admin-card .form-actions { border-top: 1px dashed #e6eaf2; }
.admin-toolbar input, .admin-toolbar select { border: 1px solid #dfe4ee; border-radius: 8px; background: #fbfcfe; padding: 8px 12px; }
.admin-toolbar input:focus, .admin-toolbar select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,107,255,.12); }

/* ---------------- 迁移工具 ---------------- */
.mig-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.mig-steps span { padding: 6px 14px; border-radius: 20px; font-size: 13px; background: #eef1f7; color: var(--muted); }
.mig-steps span.on { background: var(--primary); color: #fff; }
.map-row { display: grid; grid-template-columns: 150px 1fr 1fr 30px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.map-row label { font-size: 13px; color: var(--text-2); }
.map-row select, .map-row input { margin: 0; }
.progress { height: 10px; background: #eef1f7; border-radius: 6px; overflow: hidden; margin: 12px 0; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #7aa2ff); width: 0; transition: width .3s; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }

/* ---------------- 安装向导 ---------------- */
.install-body { background: linear-gradient(160deg, #eef3ff, #f7f9fd); min-height: 100vh; padding: 40px 16px; }
.install-wrap { width: min(880px, 100%); margin: 0 auto; }
.install-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.install-head h1 { font-size: 23px; margin: 0; } .install-head p { color: var(--muted); margin: 0; font-size: 13px; }
.brand-mark { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--primary), #7aa2ff); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.steps { display: flex; list-style: none; padding: 0; gap: 8px; margin: 0 0 18px; flex-wrap: wrap; }
.steps li { flex: 1; min-width: 150px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 9px; }
.steps li span { width: 23px; height: 23px; border-radius: 50%; background: #eef1f7; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.steps li.on { border-color: var(--primary); color: var(--primary); font-weight: 600; }
.steps li.on span { background: var(--primary); color: #fff; }
.install-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 28px; }
.install-card h2 { font-size: 19px; margin-bottom: 18px; }
.install-card .form-grid label { font-size: 13px; }
.install-foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 22px; }
.log { max-height: 220px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .layout { grid-template-columns: minmax(0, 1fr) 260px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .layout, .panel-layout, .admin-layout { grid-template-columns: 1fr; }
  .panel-side, .admin-side { position: static; }
  .admin-side { max-height: none; overflow: visible; }
  .panel-side a.menu, .admin-side a.menu { display: inline-block; }
  .admin-side .menu-items a.menu { display: block; }
  .admin-side .menu-sec > summary.menu-group { display: flex; }
  .panel-side .menu-group, .admin-side .menu-group { display: block; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar-inner { height: auto; flex-wrap: wrap; padding: 12px 0; gap: 10px; }
  .top-search { order: 3; width: 100%; max-width: none; }
  .top-actions { margin-left: auto; }
  .detail-gallery { grid-template-columns: repeat(3, 1fr); }
  .map-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .container, .container-narrow { width: calc(100% - 24px); }
  .hero { padding: 30px 0; }
  .hero h1 { font-size: 23px; }
  .hero-search button { padding: 0 18px; }
  .hero-stats { gap: 20px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cat-card { padding: 12px 4px; } .cat-icon { width: 38px; height: 38px; font-size: 16px; }
  .cat-card b { font-size: 12px; } .cat-card small { display: none; }
  .grid-2, .grid-3, .grid-4, .form-grid, .detail-attrs { grid-template-columns: 1fr; }
  .info-thumb { width: 96px; height: 76px; }
  .info-side { min-width: 70px; } .price { font-size: 15px; }
  .info-title { font-size: 14px; }
  .info-desc { display: none; }
  .info-item { padding: 12px; gap: 10px; }
  .detail-card { padding: 16px; }
  .detail-head h1 { font-size: 20px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav a { padding: 0 12px; font-size: 14px; }
  .card-pad { padding: 15px; }
  .install-card { padding: 18px; }
  .steps li { min-width: 100%; }
}

/* ============================================================
   地方门户风模板（视觉参考：临淄信息港 www.lzrrr.com）
   顶部工具条 / 蓝色搜索框 / 橙色发布按钮 / 蓝线导航 / 板块盒子文字链
   ============================================================ */
.portal-body { background: #ffffff; }

/* 顶部淡蓝工具条 */
.portal-toptools {
  border-bottom: 1px solid #d9e9f5;
  background-color: #eaf6ff;
  background-image:
    radial-gradient(circle at 8% 135%, rgba(255,255,255,.95) 0 42px, transparent 43px),
    radial-gradient(circle at 22% 140%, rgba(255,255,255,.8) 0 34px, transparent 35px),
    radial-gradient(circle at 72% 138%, rgba(255,255,255,.85) 0 46px, transparent 47px),
    radial-gradient(circle at 90% 132%, rgba(255,255,255,.9) 0 38px, transparent 39px);
}
.portal-toptools .wrap-inner {
  height: 30px; display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: #6b7784;
}
.portal-toptools a { color: #6b7784; margin: 0 5px; }
.portal-toptools a:hover { color: var(--accent); }
.portal-toptools .tt-sep { color: #c4d4e0; }
.portal-toptools .tt-right a { margin-left: 10px; }
.portal-toptools .tt-hi { color: var(--accent); }

/* Logo + 搜索 + 免费发布 */
.portal-head { display: flex; align-items: flex-end; gap: 24px; padding: 14px 0 6px; }
.portal-logo { display: flex; flex-direction: column; line-height: 1.08; min-width: 196px; position: relative; top: 8px; }
.portal-logo .pl-domain { font-size: 13px; font-weight: 700; color: #93a3b0; letter-spacing: .5px; }
.portal-logo .pl-name { font-size: 27px; font-weight: 800; color: #3d4c5a; letter-spacing: 2px; white-space: nowrap; }
.portal-logo:hover .pl-name { color: var(--primary); }
.portal-search {
  flex: 1; max-width: 500px; height: 38px; display: flex;
  border: 2px solid var(--primary); border-radius: 2px; background: #fff;
}
.portal-search input {
  flex: 1; min-width: 0; border: 0; outline: none; padding: 0 12px;
  font-family: inherit; font-size: 14px; color: #333; background: transparent;
  box-shadow: none;
}
.portal-search .ps-ico {
  width: 34px; flex: 0 0 auto; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.portal-search .ps-ico::before {
  content: ""; width: 11px; height: 11px; border: 2px solid #a9b6c2; border-radius: 50%;
}
.portal-search .ps-ico::after {
  content: ""; position: absolute; left: 21px; top: 22px;
  width: 7px; height: 2px; background: #a9b6c2; transform: rotate(45deg);
}
.portal-search button {
  width: 84px; flex: 0 0 auto; border: 0; background: var(--primary); color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.portal-search button:hover { background: var(--primary-dark); }
.portal-post {
  margin-left: auto; height: 38px; padding: 0 20px; display: flex; align-items: center;
  gap: 6px; background: var(--accent); color: #fff; border-radius: 2px;
  font-size: 15px; font-weight: 700; white-space: nowrap;
}
.portal-post:hover { background: var(--accent-dark); color: #fff; }
.portal-post .pp-ico { font-size: 17px; line-height: 1; }

/* 热门词 */
.portal-hotwords {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 2px 0 12px 220px; font-size: 12px; color: #9aa4ad;
}
.portal-hotwords a { color: #6d7b88; white-space: nowrap; }
.portal-hotwords a:hover { color: var(--accent); }
.portal-hotwords a i {
  display: inline-block; width: 6px; height: 6px; margin-right: 4px;
  border-radius: 1px; background: var(--green); vertical-align: 1px;
}
.portal-hotwords a:nth-child(3n) i { background: var(--primary); }
.portal-hotwords a:nth-child(4n) i { background: var(--accent); }

/* 蓝线主导航 */
.portal-nav { border-bottom: 2px solid var(--primary); background: #f4f8fd; }
.portal-nav .wrap-inner { display: flex; align-items: stretch; height: 38px; overflow-x: auto; }
.portal-nav a {
  position: relative; display: flex; align-items: center; padding: 0 16px;
  color: #333; font-size: 14px; font-weight: 700; white-space: nowrap;
}
.portal-nav a:hover, .portal-nav a.active { color: var(--primary); }
.portal-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
}
.portal-nav .nav-badge {
  position: absolute; top: 1px; right: 2px; font-size: 9px; line-height: 12px;
  padding: 0 3px; color: #fff; background: var(--green); border-radius: 2px; font-weight: 400;
}
.portal-nav .nav-last { margin-left: auto; color: var(--accent) !important; }

/* 右侧悬浮客服 */
.portal-float { position: fixed; right: 6px; top: 46%; z-index: 60; width: 46px; }
.portal-float a {
  display: block; padding: 9px 4px 8px; text-align: center; color: #fff;
  font-size: 12px; line-height: 1.35; background: #4aa8e8; border-radius: 3px 3px 0 0;
}
.portal-float a + a { background: var(--green); border-radius: 0 0 3px 3px; margin-top: 3px; }
.portal-float a:hover { color: #fff; filter: brightness(1.08); }
.portal-float .pf-ico {
  display: block; width: 17px; height: 13px; margin: 0 auto 5px;
  border: 2px solid #fff; border-radius: 3px; position: relative;
}
.portal-float .pf-ico::after {
  content: ""; position: absolute; left: 2px; bottom: -5px;
  border: 3px solid transparent; border-top-color: #fff; border-right-color: #fff;
}
.portal-float .pf-ico-wx { border-radius: 50%; width: 15px; height: 15px; }
.portal-float .pf-ico-wx::after { left: 4px; bottom: -4px; }
.portal-float .pf-ico-tel { border-radius: 50%; width: 15px; height: 15px; }
.portal-float .pf-ico-tel::after { content: ""; position: absolute; left: 4px; bottom: -4px; border: 3px solid transparent; border-top-color: #fff; border-left-color: #fff; }
.portal-float .pf-txt { display: block; white-space: nowrap; }
.portal-float .pf-item { display: block; padding: 9px 4px 8px; text-align: center; color: #fff; font-size: 12px; line-height: 1.35; background: #4aa8e8; border-radius: 3px; margin-top: 3px; }
.portal-float .pf-item:hover { color: #fff; filter: brightness(1.08); }
.portal-float .pf-wechat-pop {
  position: absolute; right: 56px; top: 0; width: 190px; background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; padding: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.16); text-align: center;
}
.portal-float .pf-wp-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.portal-float .pf-wp-id { font-size: 13px; margin-bottom: 8px; }
.portal-float .pf-wp-id b { color: var(--primary); }
.portal-float .pf-wp-copy { margin-left: 6px; border: 1px solid var(--primary); color: var(--primary); background: #fff; border-radius: 4px; padding: 1px 8px; font-size: 12px; cursor: pointer; }
.portal-float .pf-wp-qr { width: 140px; height: 140px; object-fit: contain; background: #fff; margin: 4px auto; display: block; }
.portal-float .pf-wp-tip { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* 首页公告条（v1.5.3） */
.portal-announce { display: flex; align-items: center; gap: 10px; background: linear-gradient(90deg,#fff7ed,#fffdf8); border: 1px solid #ffe2c4; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; overflow: hidden; }
.portal-announce .pa-label { flex: 0 0 auto; background: #ff7a18; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.portal-announce .pa-viewport { flex: 1; min-width: 0; overflow: hidden; }
.portal-announce .pa-track { display: flex; gap: 0; white-space: nowrap; animation: pa-scroll 42s linear infinite; }
.portal-announce:hover .pa-track { animation-play-state: paused; }
.portal-announce .pa-item { font-size: 13px; color: #8a4b16; margin-right: 28px; }
.portal-announce .pa-item:hover { color: #ff7a18; }
.portal-announce .pa-more { flex: 0 0 auto; font-size: 12px; color: var(--primary); }
@keyframes pa-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 公告列表页（v1.5.3） */
.announce-list { list-style: none; padding: 0; margin: 0; }
.announce-list li { padding: 14px 0; border-bottom: 1px dashed var(--border); }
.announce-list .al-head { display: flex; align-items: center; gap: 8px; }
.announce-list .al-badge { background: #ff7a18; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 3px; }
.announce-list .al-head small { color: var(--muted); margin-left: auto; }
.announce-list .al-body { margin-top: 8px; font-size: 14px; line-height: 1.9; color: var(--text); }

/* 门户主体 */
.portal-main { padding: 12px 0 6px; }
.portal-focus { display: grid; grid-template-columns: 300px 1fr 216px; gap: 10px; margin-bottom: 10px; align-items: stretch; }

/* 左列：上方幻灯片（约 300×168）+ 其正下方生活资讯（v1.5.7） */
.focus-left { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
/* 幻灯片固定约 300×168，不再被拉伸撑高 */
.focus-left .focus-slider,
.focus-left .focus-pic { flex: 0 0 auto; }
.focus-news { flex: 1 1 auto; border: 1px solid var(--border); background: #fff; display: flex; flex-direction: column; min-height: 0; }
.focus-news .fn-hd { display: flex; align-items: center; height: 34px; padding: 0 10px; background: #fafafa; border-bottom: 1px solid var(--border); font-size: 14px; }
.focus-news .fn-hd b { font-size: 14px; color: #333; }
.focus-news .fn-ico { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 4px; color: #fff; font-size: 12px; margin-right: 7px; }
.focus-news .fn-more { margin-left: auto; font-size: 12px; font-weight: 400; }
.focus-news .fn-more a { color: #999; }
.focus-news .fn-more a:hover { color: var(--accent); }
.focus-news .fn-list { list-style: none; margin: 0; padding: 4px 10px; flex: 1 1 auto; }
.focus-news .fn-list li { display: flex; align-items: center; padding: 5px 0; font-size: 13px; border-bottom: 1px dashed #eee; }
.focus-news .fn-list li:last-child { border-bottom: 0; }
.focus-news .fndot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-right: 8px; flex: 0 0 auto; }
.focus-news .fntitle { color: #555; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.focus-news .fntitle:hover { color: var(--accent); }
.focus-news .fndate { color: #bbb; font-size: 12px; margin-left: 6px; flex: 0 0 auto; }

.focus-pic {
  min-height: 252px; border: 1px solid var(--border); position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #2a9ee6 0%, #1668c0 58%, #0d4d99 100%); color: #ffdf3d;
  text-align: center;
}
.focus-pic::before, .focus-pic::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.09);
}
.focus-pic::before { width: 260px; height: 260px; right: -90px; top: -110px; }
.focus-pic::after { width: 190px; height: 190px; left: -70px; bottom: -100px; }
.focus-pic h2 { position: relative; font-size: 28px; letter-spacing: 5px; line-height: 1.55; margin: 0 0 4px; text-shadow: 1px 2px 3px rgba(0,0,0,.35); }
.focus-pic .fp-sub { position: relative; font-size: 12px; color: #eaf6ff; letter-spacing: 1px; }
.focus-pic .fp-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26px; line-height: 26px;
  background: rgba(0,0,0,.42); color: #e8f4ff; font-size: 12px; text-align: center;
}
.focus-pic:hover h2 { color: #fff36b; }

.focus-center, .focus-side { border: 1px solid var(--border); background: #fff; }
.focus-tabs { display: flex; background: #fafafa; border-bottom: 1px solid var(--border); }
.focus-tabs a {
  padding: 9px 20px; font-size: 14px; font-weight: 700; color: #666;
  border-right: 1px solid #eee; cursor: pointer;
}
.focus-tabs a.on { color: var(--accent); background: #fff; border-top: 2px solid var(--accent); padding-top: 7px; }
.focus-pane { display: none; }
.focus-pane.on { display: block; }
.focus-sec-hd { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; border-bottom: 1px solid #f0f0f0; }
.focus-sec-hd b { font-size: 16px; color: #c40000; }
.focus-sec-hd .fl-more { font-size: 12px; color: var(--primary); }
/* v1.5.52：置顶信息前置「置顶」图标徽标 */
.ftop-ico {
  flex: 0 0 auto; display: inline-block; padding: 1px 6px; border-radius: 3px;
  font-size: 11px; font-weight: 600; line-height: 17px; letter-spacing: 0;
  color: #fff; background: #f60; font-style: normal; vertical-align: 1px;
}
.focus-lead h3 .ftop-ico { margin-right: 6px; }
.focus-lead { padding: 14px 14px 10px; border-bottom: 1px dashed #e6e6e6; }
.focus-lead h3 { margin: 0 0 4px; font-size: 15px; color: #c40000; font-weight: 700; }
.focus-lead h3 a { color: #c40000; }
.focus-lead h3 a:hover { color: var(--accent); }
.focus-lead p { margin: 0; font-size: 12px; color: #8b8b8b; line-height: 1.7; }
.focus-lead .fl-more { color: var(--primary); font-size: 12px; }
.focus-list { list-style: none; margin: 0; padding: 8px 14px 8px; }
.focus-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #eee; }
.focus-list li:last-child { border-bottom: 0; }
.focus-list .fdot { width: 4px; height: 4px; border-radius: 50%; background: #bbb; flex: 0 0 auto; }
.focus-list a.ftitle { flex: 1; min-width: 0; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.focus-list a.ftitle:hover { color: var(--accent); text-decoration: underline; }
.focus-list a.ftop { color: #c40000; font-weight: 700; }
.focus-list .fdate { color: #999; font-size: 12px; white-space: nowrap; }
.focus-side .fs-hd { height: 32px; line-height: 32px; padding: 0 10px; background: #fafafa; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 700; color: #666; }
.focus-side .fs-bd { padding: 10px; }
.focus-side .fs-quick a { display: block; padding: 7px 8px; margin-bottom: 6px; background: #f6f9fc; border: 1px solid #e3edf5; color: #35688f; font-size: 12px; }
.focus-side .fs-quick a:hover { background: var(--primary-light); color: var(--primary); }
.focus-side .fs-stat { display: flex; justify-content: space-between; padding: 5px 0; font-size: 12px; color: #888; border-bottom: 1px dashed #eee; }
.focus-side .fs-stat b { color: var(--accent); font-size: 13px; }
.focus-side .fs-news { list-style: none; margin: 4px 0 0; padding: 0; }
.focus-side .fs-news li { padding: 5px 0; font-size: 12px; border-bottom: 1px dashed #eee; }
.focus-side .fs-news a { color: #555; }
.focus-side .fs-news a:hover { color: var(--accent); }
.focus-side .fs-ad {
  display: block; margin: 8px 10px 10px; padding: 7px 8px; text-align: center;
  background: #fff8f0; border: 1px solid #ffe3c7; color: #b35c00; font-size: 12px;
}
.focus-side .fs-ad:hover { background: #fff1df; color: #b35c00; }
.focus-side .fs-ad b { color: var(--accent); }

/* 两列板块盒子：文字链 + 右侧日期 */
.portal-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pbox { border: 1px solid var(--border); background: #fff; }
.pbox-hd {
  height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 10px;
  background: linear-gradient(#fcfcfc, #f0f2f4); border-bottom: 1px solid var(--border);
}
.pbox-ico {
  width: 21px; height: 21px; border-radius: 2px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700;
}
.pbox-hd b { font-size: 14px; color: #333; }
.pbox-hd .pbox-count { font-size: 12px; color: #999; font-weight: 400; }
.pbox-hd-right { margin-left: auto; font-size: 12px; color: #999; white-space: nowrap; }
.pbox-hd-right a { color: #999; }
.pbox-hd-right a:hover { color: var(--accent); }
.pbox-hd-right span { color: #ccc; margin: 0 3px; }
.pbox-list { list-style: none; margin: 0; padding: 3px 12px 7px; }
.pbox-list li {
  display: flex; align-items: center; gap: 8px; padding: 6px 0;
  border-bottom: 1px dashed #ededed; font-size: 13px;
}
.pbox-list li:last-child { border-bottom: 0; }
.pbox-list .pdot { width: 4px; height: 4px; border-radius: 50%; background: #b9bec4; flex: 0 0 auto; }
.pbox-list a.ptitle { flex: 1; min-width: 0; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbox-list a.ptitle:hover { color: var(--accent); text-decoration: underline; }
.pbox-list a.ptop { color: #c40000; font-weight: 700; }
.pbox-list .pdate { color: #999; font-size: 12px; white-space: nowrap; }
.pbox-list .pempty { color: #b3b3b3; font-size: 12px; }
.pbox-list .pempty a { color: var(--primary); }
.pbox-ft { padding: 6px 12px; border-top: 1px solid #f0f0f0; display: flex; flex-wrap: wrap; gap: 8px; }
.pbox-ft a { font-size: 12px; color: #7b8894; }
.pbox-ft a:hover { color: var(--accent); }

.portal-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.pbox-shop li, .pbox-news li { gap: 8px; }
.pbox-shop .ps-tag { color: #fff; background: var(--green); font-size: 11px; padding: 0 4px; border-radius: 2px; flex: 0 0 auto; }
.pbox-cats { padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pbox-cats a { font-size: 12px; color: #5c6b78; white-space: nowrap; }
.pbox-cats a:hover { color: var(--accent); }

/* 门户页脚 */
.portal-footer { border-top: 2px solid var(--primary); background: #fafafa; margin-top: 18px; padding: 16px 0 22px; text-align: center; color: #8a8a8a; font-size: 12px; }
.portal-footer .flinks { margin-bottom: 8px; }
.portal-footer .flinks a { color: #6d7b88; margin: 0 8px; }
.portal-footer .flinks a:hover { color: var(--accent); }
.portal-footer .flinks span { color: #ccc; }
.portal-footer p { margin: 4px 0 0; }

/* ---------- 政务风底部（v1.5.6，参照图2样式） ---------- */
.portal-footer .pf-main {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 880px; margin: 6px auto 12px; padding: 16px 22px;
  background: #fff; border: 1px solid #e6e9ef; border-radius: 8px; text-align: left;
}
.portal-footer .pf-info p { margin: 2px 0; color: #555; font-size: 13px; line-height: 1.7; }
.portal-footer .pf-emblem { flex: 0 0 auto; }
.portal-footer .pf-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px;
  margin-top: 12px; padding: 12px 16px; background: #f2f2f2; color: #777; font-size: 12px;
}
.portal-footer .pf-bar a { color: #777; }
.portal-footer .pf-bar a:hover { color: #555; }
.portal-footer .pf-police { display: inline-flex; align-items: center; gap: 4px; }
.portal-footer .pf-police img { height: 15px; width: auto; vertical-align: middle; }
.portal-footer .pf-copy { color: #999; }
@media (max-width: 640px) {
  .portal-footer .pf-main { flex-direction: column; text-align: center; }
  .portal-footer .pf-emblem { order: -1; }
}

/* 让列表/详情等原页面也贴近门户的紧凑边框风 */
.card, .side-card { border-radius: 3px; box-shadow: none; }
.btn { border-radius: 2px; }
.info-list .info-item { border-radius: 0; box-shadow: none; border: 1px solid var(--border); border-bottom: 0; padding: 11px 12px; }
.info-list .info-item:last-child { border-bottom: 1px solid var(--border); }
.info-list .info-item:hover { border-color: #cfe3f4; background: #fcfdff; }
.info-list .info-title a { color: #333; }
.info-list .info-title a:hover { color: var(--accent); }
.section-head { border-bottom: 2px solid var(--primary); padding-bottom: 8px; }
.section-head h2 { font-size: 17px; color: #333; }
.section-head h2::before { content: ""; display: inline-block; width: 4px; height: 15px; background: var(--accent); margin-right: 8px; vertical-align: -2px; }
.price { color: #c40000; }

/* 门户风响应式 */
@media (max-width: 960px) {
  .portal-focus { grid-template-columns: 1fr 1fr; }
  .focus-side { grid-column: 1 / -1; }
  .portal-float { display: none; }
  .portal-hotwords { padding-left: 0; }
}
/* 返回顶部（v1.5.26：电脑端全站右下角） */
.back-to-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 70;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: var(--primary); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(40, 120, 200, .35);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, visibility .25s, transform .25s, background .2s;
}
.back-to-top.is-show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }
.back-to-top svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 700px) {
  /* v1.5.14：顶部工具条登录后不再挤成两行 / 与 Logo 重叠 */
  .portal-toptools .wrap-inner {
    height: auto; min-height: 34px; padding: 6px 0; flex-wrap: nowrap;
    gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    white-space: nowrap; scrollbar-width: none;
  }
  .portal-toptools .wrap-inner::-webkit-scrollbar { display: none; }
  .portal-toptools .tt-left, .portal-toptools .tt-right {
    display: flex; align-items: center; flex: 0 0 auto; white-space: nowrap;
  }
  .portal-toptools .tt-left { display: none; }
  .portal-toptools .tt-right a { margin-left: 8px; }
  .portal-toptools .tt-right { margin-left: auto; }

  /* v1.5.16：顶部发布按钮移除，改为右下角圆形悬浮按钮 */
  .portal-head { flex-wrap: wrap; gap: 10px; align-items: center; }
  .portal-logo { min-width: 0; flex: 1 1 100%; margin-top: 0; position: static; }
  .portal-logo .pl-name { font-size: 22px; }
  .portal-search { order: 2; max-width: none; flex-basis: 100%; }
  .portal-post {
    position: fixed; right: 16px; bottom: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 900; width: 58px; height: 58px; margin: 0; padding: 0;
    border-radius: 50%; box-shadow: 0 6px 20px rgba(0, 0, 0, .24);
    flex-direction: column; justify-content: center; gap: 0;
    font-size: 11px; font-weight: 600; line-height: 1.1; text-align: center;
  }
  .portal-post .pp-ico { font-size: 22px; line-height: 1.05; }
  .portal-post .pp-txt { display: none; }
  .portal-post::after { content: "发布"; font-size: 11px; }
  .portal-footer { padding-bottom: 88px; }
  body.on-publish .portal-post { display: none; }
  body.on-publish .portal-footer { padding-bottom: 0; }
  /* 手机端看电脑版时隐藏电脑端返回顶部，避免与右下角悬浮发布球重叠（移动端有独立的返回顶部） */
  .back-to-top { display: none !important; }

  .portal-hotwords { gap: 8px 12px; padding-bottom: 8px; }
  .portal-focus, .portal-boxes, .portal-bottom { grid-template-columns: 1fr; }
  .portal-nav .wrap-inner { height: 36px; }
  .portal-nav a { padding: 0 12px; font-size: 13px; }
  .focus-pic { height: 190px; }

  /* v1.5.14：生活资讯 + 快捷服务在手机上挪到「推荐商家」下方。
     用 display:contents 拆开焦点区容器，让各板块直接参与主区域的列排序。 */
  .portal-main { display: flex; flex-direction: column; }
  .portal-focus, .focus-left { display: contents; }
  .portal-announce { order: 1; }
  .focus-slider, .focus-pic { order: 2; margin-bottom: 10px; }
  .focus-center { order: 3; margin-bottom: 10px; }
  .portal-boxes { order: 4; margin-bottom: 10px; }
  .portal-bottom { order: 5; }
  .focus-news { order: 6; margin-top: 10px; width: 100%; }
  .focus-side { order: 7; margin-top: 10px; width: 100%; }
}

/* ==================== v1.3.0 新增组件 ==================== */

/* 短信验证码 */
.sms-row { display: flex; gap: 8px; align-items: center; }
.sms-row input { flex: 1; min-width: 0; }
.sms-row .btn { white-space: nowrap; flex-shrink: 0; }
.sms-demo-hint { display: block; margin-top: 6px; font-size: 12px; }

/* 未读消息角标 */
.msg-dot { display: inline-block; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px;
  border-radius: 9px; background: var(--accent, #f78015); color: #fff; font-size: 11px; text-align: center; }
.msg-badge { margin-left: 6px; vertical-align: middle; }

/* 高德地图：选点控件 */
.map-picker { position: relative; }
.map-status { font-size: 12px; color: var(--muted, #888); margin-left: 6px; }
.map-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(12, 18, 32, .55);
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.map-modal[hidden] { display: none !important; }
.map-modal-inner { background: #fff; border-radius: 12px; width: min(760px, 96vw); max-height: 92vh;
  overflow: auto; box-shadow: 0 24px 70px rgba(0, 0, 0, .28); }
.map-modal-head { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #e8ecf4; font-size: 15px; }
.map-close { border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: #666; }
.map-search { display: flex; gap: 8px; padding: 12px 18px 0; }
.map-search input { flex: 1; min-width: 0; }
.map-canvas { width: calc(100% - 36px); height: 360px; margin: 12px 18px 0; border-radius: 8px;
  background: #eef2f8; }
.map-result, .map-nokey { padding: 10px 18px; font-size: 13px; color: #555; }
.map-nokey p { line-height: 1.8; }
.map-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px;
  border-top: 1px solid #e8ecf4; }

/* 高德地图：详情展示 */
.map-display { margin-top: 12px; border: 1px solid var(--border, #e3e8f0); border-radius: 10px; overflow: hidden; }
.map-iframe { display: block; width: 100%; height: 320px; border: 0; }
.map-display .map-canvas { width: 100%; height: 320px; margin: 0; border-radius: 0; }
.map-display-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; padding: 10px 14px; background: #f8fafe; font-size: 13px; color: #555; }

/* 会员公开主页 */
.user-home-head { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.avatar-xl { width: 76px; height: 76px; font-size: 30px; flex-shrink: 0; }
.uh-info { flex: 1; min-width: 220px; }
.uh-info h1 { font-size: 22px; margin: 0 0 6px; }
.uh-info p { margin: 4px 0; font-size: 13px; }
.uh-intro { color: #444; line-height: 1.8; }
.uh-actions { flex-shrink: 0; }

/* 支付收银台 */
.pay-actions .btn { margin-right: 8px; }
.pay-qr { text-align: center; padding: 12px; }
.pay-qr img { width: 220px; height: 220px; border: 1px solid #e3e8f0; border-radius: 8px; background: #fff; }
.pay-qr p { font-size: 13px; margin: 10px 0; }
.pay-qr code { word-break: break-all; font-size: 11px; }
.pay-result-icon { width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 34px; color: #fff; }
.pay-result-icon.ok { background: var(--green, #42b712); }
.pay-result-icon.wait { background: #3592e2; }
.pay-result-icon.gray { background: #98a2b3; }

@media (max-width: 720px) {
  .map-canvas { height: 260px; }
  .map-iframe, .map-display .map-canvas { height: 260px; }
  .user-home-head { gap: 12px; }
  .uh-actions { width: 100%; }
  .sms-row { flex-wrap: wrap; }
}

/* ==================== v1.4.1 简单 HTML 编辑器 ==================== */
.he-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 8px 10px; background: #f5f8fc; border: 1px solid #dfe4ee; border-bottom: 0;
  border-radius: 8px 8px 0 0; }
.he-btn { min-width: 32px; height: 30px; padding: 0 9px; border: 1px solid #d6deeb; border-radius: 6px;
  background: #fff; color: #344054; font-size: 14px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: all .15s; }
.he-btn:hover { border-color: var(--primary); color: var(--primary); background: #eef5ff; }
.he-btn.he-b { font-weight: 800; }
.he-btn.he-i { font-style: italic; }
.he-btn.he-u { text-decoration: underline; }
.he-btn.he-s { text-decoration: line-through; }
.he-sep { width: 1px; height: 20px; background: #dde4ee; margin: 0 3px; }
.he-area { border-radius: 0 0 8px 8px !important; margin-top: 0 !important; min-height: 200px; line-height: 1.7; }
.admin-card .he-toolbar { margin-top: 5px; }
.admin-card .he-area { min-height: 220px; }

/* ==================== v1.5.0 ==================== */

/* ---------- P2 前后台输入框统一美化 ---------- */
input[type=text], input[type=password], input[type=email], input[type=number],
input[type=date], input[type=datetime-local], input[type=url], input[type=tel],
input[type=search], input[type=file], select, textarea {
  border-radius: 9px;
  border: 1px solid #d9e0ec;
  background: #fbfcff;
  padding: 10px 13px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:hover, select:hover, textarea:hover { border-color: #b9c6db; }
input:focus, select:focus, textarea:focus {
  border-color: var(--primary, #2f6bff);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47,107,255,.13);
}
input::placeholder, textarea::placeholder { color: #aeb7c6; }
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a97ab' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px;
}
input[type=file] { background: #fff; cursor: pointer; }
input[type=file]::file-selector-button {
  border: 0; border-radius: 6px; padding: 6px 12px; margin-right: 10px;
  background: var(--primary-light, #eef4ff); color: var(--primary, #2f6bff);
  font-size: 13px; cursor: pointer;
}
label.check input[type=checkbox], .radio-group input[type=radio] { accent-color: var(--primary, #2f6bff); }
.form-grid label:focus-within, .form-row:focus-within > label { color: var(--primary, #2f6bff); }
/* 后台卡片内输入框沿用同一视觉 */
.admin-card input[type=text], .admin-card input[type=password], .admin-card input[type=email],
.admin-card input[type=number], .admin-card input[type=tel], .admin-card input[type=url],
.admin-card input[type=file], .admin-card select, .admin-card textarea {
  border-radius: 9px; border: 1px solid #d9e0ec; background: #fbfcff;
}
.admin-card input:not([type=file]):focus, .admin-card select:focus, .admin-card textarea:focus {
  border-color: var(--primary, #2f6bff); background: #fff; box-shadow: 0 0 0 3px rgba(47,107,255,.13);
}
.admin-login-wrap .admin-login-body .form-row input { border-radius: 10px; padding: 11px 14px; }

/* ---------- F3 电脑端主导航滚动固顶 ---------- */
.portal-nav.is-fixed {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  box-shadow: 0 4px 18px rgba(20,40,90,.14);
  animation: navDrop .25s ease;
}
@keyframes navDrop { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.portal-nav-placeholder { height: 0; }

/* ---------- F11 站点 LOGO ---------- */
.pl-logo-img { max-height: 54px; max-width: 220px; object-fit: contain; }

/* ---------- F1 首页幻灯片 ---------- */
.focus-slider { position: relative; border-radius: 10px; overflow: hidden; background: #e9eef6; }
.fs-slides { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.fs-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; display: block; }
.fs-slide.on { opacity: 1; }
.fs-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 16px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.62)); color: #fff; font-size: 14px; }
.fs-cap span { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; z-index: 3; }
.fs-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); transition: all .2s; }
.fs-dot.on { background: #fff; width: 20px; border-radius: 5px; }
.fs-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 30px; height: 42px; line-height: 40px; text-align: center; font-size: 26px;
  color: #fff; background: rgba(0,0,0,.28); text-decoration: none; border-radius: 4px; }
.fs-arrow:hover { background: rgba(0,0,0,.5); }
.fs-prev { left: 8px; } .fs-next { right: 8px; }
@media (max-width: 700px) { .fs-cap { font-size: 12px; } .fs-arrow { display: none; } }

/* ---------- F4/F5 便民电话 + 友情链接 ---------- */
.portal-service { background: #f7f9fd; border: 1px solid #e6ecf6; border-radius: 10px;
  padding: 14px 18px; margin: 18px auto 0; }
.psv-phones, .psv-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 6px 0; }
.psv-links { border-top: 1px dashed #dde5f1; margin-top: 6px; padding-top: 10px; }
.psv-label { font-weight: 700; color: var(--primary, #2f6bff); font-size: 13px; flex-shrink: 0; }
.psv-phone { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 12px; border-radius: 8px;
  background: #fff; border: 1px solid #e2e9f4; text-decoration: none; }
.psv-phone:hover { border-color: var(--primary, #2f6bff); }
.psv-phone b { color: #555; font-size: 12px; font-weight: 600; }
.psv-phone span { color: var(--accent, #f78015); font-weight: 700; font-size: 14px; }
.psv-phone small { color: #9aa4b2; font-size: 11px; }
.psv-links a { color: #66727f; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.psv-links a:hover { color: var(--primary, #2f6bff); }
.psv-links img { max-height: 20px; max-width: 72px; object-fit: contain; }

/* ---------- F11 公网安备号 ---------- */
.police-beian { display: inline-flex; align-items: center; gap: 4px; }
.police-beian img { height: 15px; width: auto; vertical-align: middle; }

/* ---------- F12 站内文字内链 ---------- */
.inner-link { color: var(--primary, #2f6bff); text-decoration: none; border-bottom: 1px dashed currentColor; }
.inner-link:hover { color: var(--accent, #f78015); }

/* ---------- lzbmw-editor 与全站表单协调 ---------- */
.lzbmw-wrap { margin-top: 5px; }
.lzbmw-area { padding: 12px 14px; font-size: 14px; line-height: 1.8; color: var(--text, #333); }
.lzbmw-area:focus { outline: none; }
.lzbmw-area img { max-width: 100%; height: auto; }
.admin-card .lzbmw-wrap { margin-top: 5px; }
.lzbmw-src { width: 100%; box-sizing: border-box; padding: 10px; font-family: monospace; font-size: 13px; }
@media (max-width: 720px) {
  .lzbmw-bar { white-space: normal; }
  .lzbmw-btn { padding: 4px 8px; }
}

/* ==================== v1.5.1 表单提交控件统一 ====================
   目标：1px 淡蓝描边 #bcd6f5 + 6px 圆角 + 白底 + 46px 高的宽松输入框。
   根因：发布 / 商家 / 后台编辑等表单里大量 <input> 未写 type（如 name="title"），
        旧规则 input[type=text] 完全匹配不到，导致同一个表单里新旧样式混杂。
   作用域：仅「表单录入容器」，不触碰 .portal-search / .inline-form /
          .map-search / .m-searchbar 等搜索类复合控件（它们保持嵌入式无边框设计）。 */
:root {
  --field-line: #bcd6f5;
  --field-line-hover: #93bbe9;
  --field-line-focus: #6aa4e8;
}

:is(.form-grid, .form-row, .admin-card, .card-pad, .admin-login-body,
    .install-card, .sms-row, .map-row, .lzbmw-dlg)
  :is(input:not([type]), input[type=text], input[type=password], input[type=email],
      input[type=number], input[type=tel], input[type=url], input[type=search],
      input[type=date], input[type=datetime-local], input[type=month],
      input[type=time], input[type=week], input[type=file], select, textarea) {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  margin-top: 5px;
  padding: 12px 14px;
  border: 1px solid var(--field-line);
  border-radius: 6px;
  background-color: #fff;
  color: var(--text, #333);
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  outline: none;
  box-shadow: none;
  transition: border-color .18s, box-shadow .18s;
}
:is(.form-grid, .form-row, .admin-card, .card-pad, .admin-login-body,
    .install-card, .sms-row, .map-row, .lzbmw-dlg)
  :is(input:not([type]), input[type=text], input[type=password], input[type=email],
      input[type=number], input[type=tel], input[type=url], input[type=search],
      input[type=date], input[type=datetime-local], input[type=month],
      input[type=time], input[type=week], input[type=file], select, textarea):hover {
  border-color: var(--field-line-hover);
}
:is(.form-grid, .form-row, .admin-card, .card-pad, .admin-login-body,
    .install-card, .sms-row, .map-row, .lzbmw-dlg)
  :is(input:not([type]), input[type=text], input[type=password], input[type=email],
      input[type=number], input[type=tel], input[type=url], input[type=search],
      input[type=date], input[type=datetime-local], input[type=month],
      input[type=time], input[type=week], input[type=file], select, textarea):focus {
  border-color: var(--field-line-focus);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(106, 164, 232, .18);
}
:is(.form-grid, .form-row, .admin-card, .card-pad, .admin-login-body,
    .install-card, .sms-row, .map-row, .lzbmw-dlg)
  :is(input, textarea)::placeholder { color: #aeb7c6; }

/* v1.5.27：后台工具栏 / 内联表单控件不被上面的 :is() 宽度规则拉伸成整行 */
.admin-card .admin-toolbar input, .admin-card .admin-toolbar select,
.admin-toolbar input, .admin-toolbar select {
  width: auto; min-width: 130px; min-height: 0; margin: 0;
}
.admin-card .inline-form input, .admin-card .inline-form select,
.inline-form input, .inline-form select {
  width: auto; min-width: 0; min-height: 0; margin: 0;
}
.admin-card .admin-toolbar .btn, .admin-card .inline-form .btn { margin-top: 0; }

/* select 沿用下拉箭头，仅补内边距（background-color 不覆盖 background-image） */
:is(.form-grid, .form-row, .admin-card, .card-pad, .install-card) select {
  cursor: pointer;
  padding-right: 36px;
  -webkit-appearance: none;
  appearance: none;
  background-repeat: no-repeat;
  background-position: right 14px center;
}
/* 多行正文保持高度，文件上传保留按钮 */
:is(.form-grid, .form-row, .admin-card, .card-pad, .install-card) textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.7;
}
:is(.form-grid, .form-row, .admin-card, .card-pad, .install-card) input[type=file] {
  padding: 9px 12px;
  cursor: pointer;
}
:is(.form-grid, .form-row, .admin-card, .card-pad, .install-card) input[type=file]::file-selector-button {
  border: 0;
  border-radius: 6px;
  padding: 7px 14px;
  margin-right: 12px;
  background: #eaf3ff;
  color: #2b78d4;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
/* 短信验证码 / 地图搜索这类「输入框 + 按钮」同行布局：恢复 flex 自适应宽度 */
.form-grid .sms-row input, .form-row .sms-row input, .card-pad .sms-row input,
.form-grid .map-row input, .form-row .map-row input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
/* 兼容降级：不支持 :is() 的旧浏览器，至少保证「未写 type」的输入框也拿到同款描边 */
.form-grid input:not([type]), .form-row input:not([type]),
.admin-card input:not([type]), .card-pad input:not([type]),
.install-card input:not([type]) {
  box-sizing: border-box;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #bcd6f5;
  border-radius: 6px;
  background-color: #fff;
}

/* ===== v1.5.2 首页推荐商家：整行拉通 + 横排 LOGO 卡片 ===== */
.portal-bottom-single { grid-template-columns: 1fr; }
.pbox-shop-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 16px 12px;
  padding: 18px 16px 22px;
}
.psg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
  text-align: center;
  color: #333;
}
.psg-item:hover { color: var(--accent); }
.psg-logo {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef4ff, #e6f0ff);
  color: #2f7cf6;
  font-size: 30px;
  font-weight: 700;
  border: 1px solid #e6ecf5;
  transition: box-shadow .2s, transform .2s;
}
.psg-item:hover .psg-logo { box-shadow: 0 6px 18px rgba(47, 124, 246, .18); transform: translateY(-2px); }
.psg-logo img { width: 100%; height: 100%; object-fit: cover; }
.psg-name {
  max-width: 100%;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.psg-item:hover .psg-name { color: var(--accent); }
.psg-verified { font-size: 11px; color: #fff; background: var(--green); border-radius: 3px; padding: 0 5px; line-height: 17px; }
.psg-cat { max-width: 100%; font-size: 11px; color: #9aa4b1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psg-empty { grid-column: 1 / -1; padding: 18px; color: #b3b3b3; font-size: 13px; }
.psg-empty a { color: var(--primary); }
@media (max-width: 1000px) { .pbox-shop-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .pbox-shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; }
  .psg-logo { width: 64px; height: 64px; }
}


/* ---------- 图片丢失占位「图挂了」（v1.5.6） ---------- */
.img-broken{
  display:flex;align-items:center;justify-content:center;
  width:100%;height:100%;min-height:72px;box-sizing:border-box;
  background:#f1f3f7;color:#9aa3b2;font-size:13px;letter-spacing:1px;
  border:1px dashed #d4dae2;border-radius:8px;
}
.info-thumb .img-broken{height:100%}
.detail-gallery .img-broken{height:110px}
.news-item .img-broken{width:92px;height:66px;flex-shrink:0;border-radius:8px}
.shop-logo .img-broken{width:58px;height:58px;border-radius:12px}
.psg-logo .img-broken{width:100%;height:100%;border-radius:14px}

/* ---------- 后台概览：注册会员卡待审核入口（v1.5.28） ---------- */
.stat-card .stat-sub{display:block;font-size:12px;margin-top:10px;line-height:16px}
.stat-card .stat-sub-warn{color:#e68a00;font-weight:600}
.stat-card .stat-sub-warn:hover{color:var(--primary)}

/* v1.5.31：门户头部搜索输入框 —— 彻底去掉内嵌浅色框（必须放在文件末尾，
   覆盖上方 v1.5.0「前后台输入框统一美化」对 input[type=text] 的边框/底色规则） */
.portal-search input,
.portal-search input:hover,
.portal-search input:focus {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  outline: none !important;
  min-height: 0;
  margin-top: 0;
}

/* v1.5.35：后台布局自适应满屏宽度（仅作用 body.admin-body，不影响前台 .container 1000px 上限） */
body.admin-body .container { width: calc(100% - 32px); max-width: none; }
body.admin-body .admin-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
body.admin-body .admin-top .container { width: calc(100% - 32px); }
body.admin-body .table th, body.admin-body .table td { white-space: normal; }

/* v1.5.38：底部多栏样式（后台「底部样式配置」footer_style=multi 时启用） */
.pf-multi { background: #fff; border-top: 1px solid var(--border); padding: 26px 0 0; text-align: left; margin-top: 18px; }
.pf-multi .pfm-grid { display: flex; flex-wrap: wrap; gap: 10px 0; align-items: flex-start; }
.pfm-col { flex: 1 1 150px; max-width: 200px; padding-right: 12px; }
.pfm-col h4 { font-size: 15px; color: #333; font-weight: 600; margin: 0 0 10px; }
.pfm-col a { display: block; color: #8a8a8a; font-size: 13px; line-height: 2.1; text-decoration: none; }
.pfm-col a:hover { color: var(--primary); }
.pfm-contact { max-width: 240px; flex-grow: 1.4; }
.pfm-contact p { margin: 0 0 7px; color: #555; font-size: 13px; }
.pfm-hot, .pfm-contact b { color: #e0301e; }
.pfm-hot b { font-size: 16px; font-weight: 700; }
.pfm-hot { white-space: nowrap; }
.pfm-hot { white-space: nowrap; }
.pfm-mini img { width: 84px; height: 84px; display: block; margin-top: 8px; border: 1px solid var(--border); border-radius: 4px; }
.pfm-qr { flex: 0 0 130px; text-align: center; }
.pfm-qr img { width: 96px; height: 96px; display: block; margin: 0 auto 8px; border: 1px solid var(--border); border-radius: 4px; }
.pfm-qr p { color: #555; font-size: 13px; margin: 0; }
.pfm-bar { border-top: 1px solid var(--border); margin-top: 20px; padding: 14px 0 16px; text-align: center; color: #8a8a8a; font-size: 12px; }
.pfm-bar p { margin: 3px 0; line-height: 1.7; }
.pfm-bar a { color: #8a8a8a; }
.pfm-bar a:hover { color: var(--primary); }
@media (max-width: 700px) {
  .pfm-col, .pfm-contact, .pfm-qr { flex: 1 1 44%; max-width: none; }
}

/* ============================================================
   v1.5.43 发布页分类选择器（先选分类，再填信息）
   分类数量多时替代原生下拉框：按频道分组、卡片点选、支持关键词筛选
   ============================================================ */
.cp-steps { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.cp-step { font-size: 12px; line-height: 1; padding: 7px 14px; border-radius: 999px; background: #f1f4f9; color: var(--muted); font-weight: 600; }
.cp-step.is-on { background: var(--primary); color: #fff; }
.cp-pick { border: 1px solid var(--border-2); border-radius: 8px; background: #fff; overflow: hidden; }
.cp-ibar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f8fafd; border-bottom: 1px solid var(--border-2); }
.cp-q { flex: 1 1 auto; min-width: 0; height: 34px; padding: 0 12px; font-size: 13px; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; outline: none; }
.cp-q:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }
.cp-tip { flex: 0 0 auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.cp-list { max-height: 540px; overflow-y: auto; padding: 4px 12px 10px; }
.cp-sec { padding: 12px 0 10px; border-bottom: 1px dashed var(--border-2); }
.cp-sec:last-child { border-bottom: 0; }
.cp-sec-t { margin: 0 0 9px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.cp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; font-size: 13px; line-height: 1.5;
  color: var(--text-2); background: #fff; border: 1px solid var(--border-2); border-radius: 6px;
  text-decoration: none; cursor: pointer; transition: all .15s; max-width: 100%; }
.cp-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.cp-chip-top { color: var(--muted); background: #fafbfd; }
.cp-chip.is-on { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); font-weight: 700; }
.cp-chip[hidden], .cp-sec[hidden] { display: none !important; }
.cp-r { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.cp-none { margin: 14px; font-size: 13px; color: var(--danger); text-align: center; }
.cp-field { grid-column: 1 / -1; }
.cp-chosen { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #f8fafd;
  border: 1px solid var(--border-2); border-radius: 6px; }
.cp-chosen-l { flex: 0 0 auto; font-size: 12px; color: var(--muted); }
.cp-chosen-v { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-toggle { flex: 0 0 auto; padding: 5px 12px; font-size: 12px; color: var(--primary); background: #fff;
  border: 1px solid var(--primary); border-radius: var(--radius-sm); cursor: pointer; }
.cp-toggle:hover { background: var(--primary); color: #fff; }
.cp-box { margin-top: 10px; }
.cp-box.is-collapsed { display: none; }
.cp-page-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

/* ============================================================
   v1.5.45 商家相册（会员中心管理 / 后台管理 / 商家主页展示）
   ============================================================ */
.sa-manage { font-size: 13px; }
.sa-quota { margin: 10px 0 12px; padding: 8px 12px; background: #f4f8ff; border: 1px solid var(--border-2); border-radius: 6px; color: var(--text-2); }
.sa-quota b { color: var(--primary-dark); }
.sa-album { border: 1px solid var(--border-2); border-radius: 8px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.sa-album-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 12px; background: #f8fafd; border-bottom: 1px solid var(--border-2); }
.sa-album-name { font-size: 14px; }
.sa-inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.sa-input { height: 30px; padding: 0 8px; font-size: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); width: 150px; max-width: 45vw; }
.sa-del { color: var(--danger) !important; }
.sa-photos { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; align-items: flex-start; }
.sa-photo { position: relative; width: 92px; height: 92px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border-2); flex: 0 0 92px; }
.sa-photo img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.sa-photo form { position: absolute; top: 0; right: 0; margin: 0; }
.sa-photo button { width: 22px; height: 22px; border: 0; border-radius: 0 0 0 6px; background: rgba(20,26,38,.62); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.sa-photo button:hover { background: var(--danger); }
.sa-upload { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px dashed var(--border-2); border-radius: 6px; background: #fbfcfe; }
.sa-upload input[type=file] { font-size: 12px; max-width: 100%; }
.sa-upload small { color: var(--muted); }
.sa-new { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.sa-new .sa-input { width: 240px; max-width: 60vw; }
.sa-full { margin-top: 4px; padding: 8px 12px; font-size: 12px; color: var(--muted); background: #f6f7f9; border-radius: 6px; }
/* 商家主页展示 */
.sa-view { margin-top: 12px; }
.sa-view:first-of-type { margin-top: 8px; }
.sa-view-name { font-size: 15px; margin: 0 0 8px; }
.sa-view-name small { font-weight: 400; margin-left: 8px; }
.sa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.sa-grid-item { margin: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--border); background: #f2f5f9; }
.sa-grid-item img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; transition: transform .2s; }
.sa-grid-item img:hover { transform: scale(1.04); }

/* ============================================================
   v1.5.45 会员组购买卡片（会员中心 → 会员组）
   ============================================================ */
.grp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.grp-card { border: 1px solid var(--border-2); border-radius: 8px; padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.grp-card.is-cur { border-color: var(--primary); background: var(--primary-light); }
.grp-name { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.grp-cur-tag { font-size: 11px; font-weight: 600; color: #fff; background: var(--primary); border-radius: 999px; padding: 3px 8px; }
.grp-perks { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-2); }
.grp-perks li { padding: 3px 0; border-bottom: 1px dashed var(--border); }
.grp-perks li:last-child { border-bottom: 0; }
.grp-perks b { color: var(--text); }
.grp-remark { margin: 0; font-size: 12px; color: var(--muted); }
.grp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.grp-price { font-size: 18px; font-weight: 700; color: var(--primary-dark); }

/* ============================================================
   v1.5.46 首页公告条：内容不足一屏时停止滚动（避免半屏空白）
   ============================================================ */
.pa-track.is-static, .ma-track.is-static { animation: none; }
/* 内容不足一屏时不滚动：同时隐藏第二份副本，避免文字重复显示 */
.pa-track.is-static .pa-item[aria-hidden], .ma-track.is-static .ma-item[aria-hidden] { display: none; }

/* ============================================================
   v1.5.47 会员中心侧栏：菜单角标（如「会员组」升级提示）
   ============================================================ */
.panel-side .menu-new { display: inline-block; margin-left: 6px; padding: 1px 6px; font-size: 11px; font-style: normal;
  line-height: 1.6; color: #fff; background: var(--accent); border-radius: 999px; vertical-align: middle; }
