/* ═══════════════════════════════════════════════════════════════ 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-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; } .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; } .field .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; } .settings-workspace { display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); gap: 16px; align-items: stretch; } .settings-forms { display: flex; flex-direction: column; gap: 16px; min-width: 0; } .settings-forms .field textarea { min-height: 78px; resize: vertical; line-height: 1.5; } .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: grid; grid-template-columns: 1fr 1fr; 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-log { height: auto; min-height: 360px; } .settings-log .log-box { min-height: 0; } #viewSettings.active { display: flex; height: 100%; min-height: 0; } #viewSettings .content { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding-bottom: 20px; } #viewSettings .settings-workspace { flex: 1; min-height: 0; } #viewSettings .settings-forms { min-height: 0; } #viewSettings .settings-log { flex: 1; min-height: 0; } @media (max-width: 960px) { .settings-workspace { grid-template-columns: 1fr; } #viewSettings.active { display: block; height: auto; } #viewSettings .content { min-height: 0; } #viewSettings .settings-workspace { flex: none; } #viewSettings .settings-log { flex: none; min-height: 320px; } } /* ── 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 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 */ .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; } }