/* Brand presentation shared by the entire workbench. */
:root {
  --bg: #F3F7FB;
  --surface: #FFFFFF;
  --text: #183750;
  --text-dim: #5A7083;
  --accent: #0090D8;
  --accent-hover: #0077B6;
  --border: #DDE7EF;
  --sidebar-w: 244px;
  --radius: 14px;
}
html { scroll-padding-top: 30px; }
body { font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { transition: background-color .15s, border-color .15s; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #78CCF5; outline-offset: 3px;
}
.ui-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.sidebar { background: #FFF; border-right: 1px solid var(--border); }
.side-brand { padding: 32px 20px 30px; gap: 10px; align-items: center; }
.side-brand img { width: 62px; height: 28px; object-fit: contain; }
.side-brand .name { font-size: 14px; letter-spacing: -.3px; }
.side-brand .ver { color: #71889A; letter-spacing: .04em; margin-top: 3px; }
.side-menu { padding: 8px 12px 16px; }
.nav-group-title { font-size: 10.5px; color: #7D93A6; letter-spacing: .1em; margin-top: 10px; padding: 4px 10px 6px; }
.nav-item { border-radius: 9px; padding: 9px 12px; min-height: 40px; color: #536D80; font-weight: 500; margin: 2px 0; gap: 10px; }
.nav-item .nav-ico { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
.nav-item.active, .nav-item[data-page="geo"].active { color: #0077B6; background: #EAF6FD; box-shadow: inset 3px 0 #0090D8; font-weight: 700; }
.nav-item:hover { background: #F2F8FC; }
.nav-hint { font-size: 10px; padding: 2px 6px; color: #5D7688; border: 1px solid #DDE7EF; }
/* 2026-10-22 修正：GEO看板 · 豆包 与其它菜单同色，不再单独置灰 */
.side-user { background: #F9FBFD; padding: 18px 16px; }
.side-user .avatar { color: #0077B6; background: #E4F4FC; border: 1px solid #D4EBF8; }
.workspace-topbar { padding: 0 40px; height: 60px; background: #FFF; font-size: 12px; }
.workspace-status { color: #6B8192; }
.workspace-status:before { background: #0090D8; }
.main { min-width: 0; }
.main-body { padding: 36px 40px 42px; width: 100%; max-width: 1480px; min-width: 0; }
.page-title, .page-heading h1 { font-size: 30px; font-weight: 700; line-height: 1.45; letter-spacing: -.6px; margin: 0 0 8px; }
.page-heading { margin-bottom: 26px; }
.brand-kicker { color: #0077B6; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.page-heading p, .page-intro { color: #5A7083; font-size: 14px; line-height: 1.8; margin: 0 0 22px; }
.card { border: 1px solid #DDE7EF; padding: 28px; border-radius: 14px; }
.card-title { font-size: 16px; font-weight: 700; gap: 10px; color: #24485F; margin-bottom: 24px; }
.card-title>.ui-icon { color: #0090D8; }
.form-grid { gap: 18px 22px; }
#styleGroup { display: none; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #456074; margin-bottom: 8px; }
input, select, textarea { border-color: #CEDDE8; background: #FCFDFE; border-radius: 8px; color: #183750; }
input:focus, select:focus, textarea:focus { border-color: #0090D8; outline: none; box-shadow: 0 0 0 3px #0090D816; }
.field-hint { font-size: 11px; color: #6B8192; line-height: 1.7; margin-top: 7px; }
.field-hint.warn { color: #79613E; }
.mode-switch { padding: 4px; background: #E6EFF6; border-color: #DDE7EF; margin-bottom: 24px; }
.mode-btn { min-width: 104px; }
.mode-btn.active { color: #0077B6; }
.btn, .gr-btn { min-height: 39px; border-radius: 8px; font-weight: 600; }
.btn-primary, .geo-primary { background: #0090D8; border-color: #0090D8; color: #FFF; }
.btn-primary:hover, .geo-primary:hover { background: #0077B6; border-color: #0077B6; }
.btn-secondary { background: #FFF; color: #395A70; border-color: #CEDDE8; }
.btn-secondary:hover { background: #F3F9FD; }
.submit-row { border-top: 1px solid #E5EDF3; margin-top: 26px; padding-top: 22px; }
.cost-hint { font-size: 11px; }
.empty-state { background: #F7FAFD; border: 1px dashed #C9DCE9; border-radius: 10px; }
.empty-state .icon { color: #0090D8; opacity: .65; }
.empty-state .icon .ui-icon { width: 42px; height: 42px; stroke-width: 1.2; }
.empty-state .text { color: #48677B; font-size: 14px; }
.empty-state .sub { font-size: 12px; color: #6B8192; line-height: 1.8; }
.prompt-tip { font-size: 11px; padding: 4px 9px; border-radius: 5px; }
.gw-fold { margin-top: 0; padding: 0 24px 6px; background: #FFF; border-radius: 14px; border-color: #D5E5F0; }
.gw-fold>summary { padding: 18px 0; font-weight: 600; font-size: 13px; }
.gw-head { padding: 4px 0 14px; background: transparent; border: 0; border-radius: 0; }
.gw-head h2 { font-size: 20px; margin: 0 0 7px; }
.gw-head p { font-size: 13px; color: #5A7083; line-height: 1.8; }
.gw-steps { max-width: 750px; gap: 12px; margin: 12px 0 20px; }
.gw-step { background: #F7FAFD; border-color: #E3ECF3; font-size: 13px; padding: 12px 14px; }
.gw-step.active { background: #EFF8FD; box-shadow: none; border-color: #9FD4F0; }
.gw-step b { width: 24px; height: 24px; }
.gw-panel { border: 0; border-top: 1px solid #E3ECF3; border-radius: 0; padding: 22px 0 20px; }
.gw-label { font-size: 13px; }
.gw-label em { font-size: 11px; color: #73889A; }
.gw-qs li { border-radius: 8px; }
.gr-report { margin-top: 28px; }
.gr-head { padding: 28px 30px; border: 0; border-radius: 14px 14px 0 0; background: #0077B6; color: #FFF; align-items: center; min-height: 138px; }
.gr-head h2 { color: #FFF; font-size: 24px; font-weight: 700; line-height: 1.5; }
.gr-sub { color: #D7EEFB; font-size: 12px; line-height: 1.8; }
.gr-hero { padding-left: 30px; border-left: 1px solid #FFFFFF40; min-width: 180px; }
.gr-hero strong { color: #FFF; font-size: 48px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.gr-hero span { color: #FFF; font-size: 12px; }
.gr-hero em { color: #D7EEFB; line-height: 1.7; }
.gr-filters-global { margin: 0; border-top: 0; border-radius: 0 0 14px 14px; padding: 20px 26px; gap: 14px; }
.gr-chip { padding: 7px 14px; border-radius: 7px; min-height: 34px; font-size: 12px; }
.gr-chip.on { background: #0077B6; border-color: #0077B6; }
.gr-search { background: #F8FBFD; font-size: 13px; min-height: 40px; }
.gr-filter-state { font-size: 11px; }
.gr-kpis { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 0; background: #FFF; border: 1px solid #DDE7EF; border-radius: 12px; overflow: hidden; margin: 22px 0 8px; }
.gr-kpi { padding: 20px 18px; border: 0; border-right: 1px solid #E5EDF3; border-radius: 0; }
.gr-kpi:last-child { border-right: 0; }
.gr-kpi strong { font-size: 27px; color: #0077B6; margin-bottom: 7px; font-variant-numeric: tabular-nums; }
.gr-kpi span { font-size: 12px; font-weight: 600; }
.gr-kpi em { font-size: 11px; line-height: 1.6; margin-top: 5px; }
.gr-h3 { margin: 32px 0 14px; font-size: 17px; font-weight: 700; gap: 12px; flex-wrap: wrap; }
.gr-h3>.gr-btn { margin-left: auto; }
.gr-summary { border-left: 3px solid #0090D8; padding: 20px 24px; border-radius: 10px; }
.gr-summary p { font-size: 13px; line-height: 1.95; color: #3A596F; max-width: 100%; }
.gr-note { color: #647D90; font-size: 11px; line-height: 1.85; overflow-wrap: anywhere; }
.gr-tablewrap { border-radius: 10px; }
.gr-table { font-size: 12px; }
.gr-table th, .gr-table td { padding: 14px 16px; line-height: 1.7; }
.gr-table thead th { color: #526D81; background: #EFF5F9; font-size: 11px; border-bottom: 1px solid #DDE7EF; }
.gr-table tbody tr:hover { background: #F4FAFD; }
.gr-plat { font-size: 12px; gap: 10px; }
.gr-logo { width: 26px; height: 26px; border-radius: 7px; padding: 2px; }
.gr-num { font-variant-numeric: tabular-nums; }
.gr-bar { width: 88px; height: 6px; }
.gr-link { font-size: 12px; text-underline-offset: 3px; }
.gr-qcell { min-width: 290px; max-width: 520px; font-size: 12px; }
.gr-tags { margin-top: 8px; }
.gr-tag { font-size: 10px; padding: 2px 7px; }
.gr-pager { padding: 6px 0; gap: 6px; }
.gr-page { min-width: 34px; height: 34px; border-radius: 6px; font-size: 12px; }
.gr-page.on { background: #0077B6; border-color: #0077B6; }
.gr-page-info { font-size: 11px; }
.gr-modal { --ink: #183750; --muted: #5A7083; --line: #DDE7EF; --brand-dark: #0077B6; padding: 24px; }
.gr-modal-box { max-height: 90vh; }
.gr-modal-box header { padding: 22px 26px; background: #F3F9FD; }
.gr-modal-x { width: 34px; height: 34px; border-radius: 7px; background: #FFF; }
.gr-modal-body { padding: 22px 26px; overscroll-behavior: contain; }
.gr-answer pre { max-height: 430px; font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif; }
.gr-history { margin: 24px 0; }
.gr-viewbar { background: #EAF6FD; border-color: #C4E2F4; color: #16618A; }
.sms-hero { border-radius: 12px; background: #F2F8FC; border: 1px solid #D9E8F2; }
.sms-list th, .sms-list td { padding: 13px 14px; }
.sms-fulltext { border-radius: 10px; padding: 24px; }
.login-wrap { background: #EDF5FB; }
.login-card { border-top: 4px solid #0090D8; padding: 42px; box-shadow: 0 12px 50px #174E7110; }
.login-logo img { width: 128px; height: 40px; object-fit: contain; }
.footer-note { background: transparent; color: #6F8496; padding: 20px 40px; border-color: #DFE8EF; }
@media(min-width:1180px) { #page-draw { grid-template-columns: minmax(0,1.18fr) minmax(300px,.82fr); gap: 0 24px; } }
@media(max-width:1100px) {
  :root { --sidebar-w: 210px; }
  .side-brand { padding: 26px 14px; }
  .side-brand img { width: 46px; }
  .side-brand .name { font-size: 12px; }
  .main-body { padding: 28px 24px; }
  .workspace-topbar { padding: 0 24px; }
  .gr-kpi { padding: 18px 12px; }
  .gr-kpi strong { font-size: 23px; }
}
@media(max-width:760px) {
  .gr-head { align-items: flex-start; gap: 20px; padding: 24px; }
  .gr-hero { padding: 0; border: 0; text-align: left; }
  .gr-hero strong { font-size: 42px; }
  .gr-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gr-kpi { border-bottom: 1px solid #E5EDF3; padding: 18px 16px; }
  .gr-kpi:last-child { grid-column: 1/-1; border-bottom: 0; }
  .gr-filter-row { gap: 8px; }
  .gr-filters-global { padding: 18px; }
  .gr-search { min-width: 0; width: 100%; flex-basis: 100%; }
  .gr-chip { padding: 7px 10px; }
  .gr-table th, .gr-table td { padding: 12px; }
  .gr-summary { padding: 18px; }
  .gr-modal { padding: 12px; }
  .gr-modal-box header, .gr-modal-body { padding: 18px; }
  .gr-src-list li { overflow-wrap: anywhere; }
  .gr-site { min-width: 0; }
}
@media(max-width:700px) {
  .sidebar { position: relative; width: 100%; }
  .side-brand { padding: 18px 16px; }
  .side-brand img { width: 60px; height: 24px; }
  .side-brand .name { font-size: 13px; }
  .side-brand .ver { display: block; font-size: 10px; }
  .side-menu { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 0 12px 14px; gap: 6px; }
  .nav-group { display: contents; }
  .nav-group-title { display: none; }
  .nav-item { width: 100%; min-height: 38px; padding: 8px; gap: 6px; font-size: 11px; margin: 0; }
  .nav-item .nav-ico, .nav-item .ui-icon { width: 16px; height: 16px; }
  .nav-hint { display: none; }
  .side-user { top: 22px; right: 16px; padding: 0; background: transparent; }
  .side-user .uname { max-width: 48px; }
  .workspace-topbar { padding: 0 18px; height: 42px; font-size: 11px; }
  .main-body { padding: 26px 16px 32px; }
  .page-title, .page-heading h1 { font-size: 24px; }
  .page-heading { margin-bottom: 20px; }
  .page-heading p, .page-intro { font-size: 12px; }
  .card { padding: 22px 18px; }
  .gw-fold { padding: 0 18px 4px; }
  .gw-head h2 { font-size: 18px; }
  .gw-head p { font-size: 12px; }
  .gw-steps { flex-direction: row; gap: 6px; }
  .gw-step { padding: 9px 7px; gap: 5px; font-size: 11px; }
  .gw-step b { width: 20px; height: 20px; font-size: 11px; flex-shrink: 0; }
  .gr-head h2 { font-size: 21px; }
  .gr-sub { font-size: 11px; }
  .gr-report { margin-top: 24px; }
  .gr-h3 { font-size: 16px; margin-top: 28px; }
  .gr-viewbar { flex-wrap: wrap; }
  .login-card { padding: 34px 24px; }
  .footer-note { padding: 18px 16px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } button { transition: none; } }

/* Report scope and evidence use the existing brand palette. */
.gr-batch-nav { margin: 24px 0 0; padding: 20px 24px; border: 1px solid #CFE3F0; border-radius: 12px; background: #FFF; }
.gr-batch-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.gr-batch-tools label { font-size: 12px; font-weight: 600; color: #48677B; margin-left: 10px; }
.gr-batch-tools select { flex: 1; min-width: 220px; max-width: 670px; font-size: 12px; padding: 10px 12px; }
.gr-global-button { min-height: 42px; padding: 10px 18px; }
.gr-global-button.is-active { background: #0077B6; border-color: #0077B6; color: #FFF; }
.gr-chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.gr-logo-inline { width: 19px; height: 19px; padding: 1px; border: 0; border-radius: 4px; background: #FFF; object-fit: contain; vertical-align: middle; }
.gr-vendor-tag { display: inline-flex; align-items: center; gap: 5px; }
.gr-vendor-tag .gr-logo-inline { width: 16px; height: 16px; }
.gr-article-platforms { display: flex; flex-wrap: wrap; gap: 8px 12px; min-width: 115px; }
.gr-article-platforms>span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 11px; }
.gr-article-title { min-width: 285px; max-width: 550px; }
.gr-article-title a { color: #225574; line-height: 1.85; text-decoration: none; }
.gr-article-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gr-article-title small { display: block; margin-top: 7px; color: #6E8597; font-size: 10px; overflow-wrap: anywhere; }
.gr-hit-badge { display: inline-block; color: #006A9F; background: #DDF2FF; border: 1px solid #B8DEEF; border-radius: 5px; padding: 3px 7px; font-size: 11px; line-height: 1.5; font-weight: 700; margin: 3px 5px 3px 0; white-space: nowrap; }
.gr-brand-mark { color: #005C8A; background: #C8EDFF; padding: 1px 2px; border-radius: 3px; font-weight: 700; }
.gr-article-hit td { background: #F0F9FF; }
.gr-article-hit td:first-child { box-shadow: inset 3px 0 #0090D8; }
.gr-article-hit:hover td { background: #E7F5FE; }
.gr-question-hit .gr-qcell { color: #134C6D; font-weight: 600; }
.gr-evidence { display: block; color: #5A7C90; font-size: 10px; }
.gr-source-hit { background: #EEF9FF; border: 1px solid #CCE8F7!important; border-left: 3px solid #0090D8!important; border-radius: 7px; padding: 12px!important; margin: 7px 0; }
.gr-source-hit .gr-hit-badge { margin-bottom: 7px; }
.gr-src-list a { display: inline; overflow-wrap: anywhere; }
.gr-answer h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gr-modal .gr-hit-badge { font-size: 10px; }
@media(max-width:700px) {
  .gr-batch-nav { padding: 17px; margin-top: 20px; }
  .gr-batch-tools { gap: 10px; }
  .gr-batch-tools label { margin-left: 0; }
  .gr-batch-tools select { flex-basis: 100%; min-width: 0; width: 100%; }
  .gr-logo-inline { width: 18px; height: 18px; }
  .gr-article-title { min-width: 250px; }
}

/* 侧栏整体一屏（2026-10-20）：压紧行高，保证 8 个入口不滚动即可看全 */
.side-menu { gap: 0; }
.side-menu > .nav-group:last-child { padding-bottom: 4px; }

/* 侧栏一屏（2026-10-20）：矮屏（笔记本 768/820）再压一档，保证 8 个入口不用滚动 */
@media (max-height: 830px) {
  .side-menu { padding: 6px 12px 8px; }
  .nav-group-title { margin-top: 6px; padding: 2px 10px 4px; font-size: 10px; }
  .nav-item { min-height: 36px; padding: 7px 11px; margin: 1px 0; }
  .nav-group + .nav-group { margin-top: 6px; padding-top: 6px; }
}
@media (max-height: 760px) {
  .side-menu { padding: 4px 12px 6px; }
  .nav-group-title { margin-top: 4px; padding: 1px 10px 3px; }
  .nav-item { min-height: 34px; padding: 6px 10px; }
  .nav-group + .nav-group { margin-top: 4px; padding-top: 4px; }
}
