/* ============================================================
   宣城零工平台 · 页面与业务组件样式（腾讯云风格 · 紫色主色）
   ============================================================ */

/* ============ 顶栏 & 导航 ============ */
.topbar { height: var(--topbar-h); background: var(--navy-900); color: rgba(255,255,255,.72); font-size: 12px; }
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 16px; }
.topbar__left a, .topbar__link { color: rgba(255,255,255,.72); }
.topbar__left a:hover, .topbar__link:hover { color: #fff; }
.topbar__sep { opacity: .3; }
.topbar__link { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; font-size: 12px; padding: 0; }

.site-nav { height: var(--nav-h); background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 900; transition: box-shadow .2s; }
.site-nav.is-scrolled { box-shadow: var(--shadow-1); }
.site-nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark { width: 36px; height: 36px; border-radius: var(--r-md); display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand-6), var(--cyan-500)); box-shadow: var(--shadow-brand); }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__text b { font-size: 18px; letter-spacing: -.3px; color: var(--navy-900); }
.logo__text small { font-size: 10px; color: var(--text-3); }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a { padding: 8px 14px; border-radius: var(--r-md); color: var(--text-2); font-size: 14px; transition: all .18s; }
.nav-links a:hover { color: var(--brand-7); background: var(--brand-1); }
.nav-links a.is-active { color: var(--brand-7); background: var(--brand-1); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--text-1); }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #1B1233 0%, #3A2478 48%, #5B32C4 100%); color: #fff; padding: 68px 0 80px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, #000 30%, transparent 75%); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -260px; background: radial-gradient(circle, rgba(0,167,196,.28), transparent 62%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 20px; font-size: 12px; background: rgba(255,255,255,.06); }
.hero__title { margin: 18px 0 12px; font-size: 44px; line-height: 1.2; font-weight: 700; letter-spacing: -1px; }
.hero__title em { font-style: normal; color: #C7B2F6; }
.hero__sub { margin: 0 0 28px; font-size: 16px; color: rgba(255,255,255,.75); }
.hero-search { display: grid; grid-template-columns: 1fr 150px 150px 1.6fr auto; gap: 8px; padding: 10px; background: rgba(255,255,255,.98); border-radius: var(--r-lg); box-shadow: var(--shadow-2); max-width: 920px; }
.hero-search .input, .hero-search .select { border-color: var(--line); }
.hero-tags { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.7); display: flex; gap: 12px; flex-wrap: wrap; }
.hero-tags a { color: rgba(255,255,255,.85); }
.hero-tags a:hover { color: #fff; text-decoration: underline; }
.hero__stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat__num { font-family: var(--font-num); font-size: 32px; font-weight: 700; line-height: 1; }
.hero-stat__num small { font-size: 14px; font-weight: 400; margin-left: 3px; color: rgba(255,255,255,.7); }
.hero-stat__label { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 6px; }

/* ============ 区块 ============ */
.band { background: #fff; }
.band--soft { background: var(--bg); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.seg { display: inline-flex; padding: 3px; background: var(--bg); border-radius: var(--r-md); gap: 2px; }
.seg a { padding: 6px 16px; border-radius: var(--r-sm); color: var(--text-2); font-size: 13px; }
.seg a.is-active { background: #fff; color: var(--brand-7); box-shadow: var(--shadow-1); font-weight: 600; }

/* ============ 信息卡片 & 网格 ============ */
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.job-card { display: flex; flex-direction: column; overflow: hidden; }
.lc-cover { width: 100%; height: 160px; object-fit: cover; background: var(--bg); }
.lc-cover--ph, .lc-cover--video { display: grid; place-items: center; color: rgba(255,255,255,.85); position: relative; }
.lc-cover--video video { width: 100%; height: 100%; object-fit: cover; }
.lc-video-badge { position: absolute; bottom: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; background: rgba(0,0,0,.55); border-radius: 12px; font-size: 11px; }
.lc-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lc-title { font-size: 16px; font-weight: 600; color: var(--text-1); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lc-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--text-2); font-size: 12px; }
.lc-meta span { display: inline-flex; align-items: center; gap: 3px; }
.lc-foot { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; }
.lc-price { font-size: 22px; font-weight: 700; color: var(--brand-7); }
.lc-price small { font-size: 12px; font-weight: 400; color: var(--text-3); }
.lc-author { text-align: right; font-size: 12px; color: var(--text-2); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.lc-time { font-size: 11px; color: var(--text-4); }

.home-news-grid { grid-template-columns: 1.4fr 1fr; }

/* ============ 区域 ============ */
.district-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.district-card { text-align: center; padding: 18px 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: all .18s; }
.district-card:hover { border-color: var(--brand-5); box-shadow: var(--shadow-2); transform: translateY(-2px); color: var(--brand-7); }
.district-card b { display: block; font-size: 15px; }
.district-card small { color: var(--text-3); font-size: 12px; }

/* ============ 特性 / 资讯 / CTA / 扫码 ============ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { text-align: center; padding: 28px 16px; }
.feature__icon { width: 52px; height: 52px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-1); color: var(--brand-7); }
.feature h4 { margin: 0 0 6px; }
.feature p { margin: 0; color: var(--text-2); font-size: 13px; }
.news-list { display: flex; flex-direction: column; }
.news-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-item__date { flex-shrink: 0; font-family: var(--font-num); font-size: 13px; color: var(--brand-7); padding-top: 2px; }
.news-item__title { font-size: 15px; font-weight: 500; line-height: 1.5; }
.news-item__title:hover { color: var(--brand-7); }
.news-item__src { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.qr-band { display: flex; align-items: center; gap: 40px; justify-content: center; }
.qr-band img { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; background: #fff; }
.cta { background: linear-gradient(120deg, #3A2478, #5B32C4); color: #fff; text-align: center; padding: 56px 0; }
.cta h2 { font-size: 30px; margin: 0 0 10px; }

/* ============ 列表页 ============ */
.list-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; position: sticky; top: calc(var(--nav-h) + 16px); }
.filter-group { margin-bottom: 20px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group h4 { font-size: 13px; margin: 0 0 10px; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--text-2); font-size: 12px; cursor: pointer; }
.chip:hover { border-color: var(--brand-5); color: var(--brand-7); }
.chip.is-active { background: var(--brand-1); border-color: var(--brand-7); color: var(--brand-7); font-weight: 600; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.list-count { color: var(--text-2); font-size: 13px; }
.list-count b { color: var(--brand-7); font-size: 16px; }

/* ============ 详情页 ============ */
.breadcrumb { padding: 16px 0; font-size: 13px; color: var(--text-3); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.detail-card { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.detail-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.detail-title h1 { font-size: 24px; margin: 0; }
.detail-price { color: var(--brand-7); font-size: 30px; font-weight: 700; margin: 12px 0; }
.detail-price small { font-size: 14px; font-weight: 400; color: var(--text-3); }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin: 20px 0; }
.spec-grid > div { background: #fff; padding: 12px; }
.spec-grid dt { font-size: 12px; color: var(--text-3); }
.spec-grid dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; }
.detail-section { margin-top: 24px; }
.detail-section h3 { font-size: 16px; border-left: 3px solid var(--brand-7); padding-left: 10px; margin-bottom: 12px; }
.detail-video { width: 100%; max-height: 420px; border-radius: var(--r-md); background: #000; margin-top: 16px; }
.detail-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.detail-imgs img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--r-md); }
.map-box { height: 260px; border-radius: var(--r-md); overflow: hidden; background-color: #eef1f6; background-image: linear-gradient(rgba(91,50,196,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(91,50,196,.08) 1px, transparent 1px); background-size: 32px 32px; display: grid; place-items: center; }
.aside-card { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); position: sticky; top: calc(var(--nav-h) + 16px); }
.aside-author { display: flex; align-items: center; gap: 12px; }
.aside-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-1); display: grid; place-items: center; color: var(--brand-7); }
.qa-item { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.qa-item:last-child { border-bottom: 0; }
.qa-q { color: var(--text-1); }
.qa-a { color: var(--brand-7); margin-top: 6px; }

/* ============ 发布 / 表单页 ============ */
.form-card { max-width: 800px; margin: 0 auto; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.form-section { margin-bottom: 28px; }
.form-section h3 { font-size: 16px; border-left: 3px solid var(--brand-7); padding-left: 10px; margin-bottom: 16px; }
.type-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.type-option { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer; text-align: center; transition: all .18s; }
.type-option.is-active { border-color: var(--brand-7); background: var(--brand-1); color: var(--brand-7); }
.type-option b { display: block; font-size: 15px; }
.type-option small { font-size: 12px; color: var(--text-3); }
.upload-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.upload-thumb { width: 90px; height: 90px; border-radius: var(--r-md); overflow: hidden; position: relative; border: 1px solid var(--line); }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-thumb .del { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.6); color: #fff; border: 0; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; font-size: 12px; line-height: 20px; }
.upload-btn { width: 90px; height: 90px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); display: grid; place-items: center; cursor: pointer; color: var(--text-3); background: var(--bg-soft); }
.upload-btn:hover { border-color: var(--brand-5); color: var(--brand-7); }
.map-picker__canvas { height: 280px; border-radius: var(--r-md); overflow: hidden; margin-top: 8px; }
.map-picker__search { display: flex; gap: 8px; }
.map-picker__fallback { padding: 20px; background: var(--bg); border-radius: var(--r-md); color: var(--text-2); font-size: 13px; }
.readonly-field { padding: 9px 12px; background: var(--bg); border-radius: var(--r-md); color: var(--text-2); font-size: 14px; }

/* ============ 认证页 ============ */
.auth-layout { min-height: calc(100vh - var(--nav-h) - 200px); display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center; padding: 48px 0; }
.auth-aside h1 { font-size: 36px; margin: 0 0 16px; }
.auth-aside p { color: var(--text-2); font-size: 15px; }
.auth-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.auth-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.auth-tabs a { padding-bottom: 10px; color: var(--text-2); border-bottom: 2px solid transparent; cursor: pointer; }
.auth-tabs a.is-active { color: var(--brand-7); border-color: var(--brand-7); font-weight: 600; }
.sms-row { display: flex; gap: 8px; }
.sms-row .input { flex: 1; }
.sms-row .btn { flex-shrink: 0; }

/* ============ 我的中心 ============ */
.me-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.me-side { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; }
.me-side a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-md); color: var(--text-2); font-size: 14px; }
.me-side a:hover { background: var(--bg); }
.me-side a.is-active { background: var(--brand-1); color: var(--brand-7); font-weight: 600; }
.me-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; min-height: 300px; }
.me-panel h2 { font-size: 20px; margin: 0 0 20px; }
.info-grid { display: grid; grid-template-columns: 120px 1fr; gap: 12px 20px; font-size: 14px; }
.info-grid dt { color: var(--text-3); }
.info-grid dd { margin: 0; }
.my-job-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.my-job-row:last-child { border-bottom: 0; }
.my-job-row__main { flex: 1; min-width: 0; }
.my-job-row__title { font-weight: 600; }
.my-job-row__meta { font-size: 12px; color: var(--text-3); }
.my-job-row__actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ============ 聊天 ============ */
.chat-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 0; height: 560px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.conv-list { border-right: 1px solid var(--line); overflow-y: auto; }
.conv-item { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.conv-item:hover, .conv-item.is-active { background: var(--brand-1); }
.conv-item__name { font-weight: 600; font-size: 14px; }
.conv-item__last { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: 14px 20px; border-bottom: 1px solid var(--line); font-weight: 600; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; background: var(--bg-soft); }
.bubble { max-width: 70%; padding: 10px 14px; border-radius: 12px; margin-bottom: 12px; font-size: 14px; line-height: 1.6; word-break: break-word; }
.bubble--peer { background: #fff; border: 1px solid var(--line); }
.bubble--mine { background: var(--brand-7); color: #fff; margin-left: auto; }
.chat-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chat-input .textarea { min-height: 44px; height: 44px; }

/* ============ 资讯详情 / 富文本正文 ============ */
.news-article { max-width: 800px; margin: 0 auto; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.news-article h1 { font-size: 28px; margin: 0 0 12px; }
.news-article__meta { color: var(--text-3); font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.rich-content { font-size: 15px; line-height: 1.9; color: var(--text-1); padding-top: 20px; }
.rich-content h2 { font-size: 22px; margin: 24px 0 12px; }
.rich-content h3 { font-size: 18px; margin: 20px 0 10px; }
.rich-content p { margin: 12px 0; }
.rich-content img { max-width: 100%; border-radius: var(--r-md); margin: 12px 0; }
.rich-content blockquote { margin: 16px 0; padding: 12px 16px; background: var(--brand-1); border-left: 3px solid var(--brand-7); color: var(--text-2); }
.rich-content a { color: var(--brand-7); text-decoration: underline; }
.rich-content ul, .rich-content ol { padding-left: 24px; }

/* ============ QQ 客服 ============ */
.qq-chat { display: inline-flex; align-items: center; gap: 8px; }
.qq-chat__avatar { border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-5); background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.qq-chat:hover .qq-chat__avatar { transform: scale(1.1); box-shadow: var(--shadow-brand); }
.qq-chat__label { font-size: 12px; }
.topbar .qq-chat__label { color: rgba(255,255,255,.72); }

/* ============ 页脚 ============ */
.footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 56px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; }
.footer .logo__text b { color: #fff; }
.footer__brand p { font-size: 13px; margin: 16px 0; }
.footer__qr-wrap { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; }
.footer__qr-wrap img { background: #fff; border-radius: 6px; padding: 4px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer__col h4 { color: #fff; font-size: 15px; margin: 0 0 6px; }
.footer__col a:hover { color: #fff; }
.footer__col .text-3 { color: rgba(255,255,255,.5); }
.footer__qq { margin-bottom: 4px; }
.footer__qq .qq-chat__label { color: rgba(255,255,255,.8); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.55); }
.footer__bottom p { margin: 4px 0; }
.footer__beian { text-align: center; }
.footer__bottom a { color: rgba(255,255,255,.75); }
.footer__bottom a:hover { color: #fff; text-decoration: underline; }

/* ============ 抽屉 / PWA ============ */
.drawer-mask { position: fixed; inset: 0; background: rgba(27,18,51,.45); z-index: 1200; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-mask.is-open { opacity: 1; pointer-events: auto; }
.drawer { position: absolute; right: 0; top: 0; bottom: 0; width: 300px; background: #fff; padding: 20px; overflow-y: auto; transform: translateX(100%); transition: transform .2s; }
.drawer-mask.is-open .drawer { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 600; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.drawer__close { background: none; border: 0; font-size: 18px; cursor: pointer; }
.drawer nav { display: flex; flex-direction: column; padding: 12px 0; }
.drawer nav a { padding: 12px 8px; border-radius: var(--r-md); }
.drawer nav a:hover { background: var(--brand-1); color: var(--brand-7); }
.drawer__foot { border-top: 1px solid var(--line); padding-top: 16px; }
.install-guide__qr img { border: 1px solid var(--line); border-radius: 8px; }

/* ============ 移动端 tabbar ============ */
.tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; height: 56px; background: rgba(255,255,255,.98); border-top: 1px solid var(--line); backdrop-filter: blur(12px); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--text-3); }
.tabbar a.is-active { color: var(--brand-7); }

/* ============ 管理后台 ============ */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--navy-900); padding: 20px 12px; color: rgba(255,255,255,.7); }
.admin-side .logo__text b { color: #fff; font-size: 16px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-md); font-size: 14px; }
.admin-nav a:hover { background: rgba(255,255,255,.08); }
.admin-nav a.is-active { background: var(--brand-7); color: #fff; }
.admin-main { min-width: 0; }
.admin-top { height: 56px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.admin-content { padding: 24px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.stat-card__num { font-family: var(--font-num); font-size: 28px; font-weight: 700; color: var(--brand-7); }
.stat-card__label { font-size: 13px; color: var(--text-3); }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding: 12px 0; }
.bar-chart__bar { flex: 1; background: linear-gradient(180deg, var(--brand-5), var(--brand-7)); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: auto; }
.rich-editor { border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; }
.rich-editor__bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.rich-editor__btn { min-width: 28px; height: 28px; border: 1px solid transparent; background: #fff; border-radius: var(--r-sm); cursor: pointer; font-size: 13px; color: var(--text-2); }
.rich-editor__btn:hover, .rich-editor__btn.is-active { background: var(--brand-1); color: var(--brand-7); border-color: var(--brand-2); }
.rich-editor__sep { width: 1px; background: var(--line); margin: 4px 3px; }
.rich-editor__area { min-height: 300px; padding: 16px; outline: none; font-size: 14px; line-height: 1.8; }
.rich-editor__area:empty::before { content: attr(data-placeholder); color: var(--text-4); }
.rich-editor__area h2 { font-size: 20px; } .rich-editor__area h3 { font-size: 17px; }
.rich-editor__area blockquote { border-left: 3px solid var(--brand-7); background: var(--brand-1); padding: 8px 12px; margin: 12px 0; }
.rich-editor__area img { max-width: 100%; }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .district-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --nav-h: 56px; }
  .topbar { display: none; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .tabbar { display: flex; }
  body { padding-bottom: 56px; }
  .hero { padding: 48px 0 56px; }
  .hero__title { font-size: 30px; }
  .hero-search { grid-template-columns: 1fr 1fr; }
  .hero-search .btn { grid-column: 1 / -1; }
  .hero__stats { gap: 24px; }
  .list-layout, .me-layout, .chat-layout, .auth-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .me-side { display: flex; overflow-x: auto; gap: 4px; }
  .me-side a { white-space: nowrap; }
  .conv-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 180px; }
  .chat-layout { height: auto; }
  .chat-body { height: 360px; }
  .auth-aside { display: none; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { padding: 12px; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .qr-band { flex-direction: column; gap: 20px; text-align: center; }
  .home-news-grid { grid-template-columns: 1fr; }
  .detail-imgs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .district-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .type-picker { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-search { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}
@media (display-mode: standalone) { #installApp, #installAppM { display: none !important; } }
@media print { .topbar, .site-nav, .footer, .tabbar, .aside-card, .my-job-row__actions { display: none !important; } body { background: #fff; } .detail-layout { grid-template-columns: 1fr; } }
