/* 漯河同城分类信息 · 前台主题（橙红门户风 · 精修版）
   设计令牌统一化 + 全套组件 + 微动效，保留全部历史类名。 */

:root{
    /* 品牌色（默认闲鱼黄，可被后台色系设置覆盖） */
    --primary:#ffd900; --primary-dark:#f2c500; --primary-darker:#dfb100;
    --primary-soft:#fff8cc; --primary-softer:#fffce6;
    --on-primary:#111111; --primary-text:#ff5000;
    --accent:#2b6cff; --accent-soft:#eef2ff;
    --success:#07c160; --success-soft:#e8f8ef;
    --warning:#d48806; --warning-soft:#fff7e6;
    --danger:#cf1322; --danger-soft:#fdeaea;
    /* 文字 */
    --text:#1f2329; --text-2:#51565d; --text-light:#8a9099;
    /* 线 / 底 */
    --border:#eef0f3; --border-strong:#e3e6ea;
    --bg:#f5f6f8; --bg-soft:#fafbfc;
    /* 圆角 */
    --radius-sm:8px; --radius:12px; --radius-lg:16px; --radius-pill:999px;
    /* 阴影 */
    --shadow-xs:0 1px 2px rgba(17,24,39,.04);
    --shadow-sm:0 1px 3px rgba(17,24,39,.06), 0 1px 2px rgba(17,24,39,.04);
    --shadow:0 4px 14px rgba(17,24,39,.06);
    --shadow-md:0 8px 24px rgba(17,24,39,.09);
    --shadow-hover:0 12px 30px rgba(255,90,44,.16);
    --ring:0 0 0 3px rgba(255,90,44,.18);
    --ease:cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color:var(--primary-text); text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--primary-soft); color: var(--primary-darker); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* 首页统计数字条 */
.home-stats { display:flex; gap:14px; flex-wrap:wrap; padding:14px 0; }
.home-stats .hs-item { flex:1; min-width:140px; background:#fff; border:1px solid var(--border); border-radius:var(--radius);
    padding:14px 16px; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; gap:4px; }
.home-stats .hs-num { font-size:26px; font-weight:800; color:var(--primary-text); line-height:1.1; }
.home-stats .hs-label { font-size:13px; color:var(--text-light); }

/* #168 方框 / 列表 样式切换 */
.style-toggle { display:inline-flex; border:1px solid var(--border-strong); border-radius:var(--radius-pill); overflow:hidden; }
.style-toggle .st-btn { padding:6px 14px; font-size:13px; color:var(--text-2); background:#fff; }
.style-toggle .st-btn.on { background:var(--primary); color:var(--on-primary); font-weight:600; }

/* 方框样式信息卡（闲鱼风：1:1 大图优先，文字少许，超出隐藏） */
.post-box-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; }
@media(max-width: 1100px){ .post-box-grid{ grid-template-columns:repeat(4,1fr); } }
@media(max-width: 900px){ .post-box-grid{ grid-template-columns:repeat(3,1fr); } }
@media(max-width: 560px){ .post-box-grid{ grid-template-columns:repeat(2,1fr); gap:8px; } }
.post-box { display:flex; flex-direction:column; background:#fff; border:1px solid var(--border); border-radius:var(--radius);
    overflow:hidden; text-decoration:none; color:#222; transition:box-shadow .15s, transform .15s; }
.post-box:hover { box-shadow:var(--shadow); transform:translateY(-2px); }
.post-box.is-pin { border-color:var(--primary-text); }
.pb-thumb { position:relative; width:100%; aspect-ratio:1/1; background:var(--primary-softer); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.pb-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .25s var(--ease); }
.post-box:hover .pb-thumb img { transform:scale(1.04); }
.pb-ph { font-size:40px; color:var(--primary-text); }
.pb-ph.feed { background:#f0f5ff; color:#2f54eb; font-size:14px; font-weight:700; width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.pb-pin { position:absolute; top:0; right:0; background:linear-gradient(135deg,var(--primary),var(--primary-dark)); color:var(--on-primary); font-size:11px; font-weight:700; padding:2px 8px; border-bottom-left-radius:8px; }
.pb-body { padding:8px 10px 10px; display:flex; flex-direction:column; gap:5px; }
.pb-title { font-size:14px; font-weight:600; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.8em; }
.pb-desc { font-size:12px; color:var(--text-light); line-height:1.5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pb-meta { display:flex; align-items:center; gap:6px; flex-wrap:nowrap; overflow:hidden; }
.pb-meta .tag, .pb-meta .meta { white-space:nowrap; }
.pb-foot { display:flex; align-items:baseline; justify-content:space-between; margin-top:2px; gap:6px; }
.pb-foot .price { font-size:17px; }
.pb-foot .price .rmb { font-size:12px; margin-right:1px; }
.pb-foot .meta { flex:none; font-size:12px; }

/* ===== 顶部导航 ===== */
.site-header { background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--border-strong); position: sticky; top: 0; z-index: 30; box-shadow: var(--shadow-sm); }
/* 第一行：LOGO + 搜索 + 用户操作（不再与栏目混排，避免一行溢出错乱） */
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { font-size: 22px; font-weight: 800; color:var(--primary-text); letter-spacing: .5px;
    display: inline-flex; align-items: center; gap: 8px; flex: none; white-space: nowrap; transition: transform .2s var(--ease); }
.logo:hover { color: var(--primary-dark); transform: translateY(-1px); }
.logo img { height: 34px; width: auto; border-radius: 8px; }

/* 顶部搜索框（占据中间剩余空间，绝不被栏目挤压） */
.header-search { display: flex; align-items: center; flex: 1 1 auto; max-width: 560px; }
.header-search input { flex: 1 1 auto; min-width: 0; width: auto; padding: 9px 16px; border: 2px solid var(--primary); border-right: none;
    border-radius: var(--radius-pill) 0 0 var(--radius-pill); font-size: 13px; outline: none; transition: box-shadow .15s; background: #fff; }
.header-search input:focus { box-shadow: var(--ring); }
.header-search button { padding: 9px 20px; border: 2px solid var(--primary); background: var(--primary); border-left: none;
    color: var(--on-primary); border-radius: 0 var(--radius-pill) var(--radius-pill) 0; cursor: pointer; font-size: 13px; font-weight: 600;
    transition: background .15s; white-space: nowrap; }
.header-search button:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* 首页本地问答（#361 替代推荐商家） */
.qa-mini { list-style: none; margin: 0; padding: 0; }
.qa-mini .qa-item { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 2px; border-bottom: 1px dashed #f0f0f0; }
.qa-mini .qa-item:last-child { border-bottom: none; }
.qa-mini .qa-q { flex: 1; color: #333; font-size: 13px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa-mini .qa-q:hover { color:var(--primary-text); }
.qa-mini .qa-meta { flex: none; color: #999; font-size: 12px; }
.qa-mini .qa-fold { margin-top: 2px; }
.qa-mini .qa-fold summary { cursor: pointer; color:var(--primary-text); font-size: 12px; padding: 4px 0; user-select: none; }
.qa-mini .qa-fold .qa-item { padding-left: 10px; }

.header-actions { display: flex; gap: 14px; align-items: center; font-size: 14px; flex: none; white-space: nowrap; }
.header-actions a { color: #555; transition: color .15s; }
.header-actions a:hover { color:var(--primary-text); }

/* 第二行：全宽栏目导航条（独立成行，永远整齐不溢出） */
.main-nav-wrap { background: #fff; border-top: 1px solid var(--border-soft); }
.main-nav.container { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.main-nav a { color: #333; font-size: 15px; font-weight: 500; padding: 10px 16px; border-radius: var(--radius-sm);
    transition: background .15s var(--ease), color .15s var(--ease); white-space: nowrap; }
.main-nav a:hover { color:var(--primary-text); background: var(--primary-soft); }
.nav-toggle { display: none; width: 38px; height: 38px; border: 1px solid #e0e4ee; background: #fff; border-radius: 8px;
    font-size: 18px; line-height: 1; cursor: pointer; color: #555; align-items: center; justify-content: center; }

@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
    .nav-toggle { display: inline-flex; order: 0; }
    .logo { flex: 1 1 auto; order: 1; }
    .header-actions { order: 2; gap: 10px; }
    .header-search { order: 3; flex: 1 1 100%; max-width: none; }
    .main-nav-wrap { display: none; }
    .site-header.nav-open .main-nav-wrap { display: block; }
    .main-nav.container { max-width: none; padding: 0 12px; }
    .main-nav { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
    .main-nav a { padding: 12px 14px; border-bottom: 1px solid #f0f0f0; }
}

.site-main { padding: 22px 0 44px; min-height: 60vh; }

/* ===== 区块标题（左侧渐变色条） ===== */
.site-main h2 { font-size: 19px; margin: 0 0 16px; padding-left: 13px; position: relative; color: #222; letter-spacing: .3px; }
.site-main h2::before { content:""; position:absolute; left:0; top:3px; bottom:3px; width:4px; border-radius:3px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark)); }
.site-main h3 { font-size: 16px; margin: 22px 0 12px; padding-left: 11px; position: relative; }
.site-main h3::before { content:""; position:absolute; left:0; top:3px; bottom:3px; width:3px; border-radius:3px;
    background: linear-gradient(180deg, var(--accent), #1a4fd6); }

/* ===== 卡片/栅格 ===== */
.card { background: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 14px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s; }
a.card, .card.hoverable { cursor: pointer; }
a.card:hover, .card.hoverable:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: #ffd9c9; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
@media(max-width: 900px){ .grid-3,.grid-4{ grid-template-columns: repeat(2,1fr); } }
@media(max-width: 560px){ .grid-2,.grid-3,.grid-4{ grid-template-columns: 1fr; } }

/* 分类宫格 */
.grid-4 a.card { text-align:center; padding: 18px 10px; font-weight:600; color:#333; border:1px solid #f0f0f0;
    transition: color .15s, border-color .15s, background .15s, transform .2s var(--ease), box-shadow .2s; }
.grid-4 a.card:hover { color:var(--primary-text); border-color:var(--primary-text); background: var(--primary-soft);
    transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* ===== 按钮（全系） ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 20px; border-radius: var(--radius-pill); background: var(--primary); color:var(--on-primary);
    border: 1px solid transparent; cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.2;
    transition: background .15s var(--ease), box-shadow .15s var(--ease), transform .1s var(--ease), color .15s; }
.btn:hover { background: var(--primary-dark); color:var(--on-primary); text-decoration: none; box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { box-shadow: var(--ring); }
.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; color:var(--primary-text); border: 1px solid var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); color:var(--primary-text); box-shadow: none; }
.btn-outline { background:#fff; color:var(--text-2); border:1px solid var(--border-strong); }
.btn-outline:hover { color:var(--primary-text); border-color:var(--primary-text); background:var(--primary-soft); box-shadow:none; }
.btn-secondary { background: #f1f3f5; color: var(--text-2); }
.btn-secondary:hover { background:#e7eaee; color:var(--text); box-shadow:none; }
.btn-success { background: var(--success); }
.btn-success:hover { background:#06924f; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background:#b30f1c; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

/* ===== 标签 / 徽章 ===== */
.tag { display: inline-block; padding: 2px 9px; border-radius: var(--radius-pill); font-size: 12px;
    background: var(--primary-soft); color:var(--primary-text); margin-right: 6px; line-height: 1.7; }
.tag-blue { background: var(--accent-soft); color: var(--accent); }
.tag-green { background: var(--success-soft); color: var(--success); }
.tag-warn { background: var(--warning-soft); color: var(--warning); }
.tag-gray { background: #f1f3f5; color: var(--text-light); }
.badge { display:inline-flex; align-items:center; padding:1px 8px; border-radius:6px; font-size:12px; font-weight:600; }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-green { background: var(--success-soft); color: var(--success); }
.badge-blue { background: var(--accent-soft); color: var(--accent); }
.price { color:var(--primary-text); font-weight: 800; }
.meta { color: var(--text-light); font-size: 13px; }
.pager { margin: 24px 0; text-align: center; display:flex; gap:6px; justify-content:center; flex-wrap:wrap; }
.pager a, .pager span { display:inline-flex; align-items:center; min-width: 34px; height: 34px; padding:0 10px;
    justify-content:center; border:1px solid var(--border); border-radius: var(--radius-sm); background:#fff;
    color: var(--text-2); transition: all .15s var(--ease); }
.pager a:hover { border-color:var(--primary-text); color:var(--primary-text); }
.pager .cur, .pager span.cur { background: var(--primary); color:var(--on-primary); border-color:var(--primary-text); }

/* ===== 列表行（信息流） ===== */
.list-item { display:flex; justify-content:space-between; align-items:center; padding:13px 4px; border-bottom:1px dashed #eee;
    transition: background .15s; }
.list-item:last-child{ border-bottom:none; }
.list-item:hover { background: var(--bg-soft); }
.list-item .t { font-weight:500; color:#333; transition: color .15s; }
.list-item:hover .t { color:var(--primary-text); }

/* ===== 表单 ===== */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.form-row .req { color: var(--danger); margin-left: 2px; }
.form-row input, .form-row select, .form-row textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    font-size: 14px; outline:none; background:#fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.form-row input:hover, .form-row select:hover, .form-row textarea:hover { border-color:#d6dae0; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color:var(--primary-text); box-shadow: var(--ring); }
.form-row textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 6px; }
.form-actions { margin-top: 8px; }
.alert { padding: 11px 15px; border-radius: var(--radius-sm); margin-bottom: 14px; border:1px solid transparent; font-size:14px; }
.alert-success { background: var(--success-soft); color: #06753f; border-color:#bfe9cf; }
.alert-error { background: var(--danger-soft); color: #b30f1c; border-color:#f6c5c9; }
.alert-info { background: var(--accent-soft); color:#1a4fd6; border-color:#c7d6ff; }
.alert-warning { background: var(--warning-soft); color:#9a6300; border-color:#ffe1a8; }

/* ===== 表格 ===== */
table { width:100%; border-collapse: separate; border-spacing: 0; background:#fff; border-radius: var(--radius);
    overflow:hidden; box-shadow: var(--shadow-sm); border:1px solid var(--border); margin-bottom:16px; }
th, td { padding: 12px 14px; text-align:left; border-bottom:1px solid #f0f0f0; font-size:14px; }
th { background:#fafbfc; color:#51565d; font-weight:600; }
tbody tr { transition: background .15s; }
tbody tr:hover { background:#fcfcfd; }
tbody tr:last-child td { border-bottom: none; }

/* ===== 页脚 ===== */
.site-footer { background: linear-gradient(180deg,#262b33,#1f242b); color: #9aa3ad; padding: 34px 0 26px;
    font-size: 13px; margin-top: 36px; }
.site-footer .container { display:flex; flex-direction:column; gap: 10px; align-items:center; text-align:center; }
.site-footer p { margin: 2px 0; }
.site-footer .footer-links a { color: #cfd6de; margin: 0 6px; transition: color .15s; }
.site-footer .footer-links a:hover { color:var(--primary-text); }
.site-footer .footer-beian a { color:#8a929c; margin: 0 6px; }
.site-footer .footer-beian a:hover { color:#fff; }
.site-footer .footer-copy { color:#6b7280; }

/* 公安网备官方跳转图标（盾牌+网 徽标） */
.beian-gongan { display:inline-flex; align-items:center; gap:5px; }
.beian-shield { display:inline-flex; align-items:center; justify-content:center; width:16px; height:16px;
    border-radius:4px; background:linear-gradient(135deg,var(--primary),var(--primary-dark)); color:var(--on-primary); font-size:10px; font-weight:700;
    box-shadow:0 1px 2px rgba(255,90,44,.3); font-family:inherit; line-height:1; }
.beian-gongan:hover .beian-shield { filter:brightness(1.05); }

/* ===== 首页三栏布局（PC） ===== */
.home-grid { display: grid; grid-template-columns: 200px 1fr 290px; gap: 16px; align-items: start; }
@media(max-width: 980px){ .home-grid { grid-template-columns: 1fr; } }
.home-side .side-block { background: #fff; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px;
    box-shadow: var(--shadow-sm); border:1px solid var(--border); }
.home-side h4 { margin: 0 0 8px; font-size: 14px; color: #333; border-left: 3px solid var(--primary); padding-left: 8px; }
.home-side a.side-link { display: block; padding: 7px 0; color: #555; font-size: 14px; border-bottom: 1px dashed #f3f3f3;
    transition: color .15s, padding-left .15s; }
.home-side a.side-link:last-child { border-bottom: none; }
.home-side a.side-link:hover { color:var(--primary-text); padding-left: 4px; }
.home-side .region-row { display: flex; flex-wrap: wrap; gap: 6px; }
.home-side .region-row a { background: #f6f7f9; border-radius: var(--radius-pill); padding: 4px 12px; font-size: 13px; color: #555;
    transition: background .15s, color .15s; }
.home-side .region-row a:hover { background: var(--primary-soft); color:var(--primary-text); }

/* ===== 置顶信息展示 ===== */
.pin-section-title { display:flex; align-items:center; justify-content:space-between; margin: 4px 0 12px; }
.pin-section-title h2 { margin: 0; }
.pin-showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 8px; }
.pin-card { position: relative; background: #fff; border: 1px solid #ffd9c9; border-radius: var(--radius);
    padding: 14px 14px 12px; box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.pin-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.pin-card.big { grid-column: span 2; border-width: 2px; background: linear-gradient(180deg,#fffaf6,#fff); }
.pin-card.small { padding: 10px 12px; }
.pin-badge { position: absolute; top: -1px; right: -1px; background: var(--primary); color:var(--on-primary); font-size: 11px;
    padding: 2px 9px; border-radius: 0 var(--radius) 0 var(--radius); font-weight: 600; }
.pin-badge.lv-category { background: var(--warning); }
.pin-badge.lv-global { background: var(--danger); }
.pin-title { font-weight: 700; color: #222; font-size: 15px; line-height: 1.4; display: block; }
.pin-card.big .pin-title { font-size: 18px; }
.pin-card.small .pin-title { font-size: 14px; }
.pin-title:hover { color:var(--primary-text); }
.pin-meta { color: var(--text-light); font-size: 13px; margin-top: 6px; }
.pin-price { color:var(--primary-text); font-weight: 800; font-size: 16px; margin-top: 4px; }
.pin-card.big .pin-price { font-size: 20px; }
.pin-phone { color: var(--accent); font-size: 13px; }
.pin-empty { background:#fff; border:1px dashed #ffd9c9; border-radius:var(--radius); padding:16px; text-align:center; color:#aaa; font-size:13px; }

.demo-note { font-size:12px; color:#bbb; margin-left:8px; font-weight:normal; }

/* 右栏 widget */
.widget { background:#fff; border-radius:var(--radius); padding:12px 14px; margin-bottom:14px;
    box-shadow:var(--shadow-sm); border:1px solid var(--border); }
.widget h4 { margin:0 0 8px; font-size:14px; color:#333; border-left:3px solid var(--accent); padding-left:8px; }
.widget .wm-item { padding:7px 0; border-bottom:1px dashed #f3f3f3; font-size:13px; color:#555; }
.widget .wm-item:last-child { border-bottom:none; }
.widget .wm-item a { color:#444; transition: color .15s; }
.widget .wm-item a:hover { color:var(--primary-text); }
.bm-phone { display:flex; flex-wrap:wrap; gap:8px; }
.bm-phone a { display:inline-block; background:#f6f7f9; border-radius:var(--radius-pill); padding:5px 12px; font-size:13px; color:#444;
    transition: background .15s, color .15s; }
.bm-phone a:hover { background:var(--primary-soft); color:var(--primary-text); }
.hot-biz { display:flex; gap:10px; flex-wrap:wrap; }
.hot-biz a { width:calc(50% - 5px); background:#fafafa; border-radius:8px; padding:10px; text-align:center; color:#555; font-size:13px;
    transition: background .15s, color .15s; }
.hot-biz a:hover { background:var(--primary-soft); color:var(--primary-text); }

/* 首页 Hero（PC） */
.home-hero { background:linear-gradient(135deg,var(--primary),var(--primary-dark)); color:var(--on-primary); border-radius:var(--radius-lg);
    padding:28px 30px; margin-bottom:18px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
    box-shadow: 0 10px 30px rgba(255,90,44,.22); }
.home-hero h1 { margin:0 0 6px; font-size:24px; }
.home-hero p { margin:0; opacity:.95; font-size:14px; }
.home-hero .acts { display:flex; align-items:center; gap:10px; flex-shrink:0; flex-wrap:wrap; justify-content:flex-end; }
.home-hero .acts a { margin-left:0; white-space:nowrap; }
.home-hero .acts .btn { background: #fff; color:var(--primary-text); }
.home-hero .acts .btn:hover { background: var(--primary-soft); }
@media(max-width:560px){ .home-hero{ padding:18px; } .home-hero h1{ font-size:20px; } .home-hero .acts{ width:100%; justify-content:flex-start; } }

/* ============================================================
   门户版首页（参照 MayiCMS 门户布局） · 精修
   ============================================================ */
.hero-banner { display:flex; align-items:center; gap:14px; background:#fff; border-radius:var(--radius);
    padding:10px 14px; margin:16px auto; box-shadow:var(--shadow-sm); overflow:hidden; border:1px solid var(--border); }
.banner-head { flex-shrink:0; background:var(--primary); color:var(--on-primary); font-size:13px; font-weight:700;
    padding:6px 12px; border-radius:var(--radius-sm); }
.banner-scroll { display:flex; gap:12px; overflow-x:auto; padding:4px 2px; scrollbar-width:thin; }
.banner-card { display:flex; align-items:center; gap:8px; flex-shrink:0; text-decoration:none;
    background:var(--primary-softer); border:1px solid #ffe2d6; border-radius:var(--radius-sm); padding:6px 12px; min-width:180px;
    transition: border-color .15s, transform .15s; }
.banner-card img { width:42px; height:32px; object-fit:cover; border-radius:4px; }
.banner-card .banner-title { color:#333; font-size:13px; white-space:nowrap; }
.banner-card:hover { border-color:var(--primary-text); transform: translateY(-1px); }
.banner-card:hover .banner-title { color:var(--primary-text); }

/* 全部分类导航条 */
.cat-bar { background:#fff; border-bottom:1px solid var(--border); box-shadow:var(--shadow-sm); border-radius: var(--radius); margin-bottom: 16px; }
.cat-bar-inner { display:flex; align-items:center; flex-wrap:wrap; gap:6px 4px; padding:10px 16px; }
.cat-bar-label { font-weight:700; color:var(--primary-text); font-size:14px; margin-right:8px; }
.cat-bar-inner > a { font-size:14px; color:#444; padding:5px 12px; border-radius:var(--radius-pill); transition:.15s; }
.cat-bar-inner > a:hover { background:var(--primary-soft); color:var(--primary-text); }

/* 门户主体两栏 */
.portal { display:flex; gap:18px; align-items:flex-start; padding-top:18px; }
.portal-main { flex:1; min-width:0; }
.portal-side { width:300px; flex-shrink:0; }

/* 分块分类 */
.cat-block { background:#fff; border-radius:var(--radius); padding:14px 16px 14px; margin-bottom:16px; box-shadow:var(--shadow-sm); border:1px solid var(--border); }
/* 首页分类区块卡片流：主栏带右侧栏较窄 → 4 列，窄屏自动降列 */
.home-box-grid { grid-template-columns:repeat(4,1fr); margin-top:10px; }
@media(max-width: 1100px){ .home-box-grid{ grid-template-columns:repeat(3,1fr); } }
@media(max-width: 900px){ .home-box-grid{ grid-template-columns:repeat(3,1fr); } }
@media(max-width: 560px){ .home-box-grid{ grid-template-columns:repeat(2,1fr); } }
.cat-block-hd { display:flex; align-items:center; justify-content:space-between; border-bottom:2px solid var(--primary-soft); padding-bottom:8px; margin-bottom:10px; }
.cat-block-hd h2 { margin:0; font-size:18px; color:#222; position:relative; padding-left:12px; }
.cat-block-hd h2::before { content:""; position:absolute; left:0; top:4px; bottom:4px; width:4px; border-radius:3px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark)); }
.cat-block-more { font-size:13px; color:var(--text-light); }
.cat-block-more:hover { color:var(--primary-text); }
.cat-subnav { display:flex; flex-wrap:wrap; gap:6px 8px; margin-bottom:10px; }
.cat-subnav a { font-size:13px; color:#666; padding:3px 10px; background:#f6f7f9; border-radius:var(--radius-pill); transition: background .15s,color .15s; }
.cat-subnav a:hover { background:var(--primary-soft); color:var(--primary-text); }

/* 信息列表 */
.post-list { list-style:none; margin:0; padding:0; }
.post-row { display:flex; gap:12px; padding:12px 4px; border-bottom:1px dashed #f2f2f2; transition: background .15s; }
.post-row:last-child { border-bottom:none; }
.post-row:hover { background: var(--bg-soft); }
.post-thumb { flex-shrink:0; width:96px; height:64px; border-radius:var(--radius-sm); overflow:hidden; background:#f3f4f6; }
.post-thumb img { width:100%; height:100%; object-fit:cover; }
.post-main { flex:1; min-width:0; }
.post-title { display:block; font-size:15px; font-weight:600; color:#222; line-height:1.45;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap; transition: color .15s; }
.post-title:hover { color:var(--primary-text); }
.post-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; font-size:12px; color:var(--text-light); margin-top:6px; }
.post-cat { background:var(--accent-soft); color:var(--accent); padding:1px 8px; border-radius:var(--radius-pill); }
.post-date { color:#aaa; }
.post-price { color:var(--primary-text); font-weight:700; }
.empty-tip { padding:18px 0; text-align:center; color:#bbb; font-size:13px; }
.empty-tip a { color:var(--primary-text); }

/* 右侧栏盒子 */
.side-box { background:#fff; border-radius:var(--radius); padding:12px 14px; margin-bottom:14px; box-shadow:var(--shadow-sm); border:1px solid var(--border); }
.side-title { margin:0 0 10px; font-size:15px; color:#333; border-left:3px solid var(--accent); padding-left:8px;
    display:flex; align-items:center; justify-content:space-between; }
.side-more { font-size:12px; color:var(--text-light); font-weight:400; }
.side-more:hover { color:var(--primary-text); }
.help-list { list-style:none; margin:0; padding:0; }
.help-list li { padding:7px 0; border-bottom:1px dashed #f3f3f3; font-size:13px; }
.help-list li:last-child { border-bottom:none; }
.help-list a { color:#555; }
.help-list a:hover { color:var(--primary-text); }

/* 推荐商家 Logo 墙 */
.store-wall { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.store-cell { display:flex; flex-direction:column; align-items:center; gap:5px; padding:8px 4px;
    border:1px solid #f3f3f3; border-radius:var(--radius-sm); background:#fafbfc; text-align:center; text-decoration:none; cursor:pointer;
    transition: border-color .15s, transform .15s, box-shadow .15s; }
.store-cell img { width:46px; height:46px; object-fit:cover; border-radius:var(--radius-sm); }
.store-ph { width:46px; height:46px; border-radius:var(--radius-sm); background:var(--primary-soft); color:var(--primary-text);
    display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:700; }
.store-name { font-size:12px; color:#555; line-height:1.3; }
.store-cell:hover { border-color:var(--primary-text); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.store-cell:hover .store-name { color:var(--primary-text); }

/* 响应式：窄屏单列 */
@media(max-width: 900px){
    .portal { flex-direction:column; }
    .portal-side { width:100%; }
    .banner-card { min-width:150px; }
}
@media(max-width: 560px){
    .store-wall { grid-template-columns:repeat(4,1fr); }
    .post-thumb { width:72px; height:52px; }
}

/* ===== 商家店铺详情 ===== */
.shop-page { padding-top:18px; }
.shop-hero { display:flex; gap:18px; align-items:center; background:#fff; border:1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.shop-logo img, .shop-logo-ph { width:88px; height:88px; border-radius:16px; object-fit:cover; }
.shop-logo-ph { background:var(--primary-soft); color:var(--primary-text); display:flex; align-items:center; justify-content:center; font-size:34px; font-weight:800; }
.shop-hd-main h1 { margin:0 0 6px; font-size:22px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.shop-badge { position:static; font-size:12px; background:var(--success-soft); color:var(--success); padding:2px 8px; border-radius:var(--radius-pill); font-weight:600; }
.shop-badge.adv { background:var(--warning-soft); color:var(--warning); }
.shop-cat { margin:0 0 6px; color:#666; font-size:14px; }
.shop-meta { display:flex; flex-wrap:wrap; gap:6px 16px; color:var(--text-light); font-size:13px; margin:0 0 6px; }
.shop-phone { margin:0; font-size:15px; color:var(--primary-text); font-weight:600; }
.shop-grid .shop-card img, .shop-grid .shop-card .store-ph { display:block; margin:0 auto; }
@media(max-width:560px){ .shop-hero { flex-direction:column; text-align:center; } .shop-meta { justify-content:center; } }

/* ===== 滑动验证组件 ===== */
.slidecap { margin:8px 0; }
.slidecap-track { position:relative; height:40px; background:#f2f4f7; border:1px solid #e3e6ea; border-radius:var(--radius-sm); overflow:hidden; user-select:none; }
.slidecap-tip { position:absolute; width:100%; text-align:center; line-height:40px; font-size:13px; color:#999; pointer-events:none; }
.slidecap-fill { position:absolute; left:0; top:0; height:100%; width:0; background:var(--primary-soft); }
.slidecap-handle { position:absolute; left:0; top:0; width:44px; height:40px; background:#fff; border:1px solid #dfe2e6; border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; font-size:18px; color:#999; cursor:grab; box-shadow:0 1px 3px rgba(0,0,0,.08); z-index:2; }
.slidecap-handle:active { cursor:grabbing; }
.slidecap.ok .slidecap-track { background:var(--success-soft); border-color:#a6e5c1; }
.slidecap.ok .slidecap-fill { background:#d6f3e2; }
.slidecap.ok .slidecap-handle { color:var(--success); border-color:#a6e5c1; }
.slidecap.ok .slidecap-tip { color:var(--success); }

/* ===== 通用工具类 ===== */
.d-flex { display:flex; } .align-center { align-items:center; } .justify-between { justify-content:space-between; }
.justify-center { justify-content:center; } .flex-wrap { flex-wrap:wrap; } .flex-1 { flex:1; min-width:0; }
.gap-xs { gap:6px; } .gap-sm { gap:10px; } .gap { gap:14px; } .gap-lg { gap:20px; }
.text-center { text-align:center; } .text-right { text-align:right; } .text-left { text-align:left; }
.text-muted { color: var(--text-light) !important; } .text-primary { color:var(--primary-text) !important; }
.text-sm { font-size: 13px; } .text-lg { font-size: 16px; } .text-bold { font-weight:700; }
.w-100 { width:100%; } .ellipsis { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rounded { border-radius: var(--radius); } .rounded-lg { border-radius: var(--radius-lg); }
.shadow-sm { box-shadow: var(--shadow-sm); } .shadow { box-shadow: var(--shadow); }
.divider { height:1px; background:var(--border); margin:14px 0; border:none; }
.mt-0{margin-top:0}.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}
.mb-0{margin-bottom:0}.mb-8{margin-bottom:8px}.mb-12{margin-bottom:12px}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}

/* 空状态 */
.empty-state { text-align:center; padding:48px 16px; color:var(--text-light); }
.empty-state .es-ico { font-size:42px; opacity:.5; }
.empty-state .es-tip { margin-top:10px; font-size:14px; }
.empty-state .es-act { margin-top:14px; }

/* 回到顶部 */
#backTop { position:fixed; right:20px; bottom:24px; width:42px; height:42px; border-radius:50%; background:#fff;
    color:var(--primary-text); box-shadow:var(--shadow-md); display:none; align-items:center; justify-content:center;
    font-size:20px; cursor:pointer; z-index:40; border:1px solid var(--border); transition: transform .15s; }
#backTop:hover { transform: translateY(-2px); }

/* ===== 广告位图片自适应 ===== */
.ad-carousel, .ad-banner, .ad-feed, .ad-bottom, .site-popup-body { overflow:hidden; }
.ad-album { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.ad-album img, .ad-img, .ad-banner img, .ad-bottom img, .site-popup img {
    max-width:100%; height:auto; object-fit:cover; border-radius:8px; display:block;
}
.ad-album img { width:140px; height:84px; }
@media (max-width:768px){
    .ad-album { gap:6px; }
    .ad-album img { width:calc(33.333% - 6px); min-width:84px; aspect-ratio:3/1; height:auto; }
}

/* ===== 参照 qthxxw 设计同步：品牌红 + 橙色置顶 + 白卡灰底（实用风） ===== */
:root{
    --brand-red:#C8102E;
    --accent-orange:#ff6600;
    --link:#3366cc;
}
/* 置顶信息标签（橙底白字，qthxxw 风格） */
.tag-top{ display:inline-block; background:var(--accent-orange); color:#fff; font-size:12px; line-height:1.6; padding:1px 6px; border-radius:3px; vertical-align:middle; }
/* 信息流白卡（1px 边框 + 8px 圆角） */
.info-card{ background:#fff; border:1px solid var(--border); border-radius:8px; padding:12px; }
/* 链接蓝（友链/导航） */
a.link-blue{ color:var(--link); }
