| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472 |
- /* ═══════════════════════════════════════════════════════════════
- Design System — 智慧运营中台 · 淘宝闪购专业版
- Extracted from dish-crawl.html design spec
- ═══════════════════════════════════════════════════════════════ */
- :root {
- --accent: #ff6b35;
- --accent-dark: #e0501c;
- --bg: #f4f2ef;
- --card-bg: #ffffff;
- --sidebar-bg: #1d1c1a;
- --text: #2b2a28;
- --text-2: #6b6560;
- --text-3: #a5a09a;
- --border: #e8e4df;
- --border-light: #f0ede8;
- --ok: #1a8a4c; --ok-bg: #e8f7ee;
- --warn: #b8860b; --warn-bg: #fdf3d9;
- --fail: #c8402e; --fail-bg: #fdeceb;
- --info: #2563eb; --info-bg: #dbeafe;
- --sidebar-hover-bg: #2d2c2a;
- --sidebar-text: #a0a0a0;
- --sidebar-active-bg: rgba(255,107,53,0.14);
- --focus-ring: rgba(255,107,53,0.12);
- --font-family-base: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
- --font-size-h1: 18px; --font-size-h2: 14px; --font-size-h3: 12px;
- --font-size-body: 13px; --font-size-small: 11.5px; --font-size-badge: 11px;
- --font-weight-h1: 700; --font-weight-h2: 600; --font-weight-h3: 600; --font-weight-body: 400; --font-weight-badge: 500;
- --line-height-h1: 1.3; --line-height-body: 1.5; --line-height-small: 1.45;
- --space-xs: 4px; --space-sm: 8px; --space-md: 12px; --space-lg: 16px; --space-xl: 20px; --space-xxl: 28px;
- --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-pill: 999px;
- --sidebar-width: 220px;
- --content-max-width: 1300px;
- --page-padding-x: 28px;
- --page-padding-y: 20px;
- --page-padding-bottom: 60px;
- --duration-fast: 0.05s; --duration-base: 0.15s; --duration-slow: 0.25s;
- --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
- --tap-target-min: 32px;
- --tap-target-row-min: 28px;
- }
- * { box-sizing: border-box; }
- [hidden] { display: none !important; }
- html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font-family-base); -webkit-font-smoothing: antialiased; font-size: var(--font-size-body); line-height: var(--line-height-body); }
- /* ── Global interaction ─────────────────────────────────── */
- button, [role="button"], .btn { min-height: var(--tap-target-row-min); min-width: var(--tap-target-min); }
- :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
- [disabled], [aria-disabled="true"], .btn:disabled { opacity: 0.5; cursor: not-allowed; }
- @keyframes spinner-rotate { to { transform: rotate(360deg); } }
- .spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--accent); border-top-color: transparent; border-radius: 50%; vertical-align: -2px; animation: spinner-rotate 0.8s linear infinite; }
- .spinner-lg { width: 16px; height: 16px; border-width: 2px; }
- .spinner-inline { vertical-align: middle; margin-right: 4px; }
- .collapse { overflow: hidden; max-height: 0; opacity: 0; transition: max-height var(--duration-slow) var(--ease-out), opacity var(--duration-base) var(--ease-out); }
- .collapse.is-open { max-height: 1000px; opacity: 1; }
- /* ── App Frame Layout ──────────────────────────────────── */
- .app-frame { display: flex; align-items: stretch; height: 100vh; overflow: hidden; }
- .app-frame > main { flex: 1; min-width: 0; }
- /* ── Sidebar ───────────────────────────────────────────── */
- .sidebar {
- width: var(--sidebar-width); flex-shrink: 0;
- background: var(--sidebar-bg); color: #fff;
- display: flex; flex-direction: column;
- padding: 20px 14px; box-sizing: border-box;
- height: 100vh;
- overflow-y: auto;
- }
- .sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 14px; }
- .sidebar-logo { width: 44px; height: 44px; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
- .sidebar-logo img { width: 100%; height: 100%; object-fit: contain; }
- .sidebar-titles .t1 { font-size: 14px; font-weight: 700; line-height: 1.25; }
- .sidebar-titles .t2 { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 2px; }
- .nav-section-label { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.06em; padding: 12px 10px 6px; }
- .nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--sidebar-text); cursor: pointer; font-size: 13px; margin-bottom: 4px; transition: background 0.15s, color 0.15s; min-height: 36px; border: none; background: transparent; width: 100%; text-align: left; }
- .nav-beta { margin-left: auto; font-size: 9px; font-weight: 700; letter-spacing: .04em; line-height: 1; padding: 2px 6px; border-radius: var(--radius-pill); color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.14); }
- .nav-item.active .nav-beta { color: #ffd9c7; background: rgba(255, 107, 53, 0.18); border-color: rgba(255, 107, 53, 0.35); }
- .nav-item:hover { background: var(--sidebar-hover-bg); color: #f0ede8; }
- .nav-item.active { background: var(--sidebar-active-bg); color: var(--accent); font-weight: 600; }
- .nav-item .ico { width: 16px; display: inline-flex; align-items: center; justify-content: center; opacity: 0.9; }
- .nav-item .ico svg { width: 16px; height: 16px; display: block; }
- .sidebar-bottom { margin-top: auto; padding: 12px 10px; font-size: 11px; color: rgba(255,255,255,0.4); border-top: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
- .sidebar-bottom span { white-space: nowrap; }
- .sidebar-powered { height: 14px; opacity: 0.4; }
- .main-wrap { flex: 1; min-width: 0; height: 100vh; overflow-y: auto; }
- /* ── Page Header ───────────────────────────────────────── */
- .page-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
- .page-header h1 { font-size: var(--font-size-h1); font-weight: var(--font-weight-h1); margin: 0; color: var(--text); line-height: var(--line-height-h1); }
- .page-header .sub { font-size: var(--font-size-small); color: var(--text-2); margin-top: 4px; }
- .page-header .toolbar { display: flex; gap: 8px; }
- /* ── Content Area ──────────────────────────────────────── */
- main.content { padding: var(--page-padding-y) var(--page-padding-x) var(--page-padding-bottom); }
- .view { display: none; }
- .view.active { display: block; }
- /* ── Crawl Grid (双栏) ─────────────────────────────────── */
- .crawl-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
- .left-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
- .right-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
- #viewCrawl.active { display: flex; height: 100%; min-height: 0; }
- #viewCrawl .content { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding-bottom: 20px; }
- #viewCrawl .crawl-grid { flex: 1; min-height: 0; align-items: stretch; }
- #viewCrawl .left-col, #viewCrawl .right-col { min-height: 0; }
- #viewCrawl .panel-progress { flex: 1; min-height: 180px; height: auto; }
- #viewCrawl .panel-shops { flex: 1; min-height: 0; height: auto; }
- @media (max-width: 900px) {
- .crawl-grid { grid-template-columns: 1fr !important; }
- .page-header { flex-direction: column; align-items: flex-start; gap: 10px; }
- #viewCrawl.active { display: block; height: auto; }
- #viewCrawl .crawl-grid { flex: none; }
- #viewCrawl .panel-progress, #viewCrawl .panel-shops { flex: none; height: 320px; }
- }
- /* ── Panel ─────────────────────────────────────────────── */
- .panel { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
- .panel-narrow { padding: 16px; }
- .panel-title { font-size: var(--font-size-h2); font-weight: 600; color: var(--text); margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; }
- .panel-title .actions { display: flex; gap: 8px; align-items: center; }
- .panel-body { display: flex; flex-direction: column; gap: 12px; }
- .panel-hint { font-size: var(--font-size-small); color: var(--text-3); margin-top: -4px; }
- /* Fixed-height panels (right column) */
- .panel-fixed { overflow: hidden; display: flex; flex-direction: column; }
- .panel-fixed .panel-title { flex-shrink: 0; }
- .panel-shops { height: 380px; }
- .panel-shops > div:last-child { flex: 1; display: flex; flex-direction: column; overflow: auto; min-height: 0; }
- .panel-progress { height: 260px; }
- .panel-progress #progressList { display: flex; flex-direction: column; overflow-y: auto; flex: 1; min-height: 0; }
- .panel-log { height: 240px; }
- .panel-log .log-box { flex: 1; min-height: 0; max-height: none; }
- .stage-marker { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: var(--font-size-h2); font-weight: 600; color: var(--text); }
- .stage-marker .num { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0; }
- /* ── Form Fields ───────────────────────────────────────── */
- .field { display: flex; flex-direction: column; gap: 5px; }
- .field label { font-size: var(--font-size-small); color: var(--text-2); font-weight: 500; }
- .field .req { color: var(--fail); margin-left: 2px; }
- .field input, .field select, .field textarea {
- padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
- background: #faf9f7; color: var(--text); font-size: var(--font-size-body); font-family: inherit;
- outline: none; transition: border-color 0.15s, box-shadow 0.15s; min-height: 32px; box-sizing: border-box;
- resize: vertical;
- }
- .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-ring); background: #fff; }
- .field input:disabled {
- background: #efece8;
- border-color: var(--border-light);
- color: var(--text-3);
- cursor: not-allowed;
- opacity: 1;
- }
- .help { font-size: 11px; color: var(--text-3); }
- .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
- .field-row .field input { width: 100%; min-width: 0; }
- .field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
- .field-label-row label { flex: 1 1 auto; margin: 0; }
- .settings-workspace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; max-width: 1240px; }
- .settings-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
- /* 显式定位:1 API设置 左上,2 采集配置 右列纵跨两行,3 安全设置 紧贴 1 下方(避免行对齐把 3 推远) */
- .settings-forms .field textarea { min-height: 78px; resize: vertical; line-height: 1.5; }
- /* 钉钉 AI 表格三张表名:一行三列(窄屏自动换行) */
- .sheet-names-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 6px; }
- .settings-forms .panel,
- .panel-designed,
- .settings-log { position: relative; overflow: hidden; background: linear-gradient(135deg, #fff 0%, #faf8f5 100%); border-radius: 14px; transition: border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out); }
- .settings-forms .panel { padding: 18px; }
- .panel-designed { padding: 18px; }
- .panel-designed .panel-body { position: relative; z-index: 1; }
- .panel-designed .panel-watermark { right: -42px; bottom: -46px; width: 118px; height: 118px; color: rgba(255, 107, 53, .08); }
- .stage-icon { width: 28px; height: 28px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: rgba(255, 107, 53, .10); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255, 107, 53, .12); }
- .stage-icon svg { width: 15px; height: 15px; display: block; }
- .panel-watermark { position: absolute; right: -26px; bottom: -30px; width: 104px; height: 104px; color: rgba(255, 107, 53, .12); pointer-events: none; }
- .settings-forms .panel-body { position: relative; z-index: 1; }
- .panel-watermark svg { width: 100%; height: 100%; display: block; }
- .log-watermark { right: -10px; bottom: auto; top: -26px; width: 110px; height: 110px; color: rgba(255, 107, 53, .08); }
- .settings-forms .stage-marker .num { width: 28px; height: 28px; border-radius: 9px; background: rgba(255, 107, 53, .10); color: var(--accent); font-size: 12px; box-shadow: inset 0 0 0 1px rgba(255, 107, 53, .12); }
- .settings-log .panel-title,
- .settings-log .log-box { position: relative; z-index: 1; }
- .settings-actions { display: flex; align-items: center; gap: 8px; }
- .settings-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
- .settings-link {
- display: inline-flex; align-items: center; justify-content: center; gap: 7px;
- min-height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
- background: #fff; color: var(--text-2); font-size: 12px; font-weight: 600; line-height: 1;
- text-decoration: none; transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
- }
- .settings-link svg { width: 13px; height: 13px; flex-shrink: 0; }
- .settings-link:hover {
- border-color: var(--accent); color: var(--accent); background: #fff;
- box-shadow: 0 0 0 2px var(--focus-ring);
- }
- .settings-link-compact { flex: 0 0 auto; min-height: 24px; padding: 0 8px; color: var(--accent); font-size: 11px; }
- .settings-link-compact:hover { transform: translateY(-1px); }
- .settings-log { height: auto; min-height: 360px; }
- .settings-log .log-box { min-height: 0; }
- /* 系统日志独立页:面板占满内容区高度 */
- #viewLogs.active { display: flex; height: 100%; min-height: 0; }
- #viewLogs .content { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding-bottom: 20px; }
- #viewLogs .settings-log { flex: 1; min-height: 0; height: auto; }
- @media (max-width: 960px) {
- .settings-forms { grid-template-columns: 1fr; }
- .settings-forms > .panel:nth-child(1),
- .settings-forms > .panel:nth-child(2),
- .settings-forms > .panel:nth-child(3),
- .settings-forms > .panel:nth-child(4) { grid-column: auto; grid-row: auto; }
- #viewLogs.active { display: block; height: auto; }
- #viewLogs .content { min-height: 0; }
- #viewLogs .settings-log { flex: none; height: auto; min-height: 420px; }
- }
- /* ── Buttons ───────────────────────────────────────────── */
- .btn {
- padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
- background: transparent; color: var(--text); font-size: 13px; font-weight: 600;
- cursor: pointer; transition: background 0.15s, transform 0.05s, border-color 0.15s;
- display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px;
- }
- .btn:hover { filter: brightness(0.96); }
- .btn:active { transform: scale(0.97); }
- .btn:disabled { opacity: 0.5; cursor: not-allowed; }
- .btn-primary { background: var(--accent); color: #fff; }
- .btn-primary:hover { background: var(--accent-dark); }
- .btn-ghost { background: #f1efec; color: var(--text); border-color: transparent; }
- .btn-ghost:hover { background: #ebe7e1; }
- .btn-danger { background: var(--fail); color: #fff; }
- .btn-danger:hover { background: #b03826; }
- .btn-small { padding: 5px 10px; font-size: 12px; min-height: 28px; }
- .btn-block { width: 100%; }
- .btn svg { width: 12px; height: 12px; display: block; flex-shrink: 0; }
- .btn #startBtnIcon, .btn #scanIcon { display: inline-flex; align-items: center; }
- .badge svg { width: 10px; height: 10px; display: block; }
- /* ── Data Table ────────────────────────────────────────── */
- .data-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-body); }
- .data-table th { text-align: left; font-size: var(--font-size-small); font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.03em; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--bg); }
- .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-light); color: var(--text); vertical-align: middle; }
- .data-table tr:last-child td { border-bottom: none; }
- .data-table tbody tr:hover td { background: #faf9f7; }
- .data-table .col-actions { text-align: right; white-space: nowrap; }
- .data-table .shop-name { font-weight: 600; color: var(--text); }
- .data-table .col-folder .badge { display: inline-block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
- .data-table .shop-meta { font-size: var(--font-size-small); color: var(--text-3); margin-top: 2px; }
- .data-table .num { font-variant-numeric: tabular-nums; }
- /* ── Badge ─────────────────────────────────────────────── */
- .badge { display: inline-block; padding: 2px 8px; border-radius: var(--radius-pill); font-size: var(--font-size-badge); font-weight: var(--font-weight-badge); line-height: 1.5; background: #f1efec; color: var(--text-2); }
- .badge-ok { background: var(--ok-bg); color: var(--ok); }
- .badge-warn { background: var(--warn-bg); color: var(--warn); }
- .badge-fail { background: var(--fail-bg); color: var(--fail); }
- .badge-info { background: var(--info-bg); color: var(--info); }
- /* ── Progress ──────────────────────────────────────────── */
- .progress-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: var(--font-size-body); }
- .progress-row:last-child { border-bottom: none; }
- .progress-row .left { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-width: 0; }
- .progress-row .left .badge { flex-shrink: 0; }
- .progress-row .left .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
- .progress-row .left .meta { color: var(--text-3); font-size: var(--font-size-small); flex-shrink: 0; }
- .progress-row .right { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; font-size: var(--font-size-small); color: var(--text-2); font-variant-numeric: tabular-nums; }
- .progress-bar { display: inline-block; flex: 1; min-width: 56px; height: 6px; background: var(--border-light); border-radius: var(--radius-pill); overflow: hidden; }
- .progress-bar > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width 0.3s; }
- /* ── Collapse / Accordion ──────────────────────────────── */
- .collapse-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 0; border: none; background: transparent; cursor: pointer; font-size: var(--font-size-body); font-weight: 500; color: var(--text-2); }
- .collapse-trigger:hover { color: var(--text); }
- .collapse-trigger .chev { display: inline-flex; transition: transform var(--duration-base) var(--ease-out); }
- .collapse-trigger .chev svg { width: 10px; height: 10px; display: block; }
- .collapse-trigger[aria-expanded="true"] .chev { transform: rotate(90deg); }
- /* ── Log ───────────────────────────────────────────────── */
- .log-box { max-height: 280px; overflow: auto; background: #1d1c1a; border-radius: var(--radius-md); padding: 12px 14px; font-family: "SF Mono", "Consolas", monospace; font-size: 12px; line-height: 1.6; }
- .log-line { display: flex; gap: 8px; align-items: baseline; color: #d8d4cd; }
- .log-line .log-ts { color: #8a8580; font-variant-numeric: tabular-nums; flex-shrink: 0; }
- .log-line .log-source { flex-shrink: 0; width: 32px; text-align: center; font-size: 10px; line-height: 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: #b8b3ad; }
- .log-line .log-source.system { background: rgba(124, 179, 232, 0.12); color: #7cb3e8; }
- .log-line .log-source.task { background: rgba(255, 107, 53, 0.12); color: #ffa475; }
- .log-line .log-lvl { font-weight: 700; flex-shrink: 0; width: 36px; text-align: right; }
- .log-line .log-lvl.info { color: #7cb3e8; }
- .log-line .log-lvl.ok { color: #5cba7d; }
- .log-line .log-lvl.warn { color: #e0a832; }
- .log-line .log-lvl.error { color: #e86a5e; }
- .log-line .log-msg { word-break: break-all; min-width: 0; }
- /* ── Toast ─────────────────────────────────────────────── */
- .toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; z-index: 9999; }
- .toast { background: #2b2a28; color: #fff; padding: 10px 20px; border-radius: 10px; font-size: var(--font-size-body); line-height: var(--line-height-body); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.18); animation: toast-in 0.25s ease both; }
- .toast.toast-success { background: #1a8a4c; }
- .toast.toast-error { background: var(--fail); }
- @keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
- /* ── Modal ─────────────────────────────────────────────── */
- .modal-overlay {
- position: fixed; top: 0; left: 0; right: 0; bottom: 0;
- background: rgba(0, 0, 0, 0.4);
- display: flex; align-items: center; justify-content: center;
- z-index: 9998;
- }
- .modal-overlay[hidden] { display: none; }
- .modal {
- background: var(--card-bg);
- border-radius: var(--radius-lg);
- box-shadow: 0 16px 48px -8px rgba(0, 0, 0, 0.24);
- width: 460px;
- max-width: 90vw;
- animation: modal-in var(--duration-base) var(--ease-out) both;
- }
- @keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
- .modal-header {
- display: flex; align-items: center; justify-content: space-between;
- padding: 16px 20px;
- border-bottom: 1px solid var(--border-light);
- font-size: var(--font-size-h2); font-weight: 600;
- }
- .modal-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
- .modal-status-icon { position: relative; z-index: 0; width: 34px; height: 34px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255, 107, 53, 0.14); }
- .modal-status-icon::before { content: ""; position: absolute; inset: -9px; z-index: -1; border-radius: 16px; background: radial-gradient(circle, rgba(255, 107, 53, 0.20) 0%, rgba(255, 107, 53, 0.05) 48%, transparent 72%); pointer-events: none; }
- .modal-status-icon svg { width: 16px; height: 16px; display: block; }
- .modal-title > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
- .modal-close {
- border: none; background: transparent; cursor: pointer;
- font-size: 20px; color: var(--text-3);
- width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
- border-radius: var(--radius-sm);
- }
- .modal-close:hover { background: #f1efec; color: var(--text); }
- .modal-body { padding: 20px; }
- .modal-body .field textarea { width: 100%; }
- .modal-footer {
- display: flex; justify-content: flex-end; gap: 8px;
- padding: 12px 20px 16px;
- }
- /* ── Splash Screen ─────────────────────────────────────── */
- .splash {
- position: fixed; top: 0; left: 0; right: 0; bottom: 0;
- background: var(--sidebar-bg);
- display: flex; flex-direction: column; align-items: center; justify-content: center;
- z-index: 99999;
- transition: opacity 0.4s ease, visibility 0.4s ease;
- }
- .splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
- .splash-logo {
- width: 96px; height: 96px; border-radius: 20px; object-fit: contain;
- background: #fff; padding: 8px;
- animation: splash-pop 0.6s var(--ease-out) both;
- }
- .splash-name {
- font-size: 20px; font-weight: 700; color: #f0ede8; margin-top: 16px;
- animation: splash-fade 0.5s 0.2s var(--ease-out) both;
- }
- .splash-sub {
- font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 4px;
- animation: splash-fade 0.5s 0.35s var(--ease-out) both;
- }
- .splash-bar {
- width: 160px; height: 3px; background: rgba(255,255,255,0.1);
- border-radius: 999px; margin-top: 24px; overflow: hidden;
- animation: splash-fade 0.5s 0.45s var(--ease-out) both;
- }
- .splash-bar span {
- display: block; height: 100%; background: var(--accent); border-radius: inherit;
- animation: splash-load 1.2s 0.5s var(--ease-out) both;
- }
- @keyframes splash-pop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
- @keyframes splash-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
- @keyframes splash-load { from { width: 0; } to { width: 100%; } }
- .splash-powered {
- display: flex; align-items: center; gap: 6px; margin-top: 20px;
- animation: splash-fade 0.5s 0.6s var(--ease-out) both;
- }
- .splash-powered span { font-size: 11px; color: rgba(255,255,255,0.35); }
- .splash-powered img { height: 18px; opacity: 0.6; }
- /* ── Empty State ───────────────────────────────────────── */
- .empty-hint { position: relative; display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; color: var(--text-3); min-height: 180px; padding: clamp(28px, 6vh, 48px) clamp(24px, 5vw, 40px); text-align: center; font-size: var(--font-size-body); }
- .panel-progress .empty-hint,
- .panel-shops .empty-hint { min-height: 0; }
- .empty-icon { width: clamp(52px, 10vh, 76px); height: clamp(52px, 10vh, 76px); margin: 0 auto 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--text-3); opacity: .16; }
- .empty-icon svg { width: 100%; height: 100%; display: block; }
- .empty-hint p { margin: 0; color: var(--text-2); font-size: 14px; font-weight: 650; line-height: 1.45; }
- .empty-hint small { display: block; margin-top: 6px; color: var(--text-3); font-size: var(--font-size-small); font-weight: 450; }
- /* ── Visual Gen Page ───────────────────────────────────── */
- .select-input { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: var(--font-size-body); background: #faf9f7; color: var(--text); outline: none; min-height: 32px; }
- .select-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-ring); }
- /* compact generation overview */
- .gen-overview { margin-bottom: 16px; padding: 14px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; align-items: stretch; gap: 14px; }
- .stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; flex: 1; min-width: 0; }
- .metric { position: relative; display: flex; align-items: center; overflow: hidden; min-width: 0; min-height: 116px; padding: 20px 22px; background: linear-gradient(135deg, #fff 0%, #faf8f5 100%); border: 1px solid var(--border-light); border-radius: 14px; transition: border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), transform 0.18s var(--ease-out); }
- .metric::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at calc(100% - 8px) calc(100% + 8px), rgba(107, 101, 96, 0.10) 0%, transparent 38%); opacity: 0; transition: opacity 0.18s var(--ease-out); pointer-events: none; }
- .metric:hover { transform: translateY(-1px); border-color: var(--border); box-shadow: 0 10px 24px rgba(31, 27, 24, 0.06); }
- .metric:hover::before { opacity: 1; }
- .metric.accent { border-color: rgba(255, 107, 53, 0.16); }
- .metric.accent::before { background: radial-gradient(circle at calc(100% - 6px) calc(100% + 6px), rgba(255, 107, 53, 0.20) 0%, transparent 42%); opacity: 1; }
- .metric.ok { border-color: rgba(26, 138, 76, 0.14); }
- .metric.ok::before { background: radial-gradient(circle at calc(100% - 6px) calc(100% + 6px), rgba(26, 138, 76, 0.16) 0%, transparent 42%); opacity: 1; }
- .metric.warn { border-color: rgba(184, 134, 11, 0.14); }
- .metric.warn::before { background: radial-gradient(circle at calc(100% - 6px) calc(100% + 6px), rgba(184, 134, 11, 0.16) 0%, transparent 42%); opacity: 1; }
- .metric.fail { border-color: rgba(200, 64, 46, 0.14); }
- .metric.fail::before { background: radial-gradient(circle at calc(100% - 6px) calc(100% + 6px), rgba(200, 64, 46, 0.16) 0%, transparent 42%); opacity: 1; }
- .metric-icon { position: absolute; right: -8px; bottom: -12px; width: 88px; height: 88px; border-radius: 0; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: transparent; color: var(--text-2); box-shadow: none; opacity: 0.1; transition: opacity 0.18s var(--ease-out); pointer-events: none; }
- .metric-icon svg { width: 100%; height: 100%; display: block; stroke-width: 1.4; }
- .metric.accent .metric-icon { color: var(--accent); }
- .metric.ok .metric-icon { color: var(--ok); }
- .metric.warn .metric-icon { color: var(--warn); }
- .metric.fail .metric-icon { color: var(--fail); }
- .metric:hover .metric-icon { opacity: 0.16; }
- .metric-body { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; gap: 10px; }
- .metric-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; line-height: 1.2; color: var(--text-2); font-weight: 600; letter-spacing: 0.04em; }
- .metric-label::before { content: ""; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--text-3); }
- .metric.accent .metric-label::before { background: var(--accent); }
- .metric.ok .metric-label::before { background: var(--ok); }
- .metric.warn .metric-label::before { background: var(--warn); }
- .metric.fail .metric-label::before { background: var(--fail); }
- .metric-value { font-size: 38px; font-weight: 770; color: var(--text); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
- .metric-value small { font-size: 13px; font-weight: 600; color: var(--text-3); margin-left: 6px; letter-spacing: 0; }
- .metric .stat-delta { min-height: 14px; font-size: 12px; color: var(--text-3); font-weight: 600; line-height: 1.2; }
- .metric.ok .stat-delta { color: var(--ok); }
- .gen-controls { flex: 0 0 168px; padding: 12px; background: #faf9f7; border: 1px solid var(--border-light); border-radius: 10px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
- .gen-controls select { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #faf9f7; font-size: var(--font-size-body); outline: none; min-height: 36px; width: 100%; }
- .gen-controls select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-ring); background: #fff; }
- .scan-dropdown { position: relative; }
- .scan-dropdown-trigger { position: relative; z-index: 31; width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--text); font-size: var(--font-size-body); line-height: 1.2; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
- .scan-dropdown-trigger:hover { border-color: var(--accent); }
- .scan-dropdown-trigger.active { border-color: var(--accent); background: rgba(255, 107, 53, 0.05); }
- .scan-dropdown-trigger:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-ring); }
- .scan-dropdown-trigger > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
- .scan-dropdown-trigger svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--text-3); }
- .scan-dropdown-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; width: max(220px, calc(100% + 220px)); max-height: 230px; overflow-y: auto; padding: 6px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 14px 34px rgba(31, 27, 24, .14); scrollbar-width: thin; }
- .scan-dropdown-item { width: 100%; min-height: 34px; padding: 7px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font-size: 12.5px; line-height: 1.2; display: flex; align-items: center; gap: 9px; text-align: left; cursor: pointer; transition: background .12s, color .12s; }
- .scan-dropdown-item:hover { background: #f6f4f2; }
- .scan-dropdown-item > span:last-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
- .scan-check { width: 16px; height: 16px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 5px; background: #fff; color: transparent; transition: all .12s; }
- .scan-check svg { width: 10px; height: 10px; }
- .scan-dropdown-item.selected { background: rgba(255, 107, 53, .07); color: var(--accent); font-weight: 600; }
- .scan-dropdown-item.selected .scan-check { border-color: var(--accent); background: var(--accent); color: #fff; }
- .gen-controls .field { gap: 6px; }
- .gen-controls .btn { width: 100%; min-height: 32px; }
- @media (max-width: 1080px) {
- .gen-overview { flex-direction: column; gap: 12px; }
- .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
- .metric { min-height: 96px; padding: 16px; }
- .metric-value { font-size: 30px; }
- .metric-icon { width: 72px; height: 72px; right: -6px; bottom: -10px; }
- .gen-controls { flex-basis: auto; }
- }
- /* shop-cards */
- .shop-cards { display: flex; flex-direction: column; gap: 16px; }
- .shop-cards:has(.empty-hint) { min-height: clamp(340px, calc(100vh - 300px), 620px); }
- .shop-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
- /* Complete visual generation workflow */
- .workflow-card { overflow: visible; box-shadow: 0 1px 2px rgba(31,27,24,.04); }
- .workflow-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 15px 18px; background: linear-gradient(135deg, #fff, #faf8f5); border-bottom: 1px solid var(--border-light); }
- .workflow-card.collapsed .workflow-head { border-bottom-color: transparent; }
- .workflow-card.collapsed .workflow-body { display: none; }
- .workflow-toggle { width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text-2); cursor: pointer; transition: all .15s; }
- .workflow-toggle:hover { border-color: var(--accent); color: var(--accent); }
- .workflow-toggle svg { width: 14px; height: 14px; transition: transform .18s var(--ease-out); }
- .workflow-card.collapsed .workflow-toggle svg { transform: rotate(0); }
- .workflow-card:not(.collapsed) .workflow-toggle svg { transform: rotate(90deg); }
- .workflow-info { min-width: 0; display: flex; align-items: center; gap: 10px; }
- .shop-name-input { width: min(260px, 34vw); min-width: 150px; height: 34px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); font-size: 15px; font-weight: 700; outline: none; transition: all .15s; }
- .shop-name-input:hover { border-color: var(--border); background: #fff; }
- .shop-name-input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--focus-ring); }
- .workflow-folder { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
- .workflow-actions { display: flex; gap: 8px; }
- .workflow-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
- .workflow-step { padding: 14px; background: #faf9f7; border: 1px solid var(--border-light); border-radius: 12px; }
- .step-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
- .step-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
- .step-head-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
- .step-head h3 { margin: 0; color: var(--text); font-size: 15px; font-weight: 720; line-height: 1.2; }
- .step-head span { color: var(--text-3); font-size: 11.5px; line-height: 1.3; }
- .step-head-text { position: relative; padding-right: 30px; }
- .step-toggle { position: absolute; top: 0; right: 0; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: #fff; border: 1px solid var(--border); border-radius: 7px; color: var(--text-2); cursor: pointer; transition: all .15s; }
- .step-toggle:hover { border-color: var(--accent); color: var(--accent); }
- .step-toggle svg { width: 12px; height: 12px; transition: transform .18s var(--ease-out); }
- .step-collapsed .step-toggle svg { transform: rotate(0); }
- .workflow-step:not(.step-collapsed) .step-toggle svg { transform: rotate(90deg); }
- .step-collapsed .step-body { display: none; }
- .step-collapsed { padding-bottom: 12px; }
- .step-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
- .step-body.single { grid-template-columns: minmax(0, 1fr); }
- .asset-panel { min-width: 0; padding: 12px; background: #fff; border: 1px solid var(--border-light); border-radius: 10px; box-shadow: 0 1px 2px rgba(31,27,24,.03); }
- .asset-editor { min-width: 0; display: flex; flex-direction: column; }
- .asset-result { min-width: 0; display: flex; flex-direction: column; }
- .asset-actions { display: grid; grid-template-columns: minmax(56px, .55fr) minmax(82px, .8fr) minmax(0, 1fr) auto; gap: 6px; align-items: center; margin-top: 9px; }
- .step-body.single .asset-actions { margin-top: 0; }
- .prompt-modal-overlay { z-index: 10000; }
- .prompt-modal { width: min(920px, 88vw); }
- .prompt-modal-input { width: 100%; min-height: 340px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #faf9f7; color: var(--text); font-size: 12.5px; line-height: 1.6; font-family: inherit; resize: vertical; outline: none; box-sizing: border-box; }
- .prompt-modal-input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--focus-ring); }
- .prompt-preview-label { display: block; margin-top: 12px; color: var(--text-2); font-size: 11.5px; font-weight: 680; }
- .prompt-preview { margin: 6px 0 0; padding: 11px; max-height: 150px; overflow: auto; background: #f7f5f2; border: 1px dashed var(--border); border-radius: 8px; color: var(--text-2); font-family: inherit; font-size: 11.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
- .asset-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
- .asset-panel-head h4 { margin: 0; color: var(--text); font-size: 13px; font-weight: 680; }
- .asset-spec { color: var(--text-3); font-size: 10.5px; white-space: nowrap; }
- .prompt-input { width: 100%; min-height: 82px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; background: #faf9f7; color: var(--text); font-size: 12px; line-height: 1.5; font-family: inherit; resize: vertical; outline: none; box-sizing: border-box; }
- .prompt-input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--focus-ring); }
- .dish-override { min-height: 64px; margin-top: 8px; }
- .overlay-row select, .asset-actions select, .dish-work-head .dish-name-input { min-height: 31px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; background: #faf9f7; color: var(--text); font-size: 11.5px; outline: none; width: 100%; box-sizing: border-box; }
- .asset-actions select:focus, .overlay-row select:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--focus-ring); }
- .reference-field label { color: var(--text-2); font-size: 11.5px; font-weight: 600; }
- .ref-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
- .ref-strip:empty::after { content: "无参考菜品"; color: var(--text-3); font-size: 11px; padding: 6px 0; }
- .ref-thumb { position: relative; flex: 0 0 auto; width: 50px; height: 50px; overflow: hidden; border: 1px solid var(--border); border-radius: 7px; cursor: pointer; }
- .ref-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; opacity: .72; }
- .ref-thumb input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
- .ref-thumb.checked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
- .ref-thumb.checked::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
- .ref-thumb.checked img { opacity: 1; }
- .overlay-row { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 7px; align-items: center; margin-top: 8px; }
- .overlay-row + .overlay-row { margin-top: 7px; }
- .checkbox-label { display: inline-flex; align-items: center; gap: 7px; min-height: 31px; padding: 0 8px; background: #faf9f7; border: 1px solid var(--border); border-radius: 7px; color: var(--text-2); font-size: 11.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
- .checkbox-label.compact { background: transparent; border: 0; padding: 0; }
- .checkbox-label input { width: 14px; height: 14px; accent-color: var(--accent); margin: 0; }
- .guard-hint { margin-top: 8px; padding: 8px 10px; border: 1px solid rgba(184,134,11,.16); border-radius: 8px; background: var(--warn-bg); color: #8b6508; font-size: 11.5px; line-height: 1.4; }
- .result-area, .dish-result-area { position: relative; min-height: 118px; margin-top: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg); border: 1px dashed var(--border); border-radius: 8px; }
- .step-body.single .asset-panel { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 14px; align-items: stretch; }
- .step-body.single .asset-editor { gap: 9px; }
- .step-body.single .asset-editor .asset-panel-head { margin-bottom: 0; }
- .step-body.single .asset-editor .prompt-input { margin-top: 0; }
- .step-body.single .asset-editor .compact-controls { margin: 0; }
- .step-body.single .asset-editor .reference-field { flex: 1; }
- .step-body.single .asset-editor .ref-strip { min-height: 56px; align-items: stretch; }
- .step-body.single .asset-editor .btn { align-self: flex-start; }
- .step-body.single .asset-editor .guard-hint { margin-top: 0; }
- .step-body.single .asset-result { display: flex; align-items: flex-start; justify-content: stretch; }
- .step-body.single .asset-result .result-area { flex: 1 1 auto; width: 100%; height: auto; min-height: 0; margin-top: 0; align-items: center; }
- .step-body.single .asset-result .result-area:not(:has(.result-preview)) { aspect-ratio: 1 / 1; }
- .step-body.single .asset-result .result-preview { width: 100%; display: flex; flex-direction: column; justify-content: center; }
- .step-body.single .asset-result .result-thumb-holder { width: 100%; aspect-ratio: 1 / 1; height: auto; max-height: none; margin: 0 auto; }
- .step-body.single .asset-result .result-thumb-holder img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
- .result-empty { color: var(--text-3); font-size: 11.5px; }
- .result-preview { width: 100%; }
- .result-thumb-holder { position: relative; width: 100%; max-height: 230px; overflow: hidden; cursor: zoom-in; background-image: linear-gradient(45deg, #eee 25%, transparent 25%), linear-gradient(-45deg, #eee 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eee 75%), linear-gradient(-45deg, transparent 75%, #eee 75%); background-size: 12px 12px; background-position: 0 0, 0 6px, 6px -6px, -6px 0; }
- .result-thumb-holder.transparent-bg { display: block; }
- .result-thumb-holder img { width: 100%; max-height: 230px; object-fit: contain; display: block; }
- .result-download-icon { position: absolute; right: 6px; top: 6px; z-index: 2; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(29, 28, 26, .68); color: #fff; opacity: 0; transition: opacity .14s var(--ease-out), background .14s var(--ease-out), transform .14s var(--ease-out); }
- .result-download-icon svg { width: 14px; height: 14px; display: block; }
- .result-thumb-holder:hover .result-download-icon, .creation-frame:hover .result-download-icon, .result-download-icon:focus-visible, .result-download-icon:hover { opacity: 1; }
- .result-download-icon:hover { background: var(--accent); transform: translateY(-1px); }
- .step-body.single .asset-result .link-btn { justify-self: end; white-space: nowrap; }
- .status-line { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: var(--text-2); font-size: 12px; padding: 4px 8px; text-align: center; }
- .status-line.is-error { color: var(--fail); }
- .status-line.is-warning { color: #8b6508; }
- .hover-zoom-preview { position: fixed; z-index: 9999; display: none; max-width: min(52vw, 620px); max-height: 70vh; overflow: hidden; border-radius: 10px; border: 1px solid rgba(31,27,24,.1); background: #fff; box-shadow: 0 20px 46px rgba(31,27,24,.2); pointer-events: none; }
- .hover-zoom-preview img { max-width: 100%; max-height: 70vh; object-fit: contain; display: block; }
- .poster-crop-panel { margin-top: 8px; padding: 9px; background: #faf9f7; border: 1px solid var(--border-light); border-radius: 8px; }
- .crop-actions { display: flex; gap: 8px; margin-top: 7px; }
- .dish-config-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
- .dish-work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
- .dish-work-card { min-width: 0; padding: 10px; background: #fff; border: 1px solid var(--border-light); border-radius: 10px; }
- .dish-config { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--border-light); }
- .dish-config-title { color: var(--text); font-size: 11.5px; font-weight: 680; }
- .dish-prompt-status { flex: 0 1 auto; overflow: hidden; color: var(--text-3); font-size: 10px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
- .dish-prompt-status.inherit { color: var(--accent-dark); }
- .dish-config-actions { display: grid; gap: 6px; margin-top: 7px; }
- .dish-config-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
- .dish-config-actions .btn { width: 100%; }
- .dish-config .overlay-row { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 6px 5px; margin-top: 0; }
- .dish-config .prompt-input { min-height: 84px; margin-top: 8px; font-size: 11px; line-height: 1.45; }
- .dish-config .guard-hint { margin-top: 7px; }
- .batch-dish-modal { width: min(760px, 92vw); }
- .batch-dish-modal .modal-body { padding: 18px 20px 6px; max-height: min(74vh, 680px); overflow: auto; }
- .batch-summary { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 9px 11px; background: rgba(255, 107, 53, .07); border: 1px solid rgba(255, 107, 53, .12); border-radius: 9px; color: var(--accent-dark); font-size: 12px; font-weight: 650; }
- .batch-summary::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
- .batch-controls { padding: 10px; margin-bottom: 14px; background: #faf9f7; border: 1px solid var(--border-light); border-radius: 10px; }
- .batch-controls .overlay-row { grid-template-columns: minmax(96px, auto) minmax(0, 1fr) minmax(0, 1fr); gap: 7px; margin-top: 0; }
- .batch-config-label { display: block; margin-bottom: 8px; }
- .batch-controls .overlay-row + .overlay-row { margin-top: 7px; }
- .batch-prompt { width: 100%; min-height: 240px; margin-top: 6px; font-size: 12px; line-height: 1.6; }
- .batch-config-label, .batch-prompt-label { margin-bottom: 7px; color: var(--text-2); font-size: 11.5px; font-weight: 680; }
- .batch-prompt-label:not(:first-child) { margin-top: 12px; }
- .batch-prompt-preview { margin: 6px 0 0; padding: 11px; max-height: 145px; overflow: auto; background: #f7f5f2; border: 1px dashed var(--border); border-radius: 8px; color: var(--text-2); font-family: inherit; font-size: 11.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
- .dish-work-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; }
- .dish-name-input { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
- .dish-work-frames { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
- .dish-frame { margin: 0; min-width: 0; }
- .dish-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; border: 1px solid var(--border-light); display: block; }
- .dish-frame > img { cursor: zoom-in; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
- .dish-frame > img:hover { transform: scale(1.03); box-shadow: 0 10px 24px rgba(31,27,24,.12); z-index: 1; }
- .dish-frame figcaption { margin-top: 4px; color: var(--text-3); font-size: 10.5px; text-align: center; }
- .dish-frame .dish-result-area { min-height: 104px; margin-top: 0; overflow: hidden; background: transparent; border: 0; border-radius: 0; }
- .dish-frame .result-preview { width: 100%; }
- .dish-frame .result-thumb-holder { width: 100%; aspect-ratio: 1; height: auto; max-height: none; border: 1px solid var(--border-light); border-radius: 7px; }
- .dish-frame .result-thumb-holder img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
- .link-btn { color: var(--accent); background: transparent; border: 0; padding: 0; font-size: 11.5px; font-weight: 650; cursor: pointer; text-decoration: none; }
- .link-btn:hover { color: var(--accent-dark); }
- @media (max-width: 1440px) { .step-body { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
- @media (max-width: 1080px) {
- .workflow-head { grid-template-columns: 1fr; align-items: stretch; }
- .step-body, .step-body.single { grid-template-columns: 1fr; }
- .step-body.single .asset-panel { grid-template-columns: 1fr; }
- .step-body.single .asset-result .result-area { min-height: 240px; }
- .overlay-row { grid-template-columns: 1fr; }
- }
- .shop-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border-light); }
- .shop-head .shop-info { flex: 1; min-width: 0; }
- .shop-head .shop-name { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
- .shop-head .shop-path { font-size: 12px; color: var(--text-3); margin-top: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
- .shop-head .shop-actions { display: flex; gap: 8px; flex-shrink: 0; }
- /* brand-section */
- .brand-section { padding: 14px 18px; border-bottom: 1px solid var(--border-light); }
- .brand-section .section-title { font-size: 11.5px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 10px; }
- .brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
- .brand-cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
- .brand-cell .thumb { aspect-ratio: 4 / 3; border-radius: var(--radius-md); border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px; letter-spacing: 0.05em; position: relative; overflow: hidden; background: var(--bg); color: var(--text-3); }
- .brand-cell .thumb img { width: 100%; height: 100%; object-fit: cover; }
- .brand-cell .thumb .corner-badge { position: absolute; top: 6px; right: 6px; font-size: 10px; padding: 1px 6px; }
- .brand-cell .thumb.is-pending { border-style: dashed; font-weight: 500; }
- .brand-cell .meta { font-size: 11px; color: var(--text-2); display: flex; justify-content: space-between; gap: 6px; }
- .brand-cell .meta .name { color: var(--text); font-weight: 500; }
- .brand-cell .meta .status { font-variant-numeric: tabular-nums; }
- /* dish-section */
- .dish-section { padding: 14px 18px 18px; }
- .dish-section .section-title { font-size: 11.5px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 10px; display: flex; align-items: center; justify-content: space-between; }
- .dish-section .section-title .count { color: var(--text-3); font-weight: 500; text-transform: none; letter-spacing: 0; }
- .dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
- .dish-card { background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; min-width: 0; cursor: pointer; transition: border-color 0.15s; }
- .dish-card:hover { border-color: var(--accent); }
- .dish-card .dish-thumb { aspect-ratio: 1 / 1; width: 100%; display: block; object-fit: cover; }
- .dish-card .thumb-is-pending { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--text-3); font-size: 20px; border-style: dashed; }
- .dish-card .meta-row { padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; gap: 8px; }
- .dish-card .meta-row .name { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
- .dish-card .meta-row .price { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; }
- /* history gallery */
- .tasks-overview { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; margin-bottom: 14px; }
- .tasks-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; flex: 1 1 auto; min-width: 0; }
- .task-stat { min-width: 0; padding: 12px 14px; border: 1px solid var(--border-light); border-radius: 12px; background: linear-gradient(135deg, #fff, #faf8f5); }
- .task-stat span { display: block; color: var(--text-3); font-size: 11px; font-weight: 600; }
- .task-stat strong { display: block; margin-top: 5px; color: var(--text); font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; }
- .task-stat.running strong { color: var(--info); }
- .task-stat.queued strong { color: var(--warn); }
- .task-stat.success strong { color: var(--ok); }
- .task-stat.failed strong { color: var(--fail); }
- .tasks-filters { flex: 0 0 auto; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; max-width: 330px; }
- .task-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 60px; }
- .task-list.empty { min-height: clamp(360px, calc(100vh - 320px), 640px); }
- .task-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; background: var(--card-bg); border: 1px solid var(--border-light); border-radius: 12px; transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out), transform .15s var(--ease-out); }
- .task-card:hover { border-color: var(--border); box-shadow: 0 10px 24px rgba(31,27,24,.07); transform: translateY(-1px); }
- .task-main { flex: 1 1 auto; min-width: 0; }
- .task-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
- .task-title { color: var(--text); font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
- .task-badge { flex: 0 0 auto; }
- .task-badge.running, .task-badge.submitted { background: var(--info-bg); color: var(--info); }
- .task-badge.queued { background: var(--warn-bg); color: var(--warn); }
- .task-badge.success { background: var(--ok-bg); color: var(--ok); }
- .task-badge.failed, .task-badge.timeout { background: var(--fail-bg); color: var(--fail); }
- .task-progress { height: 4px; margin: 10px 0 8px; border-radius: 999px; background: var(--border-light); overflow: hidden; }
- .task-progress-bar { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); transition: width .3s var(--ease-out); }
- .task-meta { color: var(--text-3); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
- .task-notice { margin-top: 7px; padding: 7px 9px; border-radius: 8px; font-size: 11.5px; line-height: 1.4; }
- .task-notice.warning { background: var(--warn-bg); color: #8b6508; }
- .task-notice.error { background: var(--fail-bg); color: var(--fail); }
- .task-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
- .task-status-detail { color: var(--text-3); font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
- .task-empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 28px; text-align: center; }
- .task-empty-icon { width: 76px; height: 76px; margin: 0 auto 16px; color: var(--text-3); opacity: .16; }
- .task-empty-icon svg { width: 100%; height: 100%; }
- .task-empty p { margin: 0; color: var(--text-2); font-size: 14px; font-weight: 650; }
- .task-empty small { display: block; margin-top: 6px; color: var(--text-3); font-size: 11.5px; }
- .history-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; margin-bottom: 14px; }
- .history-search { position: relative; flex: 0 1 320px; min-width: 220px; }
- .history-search svg { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
- .history-search input { width: 100%; min-height: 34px; padding: 0 10px 0 34px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #faf9f7; color: var(--text); font-size: 12.5px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
- .history-search input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--focus-ring); }
- .history-filters { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
- .history-filter { min-height: 30px; padding: 0 11px; border: 1px solid var(--border); border-radius: 999px; background: #faf9f7; color: var(--text-2); font-size: 12px; font-weight: 600; cursor: pointer; transition: all .14s var(--ease-out); }
- .history-filter:hover { color: var(--text); border-color: var(--border); background: #fff; }
- .history-filter.active { border-color: rgba(255,107,53,.18); background: rgba(255,107,53,.08); color: var(--accent); }
- .history-summary { padding: 0 28px 12px; color: var(--text-3); font-size: 12px; }
- .history-gallery { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-items: start; gap: 14px; padding: 0 28px 60px; }
- .history-gallery.empty { display: flex; min-height: clamp(360px, calc(100vh - 330px), 620px); }
- .creation-card { break-inside: avoid; margin: 0 0 14px; overflow: hidden; background: var(--card-bg); border: 1px solid var(--border-light); border-radius: 12px; transition: transform .18s var(--ease-out), border-color .18s var(--ease-out), box-shadow .18s var(--ease-out); }
- .creation-card:hover { transform: translateY(-2px); border-color: var(--border); box-shadow: 0 12px 28px rgba(31,27,24,.08); }
- .creation-frame { position: relative; overflow: hidden; cursor: zoom-in; background: var(--bg); }
- .creation-frame img { display: block; width: 100%; max-height: 250px; object-fit: cover; transition: transform .25s var(--ease-out); }
- .creation-frame.transparent-bg { background-image: linear-gradient(45deg, #eee 25%, transparent 25%), linear-gradient(-45deg, #eee 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eee 75%), linear-gradient(-45deg, transparent 75%, #eee 75%); background-size: 12px 12px; background-position: 0 0, 0 6px, 6px -6px, -6px 0; }
- .creation-kind { position: absolute; top: 8px; left: 8px; padding: 2px 7px; border-radius: 999px; background: rgba(29,28,26,.68); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .02em; backdrop-filter: blur(4px); }
- .creation-card figcaption { padding: 10px 12px 12px; }
- .creation-title { color: var(--text); font-size: 12.5px; font-weight: 650; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
- .creation-shop { margin-top: 3px; color: var(--text-2); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
- .creation-meta { margin-top: 5px; color: var(--text-3); font-size: 10.5px; font-variant-numeric: tabular-nums; }
- .history-empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 28px; text-align: center; }
- .history-empty-icon { width: 76px; height: 76px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: var(--text-3); opacity: .16; }
- .history-empty-icon svg { width: 100%; height: 100%; }
- .history-empty p { margin: 0; color: var(--text-2); font-size: 14px; font-weight: 650; }
- .history-empty small { display: block; margin-top: 6px; color: var(--text-3); font-size: 11.5px; }
- @media (max-width: 1080px) {
- .history-toolbar { align-items: stretch; flex-direction: column; }
- .history-search { flex-basis: auto; }
- .history-filters { justify-content: flex-start; }
- }
- /* ═══════════════════════════════════════════════════════════════
- 数据报表 · 淘宝闪购经营数据中台
- ═══════════════════════════════════════════════════════════════ */
- /* 主体(账号)搜索式选择器:账号多时不再无限换行,三处页面共用 */
- .entity-select { width: min(340px, 100%); margin-bottom: 14px; }
- .entity-select-menu { left: 0; right: auto; width: 100%; max-height: 300px; }
- .entity-select-search {
- width: 100%; margin-bottom: 6px; padding: 7px 10px;
- border: 1px solid var(--border); border-radius: 7px; background: #fff;
- font-size: var(--font-size-body); color: var(--text); outline: none;
- }
- .entity-select-search:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-ring); }
- .entity-select-item-meta { margin-left: auto; flex: 0 0 auto; font-size: 11.5px; color: var(--text-3); }
- .entity-select-menu .scan-dropdown-item > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
- .entity-select-menu .scan-dropdown-item > span:last-child { flex: 0 0 auto; overflow: visible; text-overflow: clip; }
- .entity-select-no-match { padding: 10px; font-size: var(--font-size-small); color: var(--text-3); text-align: center; }
- .entity-select-empty { font-size: var(--font-size-body); color: var(--text-3); padding: 10px 0; }
- .entity-select .scan-dropdown-trigger.is-empty span { color: var(--text-3); }
- .entity-select-guide { display: flex; flex-direction: column; gap: 8px; padding: 8px 10px; }
- .entity-select-guide-steps { font-size: var(--font-size-small); color: var(--text-2); line-height: 1.6; white-space: normal; }
- .entity-select-guide-btn { align-self: flex-start; }
- .report-toolbar { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 14px; }
- .report-field-sm { width: 130px; flex: 0 0 auto; }
- .report-field-md { width: 240px; flex: 0 0 auto; }
- .report-field-lg { width: 220px; flex: 0 0 auto; }
- .report-field-grow { flex: 1 1 160px; min-width: 140px; }
- .report-date-range { display: flex; align-items: center; gap: 6px; }
- .report-date-range input { min-width: 0; flex: 1; }
- .report-toolbar-actions { display: flex; gap: 8px; margin-left: auto; }
- #reportKpis { grid-template-columns: repeat(7, minmax(0, 1fr)); margin-bottom: 14px; }
- #reportKpis .metric { min-height: 84px; padding: 14px 16px; }
- @media (max-width: 1280px) { #reportKpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
- .report-table-panel { min-height: clamp(320px, calc(100vh - 430px), 640px); }
- .report-table-wrap { overflow: auto; flex: 1; min-height: 0; }
- .report-table { min-width: 1080px; }
- .report-table th { position: sticky; top: 0; z-index: 2; cursor: pointer; user-select: none; white-space: nowrap; }
- .report-table th:hover { color: var(--accent); }
- .report-table .col-num { text-align: right; font-variant-numeric: tabular-nums; }
- .report-table td.col-date, .report-table td.col-text { white-space: nowrap; }
- .report-table td.col-money, .report-table td.col-int { color: var(--text); }
- .report-table td.col-reserved { color: var(--text-3); }
- .val-good { color: var(--ok); font-weight: 650; }
- .val-warn { color: var(--warn); font-weight: 650; }
- .val-bad { color: var(--fail); font-weight: 650; }
- .colcfg-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; max-height: 46vh; overflow-y: auto; padding: 4px 2px; }
- .colcfg-item { display: flex; align-items: center; gap: 8px; font-size: var(--font-size-body); color: var(--text); cursor: pointer; padding: 6px 8px; border-radius: var(--radius-sm); }
- .colcfg-item:hover { background: #f6f4f2; }
- .colcfg-item input { margin: 0; }
- .colcfg-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
- .colcfg-reserved { font-size: 10px; font-style: normal; color: var(--text-3); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 0 6px; }
- .modal-wide { width: min(520px, calc(100vw - 48px)); }
- .modal-body .badge { margin-bottom: 12px; }
- .sync-progress-row { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; }
- .sync-progress-bar { flex: 1; height: 8px; border-radius: var(--radius-pill); background: #f1efec; overflow: hidden; }
- .sync-progress-bar span { display: block; height: 100%; width: 0; border-radius: var(--radius-pill); background: var(--accent); transition: width var(--duration-slow) var(--ease-out); }
- .sync-stat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
- .sync-steps { max-height: 150px; overflow-y: auto; border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; }
- .sync-step { display: flex; align-items: baseline; gap: 8px; font-size: var(--font-size-small); }
- .sync-step span { flex: 0 0 auto; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
- .sync-step em { font-style: normal; color: var(--text-3); }
- .sync-step.ok em { color: var(--ok); }
- .sync-step.fail em { color: var(--fail); }
- /* ── 分段控制器(数据报表 · 视图切换) ───────────────────── */
- .seg-control { display: inline-flex; align-items: stretch; padding: 3px; gap: 2px; background: #f1efec; border-radius: var(--radius-pill); }
- .seg-control button {
- min-height: 26px; min-width: 0; padding: 4px 14px; border: 0; border-radius: var(--radius-pill);
- background: transparent; color: var(--text-2); font-size: var(--font-size-body); font-weight: 500; line-height: 1.4;
- cursor: pointer; transition: background var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
- white-space: nowrap;
- }
- .seg-control button:hover { color: var(--text); }
- .seg-control button.active { background: var(--card-bg); color: var(--accent); font-weight: 600; box-shadow: 0 1px 3px rgba(31, 27, 24, .12); }
- .seg-control button:disabled { opacity: .5; cursor: not-allowed; }
- /* ── 智能问数 + 图表面板 ─────────────────────────────────── */
- .ask-panel { padding: 14px 16px; margin-bottom: 14px; }
- .ask-row { display: flex; align-items: center; gap: 10px; }
- .ask-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--accent); white-space: nowrap; }
- .ask-label svg { width: 16px; height: 16px; }
- .ask-row input[type="text"] { flex: 1; min-width: 0; }
- .ask-row .btn { flex: 0 0 auto; }
- .ask-reply { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: var(--font-size-body); }
- .ask-reply .badge { flex: 0 0 auto; margin-top: 1px; }
- .ask-chart { width: 100%; height: 300px; margin-top: 8px; }
- .ask-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
- .ask-error { margin-top: 10px; }
- .help-inline { font-weight: 400; color: var(--text-3); font-size: 11px; margin-left: 6px; }
- .settings-link-btn { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; border: 0; background: transparent; color: var(--info); font-size: var(--font-size-small); padding: 4px 6px; border-radius: var(--radius-sm); }
- .settings-link-btn:hover { background: var(--info-bg); }
- .settings-link-btn svg { width: 12px; height: 12px; }
- .settings-link-btn:disabled { opacity: .5; cursor: not-allowed; }
- .charts-panel { padding: 16px; margin-bottom: 14px; }
- .chart-metric-select { max-width: 170px; }
- .charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
- .chart-box { min-width: 0; }
- .chart-title { font-size: var(--font-size-small); color: var(--text-2); font-weight: 600; margin-bottom: 6px; }
- .chart { width: 100%; height: 260px; }
- @media (max-width: 1080px) { .charts-grid { grid-template-columns: 1fr; } .ask-chart { height: 240px; } }
- /* ── 设置页 · API 设置面板 tab ──────────────────────────── */
- .settings-api-tabs { margin-left: auto; }
- .settings-api-tabs button { min-height: 24px; padding: 3px 12px; font-size: var(--font-size-small); }
- .settings-tab-body[hidden] { display: none; }
- .label-links { display: inline-flex; align-items: center; gap: 10px; }
- /* ── 客户端连接排查 · ? 弹窗 ─────────────────────────────── */
- .conn-help-wrap { position: relative; display: inline-flex; align-items: center; gap: 6px; }
- .help-btn {
- width: 18px; height: 18px; min-width: 0; min-height: 0; padding: 0;
- border-radius: 50%; border: 1px solid var(--border);
- background: var(--card-bg); color: var(--text-2);
- font-size: 11px; font-weight: 700; line-height: 1;
- display: inline-flex; align-items: center; justify-content: center;
- cursor: pointer; transition: color var(--duration-base), border-color var(--duration-base), background var(--duration-base);
- }
- .help-btn:hover, .help-btn.active { color: #fff; background: var(--accent); border-color: var(--accent); }
- .help-popover {
- position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
- width: min(460px, calc(100vw - 64px));
- background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
- box-shadow: 0 18px 44px rgba(31, 27, 24, .16);
- padding: 16px 18px; text-align: left;
- font-size: var(--font-size-body); color: var(--text);
- }
- .help-popover::before {
- content: ""; position: absolute; top: -6px; right: 14px; width: 10px; height: 10px;
- background: var(--card-bg); border-left: 1px solid var(--border); border-top: 1px solid var(--border);
- transform: rotate(45deg);
- }
- .help-popover.pop-left { left: 0; right: auto; }
- .help-popover.pop-left::before { left: 14px; right: auto; }
- .help-popover-title { font-weight: 700; font-size: var(--font-size-h2); margin-bottom: 8px; }
- .help-popover-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
- .help-popover-steps li { line-height: 1.55; }
- .help-popover-steps code, .help-popover-note code {
- background: #f6f4f2; border: 1px solid var(--border-light); border-radius: 4px;
- padding: 1px 5px; font-size: 11px; word-break: break-all;
- }
- .help-popover-note {
- margin-top: 10px; padding: 8px 10px; border-radius: 8px;
- background: var(--warn-bg); color: var(--warn); font-size: var(--font-size-small);
- }
- /* 同步弹窗 · 连接失败分步指引(与 help-popover 同一设计语言) */
- .conn-steps-title { font-weight: 700; font-size: 12.5px; margin-bottom: 8px; }
- .conn-steps-list { display: flex; flex-direction: column; gap: 7px; }
- .conn-step { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.6; color: var(--text-2); }
- .conn-step-idx {
- flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px;
- border: 1px solid var(--border-light); border-radius: 50%;
- background: #f6f4f2; color: var(--text-3); font-size: 10.5px; font-weight: 600;
- display: inline-flex; align-items: center; justify-content: center;
- }
- .conn-step-text { min-width: 0; }
- .conn-step-text code {
- background: #f6f4f2; border: 1px solid var(--border-light); border-radius: 4px;
- padding: 1px 5px; font-size: 11px; word-break: break-all;
- }
- .conn-step-text a { color: var(--accent); word-break: break-all; }
- .conn-steps-note {
- margin-top: 9px; padding: 7px 10px; border-radius: 8px;
- background: var(--warn-bg); color: var(--warn); font-size: 11px; line-height: 1.5;
- }
- /* ── KPI 卡 · 数值自适应不截断 ──────────────────────────── */
- #reportKpis .metric { padding: 12px 14px; }
- #reportKpis .metric-body { gap: 6px; }
- #reportKpis .metric-value {
- font-size: clamp(15px, 1.35vw, 26px);
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- max-width: 100%;
- }
- @media (max-width: 1500px) { #reportKpis .metric-value { font-size: clamp(14px, 1.15vw, 20px); } }
- /* 空状态徽章不占位,保证测试按钮与图像模型 tab 同样居中 */
- .badge:empty { display: none; }
- /* ── 趋势图表 · 环比指标条 ──────────────────────────────── */
- .delta-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
- .delta-card {
- background: var(--card-bg); border: 1px solid var(--border-light); border-radius: 12px;
- padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0;
- }
- .delta-label { font-size: 11.5px; color: var(--text-2); font-weight: 600; }
- .delta-value { font-size: 17px; font-weight: 750; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
- .delta-line { display: flex; align-items: center; gap: 5px; font-size: 11px; min-height: 15px; flex-wrap: wrap; }
- .delta { font-weight: 700; }
- .delta.up { color: var(--ok); }
- .delta.down { color: var(--fail); }
- .delta-flat { color: var(--text-3); }
- .delta-none { color: var(--text-3); }
- .delta-sub { color: var(--text-3); font-size: 10px; }
- @media (max-width: 1280px) { .delta-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
- /* ── 趋势图表 · 四图网格 ────────────────────────────────── */
- .ana-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-bottom: 40px; }
- .ana-cell { min-width: 0; }
- .ana-span2 { grid-column: span 2; }
- .ana-span3 { grid-column: 1 / -1; }
- .chart-lg { width: 100%; height: 300px; }
- .ana-compare-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: var(--font-size-body); color: var(--text-2); cursor: pointer; padding-bottom: 2px; white-space: nowrap; }
- .ana-compare-toggle input { margin: 0; }
- @media (max-width: 1080px) { .ana-grid { grid-template-columns: 1fr; } .ana-span2, .ana-span3 { grid-column: span 1; } }
- /* ── 趋势图表 · 分析模板 ────────────────────────────────── */
- .ana-tpl-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
- .ana-tpl-group { font-size: var(--font-size-small); color: var(--text-3); font-weight: var(--font-weight-h3); flex-shrink: 0; }
- .ana-tpl-bar .seg-control { background: var(--border-light); }
- #anaTplDesc { margin: 0 2px 10px; }
- .ana-note { font-size: var(--font-size-small); color: var(--text-3); margin: 0 2px; }
- .panel .ana-note { margin-top: -4px; }
- .ana-empty { min-height: 220px; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: var(--font-size-body); text-align: center; padding: 0 20px; }
- .ana-table-scroll { max-height: 316px; overflow: auto; }
- .ana-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-body); }
- .ana-table th { position: sticky; top: 0; z-index: 1; background: var(--card-bg); text-align: right; padding: 7px 8px; font-size: var(--font-size-small); font-weight: var(--font-weight-h3); color: var(--text-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
- .ana-table td { text-align: right; padding: 5px 8px; border-bottom: 1px solid var(--border-light); font-variant-numeric: tabular-nums; white-space: nowrap; }
- .ana-table th:first-child, .ana-table td:first-child { text-align: left; }
- .ana-help { font-size: var(--font-size-small); color: var(--text-2); line-height: 1.8; margin: 0; padding-left: 16px; }
- .ana-help b { color: var(--text); font-weight: var(--font-weight-h3); }
- .diag-steps { display: flex; flex-direction: column; gap: 8px; }
- .diag-step { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px 10px; }
- .diag-step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
- .diag-step-name { font-size: var(--font-size-small); font-weight: var(--font-weight-h3); color: var(--text-2); }
- .diag-step-val { font-size: 16px; font-weight: 700; margin: 2px 0; font-variant-numeric: tabular-nums; }
- .diag-step-meta { font-size: var(--font-size-small); color: var(--text-3); }
- .diag-conclusion { background: var(--warn-bg); color: var(--warn); border-radius: var(--radius-md); padding: 8px 10px; font-size: var(--font-size-body); line-height: 1.5; margin-top: 8px; }
- /* ── 智能问数 · 独立页面(副驾式:左会话栏 + 右舞台 + 底部大输入卡) ── */
- #viewAsk.active { display: block; height: 100vh; }
- #viewAsk > main.content-ask { height: 100%; display: flex; flex-direction: column; padding: 14px 18px 0; min-height: 0; }
- .ask-shell { flex: 1; min-height: 0; display: flex; gap: 14px; padding-bottom: 14px; }
- /* 左侧会话栏 */
- .ask-side { width: 244px; flex: 0 0 244px; display: flex; flex-direction: column; min-height: 0; background: #fff; border: 1px solid var(--border-light); border-radius: 14px; padding: 12px 10px 10px; }
- .ask-side-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 10px; }
- .ask-brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14.5px; color: var(--text); }
- .ask-brand svg { width: 16px; height: 16px; color: var(--accent); }
- .ask-new-btn { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border-light); background: #fff; color: var(--text-2); font-size: 16px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
- .ask-new-btn:hover { color: var(--accent); border-color: var(--accent); }
- .ask-search { padding: 0 2px 10px; }
- .ask-search input { width: 100%; box-sizing: border-box; min-height: 32px; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: #faf9f7; font-size: 12px; font-family: inherit; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
- .ask-search input::placeholder { color: var(--text-3); }
- .ask-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); background: #fff; }
- .ask-side-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
- .ask-sessions-empty { color: var(--text-3); font-size: var(--font-size-small); text-align: center; padding: 18px 0; }
- .ask-session-item { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 8px 30px 8px 10px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; }
- .ask-session-item:hover { background: #f5f3f0; }
- .ask-session-item.active { background: #fff7f3; border-color: #ffd9c7; }
- .ask-session-title { font-size: 12.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
- .ask-session-preview { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
- .ask-session-del { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border: none; border-radius: 6px; background: transparent; color: var(--text-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; opacity: .4; }
- .ask-session-del svg { width: 13px; height: 13px; }
- .ask-session-item:hover .ask-session-del { opacity: 1; }
- .ask-session-del:hover { background: #fdecec; color: var(--fail); opacity: 1; }
- /* 右侧舞台 */
- .ask-stage { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-light); border-radius: 14px; }
- .ask-stage-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px 2px; }
- .ask-stage-title { font-size: 15px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
- .ask-stage-badge { flex: 0 0 auto; font-size: 11px; color: var(--text-2); background: #f5f3f0; border-radius: var(--radius-pill); padding: 2px 10px; }
- .ask-stage-sub { padding: 2px 18px 12px; font-size: 11.5px; color: var(--text-3); }
- .ask-stream { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; background: #faf9f7; border-radius: 0 0 14px 14px; }
- /* 居中空态(给问数一个目标) */
- .ask-hero { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 540px; text-align: center; padding: 40px 16px; }
- .ask-hero-title { font-size: 22px; font-weight: 700; color: var(--text); }
- .ask-hero-sub { font-size: 12.5px; color: var(--text-3); line-height: 1.7; }
- .ask-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
- .ask-chips button {
- border: 1px solid var(--border); background: #fff; color: var(--text-2);
- font-size: 11px; padding: 4px 10px; border-radius: var(--radius-pill); cursor: pointer;
- }
- .ask-chips button:hover { border-color: var(--accent); color: var(--accent); }
- /* 对话流 */
- .ask-run { display: flex; flex-direction: column; gap: 6px; }
- .ask-q {
- align-self: flex-end; max-width: 86%; padding: 8px 12px; border-radius: 12px; border-bottom-right-radius: 4px;
- background: var(--accent); color: #fff; font-size: 12.5px; line-height: 1.55; word-break: break-word;
- }
- .ask-card {
- align-self: stretch; display: flex; flex-direction: column; gap: 8px;
- background: #fff; border: 1px solid var(--border-light); border-radius: 12px; border-bottom-left-radius: 4px;
- padding: 12px 14px; font-size: 12.5px; line-height: 1.6; color: var(--text); word-break: break-word;
- }
- .ask-card-error { background: var(--fail-bg); border-color: transparent; color: var(--fail); }
- /* 编排时间线(Worked · N 个工具 + 逐步骤:思考·Turn N / 工具调用) */
- .ask-meta { font-size: 10.5px; color: var(--text-3); letter-spacing: .05em; margin-bottom: 2px; }
- .ask-worked { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--text); }
- .ask-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; flex: 0 0 auto; }
- .ask-dot.running { background: var(--accent); animation: askpulse 1.1s ease-in-out infinite; }
- .ask-dot.failed { background: var(--fail); }
- @keyframes askpulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }
- .ask-steps { display: flex; flex-direction: column; margin-top: 10px; }
- .ask-step { position: relative; margin: 0 0 10px 3px; padding-left: 18px; }
- .ask-step::before { content: ''; position: absolute; left: 3.5px; top: 10px; bottom: -8px; width: 1px; background: var(--border-light); }
- .ask-step:last-child::before { display: none; }
- .ask-step .ask-dot { position: absolute; left: 0; top: 4px; }
- .ask-step-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); }
- .ask-step-head b { font-weight: 650; }
- .ask-step-meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }
- .ask-step-body { margin-top: 4px; color: var(--text-2); font-size: 12px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
- .ask-tool { margin-top: 4px; }
- .ask-tool summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; padding: 2px 0; color: var(--text-2); font-size: 11px; }
- .ask-tool summary::-webkit-details-marker { display: none; }
- .ask-tool summary::before { content: '▸'; font-size: 10px; color: var(--text-3); }
- .ask-tool[open] summary::before { content: '▾'; }
- /* 晨报横幅(每日自动同步后的确定性体检+环比结论) */
- .ask-digest { border-bottom: 1px solid var(--border-light); background: #fffaf5; }
- .ask-digest[hidden] { display: none; }
- .ask-digest-bar { display: flex; align-items: center; gap: 8px; padding: 8px 18px; cursor: pointer; }
- .ask-digest-bar:hover { background: #fff5ec; }
- .ask-digest-label { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--accent); }
- .ask-digest-headline { flex: 1; min-width: 0; font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
- .ask-digest-toggle { flex: 0 0 auto; font-size: 11px; color: var(--text-3); }
- .ask-digest-body { padding: 4px 18px 12px; display: flex; flex-direction: column; gap: 8px; }
- /* verdict 卡(数据体检/层间核对/恒等式等校验结论) */
- .ask-verdicts { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
- .ask-verdict {
- display: flex; align-items: baseline; gap: 8px; padding: 6px 10px;
- border: 1px solid var(--border-light); border-left-width: 3px; border-radius: 8px;
- background: #faf9f7; font-size: 11.5px; line-height: 1.5;
- }
- .ask-verdict.ok { border-left-color: var(--ok); }
- .ask-verdict.warn { border-left-color: var(--warn, #d97706); }
- .ask-verdict.fail { border-left-color: var(--fail); background: var(--fail-bg, #fdf1f0); }
- .ask-verdict-status { flex: 0 0 auto; font-weight: 700; }
- .ask-verdict.ok .ask-verdict-status { color: var(--ok); }
- .ask-verdict.warn .ask-verdict-status { color: var(--warn, #d97706); }
- .ask-verdict.fail .ask-verdict-status { color: var(--fail); }
- .ask-verdict-check { flex: 0 0 auto; font-weight: 600; color: var(--text); }
- .ask-verdict-detail { color: var(--text-3); min-width: 0; }
- /* 数字溯源警示(不阻断) */
- .ask-provenance { margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: #fff8e6; color: #9a6b00; font-size: 11.5px; line-height: 1.6; word-break: break-word; }
- .ask-fb { gap: 6px; }
- .ask-fb .btn { padding: 2px 8px; font-size: 11px; }
- .ask-pre {
- margin: 4px 0 0; padding: 8px 10px; background: #faf9f7; border: 1px solid var(--border-light);
- border-radius: 8px; font-size: 11.5px; line-height: 1.6; color: var(--text-2);
- white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow-y: auto; font-family: inherit;
- }
- .ask-typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 0; }
- .ask-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: askblink 1.2s infinite; }
- .ask-typing span:nth-child(2) { animation-delay: .2s; }
- .ask-typing span:nth-child(3) { animation-delay: .4s; }
- @keyframes askblink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
- .ask-error { background: var(--fail-bg); color: var(--fail); border-radius: 8px; padding: 8px 10px; }
- .ask-note { color: var(--text-3); font-size: 11.5px; }
- /* 答案区:markdown 渲染排版(renderMarkdown 产出 p/ul/table/pre 等结构) */
- .ask-answer { font-size: 13.5px; line-height: 1.75; color: var(--text); overflow-wrap: break-word; }
- .ask-answer > :first-child { margin-top: 0; }
- .ask-answer > :last-child { margin-bottom: 0; }
- .ask-answer p { margin: 8px 0; }
- .ask-answer h3, .ask-answer h4, .ask-answer h5, .ask-answer h6 { margin: 14px 0 6px; font-size: 13.5px; font-weight: 700; }
- .ask-answer h3 { font-size: 15px; }
- .ask-answer ul.md-list, .ask-answer ol.md-list { margin: 8px 0; padding-left: 20px; display: grid; gap: 4px; }
- .ask-answer blockquote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid var(--border); color: var(--text-2); background: var(--border-light); border-radius: 0 8px 8px 0; }
- .ask-answer code { padding: 1px 5px; border-radius: 5px; background: var(--border-light); font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
- .ask-answer .md-code { margin: 8px 0; padding: 10px 12px; border-radius: 8px; background: var(--sidebar-bg); color: var(--bg); font-size: 12px; overflow: auto; line-height: 1.6; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
- .ask-answer .md-table { margin: 10px 0; border-collapse: collapse; font-size: 12.5px; width: 100%; }
- .ask-answer .md-table th, .ask-answer .md-table td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; vertical-align: top; }
- .ask-answer .md-table th { background: var(--border-light); font-weight: 650; white-space: nowrap; }
- .ask-answer hr { border: 0; border-top: 1px solid var(--border); margin: 12px 0; }
- .ask-answer a { color: var(--accent); }
- .ask-answer strong { font-weight: 700; }
- /* 思考过程:Codex 式一行摘要,默认收起 */
- .ask-loop { margin-top: 10px; }
- .ask-loop > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; list-style: none; font-size: 12px; color: var(--text-2); padding: 5px 10px; border-radius: 8px; background: var(--border-light); }
- .ask-loop > summary::-webkit-details-marker { display: none; }
- .ask-loop > summary:hover { color: var(--text); }
- .ask-loop > summary .ask-dot { flex: 0 0 auto; }
- .ask-loop[open] > summary { margin-bottom: 10px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
- .ask-loop .ask-steps { padding: 2px 10px 4px; border: 1px solid var(--border-light); border-top: none; border-radius: 0 0 8px 8px; margin: 0; }
- /* 运行过程时间线:状态点 + 元信息胶囊 + 思考/工具卡 */
- .ask-step { padding-left: 22px; }
- .ask-step .ask-dot { top: 5px; }
- .ask-step-head b { font-size: 13px; }
- .ask-step-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
- .ask-chip { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; background: var(--border-light); color: var(--text-2); font-size: 11px; line-height: 1.7; }
- .ask-step-body { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--border-light); color: var(--text-2); font-size: 12px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
- .ask-tool { margin-top: 6px; }
- .ask-tool summary { cursor: pointer; font-size: 11.5px; color: var(--text-3); user-select: none; }
- .ask-tool summary:hover { color: var(--text-2); }
- .ask-chart { width: 100%; height: 240px; margin-top: 4px; border: 1px solid var(--border-light); border-radius: 10px; background: #fff; }
- .ask-chart-title { font-size: 11px; color: var(--text-3); text-align: center; margin-top: 4px; }
- .ask-actions { margin-top: 4px; }
- /* 底部大输入卡 */
- .ask-composer { margin: 0 20px 16px; padding: 10px 12px 8px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 8px 24px rgba(31, 27, 24, .06); transition: border-color .15s, box-shadow .15s; }
- .ask-composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
- .ask-composer textarea { width: 100%; box-sizing: border-box; border: none; outline: none; resize: none; background: transparent; font-family: inherit; font-size: 12.5px; line-height: 1.6; color: var(--text); min-height: 22px; max-height: 120px; padding: 2px 4px; }
- .ask-composer textarea::placeholder { color: var(--text-3); }
- .ask-composer-bar { display: flex; align-items: center; gap: 8px; padding-top: 8px; }
- .ask-ent-select { min-height: 28px; max-width: 190px; padding: 0 8px; border: 1px solid var(--border-light); border-radius: var(--radius-pill); background: #faf9f7; font-size: 11.5px; color: var(--text-2); font-family: inherit; }
- .ask-composer-spacer { flex: 1; }
- .ask-send-btn { width: 34px; height: 34px; border: none; border-radius: 50%; cursor: pointer; background: linear-gradient(135deg, var(--accent) 0%, #ff8a5c 100%); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(255, 107, 53, .35); }
- .ask-send-btn svg { width: 16px; height: 16px; }
- .ask-send-btn:disabled { opacity: .5; cursor: not-allowed; }
- @media (max-width: 900px) { .ask-side { display: none; } }
- /* 图标按钮(视觉生成 · 保存弹层) */
- .btn.icon-btn { width: 34px; min-width: 34px; padding: 0; justify-content: center; }
- .btn.icon-btn svg { width: 16px; height: 16px; display: block; }
- /* ── 系统设置 · 两列布局 + 面板独立保存 ─────────────────── */
- .settings-col > .panel { padding: 18px; }
- .panel-save-row { display: flex; align-items: center; gap: 10px; padding-top: 4px; border-top: 1px dashed var(--border-light); margin-top: 2px; }
- .panel-save-row .badge:empty { display: none; }
- @media (max-width: 1080px) { .settings-workspace { grid-template-columns: 1fr; } }
- /* ── 数据中台 ─────────────────────────────────────────────── */
- #lakeKpis { margin-bottom: 14px; }
- #lakeKpis .metric { min-height: 92px; padding: 14px 16px; }
- #lakeKpis .metric-body { gap: 6px; }
- #lakeKpis .metric-value { font-size: clamp(15px, 1.3vw, 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
- #lakeKpis .metric-sub { font-size: var(--font-size-small); color: var(--text-3); line-height: 1.35; }
- .data-table .empty-cell { color: var(--text-3); text-align: center; padding: 28px 12px; }
- /* ── 报表分页条 ───────────────────────────────────────────── */
- .report-pager { display: flex; align-items: center; gap: 10px; padding: 10px 12px 2px; flex-wrap: wrap; }
- .report-pager:empty { display: none; }
- .pager-info { font-size: var(--font-size-small); color: var(--text-2); }
- .pager-note { color: var(--text-3); margin-left: auto; }
- /* 全部字段模式:列宽随内容自适应,容器横向滚动 */
- .report-table.raw-cols { min-width: max-content; }
- .report-table.raw-cols th, .report-table.raw-cols td { white-space: nowrap; }
- /* 中台页内 tab 条(湖全景/明细数据) */
- .lake-tabs { margin-bottom: 14px; max-width: fit-content; }
- /* ── 取数诊断弹窗(隐藏入口:连点侧边栏版本号 5 次) ───────── */
- #modalNaposDiagnose .modal { width: min(720px, calc(100vw - 48px)); }
- .diagnose-summary { display: grid; gap: 12px; font-size: 13px; }
- .diagnose-block { display: grid; gap: 6px; }
- .diagnose-k { display: inline-block; min-width: 110px; color: var(--text-2); }
- .diagnose-table { margin: 2px 0; font-size: 12.5px; }
- .diagnose-table th, .diagnose-table td { white-space: nowrap; }
- .diagnose-conclusion { display: grid; gap: 4px; padding: 10px 12px; border-radius: 8px; background: var(--warn-bg); border: 1px solid var(--border); font-size: 13px; }
- .diagnose-raw { margin-top: 12px; font-size: 12.5px; }
- .diagnose-raw summary { cursor: pointer; color: var(--text-2); }
- .diagnose-raw pre { max-height: 300px; overflow: auto; margin-top: 8px; padding: 10px; border-radius: 8px; background: var(--border-light); white-space: pre-wrap; word-break: break-all; font-size: 12px; }
- .ask-phase { flex: 0 0 auto; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; line-height: 1.7; }
- .ask-phase.phase-查询 { background: var(--info-bg); color: var(--info); }
- .ask-phase.phase-提取 { background: var(--warn-bg); color: var(--warn); }
- .ask-phase.phase-计算 { background: var(--ok-bg); color: var(--ok); }
- /* 定向采集结果表 */
- .harvest-path { max-width: 380px; white-space: normal !important; word-break: break-all; font-size: 12px; color: var(--text-2); }
- #harvestSummary details summary { cursor: pointer; font-size: 12px; color: var(--text-3); }
- #harvestSummary details pre { max-width: 420px; max-height: 160px; overflow: auto; margin: 4px 0 0; padding: 8px; border-radius: 8px; background: var(--border-light); white-space: pre-wrap; word-break: break-all; font-size: 11.5px; }
- /* ── 店铺运营(上传解析) ───────────────────────────────── */
- .ops-bar { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; padding: 14px 16px; margin-bottom: 14px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); }
- .ops-bar-group { display: flex; align-items: center; gap: 8px; min-width: 0; }
- .ops-bar-right { margin-left: auto; }
- .ops-bar-label { font-size: var(--font-size-small); color: var(--text-3); white-space: nowrap; }
- .ops-chips { display: flex; flex-wrap: wrap; gap: 6px; }
- .ops-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; font-size: 12.5px; color: var(--text-2); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; transition: all .15s var(--ease-out); }
- .ops-chip:hover { border-color: var(--border-strong, var(--border)); color: var(--text); }
- .ops-chip.on { color: #fff; background: var(--accent); border-color: var(--accent); }
- .ops-chip em { font-style: normal; opacity: .7; font-size: 11px; }
- .ops-seg { display: inline-flex; padding: 2px; background: var(--bg); border: 1px solid var(--border); border-radius: 9px; }
- .ops-seg button { padding: 5px 12px; font-size: 12.5px; color: var(--text-2); background: none; border: 0; border-radius: 7px; cursor: pointer; }
- .ops-seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(31,27,24,.08); }
- .ops-input { height: 30px; padding: 0 8px; font-size: 12.5px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
- .ops-tilde { color: var(--text-3); }
- .ops-block { margin-bottom: 26px; }
- .ops-block-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
- .ops-block-head h2 { margin: 0; font-size: 15px; font-weight: 650; color: var(--text); }
- .ops-block-head span { font-size: 12px; color: var(--text-3); }
- .ops-table-wrap { overflow: auto; max-height: 68vh; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); }
- .ops-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
- .ops-table th, .ops-table td { padding: 7px 9px; border-bottom: 1px solid var(--border-light); white-space: nowrap; }
- .ops-table thead th { position: sticky; top: 0; z-index: 2; background: var(--bg); color: var(--text-2); font-weight: 600; text-align: center; }
- .ops-table thead tr:nth-child(2) th { top: 30px; }
- .ops-school-col { border-left: 2px solid var(--border); }
- .ops-date-col { font-variant-numeric: tabular-nums; min-width: 56px; }
- .ops-shop-col, .ops-shop-cell { position: sticky; left: 0; z-index: 3; min-width: 180px; max-width: 220px; background: var(--card-bg); text-align: left; overflow: hidden; text-overflow: ellipsis; }
- .ops-table thead .ops-shop-col { z-index: 4; background: var(--bg); }
- .ops-table:not(.ops-table-wide) tbody tr:hover td { background: #faf9f7; }
- .ops-table:not(.ops-table-wide) tbody tr:hover .ops-shop-cell { background: #faf9f7; }
- .ops-num { text-align: right; font-variant-numeric: tabular-nums; }
- .ops-null { color: var(--text-3); }
- .ops-warn { margin-left: 3px; color: var(--warn); cursor: help; font-size: 10px; }
- .ops-subtotal-row td { background: #fbfaf8; font-weight: 600; }
- .ops-subtotal { color: var(--text-2); }
- .ops-status { margin-left: 6px; }
- .ops-cards { display: flex; flex-direction: column; gap: 22px; }
- .ops-card-group h3 { margin: 0 0 10px; font-size: 14px; font-weight: 650; color: var(--text); }
- .ops-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 12px; }
- .ops-card { padding: 14px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: box-shadow .18s var(--ease-out), transform .18s var(--ease-out); }
- .ops-card:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(31,27,24,.06); }
- .ops-card-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
- .ops-card-name { flex: 1; min-width: 0; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
- .ops-card-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; margin-bottom: 8px; }
- .ops-card-metric span { display: block; font-size: 11px; color: var(--text-3); }
- .ops-card-metric b { font-size: 15px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
- .ops-spark { width: 100%; height: 34px; display: block; }
- .ops-spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
- .ops-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; text-align: center; color: var(--text-2); background: var(--bg); border: 1.5px dashed var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: border-color .15s, background .15s; }
- .ops-drop.on, .ops-drop:hover { border-color: var(--accent); background: #fff8f4; }
- .ops-drop small { color: var(--text-3); }
- .ops-file-name { margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
- .ops-field { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
- .ops-field label { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
- .ops-field small { color: var(--text-3); font-size: 11.5px; }
- .ops-upload-result { margin-top: 14px; font-size: 12.5px; line-height: 1.6; }
- .ops-ok { padding: 10px 12px; color: var(--text); background: #f4fbf6; border: 1px solid #cfe9d8; border-radius: 10px; }
- .ops-error { color: #c0392b; }
- .ops-muted { color: var(--text-3); }
- .ops-warn-list { margin: 8px 0 0; padding-left: 18px; color: var(--text-2); }
- .ops-upload-modal { width: min(560px, 92vw); }
- .ops-records-modal { width: min(900px, 94vw); }
- .ops-records-modal .modal-body { max-height: 70vh; overflow: auto; }
- .ops-empty { min-height: 320px; }
- .ops-school-row td { background: #f7f5f2; font-weight: 650; color: var(--text-2); border-top: 1px solid var(--border); }
- .ops-school-row em { font-style: normal; margin-left: 8px; font-weight: 450; color: var(--text-3); font-size: 11.5px; }
- .ops-select { width: 360px; max-width: 100%; height: 32px; }
- #opsSchoolCustom { width: 360px; max-width: 100%; }
- .ops-field .ops-input[type="number"] { width: 140px; }
- .ops-file-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow: auto; }
- .ops-file-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; font-size: 12.5px; background: var(--bg); border: 1px solid var(--border-light); border-radius: 8px; }
- .ops-file-name2 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
- .ops-file-size { flex: 0 0 auto; color: var(--text-3); font-size: 11.5px; }
- .ops-file-item em { font-style: normal; flex: 0 0 auto; font-size: 11.5px; }
- .ops-done-text { color: #2e7d4f; }
- .ops-file-del { flex: 0 0 auto; width: 20px; height: 20px; line-height: 1; padding: 0; color: var(--text-3); background: none; border: 0; border-radius: 50%; cursor: pointer; }
- .ops-file-del:hover { color: var(--text); background: var(--border-light); }
- .ops-check { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
- .ops-check input { accent-color: var(--accent); }
- /* ── 校区地图 ─────────────────────────────────────────── */
- .schools-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
- .schools-map-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 6px; }
- .schools-map { width: 100%; height: clamp(420px, 68vh, 640px); }
- .schools-side { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
- .schools-side-head { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border-light); font-size: 13px; color: var(--text); }
- .schools-side-head span { font-size: 11.5px; color: var(--text-3); }
- .schools-list { max-height: clamp(420px, 68vh, 640px); overflow: auto; }
- .schools-group { padding: 10px 14px 4px; font-size: 11.5px; color: var(--text-3); background: #fbfaf8; }
- .schools-group em { font-style: normal; margin-left: 6px; opacity: .8; }
- .schools-item { padding: 10px 14px; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: background .15s; }
- .schools-item:hover { background: #faf9f7; }
- .schools-item.on { background: #fff6f1; box-shadow: inset 3px 0 0 var(--accent); }
- .schools-item-name { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text); }
- .schools-item-name .badge { font-weight: 500; }
- .schools-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 107, 53, .16); }
- .schools-dot.off { background: #b8b2ad; box-shadow: none; }
- .schools-item-meta { margin-top: 4px; padding-left: 15px; display: flex; gap: 10px; font-size: 11.5px; color: var(--text-3); }
- @media (max-width: 1100px) {
- .schools-layout { grid-template-columns: minmax(0, 1fr); }
- .schools-list { max-height: 340px; }
- }
- .ops-metric-col { text-align: right; min-width: 92px; }
- .ops-table-wide .ops-date-col { min-width: 52px; text-align: center; }
- .ops-table-wide .ops-date-cell { text-align: center; color: var(--text-2); font-variant-numeric: tabular-nums; }
- .ops-subtotal-label { color: var(--text-2); font-weight: 600; }
- .ops-table-wide tbody tr.ops-subtotal-row td { border-top: 1px solid var(--border); }
- /* 店铺分块:斑马底 + 块间距 + 整块悬停 */
- .ops-table-wide .ops-shop-cell { vertical-align: top; padding-top: 11px; background: var(--card-bg); }
- .ops-table-wide tbody tr.ops-block-alt td { background: #fbf9f6; }
- .ops-table-wide tbody tr.ops-block-alt .ops-shop-cell { background: #f7f4ef; }
- .ops-table-wide tbody tr.ops-block-start td { border-top: 6px solid var(--bg); }
- .ops-table-wide tbody tr.ops-block-start .ops-shop-cell { border-top: 6px solid var(--bg); }
- .ops-table-wide tbody tr.ops-hover td { background: #fff3ec; }
- .ops-table-wide tbody tr.ops-hover .ops-shop-cell { background: #ffe9dc; }
- .ops-table-wide tbody tr.ops-hover .ops-date-cell { color: var(--text); }
- /* 多选下拉(字段 / 店铺) */
- .ops-multi { position: relative; }
- .ops-multi-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; font-size: 12.5px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; max-width: 260px; }
- .ops-multi-btn:hover { background: #fff; }
- .ops-multi-btn em { font-style: normal; color: var(--accent); font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
- .ops-multi-caret { color: var(--text-3); font-size: 10px; }
- .ops-multi-menu { position: absolute; z-index: 30; top: 34px; left: 0; width: 280px; max-height: 380px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 32px rgba(31,27,24,.14); overflow: hidden; }
- .ops-multi-menu[hidden] { display: none; }
- .ops-multi-search { margin: 8px; padding: 6px 8px; font-size: 12.5px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 7px; outline: none; }
- .ops-multi-search:focus { border-color: var(--accent); background: #fff; }
- .ops-multi-list { overflow: auto; max-height: 270px; padding: 0 6px 6px; }
- .ops-multi-item { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 6px; cursor: pointer; font-size: 12.5px; color: var(--text); }
- .ops-multi-item:hover { background: #faf7f3; }
- .ops-multi-item input { accent-color: var(--accent); flex: 0 0 auto; }
- .ops-multi-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
- .ops-multi-item em { font-style: normal; color: var(--text-3); font-size: 11px; flex: 0 0 auto; }
- .ops-multi-foot { display: flex; gap: 8px; padding: 8px; border-top: 1px solid var(--border-light); }
- .ops-multi-foot button { flex: 1; padding: 5px 0; font-size: 12px; color: var(--text-2); background: var(--bg); border: 1px solid var(--border); border-radius: 7px; cursor: pointer; }
- .ops-multi-foot button:hover { color: var(--text); background: #fff; }
- .ops-multi-empty { padding: 14px; text-align: center; color: var(--text-3); font-size: 12px; }
- .ops-table thead th.ops-col-num { text-align: right; }
- .ops-table thead th.ops-col-text { text-align: left; }
- .ops-text-cell { text-align: left; color: var(--text); max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
- /* 报表列宽:固定布局,店铺 240 / 日期 72 定宽,指标列均分剩余宽度 */
- .ops-table-wide { width: 100%; table-layout: fixed; }
- .ops-table-wide th.ops-shop-col,
- .ops-table-wide td.ops-shop-cell { width: 240px; border-right: 1px solid var(--border-light); }
- .ops-table-wide th.ops-date-col,
- .ops-table-wide td.ops-date-cell { width: 72px; }
- .ops-table-wide th.ops-metric-col,
- .ops-table-wide td.ops-num,
- .ops-table-wide td.ops-text-cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
- .ops-table-wide th.ops-metric-col { padding-left: 18px; padding-right: 18px; }
- .ops-table-wide td.ops-num,
- .ops-table-wide td.ops-text-cell { padding-left: 18px; padding-right: 18px; }
- .ops-table-wide tbody td { border-bottom-color: #f0ece7; }
- .ops-shop-name { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
- /* ── 经营驾驶舱 ───────────────────────────────────────── */
- .ckpt-bar { margin-bottom: 14px; }
- .ckpt-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
- .ckpt-kpi { padding: 14px 16px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); }
- .ckpt-kpi-label { font-size: 12px; color: var(--text-3); }
- .ckpt-kpi-value { margin: 6px 0 4px; font-size: clamp(19px, 1.6vw, 25px); font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
- .ckpt-kpi-foot { display: flex; align-items: center; gap: 6px; font-size: 11.5px; }
- .ckpt-delta { font-weight: 600; }
- .ckpt-delta.up { color: #2e7d4f; }
- .ckpt-delta.down { color: #c0392b; }
- .ckpt-delta.muted { color: var(--text-3); }
- .ckpt-kpi-hint { color: var(--text-3); }
- .ckpt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
- .ckpt-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px 8px; min-width: 0; }
- .ckpt-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
- .ckpt-card-head h3 { margin: 0; font-size: 13.5px; font-weight: 650; color: var(--text); }
- .ckpt-card-head span { font-size: 11.5px; color: var(--text-3); }
- .ckpt-chart { width: 100%; height: 260px; }
- .ckpt-empty { padding: 48px 0; text-align: center; color: var(--text-3); }
- .ckpt-empty p { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--text-2); }
- .ckpt-empty small { font-size: 12px; }
- @media (max-width: 1360px) {
- .ckpt-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
- }
- @media (max-width: 1080px) {
- .ckpt-grid { grid-template-columns: 1fr; }
- }
- /* ── 驾驶舱 · AI 解读 ─────────────────────────────────── */
- .ckpt-ai { margin-bottom: 14px; padding: 14px 16px; background: linear-gradient(135deg, #fff 0%, #fff8f4 100%); border: 1px solid rgba(255, 107, 53, 0.22); border-radius: var(--radius-lg); }
- .ckpt-ai-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
- .ckpt-ai-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
- .ckpt-ai-title h3 { margin: 0; font-size: 13.5px; font-weight: 650; color: var(--text); }
- .ckpt-ai-badge { padding: 1px 6px; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--accent); border-radius: 5px; }
- .ckpt-ai-meta { font-size: 11.5px; color: var(--text-3); }
- .ckpt-ai-actions { display: flex; gap: 8px; flex: 0 0 auto; }
- .ckpt-ai-body { margin-top: 10px; font-size: 13px; line-height: 1.75; color: var(--text-2); }
- .ckpt-ai-list { margin: 0; padding-left: 18px; }
- .ckpt-ai-list li { margin: 3px 0; }
- .ckpt-ai-loading { color: var(--text-3); }
- .ckpt-ai-error { color: #c0392b; }
- /* ── 经营报告 ─────────────────────────────────────────── */
- .rp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
- .rp-tabs { display: inline-flex; padding: 3px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
- .rp-tabs button { padding: 6px 16px; font-size: 12.5px; color: var(--text-2); background: none; border: 0; border-radius: 7px; cursor: pointer; }
- .rp-tabs button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(31,27,24,.08); font-weight: 600; }
- .rp-actions { display: flex; gap: 8px; }
- .rp-page { max-width: 1020px; margin: 0 auto; padding: 44px 52px 40px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 48px rgba(31,27,24,.06); color: var(--text); }
- .rp-loading { padding: 80px 0; text-align: center; color: var(--text-3); font-size: 13px; }
- .rp-cover { display: flex; justify-content: space-between; gap: 32px; padding-bottom: 24px; border-bottom: 2px solid var(--text); }
- .rp-kicker { font-size: 11px; letter-spacing: .18em; color: var(--accent); font-weight: 700; }
- .rp-cover h1 { margin: 8px 0 6px; font-size: 30px; line-height: 1.25; letter-spacing: -0.02em; }
- .rp-cover-sub { font-size: 13px; color: var(--text-2); }
- .rp-cover-meta { flex: 0 0 auto; width: 280px; display: flex; flex-direction: column; gap: 8px; font-size: 11.5px; }
- .rp-cover-meta div { display: flex; gap: 8px; }
- .rp-cover-meta span { color: var(--text-3); flex: 0 0 56px; }
- .rp-cover-meta b { font-weight: 600; color: var(--text-2); word-break: break-all; }
- .rp-section { padding: 26px 0; border-bottom: 1px solid var(--border-light); }
- .rp-section:last-of-type { border-bottom: 0; }
- .rp-section h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 17px; letter-spacing: -0.01em; }
- .rp-section h2 em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .06em; }
- .rp-h3 { margin: 22px 0 10px; font-size: 14px; }
- .rp-lead { margin: 0 0 12px; font-size: 13.5px; line-height: 1.8; color: var(--text-2); }
- .rp-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--text-3); }
- .rp-findings { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
- .rp-findings li { display: flex; gap: 10px; font-size: 13px; line-height: 1.7; }
- .rp-findings b { font-weight: 600; }
- .rp-findings p { margin: 2px 0 0; color: var(--text-2); font-size: 12.5px; }
- .rp-dot { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--text-3); }
- .rp-dot.ok { background: #2e7d4f; }
- .rp-dot.warn { background: var(--accent); }
- .rp-dot.bad { background: #c0392b; }
- .rp-evidence { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
- .rp-evidence code { padding: 1px 6px; font-size: 10.5px; color: var(--text-2); background: var(--bg); border-radius: 5px; }
- .rp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
- .rp-kpi { padding: 14px 16px; background: linear-gradient(135deg,#fff 0%,#faf8f5 100%); border: 1px solid var(--border-light); border-radius: 12px; }
- .rp-kpi-label { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); }
- .rp-kpi-value { margin: 8px 0 6px; font-size: 22px; font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
- .rp-kpi-foot { display: flex; align-items: center; gap: 6px; font-size: 11.5px; }
- .rp-kpi-hint { color: var(--text-3); }
- .rp-delta.up { color: #2e7d4f; font-weight: 600; }
- .rp-delta.down { color: #c0392b; font-weight: 600; }
- .rp-delta.muted { color: var(--text-3); }
- .rp-figure { margin: 16px 0 6px; }
- .rp-figure figcaption { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
- .rp-figure figcaption b { font-size: 12.5px; }
- .rp-figure figcaption span { font-size: 11.5px; color: var(--text-3); }
- .rp-chart { width: 100%; height: 240px; }
- .rp-page.interactive .rp-chart { cursor: crosshair; }
- .rp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
- .rp-table th { padding: 8px 10px; text-align: left; font-weight: 600; color: var(--text-2); background: var(--bg); border-bottom: 1px solid var(--border); }
- .rp-table td { padding: 8px 10px; border-bottom: 1px solid var(--border-light); }
- .rp-table tr:last-child td { border-bottom: 0; }
- .rp-alerts { display: flex; flex-direction: column; gap: 10px; }
- .rp-alert { padding: 12px 14px; background: #fbfaf8; border: 1px solid var(--border-light); border-left: 3px solid var(--text-3); border-radius: 10px; }
- .rp-alert.P0 { border-left-color: #c0392b; background: #fdf6f5; }
- .rp-alert.P1 { border-left-color: var(--accent); background: #fff8f4; }
- .rp-alert-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
- .rp-alert ul { margin: 8px 0 0; padding-left: 18px; font-size: 12px; color: var(--text-2); line-height: 1.7; }
- .rp-badge { padding: 1px 6px; font-size: 10px; font-weight: 700; color: #fff; background: var(--text-3); border-radius: 4px; }
- .rp-alert.P0 .rp-badge { background: #c0392b; }
- .rp-alert.P1 .rp-badge { background: var(--accent); }
- .rp-quality p { margin: 4px 0; font-size: 12.5px; color: var(--text-2); }
- .rp-method { margin: 6px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.8; color: var(--text-2); }
- .rp-footer { padding-top: 18px; border-top: 1px solid var(--border-light); font-size: 11px; color: var(--text-3); text-align: center; }
- @media print {
- @page { size: A4; margin: 12mm 14mm; }
- .sidebar, .rp-toolbar, .page-header, #splash { display: none !important; }
- .app-frame { display: block; height: auto; overflow: visible; }
- .app-frame > main { width: 100%; }
- .content { padding: 0 !important; }
- .view { display: none !important; }
- .view.active { display: block !important; }
- .rp-page { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; }
- .rp-section, .rp-kpi, .rp-figure, .rp-alert, .rp-table tr { break-inside: avoid; }
- .rp-section h2 { break-after: avoid; }
- body { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
- }
- .rp-range { display: flex; align-items: center; gap: 6px; margin-right: auto; }
- @media print { .rp-range { display: none !important; } }
- /* 报告中心 */
- .rp-history-modal { width: min(860px, 94vw); }
- .rp-history-kpis { color: var(--text-3); font-size: 11.5px; }
- .rp-col-actions { text-align: right; white-space: nowrap; }
- .rp-col-actions .btn { margin-left: 4px; }
- .rp-filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; margin-right: 8px; font-size: 11.5px; color: var(--text-2); background: #fff5ef; border: 1px solid rgba(255,107,53,.25); border-radius: 999px; }
- .rp-filter-chip button { padding: 0; font-size: 11.5px; color: var(--accent); background: none; border: 0; cursor: pointer; text-decoration: underline; }
- @media print { .rp-filter-chip { display: none !important; } }
|