:root { --ink:#1f2a2e; --muted:#687379; --line:#d9e1df; --paper:#f7f8f5; --panel:#ffffff; --teal:#0e756b; --teal-dark:#07544d; --teal-soft:#e4f1ed; --orange:#e66e38; --history:#f3eadc; --shadow:0 10px 30px rgba(27,42,43,.07); }
* { box-sizing:border-box; }
.date-hint { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:7px 0 0; color:var(--teal-dark); font-size:11px; line-height:1.5; } .date-hint.unmatched { color:var(--muted); } .date-hint .text-button { font-size:11px; text-decoration:underline; }
.weather-table { width:100%; border-collapse:collapse; margin-top:8px; font-size:11px; } .weather-table th { text-align:left; color:#51615f; background:#e8f3ef; } .weather-table th,.weather-table td { border-bottom:1px solid #dbe9e4; padding:5px 6px; vertical-align:top; } .weather-table td:first-child { white-space:nowrap; font-weight:700; } .weather-none { margin-top:7px; font-size:11px; } .strategy-result { margin:7px 0 0; padding:6px 8px; border-radius:4px; background:#eef7f4; color:#3f4b4a; font-size:11px; line-height:1.6; } .summary-card small { display:block; margin-top:3px; font-size:12px; font-weight:700; }
.action-info { flex:1; min-width:0; } .flow-status { display:block; margin-top:5px; color:var(--teal-dark); font-size:12px; font-style:normal; line-height:1.5; } .flow-status.hidden { display:none; } .run-option { display:flex; align-items:center; gap:6px; color:#3f4b4a; font-size:12px; font-weight:700; white-space:nowrap; } .run-option input { width:auto; margin:0; accent-color:var(--teal); } .actions .action-buttons { align-items:center; } .primary-button:disabled { opacity:.55; cursor:not-allowed; }
.flow-status.error { color:#c55335; font-weight:700; }
.model-summary { margin-top:4px; color:var(--ink); font-size:13px; } .model-summary strong { color:var(--teal-dark); } .model-key-state { margin-top:6px; color:var(--teal-dark); font-size:12px; font-weight:700; } .model-key-state.missing { color:var(--muted); font-weight:400; } .model-hint { margin-top:8px; color:var(--muted); font-size:11px; line-height:1.5; } .panel-heading .secondary-button { padding:7px 10px; font-size:12px; } .insight-body { white-space:pre-wrap; } .insight-body.collapsed { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; } .insight-toggle { margin-top:6px; }
.model-dialog { position:fixed; inset:0; z-index:60; display:flex; align-items:center; justify-content:center; padding:20px; } .model-dialog.hidden { display:none; } .dialog-backdrop { position:absolute; inset:0; background:rgba(24,58,57,.42); } .dialog-card { position:relative; width:min(520px,92vw); max-height:86vh; overflow:auto; background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:20px; box-shadow:0 24px 60px rgba(20,40,40,.24); } .dialog-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:14px; } .dialog-note { margin-top:12px; color:var(--muted); font-size:11px; line-height:1.6; } .dialog-actions { display:flex; justify-content:flex-end; margin-top:14px; }
.location-research { border:1px solid #e6dcd0; border-left:3px solid var(--orange); background:#fdf9f4; padding:10px; margin-top:10px; font-size:12px; line-height:1.65; } .location-research strong { color:#b65528; } .location-warning { color:#c55335; font-weight:700; } .location-detail { margin-top:7px; color:#4a5554; font-size:11px; line-height:1.75; }
.picker-card { width:min(880px,94vw); } .picker-search { display:flex; gap:8px; } .picker-search input { flex:1; } .picker-search .primary-button { padding:10px 16px; white-space:nowrap; } .picker-body { display:grid; grid-template-columns:minmax(0,1fr) 384px; gap:14px; margin-top:12px; } .location-results { list-style:none; margin:0; padding:0; max-height:384px; overflow:auto; border:1px solid var(--line); border-radius:6px; } .location-result { padding:9px 11px; border-bottom:1px solid #eef1f0; cursor:pointer; } .location-result:last-child { border-bottom:0; } .location-result:hover { background:#f4f9f7; } .location-result.selected { background:#e6f3ef; box-shadow:inset 3px 0 0 var(--teal); } .location-result strong { display:block; font-size:13px; } .location-result small { display:block; color:var(--muted); font-size:11px; margin-top:2px; } .location-result code { display:block; color:#8a9493; font-size:10px; margin-top:2px; } .location-map { position:relative; width:384px; height:384px; overflow:hidden; border:1px solid var(--line); border-radius:6px; background:#eef1ef; } .map-tiles { position:absolute; left:0; top:0; width:768px; height:768px; } .map-tile { position:absolute; width:256px; height:256px; } .map-marker { position:absolute; left:50%; top:50%; width:16px; height:16px; margin:-8px 0 0 -8px; border-radius:50%; background:#e66e38; border:3px solid #fff; box-shadow:0 1px 5px rgba(0,0,0,.4); } .map-marker.hidden { display:none; } .map-caption { margin-top:8px; color:var(--muted); font-size:11px; } .dialog-actions { gap:9px; }
.mall-panel { border-radius:6px; } .mall-search { display:grid; grid-template-columns:0.9fr 0.9fr 1.4fr; gap:10px; align-items:end; } .mall-search label { color:var(--muted); font-size:12px; font-weight:700; } .mall-search input { margin-top:4px; } .mall-search .primary-button { padding:10px 16px; white-space:nowrap; } .mall-key-row { display:flex; align-items:end; gap:9px; margin-top:11px; } .mall-key-row label { flex:1; color:var(--muted); font-size:12px; font-weight:700; } .mall-key-row input { margin-top:4px; } .mall-key-row .secondary-button { padding:9px 12px; font-size:12px; white-space:nowrap; } .mall-key-state { color:var(--teal-dark); font-size:11px; font-weight:700; padding-bottom:10px; } .mall-key-state.missing { color:var(--muted); font-weight:400; } .mall-research { border:1px solid #d6e2de; border-left:3px solid var(--teal); background:#f5faf8; padding:11px; margin-top:12px; font-size:12px; line-height:1.65; border-radius:5px; } .mall-research strong { color:var(--teal-dark); } .mall-table { margin-top:9px; background:#fff; } .mall-table th,.mall-table td { padding:7px 9px; font-size:12px; } .mall-table td small { display:block; color:var(--muted); font-size:10px; margin-top:1px; }
.panel-note { color:var(--muted); font-size:11px; } .api-row { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; margin-top:11px; padding-top:11px; border-top:1px solid #eef1f0; } .api-row:first-of-type { margin-top:0; padding-top:0; border-top:0; } .api-info { min-width:0; flex:1; } .api-row .secondary-button { padding:7px 10px; font-size:12px; white-space:nowrap; }
.mall-subtitle { margin:12px 0 0; padding-top:11px; border-top:1px solid #eef1f0; color:var(--muted); font-size:11px; line-height:1.6; }
.radius-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:11px; padding-bottom:11px; border-bottom:1px solid #eef1f0; } .radius-row label { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:12px; font-weight:700; } .radius-row select { width:auto; min-width:96px; padding:6px 9px; font-size:12px; } .radius-hint { color:var(--muted); font-size:11px; }
body { margin:0; max-width:100%; overflow-x:hidden; color:var(--ink); background:var(--paper); font:14px/1.45 Inter,"Microsoft YaHei",system-ui,sans-serif; }
button,input,select,textarea { font:inherit; } button { cursor:pointer; } input,select,textarea { width:100%; border:1px solid var(--line); border-radius:5px; padding:10px 11px; background:#fff; color:var(--ink); outline:none; } input:focus,select:focus,textarea:focus { border-color:var(--teal); box-shadow:0 0 0 3px rgba(14,117,107,.11); }
.app-header { min-height:92px; background:#183a39; color:#fff; display:flex; align-items:center; justify-content:space-between; padding:18px max(28px,calc((100vw - 1480px)/2)); }
h1,h2,p { margin:0; } h1 { font-size:25px; font-weight:700; letter-spacing:0; } h2 { font-size:17px; line-height:1.2; } .eyebrow { color:var(--orange); font-size:10px; font-weight:800; letter-spacing:1.1px; margin-bottom:5px; }
.header-note { color:#d6e5e0; display:flex; align-items:center; gap:8px; font-size:13px; } .status-dot { width:8px; height:8px; border-radius:50%; background:#8ed6bb; display:inline-block; }
.layout { max-width:1600px; margin:0 auto; display:grid; grid-template-columns:minmax(0,1fr) 10px min(var(--aside-width,340px), 34vw); gap:0 16px; padding:24px 28px 48px; align-items:start; } .workspace { min-width:0; display:flex; flex-direction:column; gap:18px; }

/* ───────── 左侧功能栏：默认收起成图标条，鼠标移上去自动展开显示文字 ───────── */
.layout.with-nav { grid-template-columns:64px minmax(0,1fr); transition:grid-template-columns .24s cubic-bezier(.4,.15,.2,1); }
/* 悬停展开：推开主内容，而不是盖在上面（避免挡住页面标题） */
.layout.with-nav.nav-open { grid-template-columns:186px minmax(0,1fr); }
.side-nav-badge { margin-left:auto; min-width:20px; padding:1px 6px; border-radius:999px; background:rgba(47,125,109,.12); color:var(--teal-dark); font-size:10px; font-weight:800; text-align:center; }
.side-nav-badge:empty { display:none; }
.side-nav-item.active .side-nav-badge { background:rgba(255,255,255,.24); color:#fff; }
.side-nav { position:sticky; top:16px; z-index:30; display:flex; flex-direction:column; gap:6px; padding:8px;
  width:100%; border-radius:18px; overflow:hidden;
  background:rgba(255,255,255,.82); border:1px solid var(--line); box-shadow:0 10px 26px rgba(20,45,40,.07);
  -webkit-backdrop-filter:blur(14px) saturate(140%); backdrop-filter:blur(14px) saturate(140%);
  transition:box-shadow .24s ease; }
.layout.nav-open .side-nav { box-shadow:0 18px 44px rgba(20,45,40,.14); }
.side-nav-item { position:relative; display:flex; align-items:center; gap:12px; width:100%; padding:10px 11px; border:0; border-radius:12px;
  background:transparent; color:#5a6a66; font-size:13px; font-weight:700; text-align:left; cursor:pointer; white-space:nowrap;
  transition:background .16s ease, color .16s ease, box-shadow .16s ease; }
.side-nav-item:hover { background:#eef7f5; color:var(--teal-dark); }
.side-nav-item.active { background:linear-gradient(135deg,#2f7d6d,#25675a); color:#fff; box-shadow:0 8px 18px rgba(37,103,90,.24); }
.side-nav-item.active::before { content:""; position:absolute; left:-8px; top:50%; transform:translateY(-50%); width:3px; height:22px; border-radius:0 3px 3px 0; background:#2f7d6d; }
.side-nav-icon { flex:0 0 24px; display:grid; place-items:center; width:24px; height:24px; border-radius:8px; background:rgba(47,125,109,.10); color:inherit; }
.side-nav-item.active .side-nav-icon { background:rgba(255,255,255,.2); }
.side-nav-item:hover .side-nav-icon { background:rgba(47,125,109,.16); }
.side-nav-item.active:hover .side-nav-icon { background:rgba(255,255,255,.24); }
.side-nav-text { opacity:0; transform:translateX(-6px); transition:opacity .16s ease .06s, transform .2s ease .06s; }
.layout.nav-open .side-nav-text { opacity:1; transform:none; }
/* 触屏没有 hover：直接显示文字，不做展开动画 */
@media (hover: none) { .layout.with-nav { grid-template-columns:auto minmax(0,1fr) 10px min(var(--aside-width,340px), 34vw); } .side-nav { width:auto; } .side-nav-text { opacity:1; transform:none; } }
.page { display:flex; flex-direction:column; gap:18px; }
.page.hidden { display:none; }
/* API 设置页：两栏卡片，避免大片空白 */
.api-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px; align-items:start; }
.api-grid .plain-panel { height:100%; }
.api-grid .span-two-api { grid-column:1 / -1; height:auto; }
.api-privacy { margin:4px 0 0; padding-left:20px; display:flex; flex-direction:column; gap:7px; color:#4a5554; font-size:12px; line-height:1.7; }
.api-privacy strong { color:var(--ink); }
.api-status-list { list-style:none; margin:10px 0 0; padding:0; display:flex; flex-direction:column; gap:6px; }
.api-status-list li { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:7px 10px; border-radius:9px; background:#f6faf9; font-size:12px; color:#4a5554; }
.api-status-list li > span { display:flex; align-items:center; gap:6px; }
.api-status-list li em { font-style:normal; font-size:10px; color:var(--teal-dark); background:#e6f4ef; border-radius:999px; padding:1px 7px; }
.api-status-list b { font-weight:700; color:var(--ink); }
.api-status-list b.ok { color:#2f7d6d; }
.api-status-list b.warn { color:#b45309; }
@media (max-width:900px) { .api-grid { grid-template-columns:1fr; } .api-grid .span-two-api { grid-column:auto; } }
/* API 设置页：右侧「收款渠道关键词」跟它无关，切过去时让主区占满 */
/* 收款渠道关键词页：用整屏宽度铺成多列，比原来 340px 的窄栏好编辑 */
.page-channels .strategy-panel { position:static; align-self:stretch; width:100%; max-height:none; padding:20px 22px; }
.page-channels .strategy-list { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px,1fr)); gap:12px; overflow:visible; padding-right:0; }
.page-channels .strategy-card { height:100%; }
.strategy-search-row { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.strategy-search-row .strategy-search { flex:1; min-width:220px; }
.strategy-search-hint { color:var(--muted); font-size:11px; }
.strategy-foot { margin-top:18px; padding:16px 18px; border-radius:14px; background:#f6faf9; border:1px solid #e6efec; }
.strategy-foot h4 { margin:0 0 8px; font-size:13px; color:var(--teal-dark); }
.strategy-foot ul { margin:0; padding-left:20px; display:flex; flex-direction:column; gap:6px; color:#4a5554; font-size:12px; line-height:1.7; }
.strategy-foot strong { color:var(--ink); }
@media (max-width:1250px) { .layout.with-nav { grid-template-columns:64px minmax(0,1fr); } }
@media (max-width:760px) {
  .layout.with-nav, body.page-is-api .layout.with-nav { grid-template-columns:1fr; }
  .side-nav { position:static; width:auto; flex-direction:row; gap:8px; }
  .side-nav-item { justify-content:center; }
  .side-nav-text { opacity:1; transform:none; }
}
.control-band,.plain-panel,.strategy-panel,.result-panel { background:var(--panel); border:1px solid var(--line); box-shadow:var(--shadow); } .control-band { display:flex; align-items:end; padding:14px 16px; gap:22px; border-radius:6px; } .field-block { min-width:160px; } .field-block.grow { flex:1; max-width:350px; } .field-block label,.plain-panel label,.mapping label { display:block; color:var(--muted); font-size:12px; font-weight:700; margin-bottom:6px; }
.segmented { display:flex; border:1px solid var(--line); border-radius:5px; overflow:hidden; height:40px; } .segmented button { flex:1; border:0; background:#fff; color:var(--muted); padding:0 16px; border-right:1px solid var(--line); } .segmented button:last-child { border-right:0; } .segmented button.active { background:var(--teal); color:#fff; font-weight:700; } .icon-button { border:1px solid var(--line); width:40px; height:40px; border-radius:5px; background:#fff; color:var(--teal-dark); font-size:21px; }
.upload-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; } .upload-card { background:var(--panel); border:1px solid var(--line); border-radius:6px; padding:16px; box-shadow:var(--shadow); } .upload-card.history { border-top:4px solid #bd8e55; } .upload-card.current { border-top:4px solid var(--teal); } .card-topline { display:flex; gap:10px; align-items:center; margin-bottom:13px; font-size:15px; } .card-topline span { display:grid; place-items:center; width:25px; height:25px; color:#fff; font-size:11px; font-weight:800; border-radius:50%; background:#bd8e55; } .current .card-topline span { background:var(--teal); }
.dropzone { min-height:142px; border:1px dashed #afc2bd; border-radius:5px; background:#fbfdfc; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; cursor:pointer; margin-bottom:12px; transition:.2s; } .dropzone:hover { background:var(--teal-soft); border-color:var(--teal); } .dropzone input { display:none; } .upload-symbol { width:29px; height:29px; border-radius:50%; display:grid; place-items:center; background:#deece8; color:var(--teal); font-size:19px; font-weight:800; } .history .upload-symbol { background:#f4e6d3; color:#a86c2e; } .drop-title { font-weight:700; margin-top:3px; } .drop-help,.file-state { color:var(--muted); font-size:12px; } .file-state { min-height:18px; margin-top:8px; } .file-state.loaded { color:var(--teal-dark); font-weight:700; } .date-range { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:9px; } .date-range label { color:var(--muted); font-size:11px; font-weight:700; } .date-range input { padding:7px; margin-top:3px; font-size:12px; } .mapping { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:10px; padding-top:10px; border-top:1px solid #edf0ef; } .mapping label { margin:0; } .mapping select { padding:7px 8px; margin-top:3px; font-size:12px; }.hidden { display:none; }
.meta-grid { display:grid; grid-template-columns:1.15fr 1fr; gap:18px; } .plain-panel { border-radius:6px; padding:17px; } .panel-heading,.strategy-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:14px; } .panel-heading>span { color:var(--muted); font-size:12px; } .model-grid,.location-selects { display:grid; grid-template-columns:1fr 1fr; gap:11px; } .plain-panel label { margin:0; } .plain-panel input,.plain-panel textarea { margin-top:4px; } .location-selects { margin-top:11px; }.location-selects label { color:var(--muted); font-size:12px; font-weight:700; }.full-field { display:block; margin-top:11px!important; } .first-field { margin-top:0!important; } .factor-options { display:grid; grid-template-columns:1fr; gap:7px; margin-top:11px; } .factor-option { display:flex; align-items:center; gap:9px; padding:8px 9px; background:#f7faf8; border:1px solid #dde8e4; border-radius:5px; cursor:pointer; } .factor-option input { width:auto; margin:0; accent-color:var(--teal); } .factor-option span { display:flex; flex-direction:column; } .factor-option strong { font-size:12px; }.factor-option small { color:var(--muted); font-size:11px; margin-top:1px; }.weather-action { display:flex; align-items:center; gap:10px; margin-top:11px; }.weather-action .secondary-button { padding:7px 10px; font-size:12px; }.weather-action span { color:var(--muted); font-size:11px; }.weather-research { border:1px solid #cde2da; border-left:3px solid var(--teal); background:#f1f8f5; padding:10px; margin-top:10px; font-size:12px; line-height:1.6; }.weather-research strong { color:var(--teal-dark); }.text-button { border:0; padding:3px 0; background:transparent; color:var(--teal); font-weight:700; font-size:12px; }.model-grid label { font-size:12px; color:var(--muted); font-weight:700; }.model-grid input,.model-grid select { margin-top:4px; }.span-two { grid-column:span 2; }
.actions { background:#eaf3f0; border:1px solid #cbe0d9; min-height:72px; padding:13px 16px; border-radius:6px; display:flex; align-items:center; justify-content:space-between; gap:16px; } .actions strong,.actions span { display:block; } .actions strong { font-size:14px; } .actions span { color:var(--muted); font-size:12px; margin-top:2px; }.action-buttons { display:flex; gap:9px; }.primary-button,.secondary-button { border-radius:5px; padding:10px 14px; font-weight:800; border:1px solid var(--teal); }.primary-button { background:var(--teal); color:#fff; }.primary-button:hover { background:var(--teal-dark); }.secondary-button { color:var(--teal-dark); background:#fff; }
.result-panel { min-height:290px; border-radius:6px; overflow:hidden; }.result-empty { min-height:288px; display:grid; place-content:center; text-align:center; color:var(--muted); padding:30px; }.result-empty h2 { color:var(--ink); margin:8px 0 4px; }.result-icon { font-size:29px; color:var(--teal); }.result-content { padding:20px; }.result-top { display:flex; justify-content:space-between; gap:16px; align-items:start; margin-bottom:16px; }.result-top p { color:var(--muted); margin-top:5px; }.export-button { padding:9px 12px; background:#fff; color:var(--teal-dark); border:1px solid var(--teal); border-radius:5px; font-weight:700; white-space:nowrap; }.summary-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:11px; margin-bottom:18px; }.summary-card { border:1px solid var(--line); border-radius:5px; padding:12px; background:#fbfcfb; }.summary-card span { display:block; color:var(--muted); font-size:12px; }.summary-card strong { display:block; font-size:20px; margin-top:4px; }.positive { color:#087c65!important; }.negative { color:#c55335!important; }.result-table { width:100%; border-collapse:collapse; }.result-table th { text-align:left; background:#eff4f2; color:#51615f; font-size:12px; }.result-table th,.result-table td { border-bottom:1px solid #e2e9e7; padding:10px; }.result-table td:not(:first-child),.result-table th:not(:first-child) { text-align:right; }.insight { border-left:3px solid var(--orange); padding:10px 12px; background:#fff8f4; margin-top:17px; white-space:pre-wrap; line-height:1.65; }.insight-title { font-size:12px; font-weight:800; color:#b65528; margin-bottom:5px; }
.strategy-panel { align-self:start; position:sticky; top:16px; border-radius:var(--radius); padding:18px; display:flex; flex-direction:column; max-height:calc(100vh - 32px); } .strategy-list { overflow:auto; flex:1 1 auto; min-height:0; padding-right:4px; }.add-button { border:1px solid var(--teal); background:#fff; color:var(--teal); border-radius:4px; width:31px; height:31px; font-size:21px; line-height:1; }.strategy-help { font-size:12px; color:var(--muted); margin-bottom:10px; }.strategy-search { padding:9px 10px; font-size:12px; }.strategy-match-state { min-height:18px; color:var(--teal-dark); font-size:11px; margin:6px 0 10px; }.strategy-list { display:flex; flex-direction:column; gap:10px; }.strategy-card { padding:11px; border:1px solid var(--line); border-radius:5px; background:#fbfcfb; }.strategy-card-head { display:grid; grid-template-columns:16px 1fr 25px; align-items:center; gap:6px; margin-bottom:8px; }.drag-mark { color:#a0afac; line-height:.6; font-size:16px; transform:rotate(90deg); }.strategy-name { border:0; background:transparent; padding:3px 0; font-weight:800; }.strategy-name:focus { box-shadow:none; }.remove-strategy { border:0; background:transparent; color:#a1aaa9; font-size:20px; }.strategy-terms { resize:vertical; min-height:60px; background:#fff; padding:7px; font-size:12px; }.include-switch { display:flex; gap:6px; align-items:center; margin-top:8px; color:var(--muted); font-size:12px; }.include-switch input { width:auto; accent-color:var(--teal); }
.store-location-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:11px 12px; background:#f7faf8; border:1px solid #dde8e4; border-radius:5px; }.store-location-info { min-width:0; }.store-location-title { margin:0; color:var(--muted); font-size:11px; font-weight:700; letter-spacing:.04em; }.store-location-value { margin:3px 0 0; font-size:13px; font-weight:700; color:var(--ink); overflow-wrap:anywhere; }.store-location-value.confirmed { color:var(--teal-dark); }.store-location-hint { margin:3px 0 0; color:var(--muted); font-size:11px; }.store-location-row .secondary-button { flex:none; padding:8px 12px; font-size:12px; }.picker-manual { margin-top:14px; padding-top:12px; border-top:1px dashed var(--line); }.picker-manual-title { margin:0 0 9px; color:var(--muted); font-size:11px; line-height:1.6; }.picker-manual .location-selects { grid-template-columns:repeat(3,minmax(0,1fr)); }.location-load-state { margin-top:9px; color:var(--muted); font-size:11px; line-height:1.6; }.location-load-state.error { color:#c55335; font-weight:700; }
.trend-panel { border:1px solid var(--line); border-radius:6px; padding:14px; margin-bottom:18px; background:#fbfcfb; }.trend-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; margin-bottom:12px; }.trend-head h3 { margin:2px 0 0; font-size:15px; }.trend-note { color:var(--muted); font-size:11px; line-height:1.6; text-align:right; max-width:58%; }.bar-axis { display:grid; grid-template-columns:104px 1fr 252px; margin-bottom:4px; }.bar-ticks { display:flex; justify-content:space-between; color:#8a9493; font-size:11px; }.bar-chart { display:flex; flex-direction:column; gap:9px; }.bar-row { display:grid; grid-template-columns:104px 1fr 252px; align-items:center; }.bar-row.hot .bar-name { color:var(--teal-dark); }.bar-row.hot .bar-current { box-shadow:0 0 0 1px var(--teal-dark); }.bar-name { font-size:12px; font-weight:700; padding-right:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.bar-track { display:flex; flex-direction:column; gap:3px; border-left:1px solid #dfe7e4; background-image:linear-gradient(to right, #e9efed 1px, transparent 1px); background-size:25% 100%; padding:2px 0; }.bar { display:block; height:11px; border-radius:2px; }.bar-previous { background:#b7d3ca; }.bar-current { background:var(--teal); }.bar-values { display:flex; align-items:baseline; justify-content:flex-end; gap:6px; padding-left:12px; color:var(--muted); font-size:11px; }.bar-values .num { color:var(--ink); font-size:12px; font-variant-numeric:tabular-nums; }.bar-values b { font-size:12px; font-weight:800; }.trend-legend { display:flex; flex-wrap:wrap; gap:7px 16px; margin-top:12px; color:var(--muted); font-size:11px; }.trend-legend-item { display:inline-flex; align-items:center; gap:6px; }.trend-swatch { width:15px; height:4px; border-radius:2px; flex:none; }.trend-swatch.previous { background:#b7d3ca; }.trend-swatch.current { background:var(--teal); }
/* 中等宽度：关键词面板仍然固定在右侧，只是整体变紧凑（面板宽度会按 34vw 自动收窄） */
@media (max-width:1200px) { .layout { padding:20px 18px 44px; gap:0 12px; }.strategy-panel { padding:14px; } }
/* 只有窄到 760px 以下才改成单列（这时候两栏确实放不下） */
@media (max-width:760px) { .layout { grid-template-columns:1fr; }.strategy-panel { position:static; }.strategy-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }.control-band { flex-wrap:wrap; }.field-block.grow { max-width:none; } }
@media (max-width:680px) { .app-header { padding:17px 18px; }.header-note { display:none; }.layout { padding:16px; }.upload-grid,.meta-grid,.model-grid,.location-selects,.summary-cards { grid-template-columns:1fr; }.span-two { grid-column:auto; }.control-band { display:grid; grid-template-columns:1fr 1fr 40px; gap:12px; }.field-block.grow { grid-column:span 2; }.upload-card { padding:13px; }.strategy-list { grid-template-columns:1fr; }.actions { align-items:stretch; flex-direction:column; }.action-buttons { display:grid; grid-template-columns:1fr 1fr; }.result-top { flex-direction:column; }.result-table { font-size:12px; }.result-table th,.result-table td { padding:8px 5px; }.weather-action { align-items:flex-start; flex-direction:column; gap:5px; } }
@media (max-width:680px) { .store-location-row { align-items:flex-start; flex-direction:column; }.picker-manual .location-selects { grid-template-columns:1fr; }.trend-head { flex-direction:column; }.trend-note { max-width:100%; text-align:left; }.bar-axis { grid-template-columns:88px 1fr; }.bar-axis>span:last-child { display:none; }.bar-row { grid-template-columns:88px 1fr; align-items:start; }.bar-values { grid-column:2; justify-content:flex-start; padding:3px 0 0; }.bar-name { padding-top:3px; }.mall-search { grid-template-columns:1fr 1fr; }.mall-search .primary-button { grid-column:span 2; }.member-panel { padding:14px; }.member-head { flex-direction:column; }.member-note { max-width:100%; text-align:left; }.member-kpis { grid-template-columns:1fr 1fr; }.member-grid { grid-template-columns:1fr; }.member-block .bar-row { grid-template-columns:80px 1fr; } }
.header-side { display:flex; align-items:center; gap:14px; }.header-button { border:1px solid #3d5f5c; background:rgba(255,255,255,.06); color:#d6e5e0; border-radius:5px; padding:7px 12px; font-size:12px; font-weight:700; cursor:pointer; }.header-button:hover { background:rgba(255,255,255,.16); }.header-count { color:#8fd0bf; font-weight:800; }.solution-card { width:min(760px,94vw); }.solution-toolbar { display:flex; align-items:center; gap:12px; margin:12px 0 6px; }.solution-state { color:var(--muted); font-size:11px; }.solution-list { display:flex; flex-direction:column; gap:12px; }.solution-item { border:1px solid var(--line); border-radius:6px; padding:12px; background:#fbfcfb; }.solution-item-head { display:grid; grid-template-columns:1fr 28px; gap:8px; align-items:center; margin-bottom:8px; }.solution-title { font-weight:700; }.remove-solution { border:0; background:transparent; color:#a1aaa9; font-size:19px; cursor:pointer; }.solution-fields { display:grid; grid-template-columns:1.4fr .6fr; gap:10px; }.solution-fields label,.solution-wide { display:block; color:var(--muted); font-size:11px; font-weight:700; }.solution-item input,.solution-item select,.solution-item textarea { margin-top:4px; }.solution-wide { margin-top:9px!important; }.solution-empty { margin:0; color:var(--muted); font-size:12px; line-height:1.7; }.playbook-panel { border:1px solid #d6e2de; border-radius:6px; padding:15px; margin-top:17px; background:#f7fbf9; }.playbook-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; margin-bottom:12px; }.playbook-head h3 { margin:3px 0 0; font-size:16px; }.playbook-head>span { max-width:52%; color:var(--muted); font-size:11px; line-height:1.6; text-align:right; }.playbook-row { border-top:1px solid #e4ece9; margin-top:11px; padding-top:11px; }.playbook-row:first-of-type { border-top:0; margin-top:0; padding-top:0; }.playbook-row-head { display:flex; align-items:baseline; gap:10px; margin-bottom:7px; }.playbook-row-head strong { font-size:14px; }.playbook-row-head span { font-size:12px; font-weight:700; }.playbook-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }.playbook-item { border:1px solid var(--line); border-radius:5px; padding:10px 11px; background:#fff; }.playbook-item-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:5px; }.playbook-item p { margin:0; color:#3f4b49; font-size:12px; line-height:1.7; white-space:pre-wrap; }.playbook-item small { display:block; margin-top:5px; color:var(--muted); font-size:11px; }.playbook-status { flex:none; border-radius:3px; padding:2px 7px; font-size:10px; font-weight:800; }.playbook-status.todo { background:#fdf3e7; color:#8a5a22; }.playbook-status.done { background:#eaf1fb; color:#2a4f86; }.playbook-status.good { background:#e6f4ef; color:var(--teal-dark); }.playbook-empty { margin:0; color:var(--muted); font-size:12px; }.playbook-foot { margin:12px 0 0; border-top:1px dashed #dde8e4; padding-top:10px; color:var(--muted); font-size:11px; line-height:1.7; }
.result-stale { margin-top:7px; padding:5px 9px; border-radius:4px; background:#fdf3e7; border:1px solid #eed7bb; color:#8a5a22; font-size:11px; }
.mall-location-state { margin-top:10px; padding:8px 10px; border-radius:5px; background:#f1f8f5; border:1px solid #cde2da; color:var(--ink); font-size:12px; line-height:1.6; }.mall-location-state.hidden { display:none; }.mall-location-state .text-button { margin-left:8px; }
.mapping-note { margin:7px 0 0; color:var(--muted); font-size:11px; line-height:1.6; }
.primary-button.needs-location { background:#c4cfcc; border-color:#c4cfcc; color:#fff; cursor:pointer; }.primary-button.needs-location:hover { background:#b6c3bf; }
.member-panel { background:var(--panel); border:1px solid var(--line); border-radius:6px; padding:20px; }.member-empty { min-height:200px; }.member-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; margin-bottom:16px; }.member-head h2 { margin:3px 0 0; font-size:19px; }.member-note { max-width:52%; color:var(--muted); font-size:11px; line-height:1.6; text-align:right; }.member-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; margin-bottom:16px; }.member-kpi { border:1px solid var(--line); border-radius:6px; padding:12px; background:linear-gradient(180deg,#fbfdfc,#f4f9f7); }.member-kpi-label { display:block; color:var(--muted); font-size:11px; font-weight:700; }.member-kpi-value { display:block; margin-top:5px; font-size:21px; font-weight:800; color:var(--ink); font-variant-numeric:tabular-nums; }.member-kpi-compare { display:block; margin-top:5px; color:var(--muted); font-size:11px; }.member-kpi-hint { display:block; margin-top:2px; color:#a7b1af; font-size:10px; }.member-grid { display:grid; grid-template-columns:1.15fr 1fr; gap:16px; }.member-block { border:1px solid var(--line); border-radius:6px; padding:14px; background:#fbfcfb; }.member-block h3 { margin:0 0 12px; font-size:14px; color:var(--teal-dark); }.member-block .bar-row { grid-template-columns:96px 1fr 178px; }.member-block .bar-values { padding-left:10px; gap:5px; }.member-block .bar-values .num { font-size:11px; }.member-share { color:var(--teal-dark); font-size:11px; font-weight:800; }.member-derived { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }.member-derived li { border-bottom:1px dashed #e6ecea; padding-bottom:9px; }.member-derived li:last-child { border-bottom:0; padding-bottom:0; }.member-derived span { display:block; color:var(--muted); font-size:11px; }.member-derived b { display:inline-block; margin-top:3px; font-size:17px; font-variant-numeric:tabular-nums; }.member-derived small { display:block; margin-top:2px; color:var(--muted); font-size:11px; }.member-derived em { font-style:normal; font-weight:700; }.member-insight { margin-top:16px; }.member-empty-line { margin:0; color:var(--muted); font-size:12px; line-height:1.7; }
.bar-chart { position:relative; }.bar-values.muted { color:#a7b1af; font-size:11px; }.trend-panel.empty .bar-track { background-image:linear-gradient(to right, #eef1f0 1px, transparent 1px); }.chart-overlay { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; background:rgba(251,252,251,.84); border-radius:5px; }.chart-hint { border:1px dashed var(--teal); background:#fff; color:var(--teal-dark); font-weight:800; font-size:14px; padding:13px 30px; border-radius:6px; cursor:pointer; }.chart-hint:hover { background:#eef7f4; }.chart-overlay span { color:var(--muted); font-size:11px; }@keyframes flashRing { 0% { box-shadow:0 0 0 0 rgba(15,118,110,.5); } 100% { box-shadow:0 0 0 16px rgba(15,118,110,0); } }.flash { animation:flashRing 1.2s ease-out 2; border-radius:8px; }
.upload-card { transition:border-color .15s ease, box-shadow .15s ease, background .15s ease; }.upload-card.drop-active { border-color:var(--teal)!important; box-shadow:0 0 0 3px rgba(15,118,110,.18); background:#f2faf7; }.upload-card.drop-active .dropzone { border-color:var(--teal); background:#eaf7f3; }.upload-card.drop-active .dropzone::after { content:"松手即可导入"; position:absolute; left:0; right:0; bottom:10px; text-align:center; color:var(--teal-dark); font-size:12px; font-weight:800; }.dropzone { position:relative; }.drop-hint { margin:0; color:var(--muted); font-size:11px; }
.solution-filter { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0 12px; }.filter-chip { display:inline-flex; align-items:center; gap:5px; border:1px solid var(--line); background:#fff; color:#51615f; border-radius:999px; padding:5px 11px; font-size:12px; cursor:pointer; }.filter-chip span { color:#9aa5a3; font-size:11px; font-variant-numeric:tabular-nums; }.filter-chip:hover { border-color:#9dc3b8; }.filter-chip.active { background:var(--teal); border-color:var(--teal); color:#fff; font-weight:700; }.filter-chip.active span { color:#d6ece5; }.solution-group { border-top:1px solid #eef1f0; padding-top:12px; margin-top:12px; }.solution-group:first-child { border-top:0; padding-top:0; margin-top:0; }.solution-group-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }.solution-group-head h4 { margin:0; font-size:13px; color:var(--teal-dark); display:flex; align-items:center; gap:7px; }.solution-group-head h4 small { color:var(--muted); font-size:11px; font-weight:400; }.solution-group-head h4 span { color:var(--muted); font-size:11px; font-weight:400; }.solution-group .solution-item + .solution-item { margin-top:10px; }.solution-channel-row { display:flex; align-items:flex-start; gap:8px; margin:8px 0 10px; }.solution-channel-label { flex:none; color:var(--muted); font-size:11px; font-weight:700; padding-top:5px; }.solution-chips { display:flex; flex-wrap:wrap; gap:6px; }.channel-chip { border:1px dashed #c9d6d2; background:#fff; color:#51615f; border-radius:999px; padding:4px 10px; font-size:11px; cursor:pointer; }.channel-chip:hover { border-color:var(--teal); color:var(--teal-dark); }.channel-chip.on { background:#e6f4ef; border:1px solid var(--teal); color:var(--teal-dark); font-weight:700; }.playbook-head .text-button { margin-left:8px; }

/* ==========================================================================
   现代化主题：只覆盖观感（颜色/字体/圆角/阴影/间距），不改结构与类名。
   放在 styles.css 末尾，同优先级下后者生效。
   ========================================================================== */
:root {
  --ink: #111827;
  --muted: #6b7280;
  --line: #e7e9ee;
  --panel: #ffffff;
  --bg: #f4f6f8;
  --teal: #0f9d8f;
  --teal-dark: #0b7f74;
  --orange: #f59e0b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -16px rgba(16, 24, 40, .22);
}

body { background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* 顶栏：深色条换成白底细线，标题层级靠字重和字号 */
.app-header { min-height: auto; padding: 20px 32px; background: #fff; border-bottom: 1px solid var(--line); align-items: center; }
h1 { font-size: 22px; letter-spacing: -.015em; }
.eyebrow { color: #9aa1ad; font-size: 11px; letter-spacing: .09em; font-weight: 600; }
.header-left, .header-side { gap: 16px; }
.header-note { color: var(--muted); font-size: 12px; }
.status-dot { background: var(--teal); box-shadow: 0 0 0 3px rgba(15, 157, 143, .14); }
.header-button { border: 1px solid var(--line); background: #fff; color: #374151; border-radius: var(--radius-sm); padding: 8px 14px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm); }
.header-button:hover { background: #f8fafb; border-color: #d8dce3; }
.header-count { color: var(--teal-dark); }
.gear { margin-right: 5px; }

/* 版心与栅格 */
.layout { padding: 24px 32px 64px; gap: 20px; }
.upload-grid { gap: 18px; }
.meta-grid { gap: 20px; }

/* 统一的卡片表面：去掉硬边框堆叠，用细线 + 柔和阴影 */
.control-band, .plain-panel, .upload-card, .result-panel, .member-panel, .strategy-panel, .actions,
.trend-panel, .member-block, .playbook-panel, .location-research, .mall-research, .weather-research {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.control-band { padding: 16px 18px; }
.plain-panel { padding: 20px; }
.upload-card { padding: 18px; }
.result-panel, .member-panel { padding: 0; box-shadow: var(--shadow); }
.result-content, .member-content { padding: 24px; }
.panel-heading { margin-bottom: 16px; }
.panel-heading h2, .member-head h2 { font-size: 18px; letter-spacing: -.01em; }
.panel-heading > span, .panel-note { font-size: 12px; color: var(--muted); }

/* 表单控件：更大的点击区、圆角、聚焦光环 */
input, select, textarea { border: 1px solid #dfe3e9; border-radius: var(--radius-sm); padding: 9px 12px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #cfd5de; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 157, 143, .15); }
::placeholder { color: #a9b0bb; }

/* 按钮 */
.primary-button, .secondary-button { border-radius: var(--radius-sm); padding: 10px 18px; font-weight: 600; font-size: 13px; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; }
.primary-button { background: var(--teal); border-color: var(--teal); box-shadow: 0 1px 2px rgba(11, 127, 116, .2); }
.primary-button:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.primary-button:active { transform: translateY(1px); }
.secondary-button { background: #fff; border-color: #dfe3e9; color: #374151; }
.secondary-button:hover { border-color: var(--teal); color: var(--teal-dark); background: #f6fdfb; }
.text-button { color: var(--teal-dark); font-weight: 600; }
.icon-button { border-radius: var(--radius-sm); border-color: var(--line); }
.add-button { border-radius: var(--radius-sm); }

/* 分段控件：灰底 + 白色滑块 */
.segmented { border: 1px solid var(--line); background: #f2f4f7; border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.segmented button { border-radius: 7px; padding: 7px 14px; font-size: 13px; color: var(--muted); font-weight: 600; }
.segmented button.active { background: #fff; color: var(--teal-dark); box-shadow: var(--shadow-sm); }

/* 上传区 */
.dropzone { border: 1.5px dashed #d5dae2; border-radius: var(--radius-sm); background: #fafbfc; min-height: 128px; padding: 20px; transition: border-color .15s, background .15s; }
.dropzone:hover { border-color: var(--teal); background: #f3fbf9; }
.upload-symbol { color: var(--teal); font-size: 20px; }
.drop-title { font-size: 14px; font-weight: 700; }
.drop-help { color: var(--muted); font-size: 12px; }
.card-topline span { color: var(--teal); font-weight: 700; }
.file-state { font-size: 12px; }
.date-hint { font-size: 12px; }
.mapping-note { font-size: 12px; }

/* 影响因素 / 勾选项 */
.factor-option { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfcfd; padding: 11px 13px; }
.factor-option:hover { border-color: #d3dae2; background: #f7fafb; }
.factor-option strong { font-size: 13px; }
.factor-option small { font-size: 12px; }
.factor-option input { accent-color: var(--teal); }
.store-location-row { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfcfd; padding: 13px 14px; }
.store-location-title { font-size: 12px; }
.store-location-value { font-size: 13px; }
.store-location-hint { font-size: 12px; }

/* 结果区 */
.summary-cards { gap: 14px; }
.summary-card { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfcfd; padding: 14px 16px; }
.summary-card span { font-size: 12px; }
.summary-card strong { font-size: 22px; }
.result-top h2 { font-size: 20px; letter-spacing: -.01em; }
.result-table th { background: #f7f9fa; color: #4b5563; font-size: 12px; font-weight: 600; }
.result-table th, .result-table td { border-bottom: 1px solid #eef0f3; padding: 11px 12px; }
.result-table tbody tr:hover { background: #fafcfc; }
.result-table td small { font-size: 11px; }
.export-button { border-radius: var(--radius-sm); border: 1px solid #dfe3e9; background: #fff; color: var(--teal-dark); font-weight: 600; padding: 9px 15px; }
.export-button:hover { border-color: var(--teal); background: #f6fdfb; }
.insight { border: 0; border-left: 3px solid var(--orange); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: #fffbeb; padding: 14px 16px; }
.insight-title { color: #b45309; font-size: 12px; }
.insight-body { font-size: 13px; line-height: 1.75; }

/* 图表与对策块 */
.trend-panel { padding: 18px; margin-bottom: 20px; }
.trend-head h3, .playbook-head h3 { font-size: 15px; }
.trend-note, .playbook-head > span { font-size: 12px; }
.bar-name { font-size: 12px; }
.bar-track { border-left-color: #e8ebef; background-image: linear-gradient(to right, #f0f2f5 1px, transparent 1px); }
.bar { height: 12px; border-radius: 4px; }
.bar-previous { background: #cfe3de; }
.bar-current { background: var(--teal); }
.bar-values .num { font-size: 12px; }
.playbook-panel { padding: 18px; margin-top: 20px; background: #fbfdfc; }
.playbook-item, .member-block { border-radius: var(--radius-sm); }
.playbook-status { border-radius: 6px; padding: 3px 8px; font-size: 11px; }

/* 会员板块 */
.member-kpis { gap: 14px; }
.member-kpi { border-radius: var(--radius-sm); padding: 14px 16px; background: linear-gradient(180deg, #fbfdfd, #f4f9f8); }
.member-kpi-label { font-size: 12px; }
.member-kpi-value { font-size: 22px; }
.member-kpi-compare { font-size: 12px; }
.member-block { padding: 16px; }
.member-block h3 { font-size: 14px; }
.member-derived b { font-size: 18px; }

/* 周边检索 / 弹窗 */
.radius-row, .picker-manual, .mall-location-state { border-radius: var(--radius-sm); }
.dialog-card { border-radius: 16px; box-shadow: 0 24px 64px -20px rgba(16, 24, 40, .35); padding: 24px; }
.dialog-head { margin-bottom: 16px; }
.dialog-head h2 { font-size: 19px; letter-spacing: -.01em; }
.dialog-note, .settings-note { font-size: 12px; line-height: 1.75; }
.settings-section { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.settings-section h3 { font-size: 14px; }
.settings-state { font-size: 12px; color: var(--muted); }
.picker-card .location-results, .location-map { border-radius: var(--radius-sm); }

/* 关键词面板 */
.strategy-panel { padding: 20px; }
.strategy-help { font-size: 12px; line-height: 1.7; }
.strategy-card { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfcfd; padding: 12px 13px; }
.strategy-name { font-size: 13px; }
.strategy-terms { border-radius: var(--radius-sm); }
.strategy-result { font-size: 12px; }
.strategy-match-state { font-size: 12px; }

/* 方案库 */
.filter-chip, .channel-chip { border-radius: 999px; font-size: 12px; padding: 6px 12px; border-color: #dfe3e9; }
.filter-chip.active { background: var(--teal); border-color: var(--teal); box-shadow: 0 1px 2px rgba(11, 127, 116, .2); }
.channel-chip.on { background: #e8f7f4; border-color: var(--teal); }
.solution-item { border-radius: var(--radius-sm); padding: 14px; }
.solution-group-head h4 { font-size: 13px; }

/* 底部动作条 */
.actions { padding: 16px 20px; background: #fff; }
.actions strong { font-size: 14px; }
.actions span { font-size: 12px; }
.run-option { font-size: 12px; }
.primary-button.needs-location { background: #e5e7eb; border-color: #e5e7eb; color: #9ca3af; box-shadow: none; }
.primary-button.needs-location:hover { background: #dcdfe4; }

/* 细滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d5d9e0; border: 3px solid transparent; background-clip: content-box; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #bcc2cc; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ── 第二轮：收掉几处残留的"早期后台"细节 ── */

/* 1. 上传卡片头顶那条 4px 彩色边 → 改成小圆点标记 */
.upload-card.history { border-top: 1px solid var(--line); }
.upload-card.current { border-top: 1px solid var(--line); }
.upload-card { position: relative; overflow: hidden; }
.upload-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #c9a227, #e0c56a); opacity: .9; }
.upload-card.current::before { background: linear-gradient(90deg, var(--teal), #57c5b6); }

/* 2. 复选框/单选框：去掉系统默认外观，改成细线圆角方块 */
input[type="checkbox"], input[type="radio"] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1.5px solid #cfd5de; border-radius: 5px; background: #fff; padding: 0; position: relative; cursor: pointer; transition: background .12s, border-color .12s; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:hover, input[type="radio"]:hover { border-color: var(--teal); }
input[type="checkbox"]:checked, input[type="radio"]:checked { background: var(--teal); border-color: var(--teal); }
input[type="checkbox"]:checked::after { content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
input[type="radio"]:checked::after { content: ''; position: absolute; left: 4px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.factor-option input, .include-switch input, .run-option input { accent-color: auto; }

/* 3. 分段控件：胶囊滑块 */
.segmented { border-radius: 999px; padding: 4px; }
.segmented button { border-right: 0; border-radius: 999px; padding: 7px 16px; }
.segmented button.active { box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }

/* 4. 次级按钮：弱化边框 */
.header-button, .secondary-button, .export-button { border-color: #eceef2; background: #f8fafb; }
.header-button:hover, .secondary-button:hover, .export-button:hover { background: #f1f5f7; border-color: #dfe3e9; }

/* 5. 日期输入：统一字号与图标观感 */
input[type="date"] { font-variant-numeric: tabular-nums; color: #374151; }
input[type="date"]::-webkit-calendar-picker-indicator { opacity: .45; cursor: pointer; }
input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: .8; }

/* 6. 卡片间距再放宽一点，减少拥挤感 */
.factor-options { gap: 9px; margin-top: 13px; }
.strategy-list { gap: 12px; }
.upload-card .date-range { gap: 10px; margin-top: 11px; }
.weather-action { margin-top: 13px; }

/* ── 第三轮：上传区图标化、关键词卡片轻量化 ── */

/* 上传区：虚线更轻，图标做成圆形浅底 */
.dropzone { border: 1px dashed #dfe3e9; background: #fcfdfe; }
.dropzone:hover { background: #f6fdfb; }
.upload-symbol { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 50%; background: #e8f7f4; color: var(--teal-dark); font-size: 18px; font-weight: 700; }
.drop-title { margin-top: 2px; }

/* 关键词卡片：去掉硬边框，用浅底 + 悬停浮起；删除按钮悬停才显形 */
.strategy-card { border: 1px solid transparent; background: #f8fafb; transition: background .15s, box-shadow .15s, border-color .15s; }
.strategy-card:hover { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.strategy-card-head { grid-template-columns: 14px 1fr 24px; }
.strategy-name { padding: 4px 2px; font-weight: 700; }
.strategy-name:hover { background: #f2f5f7; border-radius: 6px; }
.remove-strategy { color: #c3c9d2; border-radius: 999px; transition: background .15s, color .15s; opacity: .5; }
.strategy-card:hover .remove-strategy { opacity: 1; }
.remove-strategy:hover { background: #fee2e2; color: #dc2626; }
.include-switch { margin-top: 10px; gap: 8px; }
.strategy-result { margin-top: 8px; padding: 7px 9px; border-radius: 8px; background: #eef7f5; color: #37474f; }

/* 结果区行悬停更柔和 */
.result-table tbody tr:hover { background: #f7fbfa; }

/* 窄屏：保持两列，别被上面的桌面规则覆盖 */
@media (max-width:680px) { .member-kpis { grid-template-columns:1fr 1fr; } }

/* ───────── 手机端适配（≤760px）：底部标签栏 + 消除横向溢出 ─────────
   手机浏览器遇到"页面比屏幕宽"会自动把整页缩小（看起来就是穿模），所以这里的首要目标
   是让每一页的宽度严格不超过屏幕。 */
@media (max-width:760px) {
  /* ① 左侧栏变底部标签栏 */
  .layout.with-nav { grid-template-columns:minmax(0,1fr); padding-bottom:calc(78px + env(safe-area-inset-bottom)); }
  .side-nav { position:fixed; left:0; right:0; bottom:0; top:auto; z-index:60; flex-direction:row; gap:4px;
    padding:6px 8px calc(6px + env(safe-area-inset-bottom)); border-radius:16px 16px 0 0;
    border-left:0; border-right:0; border-bottom:0; box-shadow:0 -8px 26px rgba(20,45,40,.14); }
  .side-nav-item { position:relative; flex:1 1 0; min-width:0; flex-direction:column; gap:3px; justify-content:center; padding:8px 4px; font-size:10px; text-align:center; }
  .side-nav-text { opacity:1; transform:none; font-size:10px; max-width:100%; overflow:hidden; text-overflow:ellipsis; }
  .side-nav-badge { position:absolute; top:3px; right:8px; margin:0; font-size:9px; padding:0 5px; }
  .side-nav-item.active::before { display:none; }
  .side-nav-icon { flex:0 0 22px; width:22px; height:22px; }

  /* ② 消除各处横向溢出（这些都是实测撑宽页面的元素） */
  .layout { padding:14px 12px 24px; }
  .field-block, .field-block.grow { min-width:0; }
  .control-band { flex-wrap:wrap; gap:12px; }
  .control-band .field-block { flex:1 1 130px; }
  .actions { padding:12px; }
  .action-buttons { flex-wrap:wrap; }
  .result-content, .member-content { padding:14px; }
  .result-top { flex-direction:column; }
  .member-panel { padding:14px; }
  .member-block, .bar-chart, .bar-row, .bar-track, .trend-panel, .trend-head { min-width:0; }
  .bar-values { flex-wrap:wrap; }
  .trend-note { max-width:100%; text-align:left; }
  .plain-panel, .strategy-panel, .result-panel { max-width:100%; }
  .store-location-row { flex-wrap:wrap; }
  .mall-search { grid-template-columns:1fr; }
  .api-row { flex-wrap:wrap; }
  .model-summary, .model-key-state { overflow-wrap:anywhere; }
  .summary-cards { grid-template-columns:1fr; }

  /* ③ 结果表格：保持原尺寸，靠"点开全屏"看全（不压缩、不换行） */
  .table-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .table-tap-hint { display:flex; align-items:center; justify-content:center; gap:6px; margin:8px 0 0; padding:9px;
    border:1px dashed #c9d6d2; border-radius:10px; background:#f8fbfa; color:var(--teal-dark); font-size:12px; font-weight:700; }
}

@media (min-width:761px) { .table-tap-hint { display:none; } }

/* ───────── 表格全屏查看器（点一下进入，安卓可自动横屏） ───────── */
.table-viewer { position:fixed; inset:0; z-index:120; display:flex; flex-direction:column; background:#fff; }
.table-viewer.hidden { display:none; }
.table-viewer-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; border-bottom:1px solid var(--line); background:#fff; }
.table-viewer-head strong { font-size:14px; }
.table-viewer-head .table-viewer-tools { display:flex; align-items:center; gap:8px; }
.table-viewer-head button { padding:8px 12px; border-radius:9px; border:1px solid var(--line); background:#fff; color:var(--teal-dark); font-weight:700; font-size:12px; }
.table-viewer-head button.primary { background:var(--teal); border-color:var(--teal); color:#fff; }
.table-viewer-body { flex:1; overflow:auto; -webkit-overflow-scrolling:touch; padding:12px; touch-action:pinch-zoom; }
.table-viewer-body table { min-width:620px; }
/* 可选：把表格压进屏幕宽度（默认不开，保持"原尺寸"） */
.table-viewer-body.fit table { width:100%; min-width:0; table-layout:fixed; font-size:11px; }
.table-viewer-body.fit table th, .table-viewer-body.fit table td { padding:6px 4px; overflow-wrap:anywhere; }
.table-viewer-note { margin:0 0 10px; color:var(--muted); font-size:12px; }

/* ───────── 方案库管理台（全屏后台界面） ───────── */
.admin-view { position: fixed; inset: 0; z-index: 70; padding: 22px 32px 40px; background: var(--bg); overflow: auto; }
.admin-view.hidden { display: none; }
body.admin-open { overflow: hidden; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.admin-head h2 { margin: 4px 0 6px; font-size: 22px; letter-spacing: -.015em; }
.admin-sub { margin: 0; max-width: 760px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.admin-head-actions { display: flex; flex: none; gap: 10px; }
.admin-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.admin-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 12px 14px; cursor: pointer; text-align: left; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.admin-stat:hover { border-color: #cfd6dd; }
.admin-stat.active { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 157, 143, .14); }
.admin-stat b { font-size: 22px; font-variant-numeric: tabular-nums; }
.admin-stat small { color: var(--muted); font-size: 12px; }
.admin-stat-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5d3; }
.admin-stat.total .admin-stat-dot { background: var(--teal); }
.admin-stat.todo .admin-stat-dot { background: #c9a227; }
.admin-stat.doing .admin-stat-dot { background: #3b82f6; }
.admin-stat.good .admin-stat-dot { background: #10b981; }
.admin-stat.warn .admin-stat-dot { background: #f59e0b; }
.admin-body { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-list-pane, .admin-detail-pane { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.admin-list-pane { padding: 14px; position: sticky; top: 0; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.admin-list { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 320px); overflow: auto; }
.admin-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfcfd; padding: 11px 12px; cursor: pointer; text-align: left; transition: border-color .15s, background .15s, box-shadow .15s; }
.admin-item:hover { border-color: #cfd6dd; background: #fff; }
.admin-item.active { border-color: var(--teal); background: #f2fbf9; box-shadow: 0 0 0 3px rgba(15, 157, 143, .12); }
.admin-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.admin-item-top strong { font-size: 13px; line-height: 1.45; }
.admin-item-meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0 6px; }
.admin-tag { border-radius: 999px; background: #eef2f5; color: #55616b; padding: 2px 8px; font-size: 11px; }
.admin-tag.muted { background: transparent; color: #9aa1ad; padding-left: 0; }
.admin-item-nums { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 11px; }
.admin-item-nums b { color: var(--ink); font-variant-numeric: tabular-nums; }
.admin-detail-pane { padding: 18px 20px; }
.admin-detail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.admin-detail-head h3 { margin: 0; font-size: 15px; }
.text-button.danger { color: #dc2626; }
.admin-field { display: block; margin-bottom: 14px; color: var(--muted); font-size: 12px; font-weight: 700; }
.admin-field input, .admin-field textarea { width: 100%; margin-top: 5px; font-weight: 400; }
.admin-field-label { display: block; margin-bottom: 6px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-hint { display: block; margin-top: 5px; color: #9aa1ad; font-size: 11px; font-weight: 400; }
.admin-inline { display: flex; align-items: center; gap: 8px; }
.admin-inline input { flex: 1; }
.admin-inline .secondary-button { flex: none; margin-top: 5px; padding: 9px 12px; font-size: 12px; white-space: nowrap; }
.status-group { display: flex; flex-wrap: wrap; gap: 7px; }
.status-option { border: 1px solid #dfe3e9; border-radius: 999px; background: #fff; color: #55616b; padding: 7px 13px; font-size: 12px; font-weight: 600; cursor: pointer; }
.status-option:hover { border-color: #cfd6dd; }
.status-option.on.todo { border-color: #d9b25f; background: #fdf6e7; color: #8a5a22; }
.status-option.on.doing { border-color: #93b4f5; background: #eaf1fe; color: #1d4ed8; }
.status-option.on.good { border-color: #6fd3ac; background: #e7f8f1; color: #067a55; }
.status-option.on.warn { border-color: #f0b45f; background: #fff5e6; color: #b45309; }
.playbook-status.doing { background: #eaf1fe; color: #1d4ed8; }
.playbook-status.warn { background: #fff5e6; color: #b45309; }
.playbook-metrics { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 7px; color: var(--muted); font-size: 11px; }
.playbook-metrics b { color: var(--ink); font-variant-numeric: tabular-nums; }
.admin-empty { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.admin-detail-empty { display: grid; place-content: center; min-height: 260px; color: var(--muted); font-size: 12px; text-align: center; }
@media (max-width: 900px) { .admin-body { grid-template-columns: 1fr; } .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-view { padding: 16px; } .admin-grid { grid-template-columns: 1fr; } }

/* ───────── 团队共享库（页签 / 实时 / 反馈表） ───────── */
.admin-tabs { display:flex; gap:6px; margin-bottom:14px; border-bottom:1px solid var(--line); padding-bottom:0; }
.admin-tab { border:0; background:transparent; color:var(--muted); font-size:13px; font-weight:600; padding:9px 14px; border-bottom:2px solid transparent; cursor:pointer; display:inline-flex; align-items:center; gap:6px; }
.admin-tab:hover { color:var(--ink); }
.admin-tab.on { color:var(--teal-dark); border-bottom-color:var(--teal); }
.tab-badge { min-width:18px; height:18px; border-radius:999px; background:#e6f4ef; color:var(--teal-dark); font-size:11px; line-height:18px; text-align:center; padding:0 5px; }
.tab-badge:empty { display:none; }
.admin-user-chip { display:inline-flex; align-items:center; border-radius:999px; background:#eef7f5; color:var(--teal-dark); font-size:12px; font-weight:600; padding:5px 12px; }
.community-body { margin:0 0 10px; padding:12px 14px; border-radius:var(--radius-sm); background:#f7faf9; color:#37474f; font-size:13px; line-height:1.7; }
.community-agg { display:flex; flex-wrap:wrap; gap:16px; margin:12px 0; padding:12px 14px; border:1px solid #d9eae4; border-radius:var(--radius-sm); background:#f4fbf9; font-size:12px; color:var(--muted); }
.community-agg b { color:var(--ink); font-variant-numeric:tabular-nums; }
.community-subtitle { margin:16px 0 8px; font-size:13px; color:var(--teal-dark); }
.community-table { max-height:320px; overflow:auto; border:1px solid var(--line); border-radius:var(--radius-sm); }
.community-table .result-table { margin:0; }
.community-table .result-table th { position:sticky; top:0; z-index:1; }
.community-note { max-width:260px; white-space:normal; color:#55616b; font-size:12px; }
.admin-submit-row { align-items:center; flex-wrap:wrap; margin-top:4px; }
.grow-field { flex:1; margin:0; }
.community-card { width:min(620px,94vw); }
.hidden { display:none; }

/* 顶栏账号按钮 */
.account-chip { display:inline-flex; align-items:center; gap:7px; font-weight:600; }
.account-role { border-radius:999px; background:#eef2f5; color:#55616b; font-size:11px; padding:2px 8px; }
.account-role.admin { background:#e8f7f4; color:var(--teal-dark); }
.account-role:empty { display:none; }

/* 对策块的匹配理由与症状 */
.playbook-reasons { display:flex; flex-wrap:wrap; gap:6px; margin-top:7px; }
.playbook-reasons span { border-radius:999px; background:#eef7f5; color:var(--teal-dark); font-size:11px; padding:2px 9px; }
.playbook-symptoms { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0 0 12px; color:var(--muted); font-size:12px; }
.playbook-symptoms span { border-radius:999px; background:#fff3e6; color:#b45309; padding:2px 9px; font-size:11px; font-weight:600; }
.playbook-actions { margin-top:7px; }

/* 小红书同行笔记检索 */
/* ───────── 登录闸门（首屏）：透明磨砂玻璃 + 跟随鼠标的光效 ───────── */
html.checking-login .app-header, html.checking-login .layout { visibility:hidden; }
html.need-login .app-header, html.need-login .layout { visibility:hidden; }
.login-gate { position:fixed; inset:0; z-index:90; display:none; align-items:center; justify-content:center; padding:24px; overflow:hidden;
  background:linear-gradient(150deg,#dfeee9 0%,#eef2f9 45%,#e6eef2 100%); }
html.need-login .login-gate, html.checking-login .login-gate { display:flex; }

/* 背景层：光斑缓慢漂移；鼠标位置通过 --mx/--my 传进来，照亮所在区域 */
.login-bg { position:absolute; inset:0; overflow:hidden; }
.login-blob { position:absolute; border-radius:50%; filter:blur(70px); opacity:.75; will-change:transform; }
.login-blob.b1 { width:460px; height:460px; left:-90px; top:-110px; background:#8fdcc6; animation:loginFloat1 22s ease-in-out infinite; }
.login-blob.b2 { width:380px; height:380px; right:-70px; top:8%; background:#a9c4f4; animation:loginFloat2 26s ease-in-out infinite; }
.login-blob.b3 { width:420px; height:420px; left:32%; bottom:-140px; background:#f3d9a8; animation:loginFloat3 30s ease-in-out infinite; }
@keyframes loginFloat1 { 0%,100% { transform:translate3d(0,0,0) scale(1); } 50% { transform:translate3d(60px,40px,0) scale(1.08); } }
@keyframes loginFloat2 { 0%,100% { transform:translate3d(0,0,0) scale(1); } 50% { transform:translate3d(-50px,60px,0) scale(1.12); } }
@keyframes loginFloat3 { 0%,100% { transform:translate3d(0,0,0) scale(1); } 50% { transform:translate3d(30px,-50px,0) scale(1.06); } }
.login-grid { position:absolute; inset:0; opacity:.35;
  background-image:linear-gradient(rgba(255,255,255,.55) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.55) 1px,transparent 1px);
  background-size:44px 44px; mask-image:radial-gradient(80% 70% at 50% 45%,#000 35%,transparent 100%); -webkit-mask-image:radial-gradient(80% 70% at 50% 45%,#000 35%,transparent 100%); }
.login-spotlight { position:absolute; inset:-10%; pointer-events:none;
  background:radial-gradient(360px 360px at calc(var(--mx,50%) * 1px) calc(var(--my,42%) * 1px), rgba(255,255,255,.85) 0%, rgba(255,255,255,.35) 35%, rgba(255,255,255,0) 68%);
  transition:background .12s linear; }
@media (prefers-reduced-motion: reduce) { .login-blob { animation:none; } .login-spotlight { transition:none; } }

.login-stage { position:relative; display:flex; flex-direction:column; align-items:center; gap:14px; }
.login-card { position:relative; width:min(400px,100%); border-radius:22px; padding:30px 28px 22px;
  background:linear-gradient(160deg, rgba(255,255,255,.78), rgba(255,255,255,.58));
  border:1px solid rgba(255,255,255,.75);
  box-shadow:0 28px 70px rgba(18,42,38,.18), 0 2px 8px rgba(18,42,38,.06), inset 0 1px 0 rgba(255,255,255,.9);
  -webkit-backdrop-filter:blur(22px) saturate(150%); backdrop-filter:blur(22px) saturate(150%);
  transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition:transform .18s ease-out, box-shadow .25s ease-out;
  overflow:hidden; }
/* 玻璃上的一层斜向反光，随鼠标左右偏移 */
.login-card::after { content:""; position:absolute; top:-40%; bottom:-40%; left:calc(-30% + var(--sheen,0px)); width:55%; pointer-events:none;
  background:linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0)); transform:rotate(8deg); opacity:.7; }
.login-brand { display:flex; align-items:center; gap:14px; margin-bottom:24px; }
.login-logo { width:44px; height:44px; border-radius:14px; display:grid; place-items:center; font-size:20px; font-weight:800; color:#fff;
  background:linear-gradient(140deg,#2f7d6d,#1f5c50); box-shadow:0 6px 16px rgba(31,92,80,.28); }
.login-brand h1 { margin:0; font-size:18px; letter-spacing:.2px; color:#17302c; line-height:1.35; }
.login-brand p { margin:7px 0 0; font-size:12px; letter-spacing:.3px; color:#8b9793; }
.login-form { position:relative; z-index:1; display:flex; flex-direction:column; gap:13px; }
.login-form.hidden { display:none; }
.login-field { display:block; font-size:12px; font-weight:700; color:#6c7a76; }
.login-field input { width:100%; margin-top:6px; padding:12px 13px; font-size:14px; border:1px solid rgba(255,255,255,.85); border-radius:12px;
  background:rgba(255,255,255,.72); color:#17302c; transition:border-color .15s, box-shadow .15s, background .15s; }
.login-field input::placeholder { color:#9fb0ac; }
.login-field input:focus { outline:none; border-color:#3f8d7c; background:#fff; box-shadow:0 0 0 4px rgba(63,141,124,.16); }
.login-submit { margin-top:6px; width:100%; padding:13px; border:0; border-radius:12px; font-size:15px; font-weight:700; color:#fff; cursor:pointer;
  background:linear-gradient(135deg,#2f7d6d,#25675a); box-shadow:0 10px 22px rgba(37,103,90,.24); transition:transform .12s, box-shadow .12s, opacity .12s; }
.login-submit:hover { transform:translateY(-1px); box-shadow:0 14px 26px rgba(37,103,90,.28); }
.login-submit:disabled { opacity:.6; cursor:progress; transform:none; box-shadow:none; }
.login-state { position:relative; z-index:1; min-height:18px; margin:12px 0 0; font-size:12px; line-height:1.6; color:#5b6a67; }
.login-state.error { color:#c55335; font-weight:700; }
.login-state.ok { color:#2f7d6d; font-weight:700; }
.login-foot { position:relative; z-index:1; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; margin-top:14px; padding-top:14px; border-top:1px solid rgba(255,255,255,.75); }
.login-link { border:0; background:transparent; padding:0; color:#2f7d6d; font-size:12px; font-weight:700; cursor:pointer; }
.login-link:hover { text-decoration:underline; }
.login-server { color:#a7b1ae; font-size:11px; }
.login-tip { margin:0; padding:6px 12px; border-radius:999px; color:#4e5f5b; font-size:11px; text-align:center;
  background:rgba(255,255,255,.55); border:1px solid rgba(255,255,255,.7); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
@media (max-width:520px) { .login-card { padding:24px 20px 18px; border-radius:18px; } .login-brand h1 { font-size:16px; } }

.provider-hint { margin-top:10px; }
.provider-hint .text-button { margin-left:6px; }
.provider-actions { display:flex; flex-wrap:wrap; align-items:baseline; gap:10px; margin-top:8px; }
.provider-actions .admin-hint { flex:1; min-width:200px; margin:0; }
.provider-form { margin-top:12px; border:1px solid var(--line); border-radius:var(--radius-sm); background:#fbfdfc; padding:12px; display:grid; gap:9px; }
.provider-form.hidden { display:none; }
.provider-form label { display:block; color:var(--muted); font-size:11px; font-weight:700; }
.provider-form input { margin-top:4px; }
.provider-form-actions { display:flex; gap:9px; align-items:center; }
.symptom-editor { width:100%; margin-top:6px; font-size:12px; line-height:1.7; }
.invite-code-box { margin-top:12px; border:1px solid var(--line); border-radius:var(--radius-sm); background:#fbfdfc; padding:11px 12px; }
.invite-code-box.hidden { display:none; }
.invite-code-box code { font-family:ui-monospace,Consolas,monospace; font-size:12px; background:#eef7f5; color:var(--teal-dark); padding:2px 7px; border-radius:4px; }
.invite-code-box .settings-state { margin-top:4px; }
.strategy-tools { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:8px 0 6px; }
.strategy-tools .admin-hint { flex:1; min-width:120px; margin:0; }
.data-source-list { margin-top:10px; }
.data-source-list:empty { display:none; }
.data-source-items { list-style:none; margin:6px 0 0; padding:0; display:flex; flex-direction:column; gap:5px; }
.data-source-items li { display:flex; flex-wrap:wrap; gap:6px; align-items:baseline; font-size:11px; color:var(--muted); line-height:1.65; }
.data-source-items strong { color:var(--ink); }
.playbook-xhs { margin-top:10px; border:1px solid #f0e0e4; border-radius:var(--radius-sm); background:#fdf7f8; padding:11px 13px; }
.playbook-xhs .admin-hint { margin:0 0 8px; color:#7d6a70; }
.xhs-bar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:9px; }
.xhs-keyword { flex:1; min-width:200px; padding:7px 10px; font-size:12px; border:1px solid #e8d7dc; border-radius:var(--radius-sm); background:#fff; }
.xhs-keyword:focus { outline:none; border-color:#d99aae; box-shadow:0 0 0 3px rgba(217,154,174,.16); }
.xhs-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.xhs-list li { border-top:1px solid #f3e6e9; padding-top:9px; }
.xhs-list li:first-child { border-top:0; padding-top:0; }
.xhs-list a { color:#c2185b; font-size:13px; font-weight:700; text-decoration:none; line-height:1.5; }
.xhs-list a:hover { text-decoration:underline; }
.xhs-meta { display:block; margin-top:3px; color:#9aa1ad; font-size:11px; font-variant-numeric:tabular-nums; }
.xhs-list small { display:block; margin-top:5px; color:#5b6570; font-size:11px; line-height:1.65; }
.xhs-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:11px; border-top:1px dashed #f0e0e4; padding-top:10px; }
.xhs-actions .admin-hint { margin:0; flex:1; min-width:200px; }
.xhs-distill { margin-top:11px; border-top:1px solid #f3e6e9; padding-top:10px; }
.xhs-advice { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.xhs-advice li { border:1px solid #f0e0e4; border-radius:var(--radius-sm); background:#fff; padding:10px 11px; }
.xhs-advice strong { font-size:13px; color:#8c2f4f; }
.xhs-advice p { margin:5px 0 0; color:#3f4b49; font-size:12px; line-height:1.7; }
.xhs-advice small { display:block; margin-top:5px; color:#9aa1ad; font-size:11px; }
.xhs-advice .text-button { margin-top:7px; }
.playbook-xhs .location-warning { margin:0; }

/* 角色标识：开发者 / 管理员 */
.admin-tag.owner { background:#f3e8ff; color:#6b21a8; font-weight:700; }
.account-role.owner { background:#f3e8ff; color:#6b21a8; }

/* 右侧面板：可拖动分隔条 + 独立滚动 */
.layout-resizer { position:sticky; top:16px; align-self:stretch; min-height:calc(100vh - 60px); cursor:col-resize; }
.layout-resizer::before { content:""; position:absolute; top:0; bottom:0; left:3px; width:4px; border-radius:999px; background:#e3e8e6; transition:background .15s; }
.layout-resizer:hover::before, .layout-resizer.dragging::before { background:var(--teal); }
body.resizing { cursor:col-resize; user-select:none; }

@media (max-width:760px) { .layout-resizer { display:none; } .layout { grid-template-columns:1fr; } }

/* 主内容区按「自己那一栏的宽度」自适应，而不是按整个窗口：
   关键词面板固定在右侧以后，主栏会被压窄，内部的卡片这时要自己改成单列。 */
.workspace { container-type:inline-size; }
@container (max-width:560px) {
  .upload-grid, .meta-grid, .model-grid, .summary-cards, .location-selects, .member-kpis, .mall-search { grid-template-columns:1fr; }
  .span-two { grid-column:auto; }
  .control-band { flex-wrap:wrap; }
}
