/* ===== GEO 智能管理平台 · 视觉规范 ===== */
:root {
  --bg: #f2f7fc;
  --panel: #ffffff;
  --ink: #14293f;
  --ink-2: #4a5f75;
  --ink-3: #8b9bad;
  --line: #dfe9f3;
  --line-soft: #eef4fa;
  --green-900: #0c2a4c;
  --green-800: #14406f;
  --green-700: #1677e0;
  --green-600: #339cff;
  --green-500: #5cb5ff;
  --mint-300: #a8d4ff;
  --mint-200: #d4eaff;
  --mint-100: #e9f4fd;
  --amber: #b8791a;
  --amber-bg: #fdf3e2;
  --red: #c0453a;
  --red-bg: #fdecea;
  --shadow-sm: 0 1px 2px rgba(60, 28, 10, .05);
  --shadow-md: 0 8px 26px rgba(60, 28, 10, .08);
  --radius: 16px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cfdeed; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.login-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.login-tab {
  padding: 0 0 11px; font-size: 13.5px; color: var(--ink-3); cursor: pointer;
  position: relative; transition: color .16s;
}
.login-tab:hover { color: var(--ink); }
.login-tab.active { color: var(--ink); font-weight: 600; }
.login-tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--green-700); border-radius: 2px;
}
.login-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 14px; }
.checkbox { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 13px; height: 13px; accent-color: var(--green-700); cursor: pointer; }

/* 登录 ===== */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: var(--bg);
}
.login-art {
  position: relative;
  background: radial-gradient(120% 90% at 20% 10%, #1e73c8 0%, #123f6b 45%, #09223c 100%);
  color: #eaf3e4;
  padding: 56px 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-art::after {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  right: -260px; bottom: -300px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(168,212,255,.28), rgba(168,212,255,0) 62%);
}
.login-art::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  left: -180px; top: -160px;
  border-radius: 50%;
  border: 1px solid rgba(168,212,255,.16);
}
.brand-row { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(135deg, #6fc0ff, #339cff);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 18px;
}
.brand-name { font-family: var(--serif); font-size: 23px; font-weight: 700; letter-spacing: .5px; }
.brand-sub { font-size: 10.5px; color: rgba(231,240,250,.52); letter-spacing: .14em; margin-top: 4px; }
.login-copy { position: relative; z-index: 2; }
.login-eyebrow { font-size: 11px; letter-spacing: .22em; color: rgba(168,212,255,.8); text-transform: uppercase; }
.login-headline {
  font-family: var(--serif); font-size: 42px; line-height: 1.28;
  margin: 18px 0 16px; font-weight: 700;
}
.login-headline em { font-style: normal; color: var(--mint-300); }
.login-desc { color: rgba(238,245,252,.66); font-size: 13.5px; line-height: 1.9; max-width: 400px; }
.login-foot { font-size: 11.5px; color: rgba(238,245,252,.4); position: relative; z-index: 2; }
.login-foot .beian-link { color: rgba(238,245,252,.55); text-decoration: none; line-height: 2; display: inline-block; }
.login-foot .beian-link:hover { color: rgba(238,245,252,.9); }

.login-panel {
  display: grid; place-items: center; padding: 40px;
}
.login-card { width: 100%; max-width: 380px; }
.login-card h2 { font-family: var(--serif); font-size: 25px; margin-bottom: 8px; }
.login-card .hint { color: var(--ink-3); font-size: 12.5px; margin-bottom: 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 7px; letter-spacing: .02em; }
.input {
  width: 100%; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; padding: 0 14px;
  font-size: 14px; color: var(--ink); outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.input:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(51,156,255,.14); }
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-canvas {
  width: 112px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  cursor: pointer; background: #f2f8fd; flex: none;
}
.btn {
  border: 1px solid transparent; border-radius: 10px;
  height: 38px; padding: 0 16px; font-size: 13px;
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  transition: all .18s; white-space: nowrap;
}
.btn-primary { background: var(--green-700); color: #ecf5fd; }
.btn-primary:hover { background: var(--green-800); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: #c8ddf2; color: var(--ink); background: #fbfdff; }
.btn-mint { background: var(--green-600); color: var(--green-800); }
.btn-mint:hover { background: var(--green-700); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; height: 46px; font-size: 14px; margin-top: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-link { background: none; border: none; color: var(--green-600); font-size: 12.5px; padding: 4px 2px; }
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: var(--red); }
.login-tip {
  margin-top: 22px; padding: 12px 14px; border-radius: 10px;
  background: var(--mint-100); color: #4c627a; font-size: 12px; line-height: 1.75;
  border: 1px solid #e6eff9;
}

/* ===== 主框架 ===== */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 236px; flex: none;
  background: linear-gradient(168deg, #1d5a9c 0%, #154677 48%, #0a2846 100%);
  color: #e7f0fa;
  padding: 22px 16px 18px;
  display: flex; flex-direction: column;
  position: fixed; inset: 0 auto 0 0; z-index: 20;
}
.sidebar .brand-row { margin-bottom: 26px; }
.ws-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(168,212,255,.16);
  border-radius: 12px; padding: 12px;
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 22px;
}
.ws-icon {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: rgba(168,212,255,.16); color: var(--mint-300);
  display: grid; place-items: center;
}
.ws-title { font-size: 12.5px; color: #ecf5fd; font-weight: 600; }
.ws-desc { font-size: 10.5px; color: rgba(231,240,250,.5); margin-top: 2px; }
.nav-group { margin-bottom: 18px; }
.nav-label {
  font-size: 10.5px; letter-spacing: .16em; color: rgba(231,240,250,.38);
  padding: 0 10px 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px;
  color: rgba(236,244,252,.78); font-size: 13px;
  cursor: pointer; margin-bottom: 2px;
  transition: background .16s, color .16s;
}
.nav-item svg { flex: none; opacity: .82; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #e9f4fd; }
.nav-item.active { background: var(--mint-300); color: #0d2b4a; font-weight: 600; }
.nav-item.active svg { opacity: 1; }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(168,212,255,.5); }
.nav-item.active .nav-dot { background: #0d2b4a; }
.sidebar-spacer { flex: 1; }
.promo {
  border-radius: 14px; padding: 16px;
  background: linear-gradient(160deg, rgba(168,212,255,.18), rgba(168,212,255,.06));
  border: 1px solid rgba(168,212,255,.2);
  margin-bottom: 14px;
}
.promo-title { font-family: var(--serif); font-size: 14px; color: #f1f8e9; line-height: 1.6; }
.promo-desc { font-size: 11px; color: rgba(231,240,250,.55); line-height: 1.75; margin-top: 8px; }
.promo-link { margin-top: 12px; font-size: 11.5px; color: var(--mint-300); display: inline-flex; align-items: center; gap: 5px; }
.sidebar-user {
  display: flex; align-items: center; gap: 9px;
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08);
}
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--mint-300); color: var(--green-900);
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
  font-family: var(--serif);
}
.su-name { font-size: 12px; color: #ecf5fd; }
.su-role { font-size: 10px; color: rgba(231,240,250,.45); margin-top: 1px; }

.main { flex: 1; margin-left: 236px; min-width: 0; }
.topbar {
  height: 58px; background: rgba(255,255,255,.86); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; position: sticky; top: 0; z-index: 15;
}
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.crumb b { color: var(--ink); font-weight: 500; }
.crumb .sep { opacity: .45; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--ink-2);
  background: var(--mint-100); border: 1px solid #e6eff9;
  border-radius: 20px; padding: 5px 11px;
}
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 3px rgba(51,156,255,.15); }
.icon-btn {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; color: var(--ink-2);
}
.icon-btn:hover { background: #fbfdff; }
.topbar .avatar { width: 30px; height: 30px; }

.page { padding: 26px 30px 48px; max-width: 1280px; }
.eyebrow {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 10px;
}
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-title { font-family: var(--serif); font-size: 28px; font-weight: 700; letter-spacing: .5px; }
.page-desc { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.head-actions { display: flex; gap: 10px; flex: none; }
.head-actions .btn { height: 36px; }

/* 横幅 */
.banner {
  position: relative; overflow: hidden;
  background: linear-gradient(105deg, #eef5df 0%, #e9f2d9 52%, #e2eed2 100%);
  border: 1px solid #dde9cb; border-radius: 18px;
  padding: 26px 30px; margin-bottom: 20px;
}
.banner .eyebrow { color: #8aa0b5; margin-bottom: 12px; }
.banner h3 { font-family: var(--serif); font-size: 24px; color: #16324e; font-weight: 700; }
.banner p { font-size: 12.5px; color: #5d7488; margin-top: 10px; line-height: 1.9; max-width: 560px; }
.banner .btn-link { color: #1677e0; margin-top: 14px; font-weight: 500; }
.banner-art {
  position: absolute; right: 26px; top: 50%; transform: translateY(-50%);
  width: 168px; height: 168px; opacity: .9;
}

/* 卡片网格 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stat-label { font-size: 12.5px; color: var(--ink-2); }
.stat-ic {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--mint-100); color: var(--green-600);
}
.stat-value { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1; }
.stat-value span { font-family: var(--sans); font-size: 11.5px; color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.stat-note { font-size: 11px; color: var(--ink-3); margin-top: 10px; }

.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 20px; border-bottom: 1px solid var(--line-soft);
}
.card-head h4 { font-size: 14px; font-weight: 600; }
.card-head .sub { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.card-body { padding: 8px 20px 18px; }
.row-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px dashed var(--line-soft);
}
.row-item:last-child { border-bottom: none; }
.row-ic {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 600;
}
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: 13px; color: var(--ink); }
.row-sub { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.row-meta { font-size: 11px; color: var(--ink-3); text-align: right; flex: none; }

/* 平台分布条 */
.plat-row { padding: 11px 0; }
.plat-top { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 7px; }
.plat-top span:last-child { color: var(--ink-3); }
.bar { height: 6px; border-radius: 6px; background: #f0f3ea; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #6fc0ff, #339cff); }

/* 工具条 */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.select {
  height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 9px;
  padding: 0 30px 0 11px; font-size: 12.5px; color: var(--ink-2); outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238b978d' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.search {
  height: 34px; border: 1px solid var(--line); border-radius: 9px; background: #fff;
  padding: 0 12px; font-size: 12.5px; outline: none; min-width: 190px;
}
.search:focus, .select:focus { border-color: var(--green-500); }
.toolbar-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* 表格 */
.table-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; font-size: 11.5px; font-weight: 500; color: var(--ink-3);
  padding: 12px 18px; background: #fbfdff; border-bottom: 1px solid var(--line);
  letter-spacing: .04em; white-space: nowrap;
}
tbody td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); font-size: 13px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fcfdff; }
.acc-name { display: flex; align-items: center; gap: 10px; }
.plat-badge {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
}
.acc-title { font-size: 13px; }
.acc-sub { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; padding: 4px 9px; border-radius: 20px;
  border: 1px solid transparent;
}
.tag-green { background: #eaf3fc; color: #1a5fa8; border-color: #d9e8f7; }
.tag-amber { background: var(--amber-bg); color: var(--amber); border-color: #f2e2c4; }
.tag-gray { background: #eef2f8; color: #7b857c; border-color: #e6e9e1; }
.tag-red { background: var(--red-bg); color: var(--red); border-color: #f4d9d1; }
.tag-mint { background: var(--mint-100); color: #1677e0; border-color: #e6eff9; }
.main-flag {
  font-size: 10.5px; color: var(--green-700); background: var(--mint-200);
  border-radius: 5px; padding: 2px 6px; margin-left: 6px; vertical-align: 1px;
}
.muted { color: var(--ink-3); font-size: 12px; }
.ops { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.empty { padding: 60px 20px; text-align: center; color: var(--ink-3); font-size: 13px; }
.empty svg { display: block; margin: 0 auto 14px; opacity: .35; }

/* 占位模块 */
.placeholder { padding: 70px 20px; text-align: center; }
.ph-icon {
  width: 62px; height: 62px; border-radius: 18px; margin: 0 auto 20px;
  background: var(--mint-100); color: var(--green-600); display: grid; place-items: center;
  border: 1px solid #e6eff9;
}
.placeholder h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 10px; }
.placeholder p { font-size: 12.5px; color: var(--ink-3); line-height: 1.9; max-width: 420px; margin: 0 auto; }
.ph-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(12,40,70,.4);
  backdrop-filter: blur(2px);
  display: grid; place-items: center; z-index: 60;
  animation: fade .18s ease;
}
.modal {
  width: 420px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(12,40,70,.2);
  overflow: hidden; animation: pop .2s cubic-bezier(.2,.8,.3,1);
}
.modal-head { padding: 20px 22px 0; }
.modal-head h3 { font-family: var(--serif); font-size: 18px; }
.modal-head p { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.modal-body { padding: 18px 22px 4px; }
.modal-foot { padding: 8px 22px 20px; display: flex; gap: 10px; justify-content: flex-end; }
.qr-box {
  display: grid; place-items: center; gap: 12px;
  padding: 20px; border-radius: 14px; background: #f9fcff; border: 1px dashed #d9e3cd;
  margin-bottom: 14px;
}
.qr-note { font-size: 11.5px; color: var(--ink-3); text-align: center; line-height: 1.8; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98) } to { opacity: 1; transform: none } }

/* Toast */
#toast-wrap {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%);
  z-index: 99; display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none;
}
.toast {
  pointer-events: all;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(18,36,56,.14);
  padding: 12px 18px; font-size: 12.5px; color: var(--ink);
  display: flex; align-items: center; gap: 9px;
  animation: slideDown .22s ease;
  max-width: 480px;
}
.toast.err { border-color: #f0d5cc; }
.toast .t-ic { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.toast.ok .t-ic { background: #eaf3fc; color: #1a5fa8; }
.toast.err .t-ic { background: var(--red-bg); color: var(--red); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px) } to { opacity: 1; transform: none } }

/* 数据总览 · 按天明细条 */
.day-strip { display: flex; gap: 10px; margin-top: 14px; }
.day-cell { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 9px 6px 8px; text-align: center; background: #fcfeff; }
.day-label { font-size: 10.5px; color: var(--ink-3); }
.day-val { font-size: 14px; font-weight: 700; color: var(--green-700); margin: 5px 0 6px; }
.day-bar { height: 4px; border-radius: 4px; background: #eef2e8; overflow: hidden; }
.day-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #7fc8ff, #339cff); }

/* 引用分析子区块 */
.qh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.qh b { font-size: 13.5px; }
.qh span { font-size: 11px; color: var(--ink-3); }

/* 数据报表 */
.date-input { height: 34px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 0 10px; font-size: 12.5px; color: var(--ink-2); outline: none; width: 138px; }
.date-input:focus { border-color: var(--green-500); }
.tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  box-shadow: var(--shadow-sm);
}
.tab-item {
  padding: 7px 14px; border-radius: 8px; font-size: 12.5px; color: var(--ink-2);
  cursor: pointer; transition: all .16s;
}
.tab-item:hover { background: var(--mint-100); }
.tab-item.active { background: var(--green-700); color: #ecf5fd; font-weight: 500; }
.rank-badge {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px;
  border-radius: 8px; background: #eef2f8; color: var(--ink-2); font-size: 12.5px; font-weight: 600;
}
.rank-badge.top { background: var(--mint-200); color: var(--green-800); }
.q-cell { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plat-badge.sm { width: 24px; height: 24px; border-radius: 7px; font-size: 11px; display: inline-grid; place-items: center; vertical-align: -6px; margin-right: 4px; }
.pager { display: flex; align-items: center; gap: 14px; justify-content: center; margin-top: 16px; }
.report-note { margin-top: 22px; text-align: center; font-size: 11px; color: #93a4b6; }
.donut-wrap { display: flex; align-items: center; gap: 22px; padding: 6px 2px; }
.donut-box { flex: none; }
.lg-list { flex: 1; min-width: 0; }
.lg-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 12px; }
.lg-row i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.lg-name { flex: 1; color: var(--ink-2); }
.lg-val { color: var(--ink-3); }
.lg-pct { width: 52px; text-align: right; color: var(--ink); font-weight: 500; }
.snap-q {
  display: flex; align-items: center; gap: 10px;
  background: #f9fcff; border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 12px 14px; font-size: 13px; margin-bottom: 12px;
}
.snap-answer {
  background: var(--mint-100); border: 1px solid #e6eff9; border-radius: 12px;
  padding: 14px 16px; font-size: 12.5px; line-height: 2; color: #4c627a; margin-bottom: 12px;
}
.snap-refs-title { font-size: 11.5px; color: var(--ink-3); margin-bottom: 6px; letter-spacing: .06em; }
.ref-item { font-size: 12px; color: var(--ink-2); padding: 5px 0; border-bottom: 1px dashed var(--line-soft); }
.ref-item:last-child { border-bottom: none; }
.ref-n { color: var(--green-600); margin-right: 6px; font-weight: 600; }

/* 品牌可见度 */
.vis-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.vcard {
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 14px;
  background: #fcfeff;
}
.vcard-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-2); }
.vcard-top i {
  width: 14px; height: 14px; border-radius: 50%; border: 1px solid #cfdeed;
  font-size: 9px; font-style: normal; color: #93a4b6; display: grid; place-items: center;
}
.vcard-val { font-family: var(--serif); font-size: 28px; font-weight: 700; margin: 10px 0 8px; color: var(--ink); }
.vcard-val small { font-size: 13px; font-weight: 400; margin-left: 2px; color: var(--ink-2); }
.vcard-foot { font-size: 11px; color: var(--ink-3); }
.vcard.hero {
  background: linear-gradient(150deg, #339cff 0%, #1677e0 55%, #09223c 100%);
  border-color: #1e73c8; color: #eef7e7;
  box-shadow: 0 8px 22px rgba(12,38,66,.18);
}
.vcard.hero .vcard-top { color: rgba(240,247,253,.8); }
.vcard.hero .vcard-top i { border-color: rgba(240,247,253,.35); color: rgba(240,247,253,.6); }
.vcard.hero .vcard-val { color: #fff; }
.vcard.hero .vcard-val small { color: rgba(240,247,253,.7); }
.vcard.hero .vcard-foot { color: rgba(240,247,253,.72); }
.vcard.hero .vcard-foot b { color: #cfe8ff; font-size: 12px; }
.vis-table td { font-size: 12.5px; }
.cur-row { background: #f4f8ff !important; }
.cur-row:hover { background: #f1f8e8 !important; }
.brand-avatar {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: var(--mint-100); color: var(--green-700);
  display: grid; place-items: center; font-family: var(--serif); font-size: 13px; font-weight: 600;
  border: 1px solid #e6eff9;
}
.vis-cell { display: flex; align-items: center; gap: 9px; }
.mini-bar {
  display: block; width: 74px; height: 5px; border-radius: 5px; background: #eef4fa; overflow: hidden; flex: none;
}
.mini-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #7fc8ff, #339cff); }
@media (max-width: 1180px) { .vis-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .vis-cards { grid-template-columns: 1fr 1fr; } }

/* 响应式 */
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .page { padding: 18px 16px 40px; }
  .table-card { overflow-x: auto; }
  table { min-width: 780px; }
}

/* ---------- 问答快照 ---------- */
.link { color: var(--green-600); font-size: 12px; text-decoration: none; cursor: pointer; }
.link:hover { text-decoration: underline; }
.snap-q { background: var(--mint-100); border: 1px solid #e6eff9; border-radius: 10px; padding: 12px 14px; font-size: 13px; font-weight: 600; color: var(--green-900); line-height: 1.7; }
.answer-box { background: #f4f7fc; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 12.5px; line-height: 1.9; color: var(--ink-2); }
.ref-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.ref-title { font-size: 12.5px; font-weight: 600; color: var(--ink-1); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ref-url { font-size: 11px; color: var(--ink-3); margin-top: 4px; word-break: break-all; }

/* ---------- 侧边栏下级菜单 ---------- */
.nav-caret {
  margin-left: auto; width: 0; height: 0; flex: none;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid rgba(236,244,252,.55);
  transition: transform .18s ease;
}
.nav-caret.open { transform: rotate(180deg); }
.nav-sub { overflow: hidden; max-height: 220px; transition: max-height .2s ease; }
.nav-sub.collapsed { max-height: 0; }
.nav-subitem {
  padding: 7px 10px 7px 38px; font-size: 12.5px;
  color: rgba(236,244,252,.66); border-radius: 8px; margin-bottom: 2px;
  cursor: pointer; position: relative; transition: background .16s, color .16s;
}
.nav-subitem:hover { background: rgba(255,255,255,.06); color: #e9f4fd; }
.nav-subitem.active { color: #a8d4ff; font-weight: 600; background: rgba(255,255,255,.05); }
.nav-subitem.active::before {
  content: ''; position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: #a8d4ff;
}

/* ---------- 发布规则选择卡 ---------- */
.rule-pick {
  flex: 1; min-width: 260px; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; cursor: pointer; transition: border-color .16s, box-shadow .16s, background .16s;
  display: flex; flex-direction: column; gap: 5px; background: #fbfdff;
}
.rule-pick b { font-size: 13px; color: var(--ink-1); }
.rule-pick span { font-size: 11.5px; color: var(--ink-3); line-height: 1.7; }
.rule-pick.on { border-color: var(--green-600); background: var(--mint-100); box-shadow: 0 1px 6px rgba(51,156,255,.12); }
.rule-pick.on b { color: var(--green-900); }

/* ---------- 企业信息管理 ---------- */
.ci-layout { display: flex; gap: 14px; align-items: flex-start; }
.ci-cats { width: 200px; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.ci-cat { padding: 10px 12px; border-radius: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background .15s; }
.ci-cat:hover { background: var(--mint-100); }
.ci-cat.on { background: var(--mint-100); color: var(--green-900); font-weight: 600; }
.ci-dot { width: 7px; height: 7px; border-radius: 50%; background: #c9ccc2; flex: none; }
.ci-dot.ok { background: var(--green-600); }
.ci-editor { flex: 1; min-width: 0; }
.ci-media-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.ci-thumb { width: 108px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; position: relative; background: #fbfdff; }
.ci-thumb img, .ci-thumb video { width: 100%; height: 70px; object-fit: cover; display: block; }
.ci-ph { height: 70px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #b9bcae; }
.ci-name { display: block; font-size: 10.5px; color: var(--ink-3); padding: 5px 6px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-x { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ci-add { width: 108px; height: 98px; border: 1.5px dashed #b5c6d8; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; color: var(--green-600); transition: background .15s; }
.ci-add:hover { background: var(--mint-100); }
.ci-add b { font-size: 20px; }
.ci-add span { font-size: 11px; }

/* 媒体额度展示：横向滑动 */
.ci-media-grid { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
.ci-media-grid::-webkit-scrollbar { height: 8px; }
.ci-media-grid::-webkit-scrollbar-track { background: var(--mint-100); border-radius: 4px; }
.ci-media-grid::-webkit-scrollbar-thumb { background: #b5c6d8; border-radius: 4px; }
.ci-media-grid .ci-thumb, .ci-media-grid .ci-add { flex: none; }

/* ---------- 资质认证管理 ---------- */
.ql-layout { display: flex; gap: 14px; align-items: flex-start; }
.ql-form { flex: 1; min-width: 0; }
.ql-step { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--mint-100); border-radius: 10px; padding: 10px 14px; min-width: 130px; }
.ql-step b { width: 22px; height: 22px; border-radius: 50%; background: var(--green-600); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.ql-step span { font-size: 11.5px; color: var(--green-900); text-align: center; }
.ql-arr { color: #93a4b6; font-size: 16px; }

/* ---------- 知识库管理（素材组） ---------- */
.kb-layout { display: flex; gap: 14px; align-items: flex-start; }
.kb-groups { width: 220px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.kb-group { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.kb-group:hover { border-color: var(--green-600); }
.kb-group.on { border-color: var(--green-600); background: var(--mint-100); }
.kb-gname { font-size: 13.5px; font-weight: 600; color: var(--ink-1); }
.kb-gmeta { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.kb-drop { border: 1.5px dashed #b5c6d8; border-radius: 12px; padding: 18px; text-align: center; font-size: 13px; color: var(--green-600); cursor: pointer; margin-bottom: 14px; transition: background .15s; display: flex; flex-direction: column; gap: 3px; }
.kb-drop span { font-size: 11px; color: var(--ink-3); }
.kb-drop.drag { background: var(--mint-100); }
.kb-ops { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.kb-item { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fbfdff; position: relative; cursor: pointer; }
.kb-item img, .kb-item video { width: 100%; height: 80px; object-fit: cover; display: block; }
.kb-check { position: absolute; top: 6px; left: 6px; width: 15px; height: 15px; cursor: pointer; z-index: 2; }
.kb-iname { font-size: 11px; color: var(--ink-2); padding: 6px 8px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-imeta { display: flex; gap: 4px; padding: 2px 8px 8px; align-items: center; }

/* 侧边栏菜单可滚动（修复菜单过多时底部被截断） */
.sidebar nav {
  flex: 1; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  margin-right: -6px; padding-right: 6px;
}
.sidebar nav::-webkit-scrollbar { width: 5px; }
.sidebar nav::-webkit-scrollbar-track { background: transparent; }
.sidebar nav::-webkit-scrollbar-thumb { background: rgba(168,212,255,.25); border-radius: 3px; }
.sidebar nav::-webkit-scrollbar-thumb:hover { background: rgba(168,212,255,.45); }

/* ---------- 媒体展示 ---------- */
.md-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.md-card { border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform .15s, box-shadow .15s; }
.md-card:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(51,156,255,.12); }
.md-logo { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: #fff; flex: none; }
.md-name { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ===== 各大模型收录占比（LOGO + 百分比条） ===== */
.mp-list { display: flex; flex-direction: column; gap: 10px; }
.mp-row { display: flex; align-items: center; gap: 10px; }
.mp-logo { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
.mp-name { width: 76px; font-size: 12.5px; font-weight: 600; flex: none; }
.mp-bar { flex: 1; height: 8px; background: var(--mint-100); border-radius: 4px; overflow: hidden; }
.mp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-600), var(--green-500)); border-radius: 4px; }
.mp-val { width: 108px; text-align: right; font-size: 11.5px; color: var(--ink-2); flex: none; }
.mp-val b { color: var(--ink); }
