/* ===== OPC 社区 · 设计系统 ===== */
:root {
  --brand: #0f4fd8;
  --brand-dark: #0a3aa8;
  --brand-mid: #1f6bf4;
  --brand-light: #4b93ff;
  --brand-soft: #ecf3ff;
  --brand-line: #d3e2fb;
  --ink: #0b1a33;
  --ink2: #34445c;
  --muted: #6b7c93;
  --faint: #9aa8bb;
  --line: #e6ecf5;
  --line-soft: #f0f4fa;
  --bg: #f4f7fc;
  --card: #ffffff;
  --ok: #0f9d76;
  --warn: #d99616;
  --danger: #d94a4a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(13, 40, 90, .05), 0 6px 20px rgba(13, 40, 90, .05);
  --shadow-2: 0 12px 36px rgba(13, 40, 90, .10);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Inter, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; max-width: 100%; }
html { overflow-x: hidden; }
body { overflow-x: clip; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
input, select, textarea { font-family: inherit; font-size: 14px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 66px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(140deg, #0b3fb0, #1f6bf4 60%, #4b93ff);
  color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .5px;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(15, 79, 216, .28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 15.5px; letter-spacing: .2px; }
.brand-sub { font-size: 10.5px; color: var(--faint); letter-spacing: .6px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--ink2); font-weight: 500;
  transition: .18s;
}
.nav a:hover { background: var(--brand-soft); color: var(--brand); }
.nav a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.region-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--ink2);
  font-size: 13px; font-weight: 500; cursor: pointer; transition: .18s;
  white-space: nowrap;
}
.region-btn .lb { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.region-btn:hover { border-color: var(--brand-line); color: var(--brand); background: var(--brand-soft); }
.region-btn .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.region-btn .auto {
  font-size: 10px; padding: 1px 5px; border-radius: 4px;
  background: var(--brand-soft); color: var(--brand); font-weight: 600;
}

.hsearch { position: relative; }
.hsearch input {
  width: 220px; height: 36px; padding: 0 38px 0 34px;
  border: 1px solid var(--line); border-radius: 9px; background: #f7f9fd;
  outline: none; transition: .18s;
}
.hsearch input:focus { background: #fff; border-color: var(--brand-mid); box-shadow: 0 0 0 3px rgba(31,107,244,.12); width: 250px; }
.hsearch .icon { position: absolute; left: 11px; top: 8px; color: var(--faint); font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 18px; border-radius: 9px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn-primary { background: linear-gradient(180deg, #2568ef, #0f4fd8); color: #fff; box-shadow: 0 4px 14px rgba(15,79,216,.24); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink2); }
.btn-ghost:hover { border-color: var(--brand-line); color: var(--brand); }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-soft:hover { background: #ddeaff; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.avatar {
  border-radius: 50%; display: grid; place-items: center; color: #fff;
  font-weight: 700; flex: 0 0 auto; background: linear-gradient(140deg, #2b6ef0, #0f4fd8);
  overflow: hidden; user-select: none;
}
.avatar.sq { border-radius: 10px; }
.avatar-lg { width: 52px; height: 52px; font-size: 18px; }
.avatar-md { width: 38px; height: 38px; font-size: 14px; }
.avatar-sm { width: 28px; height: 28px; font-size: 12px; }

.user-chip { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 6px 4px 4px; border-radius: 30px; transition: .18s; }
.user-chip:hover { background: var(--line-soft); }
.dropdown {
  position: absolute; top: 56px; right: 24px; width: 200px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2);
  padding: 6px; z-index: 100; display: none;
}
.dropdown.open { display: block; }
.dropdown a, .dropdown button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 8px; font-size: 13.5px; color: var(--ink2); background: none; border: 0; cursor: pointer;
}
.dropdown a:hover, .dropdown button:hover { background: var(--brand-soft); color: var(--brand); }
.dropdown .split { height: 1px; background: var(--line); margin: 5px 4px; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden; margin-top: 22px;
  border-radius: 20px; padding: 44px 46px;
  background: linear-gradient(120deg, #08245e 0%, #0d3f9e 42%, #1f6bf4 76%, #2f86ff 100%);
  color: #fff; box-shadow: 0 20px 48px rgba(10, 42, 110, .25);
}
.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: 46px 46px; mask-image: linear-gradient(120deg, #000, transparent 78%);
}
.hero::after {
  content: ''; position: absolute; right: -120px; top: -140px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(90,168,255,.55), transparent 62%); filter: blur(6px);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .85fr; gap: 40px; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 30px;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255,255,255,.22);
  font-size: 12.5px; font-weight: 500; backdrop-filter: blur(4px);
}
.hero h1 { font-size: 38px; line-height: 1.28; margin: 16px 0 12px; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: #9ec8ff; }
.hero p.lead { font-size: 14.5px; color: rgba(255, 255, 255, .78); max-width: 520px; line-height: 1.75; }
.hero-search {
  margin-top: 22px; display: flex; gap: 8px; max-width: 520px;
  background: rgba(255,255,255,.97); padding: 6px; border-radius: 12px; box-shadow: 0 10px 30px rgba(4, 22, 62, .22);
}
.hero-search input { flex: 1; height: 40px; border: 0; outline: none; padding: 0 12px; background: transparent; font-size: 14px; }
.hero-search .btn { height: 40px; }
.hero-stats { display: flex; gap: 30px; margin-top: 26px; }
.hero-stats .num { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.hero-stats .lbl { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 2px; }

.hero-side {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px; padding: 20px; backdrop-filter: blur(10px);
}
.hero-side h4 { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.72); display: flex; align-items: center; gap: 6px; }
.local-line { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 4px; }
.local-line strong { font-size: 22px; font-weight: 800; }
.local-line span { font-size: 12px; color: rgba(255,255,255,.6); }
.local-actions { display: flex; gap: 8px; margin-top: 16px; }
.local-actions .btn { flex: 1; height: 34px; font-size: 13px; }
.btn-on-dark { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.26); color: #fff; }
.btn-on-dark:hover { background: rgba(255,255,255,.26); }
.btn-white { background: #fff; color: var(--brand); }
.hot-list { margin-top: 14px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 12px; }
.hot-list a { display: flex; gap: 8px; font-size: 12.8px; color: rgba(255,255,255,.86); padding: 5px 0; line-height: 1.45; }
.hot-list a:hover { color: #fff; }
.hot-list .idx { color: #9ec8ff; font-weight: 700; width: 12px; flex: 0 0 auto; }

/* ---------- 快捷入口 ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.quick-card {
  display: flex; gap: 12px; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  transition: .2s; box-shadow: var(--shadow-1);
}
.quick-card:hover { transform: translateY(-2px); border-color: var(--brand-line); box-shadow: var(--shadow-2); }
.quick-icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-soft); font-size: 18px; flex: 0 0 auto;
}
.quick-card .t { font-weight: 700; font-size: 14px; }
.quick-card .d { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* ---------- 主布局 ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; margin: 22px 0 60px; align-items: start; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.card-head {
  display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft);
}
.card-head h3 { font-size: 15px; }
.card-head .more { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.card-head .more:hover { color: var(--brand); }
.card-body { padding: 18px 20px; }

.tabs { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; padding: 6px 13px; border-radius: 8px; font-size: 13.5px;
  color: var(--ink2); cursor: pointer; border: 1px solid transparent; background: none; transition: .18s;
}
.tab:hover { background: var(--brand-soft); color: var(--brand); }
.tab.active { background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 3px 10px rgba(15,79,216,.22); }

.feed-toolbar { display: flex; align-items: center; padding: 12px 20px 0; gap: 10px; }
.feed-toolbar .count { font-size: 12.5px; color: var(--muted); }
.sort-switch { margin-left: auto; display: flex; gap: 2px; background: var(--line-soft); border-radius: 8px; padding: 3px; }
.sort-switch button { border: 0; background: none; padding: 4px 10px; border-radius: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.sort-switch button.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 3px rgba(13,40,90,.1); }

/* ---------- 帖子 ---------- */
.post-list { padding: 6px 20px 4px; }
.post-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.post-item:last-child { border-bottom: 0; }
.post-main { flex: 1; min-width: 0; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.post-meta .name { color: var(--ink2); font-weight: 600; font-size: 13px; }
.chip-region {
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 5px;
  background: var(--brand-soft); color: var(--brand); font-size: 11.5px; font-weight: 600;
}
.chip-cat {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 5px;
  background: #f2f5fa; color: var(--ink2); font-size: 11.5px; font-weight: 500;
}
.chip-top { background: #fff2e0; color: #b57209; }
.post-title { font-size: 16.5px; font-weight: 700; margin: 7px 0 6px; line-height: 1.5; letter-spacing: -.01em; }
.post-title:hover { color: var(--brand); }
.post-excerpt { font-size: 13.5px; color: var(--muted); line-height: 1.72; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { display: flex; align-items: center; gap: 16px; margin-top: 10px; font-size: 12.5px; color: var(--faint); }
.post-foot .act { display: inline-flex; align-items: center; gap: 4px; }
.post-foot .act.liked { color: var(--brand); }
.post-thumb {
  width: 92px; height: 92px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(140deg, #e8f0ff, #d5e5ff); display: grid; place-items: center;
  font-size: 26px; color: #9db9e8;
}

.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 18px; border-top: 1px solid var(--line-soft); }
.pagination button {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; color: var(--ink2); cursor: pointer;
}
.pagination button:hover:not(:disabled) { border-color: var(--brand-mid); color: var(--brand); }
.pagination button.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }
.pagination .info { font-size: 12.5px; color: var(--muted); margin-left: 8px; }

/* ---------- 侧栏 ---------- */
.aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 86px; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13px; }
.rank-row .n { width: 18px; font-weight: 800; font-size: 12px; color: var(--faint); }
.rank-row:nth-child(1) .n { color: #e0a01a; }
.rank-row:nth-child(2) .n { color: #8a9bb5; }
.rank-row:nth-child(3) .n { color: #c08a5a; }
.rank-row .bar { flex: 1; height: 6px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.rank-row .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4b93ff, #0f4fd8); }
.rank-row .v { font-size: 12px; color: var(--muted); width: 38px; text-align: right; }

.ent-mini { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); }
.ent-mini:last-child { border-bottom: 0; }
.ent-mini .logo {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto; display: grid; place-items: center;
  background: linear-gradient(140deg, #0d3f9e, #2f86ff); color: #fff; font-weight: 800; font-size: 14px;
}
.ent-mini .nm { font-size: 13px; font-weight: 600; line-height: 1.4; }
.ent-mini .sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.user-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; }
.user-row .nm { font-size: 13px; font-weight: 600; }
.user-row .sub { font-size: 11.5px; color: var(--muted); }

.promo {
  border-radius: var(--radius); padding: 20px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0a2f7d, #1f6bf4);
}
.promo::after {
  content: ''; position: absolute; right: -40px; bottom: -50px; width: 160px; height: 160px;
  border-radius: 50%; background: rgba(255,255,255,.09);
}
.promo h4 { font-size: 15px; margin-bottom: 6px; }
.promo p { font-size: 12.5px; color: rgba(255,255,255,.75); line-height: 1.7; }
.promo .btn { margin-top: 14px; position: relative; z-index: 1; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 6px; }
.field .req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; outline: none; transition: .18s; color: var(--ink);
}
.textarea { height: auto; min-height: 120px; padding: 11px 12px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand-mid); box-shadow: 0 0 0 3px rgba(31,107,244,.12); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.select { appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%236b7c93' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.checkline { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--muted); }
.checkline input { margin-top: 3px; accent-color: var(--brand); }

/* ---------- 弹窗 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(8, 22, 48, .48); backdrop-filter: blur(3px);
  z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: .2s;
}
.mask.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 620px; background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(4,18,45,.35);
  transform: translateY(12px) scale(.98); transition: .22s; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
}
.mask.open .modal { transform: none; }
.modal-head { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); }
.modal-head h3 { font-size: 16px; }
.modal-head .x { margin-left: auto; width: 30px; height: 30px; border: 0; background: var(--line-soft); border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 16px; }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line-soft); display: flex; gap: 10px; justify-content: flex-end; }

/* 地区选择器 */
.region-modal { max-width: 720px; }
.region-search { margin-bottom: 14px; }
.region-cols { display: grid; grid-template-columns: 190px 1fr; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; height: 340px; }
.region-prov { overflow-y: auto; border-right: 1px solid var(--line); background: #fafcff; }
.region-prov button {
  display: block; width: 100%; text-align: left; padding: 9px 14px; font-size: 13px;
  border: 0; background: none; cursor: pointer; color: var(--ink2); border-left: 2px solid transparent;
}
.region-prov button:hover { background: var(--brand-soft); }
.region-prov button.on { background: #fff; color: var(--brand); font-weight: 600; border-left-color: var(--brand); }
.region-city { overflow-y: auto; padding: 10px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; }
.region-city button {
  padding: 6px 12px; border-radius: 7px; border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; cursor: pointer; color: var(--ink2);
}
.region-city button:hover { border-color: var(--brand-mid); color: var(--brand); }
.region-city button.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

/* ---------- 提示 ---------- */
.toast-wrap { position: fixed; top: 78px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  padding: 10px 18px; border-radius: 9px; background: #0d1b34; color: #fff; font-size: 13px;
  box-shadow: 0 10px 30px rgba(4,18,45,.28); animation: toastIn .25s ease; max-width: 90vw;
}
.toast.err { background: #b83a3a; }
.toast.ok { background: #0d7a5f; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .ico { font-size: 34px; opacity: .35; margin-bottom: 10px; }
.empty p { font-size: 13.5px; }

.spinner { width: 20px; height: 20px; border: 2px solid var(--brand-line); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton { background: linear-gradient(90deg, #f1f5fb 25%, #e8eef8 37%, #f1f5fb 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- 页脚 ---------- */
.site-footer { background: #0a1a33; color: rgba(255,255,255,.62); padding: 46px 0 30px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h5 { color: #fff; font-size: 13px; margin-bottom: 12px; font-weight: 600; }
.footer-grid a { display: block; font-size: 12.5px; padding: 4px 0; color: rgba(255,255,255,.6); }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand .brand-name { color: #fff; }
.footer-about { font-size: 12.5px; line-height: 1.8; max-width: 300px; color: rgba(255,255,255,.5); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); margin-top: 32px; padding-top: 18px; font-size: 12px; color: rgba(255,255,255,.4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- 移动端底部导航 ---------- */
.mobile-nav { display: none; }

/* ---------- 页面通用头部 ---------- */
.page-head { padding: 30px 0 6px; }
.page-head h1 { font-size: 26px; letter-spacing: -.4px; }
.page-head p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.crumb { font-size: 12.5px; color: var(--faint); margin-bottom: 10px; }
.crumb a:hover { color: var(--brand); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 5px; font-size: 11.5px; font-weight: 600; }
.badge.green { background: #e6f6f1; color: #0b7a5d; }
.badge.blue { background: var(--brand-soft); color: var(--brand); }
.badge.orange { background: #fdf1dd; color: #a56d0d; }
.badge.gray { background: #f1f4f9; color: #6b7c93; }
.badge.red { background: #fdecec; color: #b93c3c; }

/* ---------- 企业卡片 ---------- */
.ent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ent-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: .2s; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.ent-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--brand-line); }
.ent-card .top { display: flex; gap: 12px; align-items: flex-start; }
.ent-card .logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, #0d3f9e, #2f86ff); color: #fff; font-weight: 800; font-size: 16px; flex: 0 0 auto; }
.ent-card .nm { font-size: 15px; font-weight: 700; line-height: 1.45; }
.ent-card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ent-card .desc { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 12px 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ent-card .foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-soft); display: flex; align-items: center; font-size: 12px; color: var(--muted); }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px 20px; }
.filter-bar .select { width: auto; min-width: 120px; height: 38px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .aside > * { flex: 1 1 280px; min-width: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 26px; }
  .hero-side { display: none; }
  .ent-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .wrap { padding: 0 16px; }
  .nav, .hsearch { display: none; }
  .header-inner { height: 58px; gap: 10px; }
  .brand-sub { display: none; }
  .region-btn { height: 34px; padding: 0 9px; gap: 4px; font-size: 12px; max-width: 132px; }
  .region-btn .auto { display: none; }
  .region-btn .lb { max-width: 64px; }
  .header-right { gap: 7px; }
  .header-right .btn-sm { padding: 0 10px; }
  .hero { padding: 26px 20px 24px; border-radius: 16px; margin-top: 14px; }
  .hero h1 { font-size: 25px; }
  .hero p.lead { font-size: 13px; }
  .hero-stats { gap: 22px; }
  .hero-stats .num { font-size: 19px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .quick-card { padding: 12px 14px; }
  .quick-icon { width: 34px; height: 34px; font-size: 16px; }
  .quick-card .d { display: none; }
  .layout { margin: 14px 0 84px; gap: 14px; }
  .aside { flex-direction: column; }
  .post-list { padding: 4px 16px; }
  .card-head { padding: 14px 16px; }
  .tabs { padding: 12px; }
  .post-title { font-size: 15.5px; }
  .post-thumb { display: none; }
  .post-item { padding: 14px 0; gap: 10px; }
  .ent-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .site-footer { padding: 32px 0 90px; }
  .page-head { padding: 20px 0 4px; }
  .page-head h1 { font-size: 21px; }

  .mobile-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); backdrop-filter: blur(12px);
  }
  .mobile-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--faint); padding: 4px 0; }
  .mobile-nav a .i { font-size: 19px; line-height: 1.1; filter: grayscale(1); opacity: .6; }
  .mobile-nav a.on { color: var(--brand); font-weight: 600; }
  .mobile-nav a.on .i { filter: none; opacity: 1; }

  .region-cols { grid-template-columns: 120px 1fr; height: 300px; }
  .modal { max-width: 100%; border-radius: 14px; }
  .toast-wrap { top: 66px; }
  .dropdown { right: 12px; top: 52px; }
}

/* ===================== AI 助手 ===================== */
.ai-page { padding-top: 22px; padding-bottom: 40px; }

.ai-hero {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 24px; border-radius: 18px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 160% at 8% 0%, #2f7cf6 0%, #0f4fd8 42%, #0a2f7a 100%);
  box-shadow: 0 18px 40px rgba(12, 48, 122, .22);
}
.ai-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 18px 18px; opacity: .5;
  mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
}
.ai-hero-left { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.ai-orb {
  width: 54px; height: 54px; border-radius: 16px; flex: none; display: grid; place-items: center;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}
.ai-orb span { font-size: 16px; font-weight: 800; letter-spacing: 1px; }
.ai-hero h1 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.ai-hero p { margin-top: 4px; font-size: 13px; color: rgba(255,255,255,.82); }
.ai-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ai-hero-tags span {
  font-size: 11.5px; padding: 3px 9px; border-radius: 20px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); color: #eaf2ff;
}
.ai-hero-right { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.ai-model { display: flex; align-items: center; gap: 8px; }
.ai-model .lb { font-size: 12px; color: rgba(255,255,255,.75); white-space: nowrap; }
.ai-model .select {
  height: 36px; border-radius: 9px; min-width: 210px; max-width: 260px;
  background-color: rgba(255,255,255,.96); border-color: rgba(255,255,255,.5); font-size: 12.5px; color: var(--ink);
}
.ai-hero .btn-ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.32); color: #fff; }
.ai-hero .btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }

.ai-badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .6px; padding: 3px 8px; border-radius: 6px;
  background: #fff2d8; color: #96620a; border: 1px solid #f6dfae;
}
.ai-badge.mock { background: #fff2d8; color: #96620a; border-color: #f6dfae; }

.ai-shell {
  display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 16px; margin-top: 16px;
  height: clamp(520px, calc(100vh - 306px), 880px);
}

.ai-side {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-1);
  padding: 18px 16px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto;
}
.ai-side-sec h5 { font-size: 12px; color: var(--faint); font-weight: 600; letter-spacing: .3px; margin-bottom: 9px; }
.ai-quick { display: flex; flex-direction: column; gap: 6px; }
.ai-quick-item {
  display: flex; gap: 8px; align-items: flex-start; text-align: left; cursor: pointer;
  padding: 9px 10px; border-radius: 10px; border: 1px solid transparent; background: #f7faff;
  color: var(--ink2); font-size: 12.5px; line-height: 1.55; transition: .16s;
}
.ai-quick-item span { flex: none; filter: grayscale(.2); }
.ai-quick-item:hover { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-dark); }

.ai-history { display: flex; flex-direction: column; gap: 2px; }
.ai-history-item { display: flex; align-items: center; gap: 4px; border-radius: 8px; padding: 2px 4px; }
.ai-history-item:hover, .ai-history-item.on { background: var(--line-soft); }
.ai-history-item .t {
  flex: 1; min-width: 0; text-align: left; border: 0; background: transparent; cursor: pointer;
  font-size: 12.5px; color: var(--ink2); padding: 6px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ai-history-item.on .t { color: var(--brand); font-weight: 600; }
.ai-history-item .x {
  border: 0; background: transparent; color: var(--faint); cursor: pointer; font-size: 10px;
  opacity: 0; padding: 4px; transition: .15s;
}
.ai-history-item:hover .x { opacity: 1; }
.ai-side-empty { font-size: 12px; color: var(--faint); padding: 4px; }
.ai-side-note {
  margin-top: auto; font-size: 11.5px; line-height: 1.85; color: var(--muted);
  background: #f7faff; border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 11px;
}

.ai-main {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.ai-msgs { flex: 1; overflow-y: auto; padding: 22px 24px 8px; background: linear-gradient(180deg, #fbfdff, #fff 140px); scroll-behavior: smooth; }
.ai-msgs::-webkit-scrollbar { width: 8px; }
.ai-msgs::-webkit-scrollbar-thumb { background: #dbe6f5; border-radius: 4px; }

.ai-empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.ai-empty .ico { font-size: 34px; margin-bottom: 10px; }
.ai-empty h3 { font-size: 15px; color: var(--ink2); margin-bottom: 6px; }
.ai-empty p { font-size: 12.5px; }

.ai-row { display: flex; margin: 14px 0; }
.ai-row.user { justify-content: flex-end; }
.ai-row.bot { align-items: flex-start; gap: 10px; }
.ai-row.sys { justify-content: center; margin: 10px 0; }
.ai-row.sys span {
  font-size: 11.5px; color: var(--muted); background: #f2f6fc; border-radius: 20px; padding: 4px 12px;
}
.ai-avatar {
  width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: linear-gradient(140deg, #2f7cf6, #0a3aa8); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .5px; box-shadow: 0 4px 12px rgba(15,79,216,.26);
}
.ai-bubble { max-width: 84%; border-radius: 14px; padding: 11px 15px; font-size: 13.5px; line-height: 1.75; }
.ai-bubble.user {
  background: linear-gradient(135deg, #2f74f5, #0f4fd8); color: #fff;
  border-radius: 14px 14px 4px 14px; box-shadow: 0 6px 18px rgba(15,79,216,.2); word-break: break-word;
}
.ai-bubble.bot {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  border-radius: 4px 14px 14px 14px; box-shadow: 0 2px 10px rgba(13,40,90,.04); word-break: break-word;
}
.ai-bubble.bot.error { background: #fff7f7; border-color: #f3d6d6; color: #a83a3a; }
.ai-bubble.bot.error .err-hint { font-size: 11.5px; color: #b06a6a; margin-top: 4px; }

.ai-bubble .md p { margin: 0 0 8px; }
.ai-bubble .md p:last-child { margin-bottom: 0; }
.ai-bubble .md h3, .ai-bubble .md h4 { font-size: 14px; margin: 12px 0 6px; color: var(--ink); }
.ai-bubble .md h3:first-child, .ai-bubble .md h4:first-child { margin-top: 0; }
.ai-bubble .md ul, .ai-bubble .md ol { margin: 6px 0 8px; padding-left: 19px; }
.ai-bubble .md li { margin: 3px 0; }
.ai-bubble .md blockquote {
  margin: 10px 0; padding: 8px 12px; border-left: 3px solid var(--brand-light);
  background: var(--brand-soft); border-radius: 0 8px 8px 0; color: var(--ink2); font-size: 12.5px;
}
.ai-bubble .md hr { border: 0; border-top: 1px dashed var(--line); margin: 12px 0; }
.ai-bubble .md strong { color: var(--ink); }
.ai-bubble .md code { background: #f1f5fb; border-radius: 4px; padding: 1px 5px; font-size: 12.5px; }

.ai-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 9px; padding-top: 7px; border-top: 1px dashed var(--line-soft);
  font-size: 11px; color: var(--faint);
}
.ai-tag { padding: 1px 7px; border-radius: 5px; font-size: 10.5px; font-weight: 600; }
.ai-tag.mock { background: #fff4e0; color: #9a6608; }
.ai-tag.real { background: #e9f8f1; color: #0d7a58; }
.ai-copy { margin-left: auto; border: 0; background: transparent; color: var(--faint); font-size: 11px; cursor: pointer; }
.ai-copy:hover { color: var(--brand); }

.ai-bubble.pending { display: flex; align-items: center; gap: 5px; color: var(--muted); }
.ai-bubble.pending em { font-style: normal; font-size: 12px; margin-left: 4px; }
.ai-bubble.pending .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand-light);
  animation: aiBlink 1.2s infinite ease-in-out;
}
.ai-bubble.pending .dot:nth-child(2) { animation-delay: .18s; }
.ai-bubble.pending .dot:nth-child(3) { animation-delay: .36s; }
@keyframes aiBlink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.ai-compose { border-top: 1px solid var(--line); background: #fff; padding: 12px 16px 14px; }
.ai-compose textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  font-size: 13.5px; line-height: 1.6; resize: none; outline: none; min-height: 44px; max-height: 160px;
  background: #fbfdff; transition: .16s;
}
.ai-compose textarea:focus { border-color: var(--brand-mid); box-shadow: 0 0 0 3px rgba(31,107,244,.1); background: #fff; }
.ai-compose-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.ai-compose-bar .hint { font-size: 11.5px; color: var(--faint); }
.ai-compose-bar .btn { height: 34px; padding: 0 18px; border-radius: 9px; font-size: 13px; }

/* 悬浮入口与抽屉 */
.ai-fab {
  position: fixed; right: 26px; bottom: 28px; z-index: 120; height: 52px; padding: 0 18px;
  border: 0; border-radius: 26px; color: #fff; cursor: pointer; display: flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, #2f7cf6, #0a3aa8); font-size: 13.5px; font-weight: 600;
  box-shadow: 0 14px 30px rgba(15,79,216,.34); transition: .18s;
}
.ai-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(15,79,216,.4); }
.ai-fab .mark {
  width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255,255,255,.2); font-size: 9.5px; font-weight: 800; letter-spacing: .5px;
}
.ai-fab .dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: #7dffcf; box-shadow: 0 0 0 3px rgba(125,255,207,.25);
}

.ai-drawer {
  position: fixed; right: 24px; bottom: 92px; width: 396px; height: min(620px, calc(100vh - 136px));
  background: #fff; border: 1px solid var(--line); border-radius: 18px; z-index: 130;
  box-shadow: 0 28px 70px rgba(9,30,66,.24); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; pointer-events: none; transform: translateY(12px) scale(.985); transition: .22s ease;
}
.ai-drawer.open { opacity: 1; pointer-events: auto; transform: none; }
.ai-drawer-head {
  display: flex; align-items: center; gap: 10px; padding: 13px 15px;
  background: linear-gradient(120deg, #f2f7ff, #eaf2ff); border-bottom: 1px solid var(--line);
}
.ai-drawer-head .who { display: flex; flex-direction: column; }
.ai-drawer-head .who b { font-size: 13.5px; }
.ai-drawer-head .who span { font-size: 11px; color: var(--muted); }
.ai-drawer-head .close {
  margin-left: auto; width: 28px; height: 28px; border-radius: 8px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.8); color: var(--muted); font-size: 14px;
}
.ai-drawer-head .close:hover { color: var(--ink); }
.ai-drawer-msgs { flex: 1; overflow-y: auto; padding: 14px 14px 4px; background: #fcfdff; }
.ai-drawer-msgs .ai-bubble { font-size: 13px; max-width: 88%; }
.ai-drawer-msgs .ai-row { margin: 11px 0; }
.ai-drawer-msgs .ai-avatar { width: 26px; height: 26px; border-radius: 8px; font-size: 10px; }
.ai-drawer-foot { border-top: 1px solid var(--line); padding: 10px 12px 12px; background: #fff; }
.ai-drawer-foot textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; font-size: 13px;
  resize: none; outline: none; min-height: 40px; max-height: 110px; background: #fbfdff; line-height: 1.6;
}
.ai-drawer-foot textarea:focus { border-color: var(--brand-mid); background: #fff; }
.ai-drawer-foot .bar { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.ai-drawer-foot .bar .hint { font-size: 11px; color: var(--faint); }
.ai-drawer-foot .bar .btn { height: 32px; padding: 0 16px; font-size: 12.5px; border-radius: 8px; }

/* 写作助手（发帖 / 入驻） */
.ai-tool {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 9px; padding: 9px 11px; background: linear-gradient(120deg, #f5f9ff, #f0f6ff);
  border: 1px solid #e2ecfb; border-radius: 10px;
}
.ai-tool .tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .4px; color: #0a3aa8;
  background: #fff; border: 1px solid #d3e3fb; border-radius: 5px; padding: 2px 6px;
}
.ai-tool .lb { font-size: 12px; color: var(--muted); margin-right: 2px; }
.ai-tool button {
  border: 1px solid #d3e3fb; background: #fff; color: var(--brand-dark); cursor: pointer;
  font-size: 12px; padding: 4px 10px; border-radius: 7px; transition: .15s;
}
.ai-tool button:hover { background: var(--brand-soft); border-color: var(--brand-light); }
.ai-tool button:disabled { opacity: .5; cursor: wait; }
.ai-tool .spacer { flex: 1; }
.ai-tool .state { font-size: 11.5px; color: var(--muted); }

.ai-result {
  margin-top: 10px; border: 1px solid var(--brand-line); background: #fbfdff; border-radius: 10px; padding: 12px 14px;
}
.ai-result .hd { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.ai-result .hd b { font-size: 12px; color: var(--brand-dark); }
.ai-result .bd { font-size: 13px; line-height: 1.75; color: var(--ink2); }
.ai-result .bd p { margin: 0 0 6px; }
.ai-result .ft { display: flex; gap: 8px; margin-top: 10px; }
.ai-result .ft button {
  font-size: 12px; padding: 4px 10px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--brand-line); background: #fff; color: var(--brand-dark);
}
.ai-result .ft button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.ai-title-list { display: flex; flex-direction: column; gap: 6px; }
.ai-title-list button {
  text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 8px 10px; font-size: 13px; color: var(--ink); cursor: pointer;
}
.ai-title-list button:hover { border-color: var(--brand-light); background: var(--brand-soft); color: var(--brand-dark); }

@media (max-width: 1080px) {
  .ai-shell { grid-template-columns: 232px minmax(0, 1fr); }
  .ai-model .select { min-width: 180px; }
}

@media (max-width: 820px) {
  .ai-page { padding: 12px 14px 24px; }
  .ai-hero { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 14px; }
  .ai-hero h1 { font-size: 19px; }
  .ai-orb { width: 46px; height: 46px; border-radius: 13px; }
  .ai-hero-right { width: 100%; flex-wrap: wrap; }
  .ai-model { flex: 1; }
  .ai-model .select { min-width: 0; width: 100%; }
  .ai-shell { grid-template-columns: 1fr; height: calc(100vh - 392px); min-height: 400px; margin-top: 12px; }
  .ai-side { display: none; }
  .ai-hero-tags { display: none; }
  .ai-hero p { font-size: 12.5px; }
  .ai-msgs { padding: 16px 14px 6px; }
  .ai-bubble { max-width: 88%; }
  .ai-compose { padding: 10px 12px 12px; }
  .ai-compose-bar .hint { display: none; }
  .ai-compose-bar .btn { width: 100%; }
  .ai-fab { right: 14px; bottom: 74px; height: 46px; padding: 0 15px; font-size: 12.5px; }
  .ai-fab .mark { width: 21px; height: 21px; }
  .ai-drawer { right: 0; left: 0; bottom: 0; width: 100%; height: 84vh; border-radius: 18px 18px 0 0; }
  .ai-drawer-head { padding: 12px 14px; }
  .ai-tool { padding: 8px 9px; }
  .ai-tool button { font-size: 11.5px; padding: 4px 8px; }
}

/* ---------------- 智能广告位 ---------------- */
.ad-banner { display: flex; align-items: center; gap: 18px; padding: 20px 26px; border-radius: 14px; color: #fff; text-decoration: none; position: relative; margin-top: 18px; overflow: hidden; transition: .2s; box-shadow: var(--shadow-1); }
.ad-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.ad-banner .t { font-size: 16.5px; font-weight: 800; letter-spacing: .3px; }
.ad-banner .d { font-size: 12.5px; color: rgba(255,255,255,.82); margin-top: 5px; line-height: 1.6; max-width: 640px; }
.ad-banner .ad-go { margin-left: auto; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32); border-radius: 20px; padding: 7px 16px; white-space: nowrap; }
.ad-flag { position: absolute; top: 0; right: 12px; font-size: 10px; font-weight: 600; letter-spacing: 1px; color: rgba(255,255,255,.92); background: rgba(0,0,0,.22); padding: 2px 9px 3px; border-radius: 0 0 7px 7px; z-index: 1; }
.ad-item { position: relative; }
.ad-feed { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-left: 3px solid var(--ad-c, var(--brand)); border-radius: 12px; padding: 14px 18px; background: color-mix(in srgb, var(--ad-c, #1f6bf4) 6%, #fff); transition: .18s; }
.ad-feed:hover { box-shadow: var(--shadow-1); transform: translateY(-1px); }
.ad-feed .ad-ico { font-size: 22px; }
.ad-feed .ad-t { font-size: 14.5px; font-weight: 700; margin-top: 7px; color: var(--ink); }
.ad-feed .ad-d { font-size: 12.5px; color: var(--ink2); margin-top: 5px; line-height: 1.65; }
.ad-feed .ad-more { display: inline-block; font-size: 12px; font-weight: 600; color: var(--ad-c, var(--brand)); margin-top: 9px; }
.ad-ent { position: relative; text-decoration: none; color: inherit; border: 1px solid color-mix(in srgb, var(--ad-c, #1f6bf4) 30%, var(--line)); border-left: 3px solid var(--ad-c, var(--brand)); border-radius: var(--radius); padding: 18px; background: color-mix(in srgb, var(--ad-c, #1f6bf4) 5%, #fff); display: flex; flex-direction: column; transition: .2s; }
.ad-ent:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.ad-ent .ad-ico { width: 42px; height: 42px; border-radius: 11px; background: color-mix(in srgb, var(--ad-c, #1f6bf4) 12%, #fff); display: grid; place-items: center; font-size: 20px; }
.ad-ent .ad-t { font-size: 14px; font-weight: 700; margin-top: 10px; }
.ad-ent .ad-d { font-size: 12px; color: var(--ink2); margin-top: 5px; line-height: 1.6; flex: 1; }
.ad-side { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-left: 3px solid var(--ad-c, var(--brand)); border-radius: 12px; padding: 14px 16px; background: color-mix(in srgb, var(--ad-c, #1f6bf4) 6%, #fff); transition: .18s; }
.ad-side:hover { box-shadow: var(--shadow-1); }
.ad-side .ad-ico { font-size: 20px; }
.ad-side .ad-t { font-size: 13.5px; font-weight: 700; margin-top: 6px; }
.ad-side .ad-d { font-size: 12px; color: var(--ink2); margin-top: 4px; line-height: 1.6; }
.ad-side .ad-more { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--ad-c, var(--brand)); margin-top: 8px; }
@media (max-width: 820px) {
  .ad-banner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 18px; margin-top: 14px; }
  .ad-banner .ad-go { margin-left: 0; }
}

/* ---------------- 帮助中心 ---------------- */
.help-search-wrap { margin-top: 16px; }
.help-search { position: relative; max-width: 620px; margin: 0 auto; }
.help-search input { width: 100%; height: 48px; border: 1.5px solid var(--line); border-radius: 24px; padding: 0 88px 0 46px; font-size: 14px; outline: none; transition: .2s; background: #fff; }
.help-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.help-search-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 15px; opacity: .6; }
.help-search-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: none; border-radius: 50%; background: var(--bg2); cursor: pointer; color: var(--ink2); font-size: 12px; }
.help-search-clear:hover { background: var(--line); }
.help-cat { margin-bottom: 26px; }
.help-cat:last-of-type { margin-bottom: 18px; }
.help-cat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.help-cat-ico { width: 40px; height: 40px; border-radius: 11px; background: color-mix(in srgb, var(--brand) 8%, #fff); display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.help-cat-head h2 { font-size: 16px; margin: 0; }
.help-cat-head p { margin: 2px 0 0; }
.help-cat-n { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); border-radius: 12px; padding: 3px 10px; white-space: nowrap; }
.help-art { display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: .15s; border-radius: 8px; }
.help-art:last-child { border-bottom: none; }
.help-art:hover { background: color-mix(in srgb, var(--brand) 4%, #fff); padding-left: 10px; padding-right: 10px; }
.help-art .t { font-size: 14px; font-weight: 600; color: var(--ink); }
.help-art .d { margin-top: 3px; line-height: 1.6; }
.help-art-views { white-space: nowrap; font-size: 11.5px; }
.help-tag { display: inline-block; font-size: 11px; font-weight: 600; color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); border-radius: 4px; padding: 2px 8px; margin-top: 8px; }
.help-search-head { text-align: center; padding: 6px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.help-noresult { text-align: center; padding: 44px 16px; }
.help-bottom { text-align: center; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 6px; }
.help-article .crumb a { color: var(--brand); text-decoration: none; }
.help-meta { margin-top: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.md-body { margin-top: 18px; font-size: 14px; line-height: 1.9; color: var(--ink); }
.md-body h2 { font-size: 16.5px; margin: 22px 0 10px; padding-left: 10px; border-left: 3px solid var(--brand); }
.md-body h3 { font-size: 15px; margin: 18px 0 8px; }
.md-body h4, .md-body h5 { font-size: 14px; margin: 14px 0 6px; }
.md-body p { margin: 10px 0; }
.md-body ul, .md-body ol { margin: 10px 0; padding-left: 22px; }
.md-body li { margin: 5px 0; }
.md-body blockquote { margin: 14px 0; padding: 12px 16px; background: color-mix(in srgb, var(--brand) 6%, #fff); border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; color: var(--ink2); font-size: 13.5px; }
.md-body blockquote p { margin: 4px 0; }
.md-code { background: #0f1b33; color: #cfe0ff; border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 12.5px; line-height: 1.7; margin: 12px 0; }
.md-inline { background: var(--bg2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: 12.5px; color: var(--brand); }
.md-table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; }
.md-body table { width: 100%; border-collapse: collapse; font-size: 13px; }
.md-body th { background: var(--bg2); font-weight: 700; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.md-body td { padding: 10px 14px; border-bottom: 1px solid var(--line); line-height: 1.7; }
.md-body tr:last-child td { border-bottom: none; }
.help-vote { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.help-vote-btn { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 7px 16px; font-size: 12.5px; cursor: pointer; transition: .15s; }
.help-vote-btn:hover { border-color: var(--brand); color: var(--brand); }
.help-vote-btn:disabled { opacity: .5; cursor: default; }
.help-prevnext { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13px; }
.help-prevnext a { color: var(--brand); text-decoration: none; font-weight: 600; }
.help-prevnext a:hover { text-decoration: underline; }
.help-related { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.help-rel { text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: .15s; }
.help-rel:hover { border-color: var(--brand); box-shadow: var(--shadow-1); }
.help-rel .t { font-size: 13.5px; font-weight: 700; }
.help-rel .d { margin-top: 4px; line-height: 1.6; }
.help-hot-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px dashed var(--line); text-decoration: none; color: inherit; font-size: 13px; font-weight: 600; }
.help-hot-item:last-child { border-bottom: none; }
.help-hot-item:hover { color: var(--brand); }
.help-fb-types { display: flex; gap: 8px; margin-bottom: 12px; }
.help-fb-type { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 0; font-size: 12.5px; cursor: pointer; transition: .15s; }
.help-fb-type.on { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, #fff); font-weight: 700; }
.help-fb-types + textarea, .help-fb-types ~ input { border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 13px; outline: none; font-family: inherit; }
.help-fb-types + textarea:focus, .help-fb-types ~ input:focus { border-color: var(--brand); }
@media (max-width: 820px) {
  .help-related { grid-template-columns: 1fr; }
  .help-search input { padding-right: 44px; }
  .help-cat-head p { display: none; }
}

/* ---------------- 悬浮二维码（扫码访问） ---------------- */
.qr-fab {
  position: fixed; left: 26px; bottom: 28px; z-index: 120; width: 56px; height: 56px;
  border: 0; border-radius: 16px; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px; color: #fff;
  background: linear-gradient(135deg, #34d399, #0a8f5f);
  box-shadow: 0 14px 30px rgba(10,143,95,.3); transition: .18s;
}
.qr-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(10,143,95,.36); }
.qr-fab .ico { font-size: 17px; line-height: 1; }
.qr-fab .lbl { font-size: 9.5px; font-weight: 700; line-height: 1.25; letter-spacing: .5px; }
.qr-pop {
  position: fixed; left: 26px; bottom: 96px; z-index: 130; width: 232px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-2); padding: 18px; text-align: center;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: .18s;
}
.qr-pop.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.qr-img { width: 196px; height: 196px; margin: 0 auto; display: grid; place-items: center; border-radius: 12px; background: var(--bg2); overflow: hidden; }
.qr-img img { width: 100%; height: 100%; display: block; }
.qr-tip { font-size: 12.5px; font-weight: 700; color: var(--ink); margin: 12px 0 0; line-height: 1.5; }
.qr-url { font-size: 11px; color: var(--ink2); margin: 5px 0 0; word-break: break-all; }
@media (max-width: 820px) { .qr-fab, .qr-pop { display: none; } }

/* ---------------- 手机首页九宫格入口 ---------------- */
.m-grid-wrap { display: none; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.m-grid-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 4px 12px; text-decoration: none; transition: .15s;
}
.m-grid-item:active { background: color-mix(in srgb, var(--brand) 6%, #fff); }
.m-grid-item .ico { font-size: 24px; line-height: 1; }
.m-grid-item .t { font-size: 11.5px; font-weight: 600; color: var(--ink); }
@media (max-width: 820px) {
  .m-grid-wrap { display: block; }
  .quick-grid { display: none; }
}

/* ---------------- 广告幻灯轮播 ---------------- */
.ad-carousel { position: relative; margin-top: 18px; border-radius: 14px; overflow: hidden; }
.ad-track { display: flex; transition: transform .45s ease; }
.ad-track .ad-banner { flex: 0 0 100%; margin-top: 0; border-radius: 0; box-shadow: none; }
.ad-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.ad-dots button { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.45); transition: .2s; }
.ad-dots button.on { background: #fff; width: 18px; border-radius: 4px; }
.ad-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.24); color: #fff; font-size: 17px; line-height: 1;
  display: grid; place-items: center; opacity: 0; transition: .2s;
}
.ad-carousel:hover .ad-nav { opacity: 1; }
.ad-nav.prev { left: 10px; }
.ad-nav.next { right: 10px; }
.ad-nav:active { background: rgba(0,0,0,.4); }
@media (max-width: 820px) {
  .ad-carousel { margin-top: 12px; border-radius: 12px; }
  .ad-nav { display: none; }
  .ad-track .ad-banner { min-height: 118px; padding: 16px 18px; }
}

/* ---------------- 超小屏适配（≤400px，杜绝横向溢出） ---------------- */
@media (max-width: 400px) {
  .wrap { padding: 0 12px; }
  .header-inner { height: 54px; gap: 8px; }
  .brand { gap: 7px; }
  .brand-mark { width: 30px; height: 30px; font-size: 11px; border-radius: 8px; }
  .brand-name { font-size: 13px; }
  .header-right { gap: 6px; }
  .region-btn { height: 32px; padding: 0 7px; font-size: 11.5px; max-width: 110px; gap: 4px; }
  .region-btn .lb { max-width: 50px; }
  .site-header .btn-sm { height: 32px; padding: 0 9px; font-size: 12px; }
  .site-header .header-right .btn-primary.btn-sm { display: none; }
  .site-header .user-chip .small { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-nav a { font-size: 10px; }
  .mobile-nav a .i { font-size: 17px; }
  .hero { padding: 20px 14px 18px; }
  .hero h1 { font-size: 21px; }
  .m-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* ---------------- 企业名录 · 行业九宫格（仅手机端） ---------------- */
.ind-grid-card { display: none; }
@media (max-width: 820px) {
  .ind-grid-card { display: block; }
  .ind-grid-card .m-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 0; }
  .ind-grid-card .m-grid-item { padding: 12px 4px; }
  .ind-grid-card .m-grid-item .t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.m-grid-item.on { background: var(--brand-soft); border-color: var(--brand-line); }
.m-grid-item.on .t { color: var(--brand); }
.m-grid-item.on .ico { filter: none; }
