/* =========================================================
   本地信息港 — 全局样式
   ========================================================= */
:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-soft: #ccfbf1;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f7f5;
  --card: #ffffff;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --warning: #b45309;
  --warning-soft: #fef3c7;
  --success: #047857;
  --success-soft: #d1fae5;
  --info: #1d4ed8;
  --info-soft: #dbeafe;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.14);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding-left: 1.2em; }
::selection { background: var(--primary-soft); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------- 头部 --------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, #0f766e, #115e59); color: #fff;
  font-weight: 800; font-size: 20px; letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 16px; letter-spacing: 0.02em; }
.brand-text em { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav a {
  padding: 8px 13px; border-radius: 8px; color: var(--ink-2); font-size: 14.5px;
  font-weight: 500; white-space: nowrap;
}
.main-nav a:hover { background: #f1f5f9; text-decoration: none; }
.main-nav a.active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.menu-toggle { display: none; }

.user-box { position: relative; }
.user-trigger {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  background: #fff; border-radius: 999px; padding: 4px 11px 4px 4px; cursor: pointer;
  font-size: 13.5px; font-weight: 500;
}
.user-trigger img, .avatar-fallback {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
}
.avatar-fallback { display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); width: 168px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 50;
}
.user-dropdown.show { display: block; }
.user-dropdown a, .user-dropdown button {
  display: block; width: 100%; text-align: left; padding: 9px 11px; border: 0;
  background: none; border-radius: 7px; color: var(--ink-2); font-size: 14px; cursor: pointer;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: #f1f5f9; text-decoration: none; color: var(--ink); }

/* ---------------------------------- 布局 --------------------------------- */
.site-main { max-width: 1200px; margin: 0 auto; padding: 30px 24px 70px; min-height: 62vh; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--primary); text-transform: uppercase; margin-bottom: 8px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 6px; }
.page-head p { color: var(--muted); max-width: 720px; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------------------------- 按钮 --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 10px; padding: 9px 16px;
  font-size: 14px; font-weight: 600; cursor: pointer; line-height: 1.4;
  transition: background 0.16s, border-color 0.16s, transform 0.12s, box-shadow 0.16s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-secondary:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: #eef2f6; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #991b1b; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #065f46; }
.btn-wechat { background: #07c160; color: #fff; }
.btn-wechat:hover { background: #06ad56; }
.btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 11px; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line);
  background: #fff; border-radius: 9px; cursor: pointer; font-size: 17px; color: var(--ink-2);
}
.icon-btn:hover { background: #f8fafc; }

/* ---------------------------------- 标签 --------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px;
  border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.7;
  white-space: nowrap;
}
.badge-soft { background: var(--primary-soft); color: var(--primary-dark); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-muted { background: #f1f5f9; color: var(--muted); }
.badge + .badge { margin-left: 4px; }

/* ---------------------------------- Hero --------------------------------- */
.hero {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: end;
  background:
    radial-gradient(900px 380px at 100% -10%, rgba(15, 118, 110, 0.12), transparent 60%),
    linear-gradient(135deg, #ffffff, #f2f7f5);
  border: 1px solid var(--line); border-radius: 22px; padding: 40px;
  margin-bottom: 26px; box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.035em; margin-bottom: 12px; }
.hero-copy p { color: var(--ink-2); font-size: 16.5px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.notice-bar {
  margin-top: 18px; background: #fff; border: 1px solid #d7e5e2; border-left: 4px solid var(--primary);
  border-radius: 8px; padding: 10px 14px; color: var(--ink-2); font-size: 13.5px;
}

/* --------------------------------- 板块导航 -------------------------------- */
.board-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; scrollbar-width: thin; }
.board-tab {
  display: flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 500;
  white-space: nowrap; text-decoration: none;
}
.board-tab:hover { border-color: #b9d8d3; text-decoration: none; }
.board-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.board-tab em { font-style: normal; font-size: 11px; background: rgba(255, 255, 255, 0.24); padding: 0 6px; border-radius: 999px; }
.board-tab:not(.active) em { background: #f1f5f9; color: var(--muted); }
.board-icon { font-size: 15px; }
.board-intro {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary);
  border-radius: 12px; padding: 18px 22px; margin-bottom: 18px;
}
.board-intro h2 { font-size: 20px; margin-bottom: 4px; }
.board-intro p { color: var(--muted); font-size: 14px; }

/* --------------------------------- 工具栏 -------------------------------- */
.list-toolbar { display: flex; gap: 12px; align-items: center; margin: 18px 0; flex-wrap: wrap; }
.search-box { flex: 1; min-width: 220px; }
.search-box input {
  width: 100%; padding: 10px 15px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; outline: none;
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12); }
.subtype-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 6px 13px; font-size: 13px; cursor: pointer;
}
.chip.active { background: var(--primary-soft); border-color: #99f6e4; color: var(--primary-dark); font-weight: 600; }
.select, .input, .textarea {
  width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 12px; outline: none; color: var(--ink);
}
.select { width: auto; min-width: 140px; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12); }
.textarea { resize: vertical; min-height: 100px; }
.input-sm { width: 120px; }

/* --------------------------------- 信息卡片 ------------------------------- */
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.info-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; color: inherit;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.info-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cbd5e1; text-decoration: none; }
.card-cover { width: 100%; height: 170px; object-fit: cover; background: #eef2f6; }
.card-cover-placeholder {
  display: grid; place-items: center; font-size: 44px; color: #94a3b8;
  background: linear-gradient(135deg, #eef6f4, #e2e8f0);
}
.card-body { padding: 15px 16px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-subtype { font-size: 12px; color: var(--muted); }
.info-card h3 { font-size: 17px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-excerpt {
  color: var(--muted); font-size: 13.5px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-price { font-weight: 700; color: #b45309; font-size: 16px; }
.card-foot { display: flex; gap: 10px; flex-wrap: wrap; color: #94a3b8; font-size: 11.5px; margin-top: auto; padding-top: 4px; }

/* ---------------------------------- 详情 --------------------------------- */
.detail-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.detail-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.detail-status { margin-bottom: 12px; }
.detail-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.detail-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 22px; }
.detail-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.detail-head h1 { font-size: clamp(24px, 3.5vw, 34px); letter-spacing: -0.02em; margin-bottom: 8px; }
.detail-subline { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.gallery { margin-bottom: 24px; }
.gallery-main { position: relative; border-radius: 14px; overflow: hidden; background: #eef2f6; }
.gallery-main img { width: 100%; max-height: 520px; object-fit: contain; background: #0f172a0a; }
.exif-note {
  position: absolute; left: 12px; bottom: 12px; background: rgba(15, 23, 42, 0.72); color: #fff;
  font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
}
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumb { border: 2px solid transparent; border-radius: 9px; padding: 0; overflow: hidden; cursor: pointer; background: none; width: 78px; height: 62px; flex-shrink: 0; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--primary); }
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; }
.detail-content { font-size: 16px; line-height: 1.9; color: var(--ink-2); overflow-wrap: anywhere; }
.detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line); }
.detail-meta-item { display: flex; flex-direction: column; gap: 2px; }
.detail-meta-item span { font-size: 12px; color: var(--muted); }
.detail-meta-item strong { font-size: 14px; font-weight: 600; }
.qualification-strip { margin-top: 24px; padding: 16px 18px; background: #f8fafc; border-radius: 12px; border: 1px solid var(--line); }
.qualification-strip h4 { font-size: 14px; margin-bottom: 10px; }
.qualification-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13.5px; padding: 5px 0; }
.qualification-line em { font-style: normal; color: var(--muted); font-size: 12px; }
.contact-card, .safety-card, .owner-actions {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 14px;
}
.contact-card { position: sticky; top: 86px; }
.contact-card h3 { font-size: 16px; margin-bottom: 12px; }
.contact-type { font-size: 12px; color: var(--muted); }
.contact-value { font-size: 21px; font-weight: 700; letter-spacing: 0.02em; margin: 4px 0 10px; word-break: break-all; }
.contact-value.masked { color: var(--ink-2); letter-spacing: 0.08em; }
.safety-card h4, .owner-actions h4 { font-size: 14px; margin-bottom: 8px; }
.safety-card ul { color: var(--muted); font-size: 13px; padding-left: 18px; }
.safety-card li { margin: 3px 0; }
.owner-actions .btn { margin-top: 8px; }

/* ---------------------------------- 表单 --------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 30px; box-shadow: var(--shadow); max-width: 900px; }
.form-section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.form-section:first-child { padding-top: 0; }
.form-section:last-of-type { border-bottom: 0; }
.form-section h3 { font-size: 17px; margin-bottom: 10px; }
.section-note, .hint { color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.board-hint { color: var(--muted); font-size: 13px; margin-top: 8px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field > span em { font-style: normal; color: var(--muted); font-weight: 400; font-size: 12px; }
.check-line { display: flex; align-items: flex-start; gap: 9px; padding: 6px 0; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check-line input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; }
.check-line.strong { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 11px 13px; margin: 12px 0; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; flex-wrap: wrap; }
.photo-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 12px 0; }
.photo-preview { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f8fafc; }
.photo-preview img { width: 100%; height: 86px; object-fit: cover; }
.photo-preview figcaption { font-size: 11px; color: var(--muted); padding: 4px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gps-box {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; margin: 12px 0;
}
.gps-box strong { font-size: 13.5px; }
.gps-box p { color: var(--muted); font-size: 12px; margin-top: 2px; }
.upload-zone {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  border: 1.5px dashed #cbd5e1; border-radius: 14px; padding: 28px; cursor: pointer; background: #fbfdfc;
}
.upload-zone:hover { border-color: var(--primary); background: #f0fdfa; }
.upload-zone input { display: none; }
.upload-icon { font-size: 30px; color: var(--primary); line-height: 1; }
.upload-zone em { font-style: normal; color: var(--muted); font-size: 12px; }
.file-input { padding: 7px; }

/* -------------------------------- 结果页 -------------------------------- */
.result-card { max-width: 680px; margin: 30px auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 46px 34px; box-shadow: var(--shadow); }
.result-icon {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  font-size: 30px; font-weight: 700;
}
.result-success .result-icon { background: var(--success-soft); color: var(--success); }
.result-error .result-icon { background: var(--danger-soft); color: var(--danger); }
.result-card h1 { font-size: 26px; margin-bottom: 8px; }
.result-card > p { color: var(--muted); }
.result-notice { text-align: left; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 13px 16px; margin: 18px 0; }
.result-notice p { color: #92400e; font-size: 13px; margin-top: 3px; }
.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* --------------------------------- 我的信息 ------------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { border: 0; background: none; padding: 10px 16px; cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.my-list { display: flex; flex-direction: column; gap: 14px; }
.my-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.my-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.my-card-head time { color: var(--muted); font-size: 12px; }
.my-card h3 { font-size: 17px; margin: 9px 0 6px; }
.my-excerpt { color: var(--muted); font-size: 13.5px; }
.my-meta { display: flex; gap: 14px; flex-wrap: wrap; color: #94a3b8; font-size: 12px; margin-top: 8px; }
.reject-reason { background: var(--danger-soft); color: var(--danger); font-size: 13px; border-radius: 8px; padding: 8px 11px; margin-top: 8px; }
.my-qualification { margin-top: 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.my-qualification > strong { font-size: 13px; display: block; margin-bottom: 6px; }
.my-qual-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; padding: 4px 0; }
.upload-link { color: var(--primary); font-size: 12.5px; cursor: pointer; text-decoration: underline; }
.my-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.text-success { color: var(--success); }

/* --------------------------------- 后台审核 ------------------------------- */
.audit-filters { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.counts { display: flex; gap: 8px; flex-wrap: wrap; }
.count-chip { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 13px; text-align: left; cursor: pointer; display: flex; flex-direction: column; }
.count-chip strong { font-size: 13px; }
.count-chip span { font-size: 11.5px; color: var(--warning); }
.count-chip.active { border-color: var(--primary); background: var(--primary-soft); }
.filter-group { display: flex; gap: 8px; }
.audit-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; }
.audit-list { display: flex; flex-direction: column; gap: 9px; max-height: calc(100vh - 220px); overflow-y: auto; padding-right: 4px; }
.audit-item {
  text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px;
}
.audit-item:hover { border-color: #cbd5e1; }
.audit-item.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12); }
.audit-item-top { display: flex; gap: 5px; flex-wrap: wrap; }
.audit-item strong { font-size: 14.5px; line-height: 1.45; }
.audit-item-meta { display: flex; gap: 10px; color: var(--muted); font-size: 11.5px; }
.risk-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.risk-dots span { font-size: 10.5px; background: var(--warning-soft); color: var(--warning); padding: 1px 7px; border-radius: 999px; }
.audit-detail { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; position: sticky; top: 86px; min-height: 300px; }
.panel-head { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.detail-panel h2 { font-size: 21px; margin-bottom: 6px; }
.panel-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.panel-section { padding: 14px 0; border-top: 1px solid var(--line); }
.panel-section h4 { font-size: 13.5px; margin-bottom: 8px; color: var(--ink-2); }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); font-size: 14px; }
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.panel-grid > div { display: flex; flex-direction: column; gap: 1px; }
.panel-grid span { font-size: 11.5px; color: var(--muted); }
.panel-grid strong { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.panel-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.panel-photos a { width: 92px; height: 78px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.panel-photos img { width: 100%; height: 100%; object-fit: cover; }
.tag-list { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { background: #f1f5f9; border-radius: 999px; font-size: 11.5px; padding: 2px 9px; color: var(--ink-2); }
.tag-warning { background: var(--warning-soft); color: var(--warning); }
.ai-box { background: #f8fafc; border-radius: 10px; padding: 13px 14px; border: 1px dashed #cbd5e1; }
.ai-box pre { white-space: pre-wrap; max-height: 240px; overflow: auto; background: #fff; padding: 10px; border-radius: 7px; font-size: 12.5px; }
.ai-box summary { cursor: pointer; font-size: 12.5px; color: var(--primary); margin: 6px 0; }
.qual-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13px; padding: 4px 0; }
.panel-actions { display: flex; gap: 9px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 6px; }

/* --------------------------------- 仪表盘 -------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px; color: inherit; position: relative; overflow: hidden;
}
.stat-card:hover { text-decoration: none; border-color: #cbd5e1; }
.stat-card span { font-size: 12.5px; color: var(--muted); }
.stat-card strong { font-size: 28px; letter-spacing: -0.02em; }
.stat-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line); }
.stat-card.tone-danger::before { background: var(--danger); }
.stat-card.tone-warning::before { background: var(--warning); }
.stat-card.tone-success::before { background: var(--success); }
.stat-card.tone-info::before { background: var(--info); }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.panel-card.span-2 { grid-column: span 2; }
.panel-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-card-head h2 { font-size: 17px; }
.panel-card-head a { font-size: 12.5px; }
.budget-line { margin-bottom: 14px; }
.budget-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 7px; }
.progress { height: 8px; border-radius: 999px; background: #f1f5f9; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #14b8a6, #0f766e); border-radius: 999px; }
.top-users h4 { font-size: 13px; margin: 8px 0; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.table.compact th, .table.compact td { padding: 6px 6px; }
.trend-chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 6px; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.trend-bars { flex: 1; display: flex; align-items: flex-end; gap: 3px; width: 100%; }
.bar { flex: 1; border-radius: 4px 4px 0 0; min-height: 3px; }
.bar-new { background: #5eead4; }
.bar-views { background: #0f766e; }
.trend-label { font-size: 10.5px; color: var(--muted); }
.chart-legend { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-new { background: #5eead4; }
.dot-views { background: #0f766e; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #f1f5f9; }
.timeline li:last-child { border-bottom: 0; }
.timeline-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 7px; flex-shrink: 0; }
.timeline strong { font-size: 13.5px; }
.timeline p { color: var(--muted); font-size: 12px; }
.timeline time { color: #94a3b8; font-size: 11px; }
.alert { border-radius: 10px; padding: 11px 14px; font-size: 13px; margin-bottom: 12px; }
.alert-warning { background: var(--warning-soft); color: #92400e; border: 1px solid #fde68a; }

/* --------------------------------- 板块管理 ------------------------------- */
.board-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.board-config .config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.config-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-bottom: 14px; }
.admin-assign { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-assign strong { font-size: 13px; }
.admin-assign p { font-size: 13px; }
.admin-actions { display: flex; gap: 6px; }
.switch { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.switch input { accent-color: var(--primary); }
.user-results { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; max-height: 300px; overflow: auto; }
.user-result { display: flex; justify-content: space-between; gap: 12px; text-align: left; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; cursor: pointer; }
.user-result:hover { border-color: var(--primary); }
.user-result em { font-style: normal; color: var(--muted); font-size: 11.5px; }
.search-row { display: flex; gap: 8px; }

/* --------------------------------- 资质 --------------------------------- */
.qualification-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.qual-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 17px 19px; }
.qual-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.qual-head strong { font-size: 14.5px; margin-left: 6px; }
.qual-info { font-size: 13.5px; }
.qual-comment { background: #f8fafc; border-radius: 7px; padding: 7px 10px; font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.qual-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }

/* --------------------------------- 设置 --------------------------------- */
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.settings-main, .settings-side { display: flex; flex-direction: column; gap: 16px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid #f1f5f9; }
.setting-row.column { flex-direction: column; align-items: stretch; gap: 8px; }
.setting-row:last-child { border-bottom: 0; }
.setting-row span { display: flex; flex-direction: column; }
.setting-row strong { font-size: 13.5px; font-weight: 600; }
.setting-row em { font-style: normal; color: var(--muted); font-size: 11.5px; }
.setting-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.setting-row.locked { opacity: 0.75; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 0; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }
.plain-list { color: var(--muted); font-size: 13px; padding-left: 18px; }
.plain-list li { margin: 4px 0; }

/* --------------------------------- 举报 --------------------------------- */
.report-list { display: flex; flex-direction: column; gap: 13px; }
.report-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 17px 20px; }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.report-head time { color: var(--muted); font-size: 12px; }
.report-card h3 { font-size: 16px; margin: 8px 0 4px; }
.report-detail { background: #f8fafc; border-radius: 8px; padding: 9px 11px; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.report-actions { display: flex; gap: 8px; margin-top: 12px; }

/* --------------------------------- 登录 --------------------------------- */
.auth-card { max-width: 460px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.auth-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; }
.auth-brand h1 { font-size: 22px; }
.auth-brand p { color: var(--muted); font-size: 13px; }
.auth-divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11.5px; margin: 24px 0 14px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }

/* --------------------------------- 文档页 -------------------------------- */
.policy-page { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 40px 44px; box-shadow: var(--shadow); }
.policy-page h1 { font-size: 30px; margin-bottom: 4px; }
.policy-updated { color: var(--muted); font-size: 12.5px; margin-bottom: 24px; }
.policy-body h2 { font-size: 17px; margin: 24px 0 8px; }
.policy-body p, .policy-body li { color: var(--ink-2); font-size: 14.5px; line-height: 1.85; }
.policy-body ul { padding-left: 20px; }
.policy-foot { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }

/* --------------------------------- 分页 --------------------------------- */
.pager-host { margin-top: 24px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; }
.pager-btn { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 5px 10px; font-size: 13px; cursor: pointer; }
.pager-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager-btn:disabled { opacity: 0.4; cursor: default; }
.pager-gap { color: var(--muted); }
.pager-total { color: var(--muted); font-size: 12px; margin-left: 8px; }

/* --------------------------------- 状态页 -------------------------------- */
.loading-block { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 60px 20px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d7e3e0; border-top-color: var(--primary); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state, .error-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state h1, .error-state h1 { font-size: 24px; color: var(--ink); margin-bottom: 6px; }
.empty-icon { font-size: 40px; color: #cbd5e1; margin-bottom: 8px; }
.empty-state .btn, .error-state .btn { margin-top: 16px; }
.error-state p { color: var(--danger); }

/* --------------------------------- 弹窗 --------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(15, 23, 42, 0.45);
  display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity 0.18s;
}
.modal-overlay.show { opacity: 1; }
.modal {
  width: 100%; max-width: 540px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  transform: translateY(8px); transition: transform 0.18s; max-height: 88vh; display: flex; flex-direction: column;
}
.modal-overlay.show .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-header h3 { font-size: 16px; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 20px; border-top: 1px solid var(--line); }
.modal-hint { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.confirm-text { font-size: 14.5px; }
.modal .field { margin-top: 12px; }

/* --------------------------------- Toast -------------------------------- */
#toast-host { position: fixed; right: 20px; bottom: 24px; z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast {
  background: #0f172a; color: #fff; padding: 11px 16px; border-radius: 10px;
  font-size: 13.5px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s; max-width: min(420px, calc(100vw - 40px));
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: #065f46; }
.toast-error { background: #991b1b; }
.toast-info { background: #1e293b; }

/* --------------------------------- 页脚 --------------------------------- */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 30px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 36px 24px 26px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; max-width: 300px; }
.footer-brand strong { color: #fff; font-size: 16px; }
.footer-brand p { font-size: 12.5px; color: #94a3b8; margin-top: 4px; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-links h4 { font-size: 12px; color: #fff; margin-bottom: 9px; letter-spacing: 0.06em; }
.footer-links a, .footer-links p { display: block; color: #94a3b8; font-size: 12.5px; margin: 5px 0; }
.footer-links a:hover { color: #5eead4; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #1e293b; max-width: 1200px; margin: 0 auto; padding: 14px 24px 22px;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: #64748b; font-size: 11.5px;
}
.noscript { position: fixed; inset: 0; background: #fff; display: grid; place-items: center; z-index: 200; }

/* --------------------------------- 响应式 -------------------------------- */
@media (max-width: 1024px) {
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .contact-card { position: static; }
  .audit-layout { grid-template-columns: 320px minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-admin-grid { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero-actions { justify-content: flex-start; }
}

@media (max-width: 780px) {
  .header-inner { padding: 0 16px; gap: 12px; height: 60px; }
  .desktop-only { display: none; }
  .menu-toggle { display: grid; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 60px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 16px;
    flex-direction: column; align-items: stretch; gap: 2px; box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  }
  body.nav-open .main-nav { display: flex; }
  .main-nav a { padding: 11px 12px; }
  .site-main { padding: 20px 16px 54px; }
  .hero { padding: 26px 22px; border-radius: 18px; }
  .hero h1 { font-size: 32px; }
  .info-grid { grid-template-columns: 1fr; }
  .detail-card { padding: 20px; }
  .detail-aside { grid-template-columns: 1fr; }
  .form-card { padding: 20px 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .panel-card.span-2 { grid-column: span 1; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .audit-layout { grid-template-columns: 1fr; }
  .audit-list { max-height: none; }
  .audit-detail { position: static; }
  .qualification-list { grid-template-columns: 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
  .config-toggles { grid-template-columns: 1fr; }
  .board-config .config-grid { grid-template-columns: 1fr; }
  .footer-inner { padding: 28px 18px 20px; }
  .footer-links { gap: 30px; }
  .policy-page { padding: 26px 20px; border-radius: 14px; }
  .policy-page h1 { font-size: 24px; }
  .tabs { gap: 0; }
  .tab { padding: 9px 12px; font-size: 13px; }
  .detail-meta { grid-template-columns: 1fr; }
  .result-card { padding: 32px 20px; }
  .my-card { padding: 15px; }
}

@media (max-width: 420px) {
  .brand-text em { display: none; }
  .hero h1 { font-size: 28px; }
  .btn-lg { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .stat-grid { grid-template-columns: 1fr; }
}
