/* ============================================================
   通用多城市分类信息网站 - 前台样式（现代化版）
   设计：蓝紫渐变主色 + 大圆角卡片 + 层次阴影 + 移动优先响应式
   兼容旧类名：grid-list、card-item、table-list、form、auth、user、pay 等
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
    --brand: #3b6df6;          /* 主色 靛蓝 */
    --brand-2: #6b5bff;        /* 渐变副色 紫 */
    --brand-dark: #2f54eb;
    --brand-light: #eef1ff;
    --orange: #ff9f43;
    --green: #22c55e;
    --red: #ef4444;
    --text: #1f2330;
    --text-2: #5b6472;
    --text-3: #9aa3b2;
    --border: #e8ebf3;
    --bg: #f4f6fb;
    --card: #ffffff;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .05);
    --shadow-hover: 0 2px 4px rgba(16, 24, 40, .06), 0 14px 32px rgba(16, 24, 40, .10);
    --grad: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; vertical-align: middle; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.main { min-height: 440px; padding-bottom: 6px; }

/* ---------- 通用按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    text-align: center;
    transition: all .2s ease;
    white-space: nowrap;
    gap: 4px;
}
.btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.btn-primary { background: var(--grad); border: none; color: #fff; box-shadow: 0 6px 16px rgba(59, 109, 246, .28); }
.btn-primary:hover { filter: brightness(1.06); color: #fff; box-shadow: 0 8px 20px rgba(59, 109, 246, .36); }
.btn-danger { background: var(--red); border: none; color: #fff; box-shadow: 0 6px 16px rgba(239, 68, 68, .25); }
.btn-danger:hover { filter: brightness(1.06); color: #fff; }
.btn-outline { background: var(--card); border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); border-color: var(--brand); color: var(--brand); transform: none; }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 12px 32px; font-size: 16px; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }
.mt8 { margin-top: 8px; }

/* ---------- Flash 提示 ---------- */
.flash {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    padding: 11px 44px 11px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
    animation: flashIn .3s ease;
}
@keyframes flashIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.flash-success { background: linear-gradient(135deg, #16a34a, #22c55e); }
.flash-error { background: linear-gradient(135deg, #dc2626, #ef4444); }
.flash-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: .8;
}

/* ============================================================
   Header（桌面 + 移动抽屉）
   ============================================================ */
.site-header {
    background: var(--card);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 1px 0 var(--border), 0 4px 18px rgba(16, 24, 40, .05);
}

/* 顶部工具条：城市切换 + 登录/注册 */
.header-toolbar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.toolbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
}
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 14px; }
.toolbar-city { font-size: 13px; font-weight: 600; color: var(--text); }
.toolbar-pin { width: 16px; height: 16px; vertical-align: -2px; margin-right: 3px; }
.toolbar-switch { color: var(--brand); font-weight: 500; }
.toolbar-link { font-size: 13px; color: var(--text-2); transition: color .2s; }
.toolbar-link:hover { color: var(--brand); }

/* 主头：LOGO + 大搜索框 + 立即发布 */
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 10px;
}
.header-logo { display: flex; align-items: center; flex: none; }
.logo { display: inline-flex; align-items: center; line-height: 1; }
.logo-icon {
    height: 60px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    border-radius: 8px;
    flex: none;
}
.header-search-wrap { flex: 1; display: flex; justify-content: center; min-width: 0; }
.header-post { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: none; }
.btn-post {
    background: #f53f3f;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(245, 63, 63, .25);
    transition: filter .2s;
}
.btn-post:hover { filter: brightness(1.08); color: #fff; }

/* 汉堡按钮（仅移动端显示） */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 8px;
    background: var(--brand-light);
    border: none;
    border-radius: 10px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    border-radius: 2px;
    background: var(--brand);
    transition: all .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* 主头大搜索框 */
.search-form {
    display: flex;
    width: 100%;
    max-width: 680px;
    background: var(--card);
    border: 2px solid var(--brand);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(59, 109, 246, .14);
    transition: box-shadow .2s;
}
.search-form:focus-within { box-shadow: 0 8px 26px rgba(59, 109, 246, .24); }
.search-input {
    flex: 1;
    border: none;
    padding: 13px 18px;
    font-size: 15px;
    outline: none;
}
.search-btn {
    border-radius: 999px;
    margin: 4px;
    font-size: 15px;
    padding: 0 30px;
    border: none;
    white-space: nowrap;
}

/* ---------- 导航条（58 风格，后台可改） ---------- */
.site-nav {
    background: #fff;
    border-bottom: 2px solid #e60012;
}
.site-nav-inner {
    display: flex;
    align-items: stretch;
    height: 44px;
}
.nav-home {
    display: flex;
    align-items: center;
    background: #ff6a00;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 0 22px;
    letter-spacing: 2px;
    transition: background .2s;
}
.nav-home:hover { background: #f05a00; color: #fff; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 0 20px;
    overflow-x: auto;
    white-space: nowrap;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
    color: #333;
    font-size: 14px;
    transition: color .2s;
}
.nav-links a:hover { color: #e60012; }
/* 导航条右侧快捷入口（商户入驻 / 我要推广） */
.nav-right-actions { display: flex; align-items: center; gap: 8px; padding: 0 14px 0 0; flex-shrink: 0; }
.nav-action {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    background: #fff7ea;
    border: 1px solid #ffdfb8;
    transition: background .2s, color .2s, border-color .2s;
}
.nav-action:hover { background: #ffedd5; color: #e60012; border-color: #ffc98a; }
.nav-action-ico { font-size: 16px; line-height: 1; }
.ico-merchant { color: #ff6a00; }
.ico-promote { color: #b45309; }
/* 导航条左侧 APP/微信/抖音 下拉二维码菜单 */
.nav-drop-group { display: flex; align-items: center; padding: 0 6px 0 0; flex-shrink: 0; }
.nav-drop { position: relative; }
.nav-drop-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 44px;
    padding: 0 14px;
    border: 0;
    background: none;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: color .2s, background .2s;
}
.nav-drop-btn:hover { color: #e60012; }
.nav-drop-caret { font-size: 16px; color: #e60012; line-height: 1; transition: transform .2s; }
.nav-drop:hover .nav-drop-caret { transform: rotate(180deg); }
.nav-drop-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    min-width: 140px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
    text-align: center;
}
.nav-drop:hover .nav-drop-panel { display: block; }
.nav-drop-panel-app { display: none; gap: 16px; min-width: 0; width: 260px; }
.nav-drop:hover .nav-drop-panel-app { display: flex; }
.nav-drop-item { flex: 1; }
.nav-drop-label { display: block; font-size: 12px; color: #666; margin-bottom: 8px; }
.nav-drop-qr { width: 100px; height: 100px; border-radius: 6px; display: block; margin: 0 auto; }
.nav-drop-empty {
    width: 100px;
    height: 100px;
    border: 1px dashed #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 12px;
    margin: 0 auto;
}

/* ---------- 广告位（后台「广告管理」维护） ---------- */
.home-ad { margin: 10px 0; }
.home-ad-top { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.home-ad-mid { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.home-ad-link img { display: block; max-width: 100%; border-radius: 8px; }
.home-ad-text {
    display: inline-block;
    background: #fff7e6;
    border: 1px solid #ffd591;
    color: #d46b08;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    transition: all .2s;
}
.home-ad-text:hover { border-color: #d46b08; color: #d46b08; }
.cats-manage { flex: none; white-space: nowrap; }

/* ============================================================
   首页分类（现代化：彩色图标卡片总览 + 分栏板块）
   ============================================================ */
.home-cats { margin-bottom: 10px; }
.cat-overview {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.cat-overview-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    box-sizing: border-box;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}
.cat-overview-item:hover {
    box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
    transform: translateY(-2px);
    border-color: var(--brand);
}
/* 瀑布流补位卡：凑满列数，消除底部缺口 */
.cat-overview-item.cat-overview-all {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    border-style: dashed;
    background: linear-gradient(135deg, #f7faff, #fff);
    cursor: pointer;
}
.cat-overview-all .cat-all-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--brand);
}
.cat-overview-all .cat-all-link small { font-size: 12px; color: var(--text-2); font-weight: 400; }
.cat-overview-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.cat-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 20px;
    flex: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
}
.cat-overview-item:nth-child(6n+1) .cat-ico { background: linear-gradient(135deg, #ff6a00, #ffb35c); }
.cat-overview-item:nth-child(6n+2) .cat-ico { background: linear-gradient(135deg, #1668dc, #6ea8ff); }
.cat-overview-item:nth-child(6n+3) .cat-ico { background: linear-gradient(135deg, #16a34a, #6ee7a0); }
.cat-overview-item:nth-child(6n+4) .cat-ico { background: linear-gradient(135deg, #9333ea, #c9a6ff); }
.cat-overview-item:nth-child(6n+5) .cat-ico { background: linear-gradient(135deg, #e60012, #ff8a8f); }
.cat-overview-item:nth-child(6n+6) .cat-ico { background: linear-gradient(135deg, #0891b2, #5eead4); }
.cat-overview-name {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--text);
    flex: 1;
    line-height: 1.2;
}
.cat-overview-name:hover { color: var(--brand); }
.cat-more { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.cat-more:hover { color: var(--brand); }
.cat-overview-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px 6px;
}
.cat-overview-tags a {
    font-size: 12.5px;
    color: var(--text-2);
    line-height: 1.5;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color .2s, background .2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cat-overview-tags a:hover { color: var(--brand); background: var(--bg); }

/* 首页分类板块（分栏，上下瀑布流；无 JS 时回退为 4 列网格） */
.home-cat-blocks {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 10px;
}
.cat-block-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    box-sizing: border-box;
    transition: box-shadow .25s, transform .25s;
}
.cat-block-card:hover { box-shadow: 0 6px 18px rgba(16, 24, 40, .07); transform: translateY(-2px); }
/* 板块补位卡 */
.cat-block-card.cat-block-all {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    border-style: dashed;
    background: linear-gradient(135deg, #f7faff, #fff);
    cursor: pointer;
}
.cat-block-all .cat-all-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--brand);
}
.cat-block-all .cat-all-link small { font-size: 12px; color: var(--text-2); font-weight: 400; }
.cat-block-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand);
}
.cat-block-card-title { font-size: 15.5px; font-weight: 700; color: var(--brand-dark, var(--brand)); }
.cat-block-card-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 10px; }
.cat-block-card-sub { font-size: 13px; color: var(--text-2); }
.cat-block-card-sub:hover { color: var(--brand); }

/* ============================================================
   移动端抽屉菜单
   ============================================================ */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 82%;
    max-width: 340px;
    height: 100%;
    background: var(--card);
    z-index: 1200;
    overflow-y: auto;
    padding: 18px 18px 60px;
    box-shadow: 8px 0 32px rgba(16, 24, 40, .18);
    transform: translateX(-102%);
    transition: transform .3s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.mobile-menu-head .logo { font-size: 20px; }
.mobile-menu-head .logo-icon { width: 40px; height: 40px; }
.mobile-menu-close {
    width: 34px; height: 34px;
    border: none; border-radius: 10px;
    background: var(--bg); color: var(--text-2);
    font-size: 20px; cursor: pointer;
}
.mobile-menu-search .search-form { flex-wrap: nowrap; border: 1px solid var(--border); border-radius: 999px; box-shadow: 0 2px 8px rgba(16, 24, 40, .05); }
.mobile-menu-search .search-cat {
    width: 84px;
    border: none;
    border-right: 1px solid var(--border);
    border-radius: 0;
    height: 42px;
    padding: 0 8px;
    font-size: 13px;
    margin-bottom: 0;
}
.mobile-menu-search .search-input {
    flex: 1;
    border: none;
    border-radius: 0;
    height: 42px;
    padding: 0 10px;
}
.mobile-menu-search .search-btn { border-radius: 999px; margin: 3px; height: 36px; }
.mobile-menu-block { margin-top: 18px; }
.mobile-menu-block h4 {
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 8px;
    padding-left: 2px;
}
.mobile-menu-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-menu-cats a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: var(--bg);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
}
.mobile-menu-cats a:hover { background: var(--brand-light); color: var(--brand); }
.mobile-menu-user { display: flex; gap: 8px; flex-wrap: wrap; }
.mobile-menu-user .btn { flex: 1; min-width: 90px; }
.mobile-menu-city { display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-menu-city a {
    display: inline-flex;
    padding: 8px 14px;
    background: var(--bg);
    border-radius: 10px;
    color: var(--text-2);
    font-size: 13px;
}
.mobile-menu-city a:hover { background: var(--brand-light); color: var(--brand); }
.mobile-menu-city a.active { background: var(--brand-light); color: var(--brand); font-weight: 600; }
.mobile-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, .45);
    z-index: 1100;
}
.mobile-mask.open { display: block; }
body.menu-locked { overflow: hidden; }

/* ---------- 面包屑 ---------- */
.breadcrumb { padding: 14px 0; font-size: 13px; color: var(--text-3); }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { color: var(--text); }

/* ---------- 区块标题 ---------- */
.section-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 4px solid var(--brand);
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 6px;
}
.section-title a { color: var(--text); }
.section-title a:hover { color: var(--brand); }
.cat-block { margin-bottom: 30px; }
.cat-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.cat-block-head .section-title { margin-bottom: 0; }
.more-link {
    color: var(--text-3);
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--bg);
    transition: all .2s;
}
.more-link:hover { background: var(--brand-light); color: var(--brand); }

/* 首页最新信息 Hero */
.home-hero { margin-bottom: 10px; }

/* ---------- 卡片网格（上下瀑布流容器；无 JS 时回退为 4 列网格） ---------- */
.grid-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.card-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .25s ease;
    display: block;
    color: var(--text);
    box-shadow: var(--shadow);
}
.card-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    color: var(--text);
    border-color: rgba(59, 109, 246, .25);
}
.card-thumb {
    position: relative;
    height: 158px;
    background: var(--bg);
    overflow: hidden;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.card-item:hover .card-thumb img { transform: scale(1.05); }
.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9aa3b8;
    font-size: 13px;
    letter-spacing: 2px;
    background: linear-gradient(160deg, #f2f5fb 0%, #e7ebf5 100%);
}
.card-body { padding: 12px 14px 14px; }
.card-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
    line-height: 1.4;
}
.card-price { color: var(--red); font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.card-price small { font-size: 12px; font-weight: 600; }
.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-3);
    font-size: 12px;
}

/* ---------- 标签 ---------- */
.tag {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.6;
    vertical-align: 2px;
    font-weight: 600;
}
.tag-top { background: linear-gradient(135deg, #ff5b5b, #ef4444); color: #fff; }
.tag-elite { background: linear-gradient(135deg, #ffc53d, #ff9f43); color: #7a2e00; }
.tag-hot { background: linear-gradient(135deg, #ffc53d, #ff9f43); color: #7a2e00; }

/* ---------- 区域导航 / 二级分类 / 筛选 ---------- */
.area-nav {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    max-height: 74px;
    overflow-y: auto;
}
.area-nav-label {
    color: #fff;
    background: #1668dc;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 6px;
    flex: none;
}
.area-nav a {
    display: inline-block;
    padding: 3px 12px;
    margin: 1px 2px;
    border-radius: 4px;
    border: 1px solid transparent;
    color: var(--text-2);
    font-size: 13px;
    white-space: nowrap;
    transition: all .2s;
}
.area-nav a:hover { color: var(--brand); background: var(--brand-light); }
.area-nav a.active { border-color: #f53f3f; color: #f53f3f; background: #fff5f5; font-weight: 600; }
.area-nav-sub { margin-top: -4px; }
.area-nav-sub .area-nav-label { background: #f53f3f; }

.sub-cats {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
}
.sub-cats a {
    display: inline-block;
    padding: 6px 16px;
    margin: 2px 4px 2px 0;
    border-radius: 999px;
    color: var(--text-2);
    font-size: 13px;
    transition: all .2s;
}
.sub-cats a:hover { color: var(--brand); background: var(--brand-light); }
.sub-cats a.active { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(59, 109, 246, .3); }
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
    box-shadow: var(--shadow);
}
.sort-tabs a {
    display: inline-block;
    padding: 6px 14px;
    color: var(--text-2);
    font-size: 13px;
    border-radius: 8px;
    transition: all .2s;
}
.sort-tabs a:hover { color: var(--brand); background: var(--brand-light); }
.sort-tabs a.active { color: var(--brand); background: var(--brand-light); font-weight: 700; }
.result-count { color: var(--text-3); font-size: 13px; }

/* ---------- 表格列表 ---------- */
.table-list {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.table-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f3f9;
    gap: 16px;
    transition: background .2s;
}
.table-item:last-child { border-bottom: none; }
.table-item:hover { background: #fafbff; }
.table-thumb {
    width: 104px;
    height: 78px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}
.table-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.table-thumb:hover img { transform: scale(1.06); }
.table-thumb .no-img { font-size: 12px; }
.table-body { flex: 1; min-width: 0; }
.table-title { font-size: 15.5px; font-weight: 600; margin-bottom: 5px; line-height: 1.5; }
.table-title a { color: var(--text); }
.table-title a:hover { color: var(--brand); }
.table-meta { color: var(--text-3); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 14px; }
.table-price { color: var(--red); font-size: 18px; font-weight: 800; white-space: nowrap; }
.table-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.table-actions { display: flex; gap: 8px; }
.table-actions .btn-xs { padding: 6px 14px; font-size: 13px; border-radius: 7px; white-space: nowrap; }
/* 联系电话弹窗 */
.phone-modal-body { padding: 26px 24px 22px; text-align: center; }
.phone-modal-num { font-size: 30px; font-weight: 800; color: var(--red); letter-spacing: 1px; margin-bottom: 20px; }
.phone-modal-actions { display: flex; justify-content: center; gap: 12px; }
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline-flex; gap: 6px; margin: 0; }

/* ---------- 分页 ---------- */
.pagination { padding: 22px 0; text-align: center; }
.pagination ul { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    color: var(--text-2);
    font-size: 13px;
    transition: all .2s;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination li.active span {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 109, 246, .3);
}
.pagination li.disabled span { color: var(--text-3); background: var(--bg); cursor: not-allowed; }
.pagination li.dots span { border: none; background: none; }

/* ---------- 详情页 ---------- */
.detail-wrap { display: flex; gap: 18px; align-items: flex-start; }
.detail-main {
    flex: 1;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    min-width: 0;
    box-shadow: var(--shadow);
}
.detail-title { font-size: 23px; line-height: 1.45; margin-bottom: 12px; font-weight: 700; }
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--text-3);
    font-size: 13px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 16px;
}
.detail-content h3, .detail-content h4 { font-size: 16px; margin-bottom: 10px; }
.content-text {
    color: var(--text-2);
    line-height: 1.95;
    white-space: pre-wrap;
    word-break: break-word;
}
.detail-side { width: 300px; flex-shrink: 0; }
.side-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
}
.side-label { font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.side-price {
    color: var(--red);
    font-size: 28px;
    font-weight: 800;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
    .side-price {
        background: linear-gradient(135deg, #ef4444, #f97316);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}
.contact-box p { margin-bottom: 7px; font-size: 14px; color: var(--text); }
.contact-phone {
    color: var(--brand);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .5px;
}
.contact-tip { color: var(--text-3); font-size: 12px; margin-top: 8px !important; }

/* ---------- 表单 ---------- */
.form-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    max-width: 760px;
    box-shadow: var(--shadow);
}
.form-title { font-size: 19px; font-weight: 700; margin-bottom: 20px; }
.form-row { display: flex; margin-bottom: 16px; align-items: flex-start; }
.form-row-pair { display: flex; gap: 24px; margin-bottom: 24px; }
.form-row-pair .form-row { flex: 1; min-width: 0; margin-bottom: 0; }
/* 富文本编辑器 */
.editor-wrap { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
    flex-wrap: wrap;
}
.editor-btn {
    min-width: 30px;
    height: 28px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: none;
    font-size: 13px;
    font-family: inherit;
    color: #333;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.editor-btn:hover { background: #fff; border-color: var(--border); color: var(--brand); }
.editor-sep { width: 1px; height: 16px; background: var(--border); margin: 0 4px; }
.editor-body {
    min-height: 180px;
    max-height: 420px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
    outline: none;
    overflow-y: auto;
}
.editor-body:empty::before {
    content: attr(data-placeholder);
    color: #a0a8b8;
    pointer-events: none;
}
.editor-body img { max-width: 100%; border-radius: 4px; }
.editor-body a { color: var(--brand); text-decoration: underline; }
.editor-body ul, .editor-body ol { padding-left: 22px; }
/* 详情页返回列表按钮 */
.detail-back { margin: 12px 0 4px; }
.detail-back a {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    transition: all .15s;
}
.detail-back a:hover { border-color: var(--brand); color: var(--brand); background: #fff7f0; }
/* 详情页图片轮播 */
.detail-gallery { margin: 14px 0; }
.detail-gallery-row { display: flex; gap: 18px; align-items: stretch; margin: 14px 0; }
.detail-gallery-row .detail-gallery { margin: 0; flex: 0 0 380px; }
.detail-gallery-actions {
    flex: 1; min-width: 0; display: flex; flex-direction: column;
    justify-content: center; align-items: center; gap: 12px; padding: 22px 20px;
    background: #fff; border: 1px solid var(--border); border-radius: 8px;
}
.detail-gallery-actions .btn { width: auto; min-width: 150px; padding: 12px 28px; text-align: center; font-size: 15px; }
/* 免费预约留言弹窗 */
.modal-mask {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(16, 24, 40, .55);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-box {
    width: 100%; max-width: 420px; background: #fff; border-radius: 12px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, .25);
    overflow: hidden;
}
.modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid var(--border);
    font-size: 16px; font-weight: 700;
}
.modal-close {
    background: none; border: none; font-size: 22px; line-height: 1;
    cursor: pointer; color: var(--text-3); padding: 0 4px;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 18px; }
.modal-tip { font-size: 12px; color: var(--text-3); margin: 10px 0 0; text-align: center; }
.msg-submit-row { display: block; text-align: center; margin-top: 4px; }
.msg-submit-row .btn { width: auto; min-width: 180px; padding: 12px 40px; }
/* 收到的留言列表 */
.msg-item {
    border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 12px;
    background: #fff;
}
.msg-item.unread { border-color: #e60012; background: #fffafa; }
.msg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.msg-name { font-weight: 700; color: #e60012; }
.msg-phone { color: var(--text); font-size: 13px; }
.msg-time { color: var(--text-3); font-size: 12px; margin-left: auto; }
.msg-info { font-size: 13px; color: var(--text-2); margin: 6px 0; }
.msg-info a { color: var(--link, #e60012); }
.msg-content {
    font-size: 14px; color: var(--text); line-height: 1.7;
    background: var(--bg); border-radius: 6px; padding: 8px 10px;
}
/* 顶栏消息提示 */
.toolbar-msg { position: relative; display: inline-flex; }
.toolbar-msg-link {
    background: none; border: none; cursor: pointer; font-family: inherit;
    position: relative; display: inline-flex; align-items: center; padding: 0 4px;
}
.toolbar-bell { width: 16px; height: 16px; color: var(--text-2); }
.toolbar-msg-link:hover .toolbar-bell { color: #e60012; }
.toolbar-msg-badge {
    position: absolute; top: -5px; right: -6px;
    min-width: 15px; height: 15px; line-height: 15px; padding: 0 3px;
    background: #e60012; color: #fff; font-size: 10px; font-weight: 700;
    border-radius: 8px; text-align: center; box-sizing: border-box;
}
.toolbar-msg-panel {
    position: absolute; top: 30px; right: -10px; z-index: 60;
    width: 210px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    box-shadow: 0 8px 26px rgba(16, 24, 40, .14);
    padding: 6px; display: none;
}
.toolbar-msg.open .toolbar-msg-panel { display: block; }
.toolbar-msg-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; border-radius: 8px; font-size: 13px; color: var(--text);
}
.toolbar-msg-item:hover { background: var(--bg); color: #e60012; }
.toolbar-msg-num {
    min-width: 20px; height: 18px; line-height: 18px; padding: 0 6px;
    background: #e60012; color: #fff; font-size: 11px; font-weight: 700;
    border-radius: 9px; text-align: center;
}
.toolbar-msg-num.muted { background: #e5e7eb; color: var(--text-3); }
.gallery-viewport { position: relative; width: 100%; max-width: 420px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #f7f8fa; }
.gallery-slides { position: relative; height: 260px; }
.gallery-slide { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: #f7f8fa; }
.gallery-slide:first-child { display: flex; }
.gallery-slide.active { display: flex; }
.gallery-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 34px; height: 50px;
    border: none; border-radius: 6px;
    background: rgba(0,0,0,.35); color: #fff;
    font-size: 26px; line-height: 1; cursor: pointer;
    transition: background .15s;
    z-index: 5;
}
.gallery-arrow:hover { background: rgba(0,0,0,.55); }
.gallery-arrow.prev { left: 8px; }
.gallery-arrow.next { right: 8px; }
.gallery-dots {
    position: absolute; bottom: 8px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 6px;
    z-index: 5;
}
.gallery-dots .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.5); cursor: pointer;
    transition: background .15s;
}
.gallery-dots .dot.active { background: var(--brand); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; width: 100%; max-width: 420px; }
.thumb-item {
    width: 64px; height: 64px;
    border: 2px solid transparent; border-radius: 6px;
    overflow: hidden; cursor: pointer;
    transition: border-color .15s;
}
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-item.active { border-color: var(--brand); }
/* 未登录隐藏手机号 */
.login-to-see {
    display: inline-block;
    padding: 2px 10px;
    border: 1px dashed var(--brand);
    border-radius: 14px;
    color: var(--brand);
    font-size: 13px;
    background: #fff7f0;
    text-decoration: none;
}
.login-to-see:hover { background: var(--brand); color: #fff; }
/* 详情页右侧机构信息卡 */
.contact-box .side-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
}
.contact-box .side-row:last-of-type { border-bottom: none; }
.contact-box .side-key {
    flex: 0 0 62px;
    color: #98a1b3;
}
.contact-box .side-val { color: var(--text); word-break: break-all; }
.contact-box .contact-tip { margin-top: 8px; color: #98a1b3; font-size: 12px; }
/* 侧栏商家操作区：联系商家 + 在线聊天 */
.side-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.side-actions .btn-block { display: flex; justify-content: center; align-items: center; width: 100%; padding: 11px 16px; font-size: 14px; border-radius: 8px; }
/* 信息卡认证徽标 */
.auth-badge {
    display: inline-block;
    padding: 1px 8px;
    margin: 2px 4px 2px 0;
    border-radius: 3px;
    background: #e8f7ef;
    color: #16a34a;
    font-size: 12px;
    line-height: 1.6;
    border: 1px solid #bfe6d0;
}
.side-muted { color: #999; font-size: 13px; }
/* 信息卡预约/客服按钮 */
.side-actions { display: flex; gap: 8px; margin-top: 12px; }
.side-actions .btn { flex: 1; padding: 8px 0; text-align: center; }
/* 详情页信息卡广告 */
.side-ad { padding: 8px; }
.side-ad-img { display: block; width: 100%; border-radius: 4px; }
.side-ad-text {
    display: block;
    padding: 14px 10px;
    text-align: center;
    color: var(--brand);
    font-size: 14px;
    font-weight: 600;
    background: #f2f6ff;
    border-radius: 4px;
}
/* 城市切换页 58 式横幅 */
.city-hero {
    position: relative;
    overflow: hidden;
    margin: 14px 0 0;
    padding: 34px 20px 28px;
    background: linear-gradient(135deg, #ff8a3d 0%, #ff6b1a 55%, #ff9a3d 100%);
    border-radius: 12px;
    text-align: center;
    color: #fff;
}
.city-hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 34px;
    background-image: linear-gradient(135deg, transparent 0 12px, rgba(255,255,255,.18) 12px 16px, transparent 16px),
                      linear-gradient(45deg, transparent 0 12px, rgba(255,255,255,.18) 12px 16px, transparent 16px);
    background-size: 24px 34px;
    opacity: .55;
}
.city-hero-title { font-size: 22px; font-weight: 800; margin-bottom: 18px; letter-spacing: 2px; }
.city-hero-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 34px;
    border-radius: 26px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,.14);
    transition: transform .15s ease;
}
.hero-btn:hover { transform: translateY(-2px); text-decoration: none; }
.hero-btn-main { background: #fff; color: #ff6b1a; }
.hero-btn-sub { background: rgba(255,255,255,.25); color: #fff; border: 1px solid rgba(255,255,255,.65); }
.hero-btn-disabled { opacity: .55; pointer-events: none; }
.hero-arrow { font-size: 19px; font-weight: 900; }
.city-hero-locate {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    background: rgba(255, 255, 255, .96);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(180, 60, 10, .22);
    font-size: 15px;
    position: relative;
    z-index: 1;
}
.locate-ico { width: 21px; height: 21px; color: #ff6b1a; flex: none; }
.locate-label { font-weight: 700; color: #333; font-size: 15px; }
.hero-locate-link { color: #ff4d00; font-weight: 800; font-size: 21px; text-decoration: none; margin: 0 2px; line-height: 1.2; }
.hero-locate-link:hover { text-decoration: underline; }
/* 周边城市推荐 */
.city-nearby {
    margin: 14px 0 0;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.city-nearby-title { font-size: 14px; font-weight: 700; color: #445; margin-bottom: 10px; }
.city-nearby-links { display: flex; flex-wrap: wrap; gap: 8px; }
.city-nearby-links .city-link {
    display: inline-block;
    padding: 6px 16px;
    background: #f6f8fc;
    border: 1px solid #e4e9f2;
    border-radius: 18px;
    font-size: 14px;
    color: #556;
    text-decoration: none;
    transition: all .15s ease;
}
.city-nearby-links .city-link:hover { background: #fff3e0; border-color: #ffb066; color: #e65100; }
.city-nearby-links .city-link.active { background: #fff3e0; border-color: #ff9800; color: #e65100; font-weight: 600; }
/* 城市切换页搜索条 */
.city-search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.cs-current, .cs-search { display: flex; align-items: center; gap: 8px; }
.cs-label { color: #667; font-size: 14px; }
.cs-locate { margin-left: 10px; }
.cs-tag-locate {
    display: inline-block;
    padding: 3px 14px;
    background: #fff3e0;
    color: #e65100;
    border: 1px dashed #ff9800;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
}
.cs-tag-locate:hover { background: #ffe0b2; }
.cs-locate-tip { color: #16a34a; font-size: 14px; font-weight: 700; margin-left: 2px; }
.cs-locate-fail { color: #d33; }
.cs-tag {
    display: inline-block;
    padding: 3px 14px;
    background: var(--brand);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}
.cs-input {
    width: 220px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: border-color .15s;
}
.cs-input:focus { border-color: var(--brand); }
.cs-btn {
    height: 32px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #f1f3f5;
    color: #556;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
}
.cs-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
/* 会员认证 */
.verify-status { padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.verify-pending { background: #fff4e5; color: #d97706; }
.verify-pass { background: #e8f7ef; color: #16a34a; }
.verify-fail { background: #fdeaea; color: #d9363e; }
.verify-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.verify-tab {
    padding: 7px 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: all .15s;
}
.verify-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.verify-item { margin-bottom: 14px; }
.verify-file {
    display: block;
    width: 100%;
    max-width: 420px;
    padding: 8px 10px;
    border: 1px dashed var(--border);
    border-radius: 6px;
    background: #fafbfc;
    font-size: 13px;
}
.verify-demo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.verify-demo a { display: inline-block; }
.verify-demo img {
    width: 96px;
    height: 62px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: box-shadow .15s, border-color .15s;
}
.verify-demo a:hover img { border-color: var(--brand); box-shadow: 0 2px 8px rgba(22,104,220,.15); }
.verify-demo-tip { color: #98a1b3; font-size: 12px; line-height: 1.6; }
.form-label {
    width: 110px;
    flex-shrink: 0;
    padding-top: 9px;
    color: var(--text-2);
    font-size: 14px;
    text-align: right;
    padding-right: 14px;
}
.form-label b { color: var(--red); }
.form-field { flex: 1; min-width: 0; }
/* 表单保存按钮行居中 */
.form-row-center { justify-content: center; }
.form-row-center .form-field { flex: none; text-align: center; }
.form-row-center .btn { display: inline-block; min-width: 160px; }
/* 微信 H5 支付中间页 */
.h5-loading { display: flex; justify-content: center; padding: 6px 0 10px; }
.h5-spin {
    width: 34px; height: 34px;
    border: 3px solid #e8f0fe;
    border-top-color: #07c160;
    border-radius: 50%;
    animation: h5spin .8s linear infinite;
}
@keyframes h5spin { to { transform: rotate(360deg); } }
.form-field select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
    background: var(--card);
    color: var(--text);
    max-width: 440px;
    transition: all .2s;
}
.form-field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59, 109, 246, .12); }
.form-static { line-height: 38px; color: var(--text); }
.input, select.input, textarea.input {
    width: 100%;
    max-width: 440px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    font-size: 14px;
    outline: none;
    transition: all .2s;
    background: var(--card);
    color: var(--text);
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59, 109, 246, .12); }
.input-sm { width: auto; max-width: 220px; }
.textarea {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: all .2s;
}
.textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59, 109, 246, .12); }
.form-tip { color: var(--text-3); font-size: 12px; margin-top: 7px; }
.form-captcha { display: flex; gap: 12px; align-items: center; }
.captcha-img { height: 42px; border-radius: var(--radius-sm); cursor: pointer; border: 1px solid var(--border); }

/* 上传预览 */
.upload-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.upload-item {
    position: relative;
    width: 96px;
    height: 74px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}
.upload-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-del {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(15, 23, 42, .6);
    color: #fff;
    width: 22px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    border-radius: 0 0 0 6px;
}

/* ---------- 认证页 ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 36px 0; }
.auth-box {
    width: 400px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px 32px;
    box-shadow: var(--shadow-hover);
}
.auth-box h2 { text-align: center; margin-bottom: 22px; font-size: 21px; font-weight: 700; }
.auth-box .form-row { flex-direction: column; align-items: stretch; }
.auth-box .form-label { width: auto; text-align: left; padding: 0 0 6px; }
.auth-box .input { max-width: none; }
.auth-link { text-align: center; margin-top: 16px; color: var(--text-3); font-size: 13px; }

/* ---------- 用户中心 ---------- */
.user-wrap { display: flex; gap: 18px; align-items: flex-start; }
.user-side { width: 190px; flex-shrink: 0; }
.user-card {
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-2) 100%);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    margin-bottom: 12px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(59, 109, 246, .3);
}
.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 60px;
    margin: 0 auto 10px;
    border: 2px solid rgba(255, 255, 255, .5);
}
.user-avatar-img { object-fit: cover; display: block; }
/* 资料页头像上传 */
.avatar-upload { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar-upload-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: #f2f6ff;
    color: #4a7cff;
    font-size: 30px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #c6d4f5;
}
.avatar-upload-controls { display: flex; flex-direction: column; gap: 6px; }
.avatar-upload-controls .form-tip { margin: 0; }
.user-name { font-weight: 700; margin-bottom: 4px; font-size: 15px; }
.user-since { color: rgba(255, 255, 255, .75); font-size: 12px; }
.user-menu {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.user-menu li { border-bottom: 1px solid #f1f3f9; }
.user-menu li:last-child { border-bottom: none; }
.user-menu a {
    display: block;
    padding: 12px 18px;
    color: var(--text);
    font-size: 14px;
    transition: all .2s;
}
.user-menu a:hover { color: var(--brand); background: var(--brand-light); }
.user-menu a.active { color: var(--brand); background: var(--brand-light); font-weight: 700; border-left: 3px solid var(--brand); }
.user-main { flex: 1; min-width: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.stat-num { font-size: 26px; font-weight: 800; color: var(--brand); margin-bottom: 6px; }
.stat-label { color: var(--text-3); font-size: 13px; margin-bottom: 8px; }
.stat-link { color: var(--brand); font-size: 12.5px; }

/* 微信绑定 */
.panel-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--text-1); }
.oauth-bound {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.oauth-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.oauth-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #07c160;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.oauth-info { flex: 1; min-width: 0; }
.oauth-name { font-weight: 700; color: var(--text-1); margin-bottom: 3px; }
.oauth-tip { font-size: 12.5px; color: var(--text-3); }
.oauth-form { flex-shrink: 0; margin: 0; }

/* 登录页微信按钮 */
.btn-wechat {
    display: block;
    text-align: center;
    background: #07c160;
    box-shadow: 0 6px 16px rgba(7, 193, 96, .25);
    margin-top: 6px;
    text-decoration: none;
}
.btn-wechat:hover { filter: brightness(1.06); color: #fff; }

.status-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    width: fit-content;
    max-width: 100%;
    box-shadow: var(--shadow);
}
.status-tabs a { padding: 9px 20px; color: var(--text-2); font-size: 14px; border-right: 1px solid #f1f3f9; white-space: nowrap; }
.status-tabs a:last-child { border-right: none; }
.status-tabs a.active { background: var(--grad); color: #fff; }

/* 状态标签 */
.status { font-size: 12px; padding: 2px 9px; border-radius: 8px; font-weight: 600; }
.st-pending { background: #fff7e6; color: #d46b08; }
.st-pass { background: #f0fdf4; color: #16a34a; }
.st-reject { background: #fef2f2; color: #dc2626; }
.st-delete { background: #f5f5f5; color: var(--text-3); }
.reject-reason { color: #d46b08; }

/* ---------- 城市页 ---------- */
.city-page {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 26px;
    box-shadow: var(--shadow);
}
.city-group { margin-bottom: 18px; }
.city-province { font-size: 14px; color: var(--text-3); margin-bottom: 10px; font-weight: 600; }
.city-links { display: flex; flex-wrap: wrap; gap: 10px; }
.city-link {
    display: inline-block;
    padding: 9px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: all .2s;
}
.city-link:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.city-link.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(59, 109, 246, .28); }
.city-link.locate { border-color: #ff9800; color: #e65100; box-shadow: 0 0 0 2px rgba(255, 152, 0, .35) inset; }
.city-link .tag-locate { background: #ff9800; color: #fff; border-radius: 4px; padding: 0 4px; font-size: 11px; margin-left: 4px; vertical-align: 1px; }

/* 地级市下的县/镇子级 */
.city-sub { margin: 8px 0 4px 8px; padding-left: 10px; border-left: 2px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.city-sub-label { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.city-link-sm { padding: 5px 12px; font-size: 13px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); transition: all .2s; }
.city-link-sm:hover { border-color: var(--brand); color: var(--brand); }
.city-link-sm.active { background: var(--grad); border-color: transparent; color: #fff; }

/* ---------- 支付页 ---------- */
.pay-wrap { display: flex; justify-content: center; padding: 28px 0; }
.pay-box {
    width: 560px;
    max-width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 32px;
    box-shadow: var(--shadow-hover);
}
.pay-actions { display: flex; justify-content: center; gap: 12px; }
.btn-xs { padding: 3px 10px; font-size: 12.5px; border-radius: 7px; }
/* 用户中心订单表格 */
.user-main .data-table { width: 100%; border-collapse: collapse; }
.user-main .data-table th {
    background: #f7f8fc; color: var(--text-2); font-size: 13px; font-weight: 600;
    padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.user-main .data-table td { padding: 12px 10px; border-bottom: 1px solid #f1f3f9; font-size: 13.5px; vertical-align: middle; }
.user-main .data-table tr:hover td { background: #fafbff; }
.user-main .data-table .td-price { color: var(--red); font-weight: 700; white-space: nowrap; }
.user-main .data-table .td-order-no { font-family: Consolas, Menlo, monospace; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.user-main .data-table .td-link { color: var(--brand); }
.user-main .data-table .td-link:hover { text-decoration: underline; }
.user-main .data-table .td-ok { color: #16a34a; font-size: 13px; }
.user-main .data-table .td-muted { color: var(--text-3); font-size: 13px; }
/* 订单表：百分比自适应（table-layout fixed），内容超长省略，禁止横向拖动 */
.user-main .data-table.td-fit { table-layout: fixed; width: 100%; }
.user-main .data-table.td-fit th,
.user-main .data-table.td-fit td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-main .data-table.td-fit th:nth-child(1) { width: 14%; }
.user-main .data-table.td-fit th:nth-child(2) { width: 22%; }
.user-main .data-table.td-fit th:nth-child(3) { width: 8%; }
.user-main .data-table.td-fit th:nth-child(4) { width: 7%; }
.user-main .data-table.td-fit th:nth-child(5) { width: 10%; }
.user-main .data-table.td-fit th:nth-child(6) { width: 11%; }
.user-main .data-table.td-fit th:nth-child(7) { width: 8%; }
.user-main .data-table.td-fit th:nth-child(8) { width: 13%; }
.user-main .data-table.td-fit th:nth-child(9) { width: 7%; }
@media (max-width: 768px) {
    .user-main .data-table.td-fit th:nth-child(3),
    .user-main .data-table.td-fit td:nth-child(3),
    .user-main .data-table.td-fit th:nth-child(4),
    .user-main .data-table.td-fit td:nth-child(4),
    .user-main .data-table.td-fit th:nth-child(8),
    .user-main .data-table.td-fit td:nth-child(8) { display: none; }
    .user-main .data-table.td-fit th:nth-child(1) { width: 15%; }
    .user-main .data-table.td-fit th:nth-child(2) { width: 27%; }
    .user-main .data-table.td-fit th:nth-child(5) { width: 12%; }
    .user-main .data-table.td-fit th:nth-child(6) { width: 14%; }
    .user-main .data-table.td-fit th:nth-child(7) { width: 12%; }
    .user-main .data-table.td-fit th:nth-child(9) { width: 20%; }
    .user-main .data-table.td-fit td:nth-child(9) { overflow: visible; white-space: normal; }
}
.pay-info {
    background: linear-gradient(135deg, #f6f8ff, #eef1ff);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 16px;
}
.pay-info p { margin-bottom: 4px; color: var(--text-2); }
.pay-info b { color: var(--text); }
.radio-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    margin: 4px 10px 4px 0;
    cursor: pointer;
    font-size: 14px;
    transition: all .2s;
    background: var(--card);
}
.radio-card:hover { border-color: var(--brand); }
.radio-card small { color: var(--red); font-weight: 700; }
.radio-card input { accent-color: var(--brand); }
.qr-box { text-align: center; padding: 18px 0; }
#qrcode {
    width: 232px;
    height: 232px;
    margin: 0 auto 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    font-size: 13px;
    box-shadow: var(--shadow);
}
.qr-tip { color: var(--text-3); font-size: 13px; }
.qr-status { color: var(--orange); font-size: 14px; font-weight: 600; }
.qr-ok { color: var(--green); }
.result-ok, .result-wait { text-align: center; padding: 24px 0; }
.result-icon { font-size: 46px; margin-bottom: 10px; }

/* ---------- 空状态 / 404 ---------- */
.empty-box {
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 64px 20px;
    text-align: center;
    color: var(--text-3);
}
.empty-box p { margin-bottom: 8px; }
.error-404 { text-align: center; padding: 40px 0; }
.error-404 h1 {
    font-size: 84px;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 8px;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
    .error-404 h1 {
        background: var(--grad);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}
.error-404 p { margin-bottom: 12px; color: var(--text-2); }
.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.panel-tip { color: var(--text-2); font-size: 13px; }

/* ============================================================
   Footer（深色现代化页脚）
   ============================================================ */
.footer {
    background: #161b2c;
    color: #8b93a7;
    padding: 36px 0 24px;
    margin-top: 6px;
    font-size: 13px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
/* 左侧 5 列链接 */
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; flex: 1; min-width: 0; }
.footer-col h5 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 600;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: #8b93a7; transition: color .2s; }
.footer-col a:hover { color: #fff; }
/* 右侧客服区 */
.footer-contact {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    flex-shrink: 0;
    padding-left: 28px;
    border-left: 1px solid rgba(255, 255, 255, .08);
}
.footer-contact h5 { color: #fff; font-size: 14px; margin-bottom: 10px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.footer-contact-info { min-width: 0; }
.footer-ico { font-size: 18px; }
.footer-phone { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 4px; letter-spacing: .5px; }
.footer-phone a { color: #fff; }
.footer-phone a:hover { color: var(--brand); }
.footer-service { color: #8b93a7; font-size: 12px; margin-bottom: 8px; }
.footer-mail { color: #6b7280; font-size: 12px; margin-bottom: 0; }
.footer-mail a { color: #8b93a7; }
.footer-mail a:hover { color: #fff; }
.footer-qr { text-align: center; flex-shrink: 0; }
.footer-qr-img { width: 120px; height: 120px; border-radius: 8px; display: block; object-fit: cover; }
.footer-qr-empty {
    width: 120px;
    height: 120px;
    border: 1px dashed rgba(255, 255, 255, .25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.6;
}
.footer-qr-text { color: #fff; font-size: 13px; margin-top: 6px; white-space: nowrap; }
/* 底部备案条 */
.footer-bar {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 5px;
    padding-top: 5px;
    text-align: center;
}
.footer-bar-links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 0; }
.footer-bar-links a { color: #8b93a7; font-size: 12.5px; }
.footer-bar-links a:hover { color: #fff; }
.footer-bar-copy { color: #6b7280; font-size: 12px; }
.footer-bar-copy a { color: #8b93a7; }
.footer-bar-copy a:hover { color: #fff; }
.footer-beian-ico { width: 16px; height: 16px; vertical-align: -3px; margin-right: 3px; }
@media (max-width: 768px) {
    .nav-right-actions { display: none; }
    .nav-drop-group { display: none; }
    .footer { padding-bottom: 96px; }
    .footer-inner { flex-direction: column; gap: 20px; }
    .footer-cols { gap: 24px; }
    .footer-contact { width: 100%; padding-left: 0; border-left: 0; gap: 20px; }
}

/* ============================================================
   手机底部导航栏
   ============================================================ */
.mobile-tabbar {
    display: none;
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(16, 24, 40, .16), 0 2px 8px rgba(16, 24, 40, .06);
    z-index: 950;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 0 6px;
    color: #667085;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    transition: color .15s;
}
.mobile-tabbar a .tab-icon { font-size: 22px; line-height: 1; }
.mobile-tabbar a .tab-icon .tab-svg { width: 27px; height: 27px; display: block; margin: 0 auto; }
.mobile-tabbar a.active { color: var(--brand); font-weight: 700; }
.mobile-tabbar a.active .tab-icon { transform: translateY(-2px); }
.tabbar-post {
    position: relative;
    top: -12px;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600;
}
.tabbar-post .tab-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 20px rgba(59, 109, 246, .4);
    border: 3px solid #fff;
    margin: 0 auto 2px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.tabbar-post .tab-icon .post-plus { font-size: 15px; font-weight: 400; font-style: normal; line-height: 1; }
.tabbar-post .tab-icon .post-label { font-size: 9.5px; font-weight: 600; font-style: normal; line-height: 1; letter-spacing: 1px; margin-top: 2px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    .detail-wrap { flex-direction: column; }
    .detail-side { width: 100%; }
    .user-wrap { flex-direction: column; }
    .user-side { width: 100%; }
    .user-menu { display: flex; flex-wrap: wrap; }
    .user-menu li { border-bottom: none; border-right: 1px solid #f1f3f9; }
    .stat-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
}

@media (max-width: 767px) {
    .nav-toggle { display: flex; }
    .mobile-menu { display: block; }
    .toolbar-inner { height: 38px; }
    .toolbar-left { gap: 10px; }
    .toolbar-link { font-size: 12.5px; }
    .logo-icon { height: 30px; width: auto; max-width: 140px; border-radius: 6px; }
    .header-main { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; gap: 10px; }
    .header-logo { align-items: flex-start; }
    .header-post { flex: none; }
    .btn-post { padding: 9px 14px; font-size: 13.5px; border-radius: 6px; box-shadow: 0 4px 12px rgba(245, 63, 63, .22); }
    .header-search-wrap { flex: none; width: 100%; order: 3; }
    .header-search-wrap .search-form { max-width: 620px; border-radius: 999px; border: 1px solid var(--border); box-shadow: 0 3px 12px rgba(16, 24, 40, .05); }
    .search-form:focus-within { border-color: var(--brand); box-shadow: 0 5px 16px rgba(59, 109, 246, .16); }
    .search-input { padding: 10px 12px; font-size: 14px; }
    .search-btn { padding: 0 18px; font-size: 14px; margin: 3px; }
    .site-header { position: sticky; }

    /* 首页分类移动端（瀑布流 2 列，由 JS 布局；无 JS 时回退 2 列网格） */
    .cat-overview { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cat-overview-item { padding: 12px 14px; }
    .cat-overview-name { font-size: 15px; }
    .cat-ico { width: 32px; height: 32px; font-size: 17px; border-radius: 8px; }
    .home-cat-blocks { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cat-block-card { padding: 10px 12px; }
    .cat-block-card-title { font-size: 14px; }
    .cat-block-card-sub { font-size: 12.5px; }

    /* 网格 */
    .grid-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card-thumb { height: 118px; }
    .card-body { padding: 10px 11px 12px; }
    .card-title { font-size: 13.5px; }
    .card-price { font-size: 15px; }
    .main { padding-bottom: 2px; }

    /* 列表卡片化 */
    .table-item { padding: 12px 14px; gap: 12px; }
    .table-thumb { width: 84px; height: 64px; }
    .table-title { font-size: 14px; }
    .table-meta { gap: 8px; font-size: 11.5px; }
    .table-price { font-size: 15px; }
    .table-actions { gap: 6px; }
    .table-actions .btn-xs { padding: 4px 10px; font-size: 12px; }

    /* 详情 */
    .detail-main { padding: 16px 14px; }
    .detail-title { font-size: 18px; }
    .detail-gallery { flex: 0 0 auto; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; margin: 0; }
    .gallery-item { flex: 0 0 132px; width: 132px; height: 100px; }
    .detail-gallery-row { flex-direction: column; margin: 0; }
    .detail-gallery-actions { padding: 14px; }
    /* 手机版轮播：宽度 100%，高度按图片真实比例自适应（横图撑满、竖图限高居中），避免留白过大 */
    .gallery-viewport { width: 100%; max-width: none; }
    .gallery-slides { height: auto; }
    .gallery-slide { position: relative; inset: auto; }
    .gallery-slide img { width: 100%; height: auto; max-height: 300px; object-fit: contain; }
    .gallery-thumbs { width: 100%; max-width: none; }

    /* 表单 */
    .form-wrap { padding: 18px 16px; }
    .form-row-pair { flex-direction: column; gap: 0; }
    .form-row { flex-direction: column; }
    .form-label { width: 100%; text-align: left; padding: 0 0 6px; }
    .input, select.input, textarea.input { max-width: 100%; }
    .form-captcha { flex-wrap: wrap; }
    .captcha-img { height: 46px; }
    .btn-lg { width: 100%; }

    /* 认证 */
    .auth-box { width: 100%; padding: 24px 20px; border-radius: 14px; }

    /* 用户中心 */
    .stat-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stat-card { padding: 14px 6px; }
    .stat-num { font-size: 20px; }
    .status-tabs { width: 100%; }
    .user-menu a { padding: 11px 14px; }

    /* 城市 */
    .city-page { padding: 18px 14px; }
    .city-hero { padding: 24px 12px 22px; border-radius: 10px; margin-top: 10px; }
    .city-hero-title { font-size: 19px; margin-bottom: 14px; }
    .hero-btn { padding: 11px 22px; font-size: 15px; border-radius: 22px; }
    .city-nearby { padding: 12px 12px; }
    .city-nearby-links .city-link { padding: 5px 12px; font-size: 13px; }
    .city-link { padding: 8px 16px; }

    /* 支付 */
    .pay-box { padding: 22px 18px; }
    .radio-card { margin: 4px 6px 4px 0; padding: 9px 14px; }

    /* 页脚 + 底部栏 */
    .footer { padding: 28px 0 84px; }
    .footer-inner { flex-direction: column; gap: 18px; }
    .mobile-tabbar { display: flex; }
    .breadcrumb { padding: 10px 0; font-size: 12px; }
}

@media (max-width: 380px) {
    .header-right .btn { padding: 5px 9px; font-size: 12px; }
    .stat-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   登录 / 注册页（列表网式）
   ============================================================ */
.auth-page { background: #faf7ef; }
.auth-top { background: #fff; border-bottom: 1px solid var(--border); }
.auth-top-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
}
.auth-top-left { display: flex; align-items: center; gap: 14px; }
.auth-logo { height: 50px; width: auto; object-fit: contain; }
.auth-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    border-left: 1px solid var(--border);
    padding-left: 14px;
    line-height: 1.2;
}
.auth-top-nav { display: flex; gap: 18px; font-size: 14px; color: var(--text-2); }
.auth-top-nav a:hover, .auth-top-nav a.active { color: var(--brand); }

.auth-main { padding: 36px 16px 56px; }
.auth-body {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    gap: 48px;
    align-items: center;
}
.auth-illustration { flex: 1; text-align: center; }
.auth-illustration img { width: 100%; max-width: 540px; border-radius: 16px; }
.auth-illustration h3 { font-size: 22px; color: var(--text); margin-top: 16px; }
.auth-illustration p { font-size: 14px; color: var(--text-3); margin-top: 6px; }

/* 找回密码：窄卡片布局 */
.auth-body-narrow { justify-content: center; }
.auth-forgot { float: right; }

.auth-card {
    width: 420px;
    flex: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px 32px;
    box-shadow: 0 10px 34px rgba(16, 24, 40, .07);
}
.auth-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
}
.auth-tab {
    flex: 1;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-3);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
}
.auth-tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

.auth-pane { display: flex; flex-direction: column; gap: 12px; }
.auth-pane.hidden { display: none; }
.auth-field { display: flex; align-items: center; }
.auth-field > input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    background: #fbfbfb;
}
.auth-field > input:focus { outline: none; border-color: var(--brand); background: #fff; }
.auth-sms-row .btn-sms {
    flex: none;
    margin-left: 10px;
    padding: 10px 16px;
    border: 1px solid var(--brand);
    color: var(--brand);
    background: #fff;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.auth-sms-row .btn-sms:disabled { opacity: .6; cursor: not-allowed; }
.auth-captcha-row .captcha-img {
    flex: none;
    margin-left: 10px;
    height: 43px;
    border-radius: 8px;
    cursor: pointer;
}
.auth-tip { font-size: 12px; color: var(--text-3); line-height: 1.6; }

/* 微信内嵌二维码 */
.wx-qr-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    margin: 6px 0 4px;
    padding: 14px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}
.wx-qr-box iframe { border: 0; max-width: 100%; }
.wx-qr-loading { font-size: 13px; color: var(--text-3); }
.wx-qr-loading a { color: var(--brand); }
.wx-qr-fallback { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.wx-qr-fallback a { color: var(--brand); }
.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 13px;
    padding: 9px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    line-height: 1.5;
}
.auth-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-2);
    margin-top: 14px;
    cursor: pointer;
}
.auth-check input { accent-color: var(--brand); }
.btn-login {
    width: 100%;
    margin-top: 18px;
    padding: 12px 0;
    background: #f53f3f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 2px;
}
.btn-login:hover { filter: brightness(1.08); }
.auth-alt { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-2); }
.auth-alt a { color: var(--brand); }

@media (max-width: 767px) {
    .auth-top-nav { display: none; }
    .auth-body { flex-direction: column; gap: 20px; }
    .auth-illustration img { max-width: 100%; }
    .auth-illustration h3 { font-size: 18px; }
    .auth-card { width: 100%; max-width: 460px; padding: 22px 20px; }
    .auth-main { padding: 20px 12px 48px; }
}

/* ========== 单页（关于我们/联系我们/帮助中心）========== */
.page-hero {
    background: linear-gradient(135deg, #e60012 0%, #ff5a36 55%, #ff9a5a 100%);
    padding: 46px 0 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;
    right: -60px;
    top: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
}
.page-hero::after {
    content: "";
    position: absolute;
    right: 120px;
    bottom: -110px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
}
.page-hero-sub { margin-top: 10px; font-size: 15px; opacity: .92; }
.breadcrumb-light { margin-top: 14px; color: rgba(255, 255, 255, .85); }
.breadcrumb-light a { color: rgba(255, 255, 255, .85); }
.breadcrumb-light a:hover { color: #fff; }
.breadcrumb-light span { color: #fff; font-weight: 600; }

.page-wrap {
    display: flex;
    gap: 24px;
    padding: 26px 0 50px;
    align-items: flex-start;
}
.page-main { flex: 1; min-width: 0; }
.page-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 30px 34px;
    box-shadow: 0 8px 28px rgba(16, 24, 40, .05);
}
.page-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 2px solid #f2f2f2;
    position: relative;
}
.page-card-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 46px;
    height: 2px;
    background: #e60012;
}
.page-content { font-size: 15px; line-height: 1.9; color: #444; word-break: break-word; }
.page-content h2, .page-content h3 { color: var(--text); margin: 18px 0 10px; }
.page-content h2 { font-size: 19px; }
.page-content h3 { font-size: 17px; }
.page-content p { margin: 10px 0; }
.page-content img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.page-content ul, .page-content ol { padding-left: 22px; margin: 10px 0; }
.page-content li { margin: 4px 0; }
.page-content a { color: #e60012; }
.page-content table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.page-content table td, .page-content table th { border: 1px solid #e5e5e5; padding: 8px 12px; font-size: 14px; }
.page-content blockquote {
    border-left: 4px solid #e60012;
    background: #fdf6f6;
    padding: 10px 16px;
    border-radius: 0 8px 8px 0;
    color: #666;
    margin: 12px 0;
}

.page-side { width: 300px; flex: none; display: flex; flex-direction: column; gap: 16px; }
.page-side-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 22px;
}
.page-side-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}
.page-side-card h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 34px;
    height: 2px;
    background: #e60012;
}
.page-side-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.page-side-list li a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text-2);
    font-size: 14px;
    transition: all .15s;
}
.page-side-list li a:hover { color: #e60012; background: #fdf3f3; }
.page-side-list li.active a { color: #e60012; background: #fdf3f3; font-weight: 600; }
.side-phone { font-size: 20px; font-weight: 700; color: #e60012; }
.side-mail { font-size: 13px; color: var(--text-2); margin-top: 8px; word-break: break-all; }
.side-mail a { color: #e60012; }
.side-qr { margin-top: 14px; text-align: center; }
.side-qr img { width: 132px; height: 132px; border: 1px solid #eee; border-radius: 10px; padding: 4px; }
.side-qr p { font-size: 12px; color: var(--text-3); margin-top: 8px; }

@media (max-width: 767px) {
    .page-hero { padding: 32px 0 28px; }
    .page-hero-title { font-size: 24px; }
    .page-wrap { flex-direction: column; padding: 16px 0 40px; }
    .page-main { width: 100%; }
    .page-card { padding: 20px 16px; }
    .page-side { width: 100%; }
    .page-content { font-size: 14.5px; }
}

/* ========== 单页头部（gys 风格） ========== */
.page-body { background: #f7f7f7; }
.shead {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
.shead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
}
.shead-logo { display: flex; align-items: center; gap: 14px; }
.shead-logo-link { display: flex; align-items: center; gap: 8px; }
.shead-logo-img { height: 38px; width: auto; display: block; }
.shead-logo-txt { font-size: 18px; font-weight: 700; color: #e60012; }
.shead-page {
    font-size: 15px;
    color: #666;
    padding-left: 14px;
    border-left: 1px solid #e0e0e0;
}
.shead-nav { display: flex; gap: 26px; list-style: none; }
.shead-nav li a {
    font-size: 15px;
    color: #444;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.shead-nav li a:hover { color: #e60012; }
.shead-nav li a.active { color: #e60012; font-weight: 600; border-bottom-color: #e60012; }

/* 单页横幅 */
.sbar {
    background: linear-gradient(135deg, #fdf3f3 0%, #fff 60%, #fff 100%);
    border-bottom: 1px solid #f0e6e6;
    padding: 34px 0 28px;
    text-align: center;
}
.sbar-cn { font-size: 30px; font-weight: 700; color: #e60012; letter-spacing: 2px; }
.sbar-en { font-size: 15px; color: #b0a0a0; margin-top: 6px; letter-spacing: 4px; }

/* ========== 单页底部（gys 风格） ========== */
.sfoot {
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 24px 0 26px;
    margin-top: 10px;
}
.sfoot-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 18px;
    font-size: 14px;
    color: #555;
}
.sfoot-links a { color: #555; }
.sfoot-links a:hover { color: #e60012; }
.sfoot-copy {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: #999;
}
.sfoot-copy a { color: #999; }
.sfoot-copy a:hover { color: #e60012; }

@media (max-width: 767px) {
    .shead-inner { flex-direction: column; height: auto; padding: 10px 0; gap: 8px; }
    .shead-page { padding-left: 0; border-left: none; }
    .shead-nav { gap: 16px; flex-wrap: wrap; justify-content: center; }
    .shead-nav li a { font-size: 14px; }
    .sbar { padding: 24px 0 20px; }
    .sbar-cn { font-size: 24px; }
    .sbar-en { font-size: 13px; }
    .sfoot-links { gap: 4px 14px; font-size: 13px; }
}

/* ========== 在线聊天 ========== */
.chat-page { max-width: 760px; padding: 24px 0 50px; }
.chat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.chat-head-unread { background: #fef2f2; color: #e60012; border: 1px solid #fecaca; font-size: 13px; padding: 4px 12px; border-radius: 20px; }

.chat-list { display: flex; flex-direction: column; gap: 10px; }
.chat-item {
    display: flex;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    transition: box-shadow .15s, border-color .15s;
}
.chat-item:hover { border-color: #e60012; box-shadow: 0 4px 16px rgba(230, 0, 18, .08); }
.chat-item-thumb { position: relative; flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--bg); }
.chat-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.chat-item-thumb-empty {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #ff9a5a, #e60012);
    color: #fff; font-size: 22px; font-weight: 700;
}
.chat-item-badge {
    position: absolute; top: -4px; right: -4px;
    background: #e60012; color: #fff; font-size: 11px;
    min-width: 18px; height: 18px; line-height: 18px; text-align: center;
    border-radius: 10px; padding: 0 4px; border: 2px solid #fff;
}
.chat-item-body { flex: 1; min-width: 0; }
.chat-item-top { display: flex; justify-content: space-between; align-items: center; }
.chat-item-name { font-size: 15px; font-weight: 600; color: var(--text); }
.chat-item-time { font-size: 12px; color: var(--text-3); }
.chat-item-sub { margin-top: 4px; }
.chat-item-msg {
    font-size: 13.5px; color: var(--text-2);
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.chat-item-info {
    margin-top: 6px; font-size: 12.5px; color: var(--text-3);
    background: var(--bg); border-radius: 6px; padding: 5px 10px;
    display: flex; gap: 8px; align-items: center; overflow: hidden;
}
.chat-item-info-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item-price { color: #e60012; font-weight: 600; flex: none; }
.chat-item-off { color: #999; }
.chat-empty { text-align: center; padding: 60px 0; color: var(--text-3); }
.chat-empty-tip { font-size: 13px; margin: 8px 0 20px; }

/* 聊天窗口 */
.chat-room-page { max-width: 820px; }
.chat-room-head {
    background: #fff; border: 1px solid var(--border); border-radius: 12px 12px 0 0;
    padding: 14px 18px; display: flex; align-items: center; gap: 16px;
}
.chat-room-back { font-size: 13px; color: var(--text-2); flex: none; }
.chat-room-back:hover { color: #e60012; }
.chat-room-user { display: flex; align-items: center; gap: 12px; }
.chat-room-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #ff9a5a, #e60012);
    color: #fff; font-size: 18px; font-weight: 700;
}
.chat-room-name { font-size: 15px; font-weight: 600; color: var(--text); }
.chat-room-info { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.chat-room-info a { color: #e60012; }
.chat-room-body {
    height: 420px; overflow-y: auto;
    background: #f7f7f7; border: 1px solid var(--border); border-top: none; border-bottom: none;
    padding: 18px; display: flex; flex-direction: column; gap: 14px;
}
.chat-msg { display: flex; align-items: flex-start; gap: 10px; max-width: 82%; }
.chat-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg.other { align-self: flex-start; }
.chat-msg-avatar { flex: none; width: 40px; height: 40px; }
.chat-avatar-img {
    width: 40px; height: 40px; border-radius: 6px; object-fit: cover;
    display: block; background: var(--bg);
}
.chat-avatar-letter {
    width: 40px; height: 40px; border-radius: 6px; display: flex;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, #ff9a5a, #e60012);
    color: #fff; font-size: 17px; font-weight: 700;
}
.chat-msg-main { display: flex; flex-direction: column; min-width: 0; }
.chat-msg.mine .chat-msg-main { align-items: flex-end; }
.chat-msg.other .chat-msg-main { align-items: flex-start; }
.chat-msg-bubble {
    padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.6; word-break: break-word;
    max-width: 100%;
}
.chat-msg.mine .chat-msg-bubble { background: #e60012; color: #fff; border-top-right-radius: 3px; }
.chat-msg.other .chat-msg-bubble { background: #fff; color: #333; border: 1px solid #e8e8e8; border-top-left-radius: 3px; }
.chat-msg-time { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.chat-room-input {
    background: #fff; border: 1px solid var(--border); border-top: none;
    border-radius: 0 0 12px 12px; padding: 10px 16px 14px;
}
.chat-emoji-bar { position: relative; }
.chat-emoji-btn {
    background: none; border: none; font-size: 22px; cursor: pointer;
    padding: 2px 6px; border-radius: 6px; line-height: 1;
}
.chat-emoji-btn:hover { background: var(--bg); }
.chat-emoji-panel {
    position: absolute; left: 0; bottom: 34px; z-index: 30;
    width: 336px; max-width: 92vw;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    box-shadow: 0 8px 26px rgba(16, 24, 40, .14);
    padding: 10px; display: flex; flex-wrap: wrap; gap: 2px;
}
.chat-emoji-item {
    font-size: 21px; cursor: pointer; padding: 4px; border-radius: 6px; line-height: 1;
}
.chat-emoji-item:hover { background: var(--bg); }
.chat-room-input textarea {
    width: 100%; border: 1px solid #e5e7eb; border-radius: 8px;
    padding: 10px 12px; font-size: 14px; resize: none; font-family: inherit;
    box-sizing: border-box; margin-top: 4px;
}
.chat-room-input textarea:focus { outline: none; border-color: #e60012; }
.chat-room-input-bar { display: flex; justify-content: flex-end; margin-top: 10px; }

.user-menu-badge {
    background: #e60012; color: #fff; font-size: 11px;
    min-width: 18px; height: 18px; line-height: 18px; text-align: center;
    border-radius: 10px; padding: 0 4px; display: inline-block; margin-left: 4px;
}

@media (max-width: 767px) {
    .chat-page { padding: 16px 0 40px; }
    .chat-item { padding: 12px 12px; }
    .chat-item-thumb { width: 48px; height: 48px; }
    .chat-room-body { height: 56vh; padding: 14px; }
    .chat-msg { max-width: 92%; }
    .chat-msg-avatar, .chat-avatar-img, .chat-avatar-letter { width: 34px; height: 34px; }
    .chat-avatar-letter { font-size: 15px; }
}

/* ============================================================
   圈子模块（circle）—— 同城兴趣交流
   ============================================================ */

/* ---------- 圈子首页 Hero ---------- */
.circle-hero {
    background: linear-gradient(135deg, #3b6df6 0%, #6b5bff 55%, #9333ea 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}
.circle-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 46px 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}
.circle-hero-title {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: 4px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .18);
}
.circle-hero-sub {
    margin-top: 10px;
    font-size: 16px;
    opacity: .92;
    letter-spacing: 1px;
}
.circle-hero-deco { position: relative; width: 190px; height: 120px; flex: none; }
.deco-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .35);
}
.deco-ring-1 { width: 120px; height: 120px; right: 0; top: 0; }
.deco-ring-2 { width: 76px; height: 76px; right: 42px; top: 22px; border-color: rgba(255, 255, 255, .6); }
.deco-emoji {
    position: absolute;
    right: 58px;
    top: 38px;
    font-size: 40px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25));
}

/* ---------- 通用板块 ---------- */
.circle-section { margin: 26px 0 34px; }
.circle-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}
.circle-section-tip { color: var(--text-3); font-size: 13px; }
.circle-section-link { color: var(--brand); font-size: 13.5px; font-weight: 600; }
.circle-section-link:hover { text-decoration: underline; }

/* ---------- 圈子卡片网格 ---------- */
.circle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.circle-card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
    display: block;
    color: var(--text);
}
.circle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    color: var(--text);
}
.circle-card-cover {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.circle-card-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    transform: translateY(22px);
}
.circle-card-body { padding: 34px 18px 18px; text-align: center; }
.circle-card-name { font-size: 18px; font-weight: 800; }
.circle-card-intro {
    color: var(--text-3);
    font-size: 13px;
    margin: 6px auto 10px;
    min-height: 20px;
}
.circle-card-meta { color: var(--text-2); font-size: 12.5px; display: flex; justify-content: center; gap: 14px; }
.circle-card-meta span::before { content: ""; margin: 0; }
.circle-card-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 24px;
    border-radius: 999px;
    background: var(--brand-light);
    color: var(--brand);
    font-weight: 700;
    font-size: 13.5px;
    transition: all .15s ease;
}
.circle-card:hover .circle-card-btn { background: var(--grad); color: #fff; }

/* ---------- 最新动态流 ---------- */
.circle-feed {
    background: var(--card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.circle-feed-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    flex-wrap: wrap;
}
.circle-feed-item:last-child { border-bottom: none; }
.circle-feed-item:hover { background: #fafbff; color: var(--text); }
.circle-feed-tag {
    flex: none;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
}
.circle-feed-title { flex: 1; min-width: 200px; font-weight: 600; font-size: 14.5px; }
.circle-feed-author { color: var(--text-2); font-size: 13px; }
.circle-feed-time { color: var(--text-3); font-size: 12.5px; }
.circle-feed-reply { color: var(--text-2); font-size: 12.5px; flex: none; }

/* ---------- 圈子详情头部 ---------- */
.circle-head { color: #fff; padding: 30px 0; position: relative; }
.circle-head-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.circle-head-icon {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
    flex: none;
}
.circle-head-text { flex: 1; min-width: 220px; }
.circle-head-name { font-size: 28px; font-weight: 900; text-shadow: 0 3px 12px rgba(0, 0, 0, .16); }
.circle-head-intro { margin-top: 6px; font-size: 14.5px; opacity: .95; }
.circle-head-meta { margin-top: 10px; display: flex; gap: 18px; font-size: 13px; opacity: .9; }
.circle-head-actions { display: flex; gap: 12px; align-items: center; }
.circle-join-btn.joined { background: #fff; color: var(--green); border-color: #fff; font-weight: 700; }
.circle-join-btn { background: rgba(255, 255, 255, .2); color: #fff; border: 1px solid rgba(255, 255, 255, .7); font-weight: 700; }
.circle-join-btn:hover { background: #fff; color: var(--brand); }

/* ---------- 帖子列表 ---------- */
.circle-posts {
    background: var(--card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.circle-post-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    flex-wrap: wrap;
}
.circle-post-item:last-child { border-bottom: none; }
.circle-post-item:hover { background: #fafbff; color: var(--text); }
.circle-post-title { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; }
.cp-title-text { font-size: 15px; font-weight: 600; }
.cp-flag {
    flex: none;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}
.cp-top { background: #fef3e2; color: #d97706; }
.cp-essence { background: #e6f4ff; color: #0e7490; }
.circle-post-meta { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12.5px; }
.cp-author { color: var(--text-2); }
.cp-count { white-space: nowrap; }

/* ---------- 帖子详情 ---------- */
.cp-view {
    background: var(--card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 26px 28px;
    margin: 18px 0;
}
.cp-view-flags { display: flex; gap: 8px; margin-bottom: 10px; }
.cp-view-title { font-size: 24px; font-weight: 800; line-height: 1.4; }
.cp-view-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-3);
    font-size: 13px;
    flex-wrap: wrap;
}
.cp-view-author { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 600; }
.cp-view-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.cp-view-content { padding: 20px 4px 8px; font-size: 15px; line-height: 1.9; word-break: break-word; }
.cp-view-content img { max-width: 100%; border-radius: 8px; }
.cp-view-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.cp-view-imgs img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; }

/* ---------- 回帖 ---------- */
.cp-replies {
    background: var(--card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 22px 24px;
    margin: 0 0 20px;
}
.cp-replies-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}
.cp-reply {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.cp-reply:last-child { border-bottom: none; }
.cp-reply-avatar { flex: none; }
.cp-reply-avatar img, .cp-reply-avatar span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--brand-light);
    color: var(--brand);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.cp-reply-body { flex: 1; min-width: 0; }
.cp-reply-top { display: flex; align-items: center; gap: 10px; }
.cp-reply-name { font-weight: 700; color: var(--text); font-size: 14px; }
.cp-reply-time { color: var(--text-3); font-size: 12.5px; }
.cp-reply-content { margin-top: 6px; font-size: 14.5px; line-height: 1.8; word-break: break-word; }

/* ---------- 回复框 / 发帖 ---------- */
.cp-reply-box, .circle-post-box {
    background: var(--card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 22px 24px;
}
.cp-reply-box-title { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.circle-post-box { margin: 16px 0 30px; }
.circle-post-box-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.circle-form .form-row { margin-bottom: 18px; }
.circle-form .form-label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.circle-form .req { color: var(--red); }
.circle-form .form-input, .circle-form .form-textarea, .cp-reply-box .form-textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14.5px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.circle-form .form-input:focus, .circle-form .form-textarea:focus, .cp-reply-box .form-textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-light);
}
.circle-form .form-textarea { resize: vertical; min-height: 180px; }
.cp-reply-box .form-textarea { resize: vertical; }
.circle-form .form-tip { color: var(--text-3); font-size: 12.5px; margin-top: 6px; }
.circle-form .form-file { font-size: 13.5px; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 4px; }
.circle-form .form-actions, .cp-reply-box .form-actions { justify-content: center; }
.btn-lg { padding: 11px 34px; font-size: 15px; border-radius: 12px; }

/* ---------- 圈子响应式 ---------- */
@media (max-width: 900px) {
    .circle-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .circle-hero-inner { padding: 30px 16px 26px; }
    .circle-hero-title { font-size: 30px; }
    .circle-hero-sub { font-size: 14px; }
    .circle-hero-deco { width: 100px; height: 70px; }
    .deco-emoji { font-size: 28px; right: 30px; top: 18px; }
    .deco-ring-1 { width: 74px; height: 74px; }
    .deco-ring-2 { width: 46px; height: 46px; right: 26px; top: 14px; }
    .circle-grid { grid-template-columns: 1fr; gap: 14px; }
    .circle-feed-item { padding: 12px 14px; }
    .circle-feed-title { min-width: 100%; }
    .circle-head { padding: 20px 0; }
    .circle-head-icon { width: 64px; height: 64px; font-size: 34px; border-radius: 18px; }
    .circle-head-name { font-size: 22px; }
    .circle-head-actions { width: 100%; }
    .circle-head-actions .btn { flex: 1; }
    .cp-view { padding: 18px 16px; }
    .cp-view-title { font-size: 20px; }
    .cp-view-imgs { grid-template-columns: repeat(2, 1fr); }
    .cp-view-imgs img { height: 130px; }
    .cp-replies, .cp-reply-box, .circle-post-box { padding: 16px 14px; }
}

/* ---------- 首页圈子板块 ---------- */
.home-circle-entry {
    max-width: 1200px;
    margin: 26px auto 0;
    padding: 0 16px;
}
.home-circle-entry-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}
.home-circle-chips {
    background: var(--card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.home-circle-chip {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f7f8ff;
    color: var(--text);
    font-weight: 700;
    transition: all .15s ease;
}
.home-circle-chip:hover { background: var(--brand-light); color: var(--brand); transform: translateY(-2px); }
.home-circle-chip-main {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 6px 18px rgba(107, 91, 255, .3);
}
.home-circle-chip-main:hover { color: #fff; opacity: .95; }
.home-circle-chip-icon { font-size: 22px; }
.home-circle-chip small { color: var(--text-3); font-weight: 400; margin-left: auto; }
.home-circle-chip-main small { color: rgba(255, 255, 255, .85); }
@media (max-width: 600px) {
    .home-circle-chip { min-width: calc(50% - 6px); padding: 12px 14px; }
}

/* ---------- 圈子发帖网页编辑器 ---------- */
.cp-editor {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(16, 24, 40, .04);
}
.cp-editor:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.cp-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    padding: 8px 10px;
    background: #f7f8fb;
    border-bottom: 1px solid var(--border);
}
.cp-ed-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: all .12s ease;
}
.cp-ed-btn:hover { background: #e9ecf5; }
.cp-ed-btn:active { background: #dde2f0; }
.cp-ed-btn b, .cp-ed-btn i, .cp-ed-btn u, .cp-ed-btn s { font-size: 15px; }
.cp-ed-sep { width: 1px; height: 18px; background: var(--border); margin: 0 6px; }
.cp-editor-area {
    min-height: 220px;
    max-height: 480px;
    overflow-y: auto;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.9;
    outline: none;
    word-break: break-word;
}
.cp-editor-area.cp-ed-empty::before {
    content: attr(data-placeholder);
    color: var(--text-3);
    pointer-events: none;
}
.cp-editor-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    border-top: 1px solid var(--border);
    background: #fcfcfe;
    font-size: 12.5px;
    color: var(--text-3);
    flex-wrap: wrap;
}
.cp-editor-count b { color: var(--brand); font-size: 13.5px; }
.cp-ed-emoji-panel {
    position: absolute;
    z-index: 90;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
    max-width: 340px;
}
.cp-ed-emoji-panel span {
    font-size: 20px;
    padding: 4px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
}
.cp-ed-emoji-panel span:hover { background: #f0f2f9; }
.cp-editor-toolbar { position: relative; }

/* ---------- 帖子详情富文本排版 ---------- */
.cp-view-content p { margin: 8px 0; }
.cp-view-content ul, .cp-view-content ol { margin: 8px 0; padding-left: 26px; }
.cp-view-content ul { list-style: disc; }
.cp-view-content ol { list-style: decimal; }
.cp-view-content li { margin: 4px 0; }
.cp-view-content h3, .cp-view-content h4 { margin: 14px 0 6px; line-height: 1.4; }
.cp-view-content h3 { font-size: 18px; }
.cp-view-content h4 { font-size: 16px; }
.cp-view-content blockquote {
    margin: 10px 0;
    padding: 8px 14px;
    border-left: 4px solid var(--brand);
    background: var(--brand-light);
    border-radius: 0 8px 8px 0;
    color: var(--text-2);
}
.cp-view-content pre {
    margin: 10px 0;
    padding: 12px 14px;
    background: #f4f5f9;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 13.5px;
    font-family: Consolas, Menlo, monospace;
}
.cp-view-content code { background: #f1f2f7; padding: 2px 6px; border-radius: 6px; font-size: 13px; }
.cp-view-content pre code { background: transparent; padding: 0; }
.cp-view-content table { border-collapse: collapse; margin: 10px 0; max-width: 100%; }
.cp-view-content th, .cp-view-content td { border: 1px solid var(--border); padding: 6px 12px; font-size: 13.5px; }
.cp-view-content th { background: #f7f8fb; }
.cp-view-content hr { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.cp-view-content a { color: var(--brand); text-decoration: underline; }
.cp-view-content img { max-width: 100%; border-radius: 8px; margin: 4px 0; }
.cp-view-content div { margin: 4px 0; }

@media (max-width: 600px) {
    .cp-editor-area { min-height: 180px; padding: 12px; }
    .cp-ed-emoji-panel { grid-template-columns: repeat(8, 1fr); max-width: 280px; }
}

/* ============================================================
   圈子大气版 v2（覆盖升级，与主站风格统一）
   ============================================================ */

/* ---------- 圈子首页 Hero 大气版（紧凑高度） ---------- */
.circle-hero {
    background: linear-gradient(125deg, #1e3a8a 0%, #3b6df6 42%, #6b5bff 72%, #9333ea 100%);
}
.circle-hero-inner { padding: 28px 16px 24px; }
.circle-hero-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    font-size: 12.5px;
    letter-spacing: 2px;
    backdrop-filter: blur(4px);
}
.circle-hero-title { font-size: 34px; margin-top: 10px; letter-spacing: 2px; }
.hero-title-grad {
    background: linear-gradient(135deg, #ffd66b, #ff9f43);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.circle-hero-sub { margin-top: 8px; font-size: 15px; }
.circle-hero-stats { display: flex; gap: 26px; margin-top: 14px; }
.hero-stat { display: flex; align-items: baseline; gap: 6px; }
.hero-stat b { font-size: 22px; font-weight: 900; color: #ffd66b; }
.hero-stat span { font-size: 12.5px; opacity: .9; }
.circle-hero-deco { width: 170px; height: 110px; }
.deco-ring-1 { width: 110px; height: 110px; }
.deco-ring-2 { width: 70px; height: 70px; right: 38px; top: 18px; }
.deco-ring-3 { width: 40px; height: 40px; right: 74px; top: 4px; border-color: rgba(255, 214, 107, .75); }
.deco-emoji { font-size: 36px; right: 52px; top: 30px; }
.deco-emoji-2 {
    position: absolute;
    font-size: 24px;
    left: 6px;
    bottom: 4px;
    animation: heroFloat 3.2s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---------- 圈子卡片大气版 ---------- */
.circle-card { border-radius: 18px; box-shadow: var(--shadow); }
.circle-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.circle-card-cover { height: 112px; overflow: hidden; }
.circle-card-cover-dot {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
}
.circle-card-cover-dot.d1 { width: 90px; height: 90px; right: -20px; top: -30px; }
.circle-card-cover-dot.d2 { width: 46px; height: 46px; left: 14px; top: 14px; background: rgba(255, 255, 255, .22); }
.circle-card-cover-dot.d3 { width: 20px; height: 20px; right: 70px; bottom: 16px; background: rgba(255, 214, 107, .65); }
.circle-card-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    font-size: 38px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
    transform: translateY(28px);
}
.circle-card-icon-img {
    position: absolute;
    left: 20px;
    bottom: -34px;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
    border: 3px solid #fff;
}
.circle-card-body { padding: 40px 20px 20px; }
.circle-card-name { font-size: 19px; font-weight: 900; }
.circle-card-intro { margin: 6px auto 12px; }
.circle-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.circle-card-btn {
    padding: 9px 30px;
    background: var(--grad);
    color: #fff;
    box-shadow: 0 6px 16px rgba(59, 109, 246, .3);
}
.circle-card-btn i { font-style: normal; transition: transform .15s ease; display: inline-block; }
.circle-card:hover .circle-card-btn i { transform: translateX(3px); }
.circle-card:hover .circle-card-btn { background: var(--grad); color: #fff; }

/* ---------- 最新动态时间线 ---------- */
.circle-feed-item { position: relative; padding-left: 30px; }
.circle-feed-line {
    position: absolute;
    left: 13px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--brand-light), var(--brand-2));
}
.circle-feed-item::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand);
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px var(--brand-light);
    transform: translateY(-50%);
    z-index: 1;
}
.circle-feed-item:hover::before { background: var(--brand-2); }
.circle-feed-title:hover { color: var(--brand); }

/* ---------- 圈头大气版 ---------- */
.circle-head { padding: 44px 0; overflow: hidden; }
.circle-head-deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    pointer-events: none;
}
.circle-head-deco.hd1 { width: 220px; height: 220px; right: -60px; top: -80px; }
.circle-head-deco.hd2 { width: 90px; height: 90px; left: 12%; bottom: -30px; background: rgba(255, 255, 255, .16); }
.circle-head-deco.hd3 { width: 34px; height: 34px; right: 24%; top: 18px; background: rgba(255, 214, 107, .55); }
.circle-head-inner { position: relative; z-index: 1; }
.circle-head-icon {
    width: 92px;
    height: 92px;
    border-radius: 26px;
    font-size: 52px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}
.circle-head-icon-img {
    width: 92px;
    height: 92px;
    border-radius: 26px;
    object-fit: cover;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
    border: 3px solid rgba(255, 255, 255, .5);
}
.circle-head { position: relative; }
.circle-head::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .12);
    pointer-events: none;
}
.circle-head-name { font-size: 32px; }
.circle-head-meta { gap: 14px; }
.circle-head-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
}
.circle-head-stat b { color: #ffd66b; font-size: 15px; }
.circle-join-btn { padding: 10px 26px; }
.circle-join-btn.joined { background: #fff; color: var(--green); border-color: #fff; }
.circle-head-actions .btn-primary { padding: 10px 26px; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }

/* ---------- 帖子列表大气版 ---------- */
.circle-post-item { padding: 17px 20px; border-radius: 0; transition: background .15s ease; }
.circle-post-item:hover { background: #f6f8ff; }
.cp-title-text { font-size: 15.5px; }
.circle-post-item:hover .cp-title-text { color: var(--brand); }
.cp-author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: -4px;
}

/* ---------- 帖子详情大气版 ---------- */
.cp-view { padding: 30px 32px; }
.cp-view-title { font-size: 26px; }
.cp-view-avatar { width: 34px; height: 34px; }
.cp-view-content { font-size: 15.5px; }

/* ---------- 编辑帖子：现有配图 ---------- */
.cp-edit-imgs { display: flex; gap: 12px; flex-wrap: wrap; }
.cp-edit-img-item {
    position: relative;
    width: 108px;
    height: 108px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
}
.cp-edit-img-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-edit-img-item input[type=checkbox] {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    width: 18px;
    height: 18px;
    accent-color: #d9363e;
    cursor: pointer;
}
.cp-edit-img-del {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
}
.cp-edit-img-item input[type=checkbox]:checked ~ .cp-edit-img-del { display: flex; }
.cp-view-edit { margin-left: 6px; vertical-align: middle; }

/* ---------- 回帖图片缩略图 ---------- */
.cp-reply-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cp-reply-imgs a {
    width: 92px;
    height: 92px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: block;
}
.cp-reply-imgs img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s ease; }
.cp-reply-imgs a:hover img { transform: scale(1.05); }

/* ---------- 回帖编辑器 ---------- */
.cp-editor-area-sm { min-height: 110px; }
.cp-editor-file {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    color: var(--brand);
    cursor: pointer;
    margin-left: auto;
}
.cp-editor-file input[type=file] { display: none; }

/* ---------- 帖子含图小图标（SVG，不依赖 emoji 字体） ---------- */
.cp-has-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 6px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(59,109,246,.12), rgba(107,91,255,.12));
    color: var(--brand);
    vertical-align: -3px;
    cursor: help;
    transition: transform .15s ease, box-shadow .15s ease;
}
.cp-has-img svg { width: 13px; height: 13px; display: block; }
.cp-has-img:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(59,109,246,.35);
    color: #fff;
    background: linear-gradient(135deg, #3b6df6, #6b5bff);
}
.cp-feed .cp-has-img { background: rgba(255,255,255,.25); color: inherit; }
.cp-feed .cp-has-img:hover { color: #fff; }

/* ---------- 用户中心标题栏（标题左、按钮右） ---------- */
.user-main-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.user-main-head h3 {
    font-size: 17px;
    font-weight: 800;
    color: #1d2b3f;
    margin: 0;
}
.user-main-head .btn { flex: 0 0 auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 767px) {
    .circle-hero-inner { padding: 20px 16px 18px; }
    .circle-hero-title { font-size: 26px; }
    .circle-hero-sub { font-size: 13.5px; }
    .circle-hero-stats { gap: 16px; margin-top: 12px; }
    .hero-stat b { font-size: 19px; }
    .circle-hero-deco { width: 86px; height: 62px; }
    .deco-emoji { font-size: 26px; right: 26px; top: 14px; }
    .deco-emoji-2 { font-size: 18px; }
    .deco-ring-1 { width: 62px; height: 62px; }
    .deco-ring-2 { width: 40px; height: 40px; right: 22px; top: 12px; }
    .deco-ring-3 { width: 24px; height: 24px; right: 44px; top: 4px; }
    .circle-head { padding: 24px 0; }
    .circle-head-icon { width: 70px; height: 70px; font-size: 38px; border-radius: 20px; }
    .circle-head-icon-img { width: 70px; height: 70px; border-radius: 20px; }
    .circle-card-icon-img { width: 60px; height: 60px; border-radius: 16px; bottom: -28px; }
    .circle-head-name { font-size: 24px; }
    .circle-head-meta { flex-wrap: wrap; }
    .cp-view { padding: 18px 16px; }
    .cp-view-title { font-size: 21px; }
}
