2026-09-02 20:42:52 +08:00

1040 lines
19 KiB
CSS

/* DEMO-014 keeps the official orange as the sole accent; all artwork is
code-native so the console has no runtime dependency on brand-site assets. */
:root {
color-scheme: light;
--brand: #FF3C00;
--brand-deep: #d83200;
--brand-soft: #fff0eb;
--ink: #111111;
--graphite: #292929;
--muted: #747474;
--line: #d9d9d5;
--line-strong: #bcbcb6;
--surface: #ffffff;
--canvas: #f4f4f1;
--success: #19764a;
--warning: #956000;
--danger: #a52e27;
--shadow: 0 16px 42px rgb(17 17 17 / 7%);
--display-font: "Source Han Sans CN", "Noto Sans CJK SC", "PingFang SC", sans-serif;
--body-font: "Outfit", "Source Han Sans CN", "PingFang SC", sans-serif;
--data-font: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
font-family: var(--body-font);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-width: 320px;
background: var(--canvas);
color: var(--ink);
}
button,
input,
select,
textarea {
font: inherit;
}
a {
color: inherit;
text-decoration: none;
}
:focus-visible {
outline: 3px solid rgb(255 60 0 / 30%);
outline-offset: 3px;
}
.app-shell {
min-height: 100vh;
display: grid;
grid-template-columns: 252px minmax(0, 1fr);
}
.sidebar {
position: sticky;
top: 0;
z-index: 2;
height: 100vh;
display: flex;
flex-direction: column;
padding: 28px 20px 22px;
border-right: 1px solid var(--line);
background: var(--surface);
}
.brand {
display: flex;
gap: 12px;
align-items: center;
padding: 0 8px;
}
.brand-mark {
width: 42px;
height: 32px;
flex: 0 0 auto;
fill: var(--ink);
}
.brand-mark circle {
fill: var(--brand);
}
.brand strong,
.brand small {
display: block;
}
.brand strong {
font-family: var(--display-font);
font-size: 16px;
font-weight: 750;
letter-spacing: .08em;
}
.brand small {
margin-top: 4px;
color: var(--muted);
font-family: var(--data-font);
font-size: 8px;
letter-spacing: .08em;
text-transform: uppercase;
}
.workspace-label {
display: grid;
gap: 7px;
margin: 44px 8px 14px;
padding-top: 18px;
border-top: 1px solid var(--line);
}
.workspace-label span {
color: var(--brand);
font-family: var(--data-font);
font-size: 9px;
font-weight: 800;
letter-spacing: .16em;
}
.workspace-label strong {
font-size: 13px;
font-weight: 650;
}
.primary-nav {
display: grid;
gap: 7px;
}
.primary-nav a {
position: relative;
display: flex;
min-height: 48px;
align-items: center;
gap: 13px;
padding: 0 14px;
border-radius: 4px;
color: #5e5e5e;
font-size: 13px;
font-weight: 650;
transition: background-color .16s ease, color .16s ease, transform .16s ease;
}
.primary-nav a span {
width: 24px;
color: #a1a19c;
font-family: var(--data-font);
font-size: 9px;
font-weight: 700;
letter-spacing: .04em;
}
.primary-nav a:hover {
background: var(--canvas);
color: var(--ink);
transform: translateX(2px);
}
.primary-nav a.active {
background: var(--ink);
color: white;
}
.primary-nav a.active::after {
position: absolute;
top: 50%;
right: -4px;
width: 8px;
height: 8px;
border: 2px solid white;
border-radius: 50%;
background: var(--brand);
content: "";
transform: translate(50%, -50%);
}
.primary-nav a.active span {
color: var(--brand);
}
.sidebar-foot {
margin-top: auto;
padding: 16px 8px 0;
border-top: 1px solid var(--line);
color: #898984;
font-family: var(--data-font);
font-size: 8px;
letter-spacing: .08em;
}
.environment-dot {
display: inline-block;
width: 7px;
height: 7px;
margin-right: 8px;
border-radius: 50%;
background: var(--brand);
box-shadow: 0 0 0 4px rgb(255 60 0 / 10%);
}
.workspace {
min-width: 0;
padding: 0 52px 72px;
}
.topbar {
min-height: 110px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--line);
}
.topbar h1 {
margin: 7px 0 0;
font-family: var(--display-font);
font-size: 27px;
font-weight: 650;
letter-spacing: .025em;
}
.eyebrow,
.section-label {
margin: 0;
color: var(--brand);
font-family: var(--data-font);
font-size: 9px;
font-weight: 800;
letter-spacing: .16em;
}
.topbar-actions {
display: flex;
align-items: center;
gap: 24px;
}
.system-state {
display: inline-flex;
align-items: center;
gap: 7px;
color: var(--muted);
font-size: 11px;
}
.system-state i {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--brand);
box-shadow: 0 0 0 4px rgb(255 60 0 / 10%);
}
.api-link {
padding: 9px 0 8px;
border-bottom: 2px solid var(--brand);
font-size: 11px;
font-weight: 750;
}
.signal-line {
position: relative;
height: 16px;
border-top: 1px solid var(--ink);
}
.signal-line::before {
position: absolute;
top: -2px;
left: 0;
width: 112px;
height: 3px;
background: var(--brand);
content: "";
}
.signal-line span {
position: absolute;
top: -4px;
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--ink);
}
.signal-line span:nth-child(1) { left: 36%; }
.signal-line span:nth-child(2) { left: 68%; }
.signal-line span:nth-child(3) { right: 0; background: var(--brand); }
.page {
max-width: 1180px;
margin: 0 auto;
padding-top: 48px;
animation: page-enter .35s ease-out both;
}
@keyframes page-enter {
from { opacity: 0; transform: translateY(7px); }
to { opacity: 1; transform: translateY(0); }
}
.page-heading {
margin-bottom: 28px;
}
.page-heading h2 {
max-width: 720px;
margin: 12px 0 10px;
font-family: var(--display-font);
font-size: clamp(30px, 4vw, 48px);
font-weight: 520;
letter-spacing: .02em;
line-height: 1.18;
}
.page-heading p:last-child {
max-width: 680px;
margin: 0;
color: var(--muted);
font-size: 13px;
line-height: 1.8;
}
.heading-row {
display: flex;
align-items: end;
justify-content: space-between;
gap: 20px;
}
.notice {
position: fixed;
z-index: 10;
top: 24px;
right: 28px;
max-width: 440px;
padding: 14px 18px;
border-left: 4px solid currentColor;
border-radius: 3px;
box-shadow: var(--shadow);
font-size: 12px;
}
.notice.success { background: #e9f5ef; color: var(--success); }
.notice.error { background: #fff0ef; color: var(--danger); }
.upload-panel {
display: grid;
gap: 16px;
max-width: 820px;
}
.drop-zone {
position: relative;
display: flex;
min-height: 290px;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
padding: 34px;
border: 1px solid var(--line-strong);
border-radius: 6px;
background-color: var(--surface);
background-image:
linear-gradient(rgb(17 17 17 / 3%) 1px, transparent 1px),
linear-gradient(90deg, rgb(17 17 17 / 3%) 1px, transparent 1px);
background-size: 28px 28px;
cursor: pointer;
transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.drop-zone::before,
.drop-zone::after {
position: absolute;
width: 48px;
height: 48px;
border-color: var(--brand);
content: "";
}
.drop-zone::before {
top: 16px;
left: 16px;
border-top: 3px solid var(--brand);
border-left: 3px solid var(--brand);
}
.drop-zone::after {
right: 16px;
bottom: 16px;
border-right: 3px solid var(--brand);
border-bottom: 3px solid var(--brand);
}
.drop-zone:hover {
border-color: var(--brand);
box-shadow: 0 12px 35px rgb(255 60 0 / 9%);
transform: translateY(-2px);
}
.drop-zone input {
position: absolute;
width: 1px;
height: 1px;
opacity: 0;
}
.upload-icon {
display: grid;
width: 58px;
height: 58px;
margin-bottom: 20px;
place-items: center;
border-radius: 50%;
background: var(--ink);
color: white;
box-shadow: 9px 0 0 var(--brand);
font-family: var(--data-font);
font-size: 25px;
}
.drop-zone strong {
font-family: var(--display-font);
font-size: 21px;
font-weight: 650;
letter-spacing: .03em;
}
.drop-zone > span:not(.upload-icon) {
margin-top: 8px;
color: var(--muted);
font-size: 11px;
}
.drop-zone .selected-file {
margin-top: 23px;
padding: 7px 12px;
border: 1px solid var(--line);
border-radius: 3px;
background: var(--surface);
color: var(--ink);
font-family: var(--data-font);
font-size: 10px;
font-weight: 650;
}
.primary-button,
.secondary-button {
min-height: 46px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 3px;
cursor: pointer;
font-size: 12px;
font-weight: 750;
letter-spacing: .025em;
transition: background-color .16s ease, color .16s ease, transform .16s ease;
}
.primary-button {
padding: 0 24px;
border: 1px solid var(--brand);
background: var(--brand);
color: white;
}
.primary-button:hover {
border-color: var(--ink);
background: var(--ink);
transform: translateY(-1px);
}
.primary-button:disabled {
cursor: wait;
opacity: .6;
transform: none;
}
.secondary-button {
padding: 0 18px;
border: 1px solid var(--ink);
background: transparent;
color: var(--ink);
}
.secondary-button:hover {
background: var(--ink);
color: white;
}
.compact {
min-height: 38px;
padding: 0 18px;
}
.result-card {
position: relative;
max-width: 820px;
margin-top: 28px;
padding: 26px;
border: 1px solid var(--line);
border-top: 3px solid var(--brand);
border-radius: 5px;
background: var(--surface);
box-shadow: var(--shadow);
}
.result-card h3 {
margin: 8px 0 0;
font-size: 19px;
}
.result-card > .status-pill {
position: absolute;
top: 22px;
right: 24px;
}
.metadata-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin: 28px 0;
padding: 20px 0;
border-block: 1px solid var(--line);
}
.batch-items {
display: grid;
gap: 8px;
margin: -8px 0 24px;
}
.batch-item {
display: grid;
grid-template-columns: 34px minmax(0, 1fr) auto;
gap: 12px;
align-items: center;
min-height: 64px;
padding: 11px 13px;
border: 1px solid var(--line);
border-radius: 3px;
background: #fafaf8;
}
.batch-item-order {
color: var(--brand);
font-family: var(--data-font);
font-size: 10px;
font-weight: 850;
}
.batch-item-body {
display: grid;
min-width: 0;
gap: 5px;
}
.batch-item-body strong {
overflow: hidden;
font-size: 12px;
text-overflow: ellipsis;
white-space: nowrap;
}
.batch-item-body span {
overflow-wrap: anywhere;
color: var(--muted);
font-size: 10px;
}
dt {
color: var(--muted);
font-family: var(--data-font);
font-size: 9px;
letter-spacing: .05em;
text-transform: uppercase;
}
dd {
margin: 7px 0 0;
overflow-wrap: anywhere;
font-size: 12px;
font-weight: 650;
}
.text-link {
color: var(--ink);
font-size: 12px;
font-weight: 750;
}
.text-link span {
color: var(--brand);
}
.table-card {
overflow: hidden;
border: 1px solid var(--line);
border-radius: 5px;
background: var(--surface);
box-shadow: var(--shadow);
}
.table-meta {
display: flex;
justify-content: space-between;
padding: 17px 22px;
border-bottom: 1px solid var(--line);
color: var(--muted);
font-family: var(--data-font);
font-size: 9px;
}
.table-scroll {
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
font-size: 12px;
}
th {
padding: 13px 18px;
color: #777773;
background: #f7f7f5;
font-family: var(--data-font);
font-size: 9px;
letter-spacing: .07em;
text-align: left;
text-transform: uppercase;
}
td {
padding: 19px 18px;
border-top: 1px solid #ecece9;
vertical-align: middle;
}
tbody tr:hover {
background: #fffaf8;
}
.filename-cell {
min-width: 190px;
font-weight: 750;
}
.row-actions {
min-width: 116px;
text-align: right;
white-space: nowrap;
}
.table-action {
padding: 5px 7px;
border: 0;
background: transparent;
color: var(--ink);
cursor: pointer;
font-size: 11px;
font-weight: 700;
}
.table-action:hover {
color: var(--brand);
}
.danger-link {
color: var(--danger);
}
.status-pill {
display: inline-flex;
width: fit-content;
align-items: center;
padding: 5px 9px;
border-radius: 2px;
background: #ededeb;
color: #474744;
font-family: var(--data-font);
font-size: 9px;
font-weight: 850;
letter-spacing: .05em;
text-transform: uppercase;
}
.status-ready { background: #e5f3eb; color: var(--success); }
.status-processing { background: #fff0ce; color: var(--warning); }
.status-failed { background: #fbe6e3; color: var(--danger); }
.status-uploaded { background: var(--brand-soft); color: var(--brand-deep); }
.status-pending,
.status-queued,
.status-running,
.status-retrying,
.status-accepted { background: #fff0ce; color: var(--warning); }
.status-succeeded,
.status-completed { background: #e5f3eb; color: var(--success); }
.status-rejected,
.status-partial_failure { background: #fbe6e3; color: var(--danger); }
.empty-state {
min-height: 240px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
padding: 34px;
color: var(--muted);
text-align: center;
}
.empty-state::before {
width: 28px;
height: 3px;
margin-bottom: 9px;
background: var(--brand);
content: "";
}
.empty-state strong {
color: var(--ink);
font-family: var(--display-font);
font-size: 18px;
font-weight: 600;
}
.empty-state .primary-button {
margin-top: 12px;
color: white;
font-size: 11px;
}
.search-panel {
padding: 22px;
border: 1px solid var(--line);
border-left: 4px solid var(--brand);
border-radius: 4px;
background: var(--surface);
box-shadow: var(--shadow);
}
.search-panel > label {
display: block;
margin-bottom: 10px;
font-size: 11px;
font-weight: 750;
}
.search-controls {
display: grid;
grid-template-columns: minmax(0, 1fr) 90px 118px;
gap: 12px;
align-items: stretch;
}
textarea,
select {
width: 100%;
border: 1px solid #c9c9c4;
border-radius: 3px;
background: #fafaf8;
color: var(--ink);
outline: none;
}
textarea {
min-height: 90px;
padding: 13px 15px;
resize: vertical;
line-height: 1.55;
}
textarea:focus,
select:focus {
border-color: var(--brand);
box-shadow: 0 0 0 3px rgb(255 60 0 / 10%);
}
.top-k-control {
display: flex;
flex-direction: column;
gap: 7px;
color: var(--muted);
font-family: var(--data-font);
font-size: 9px;
font-weight: 700;
text-transform: uppercase;
}
.top-k-control select {
flex: 1;
padding: 0 11px;
}
.search-panel .primary-button {
min-height: 54px;
align-self: end;
}
.results-heading {
display: flex;
align-items: end;
justify-content: space-between;
margin: 42px 0 15px;
}
.results-heading h3 {
margin: 7px 0 0;
font-family: var(--display-font);
font-size: 22px;
font-weight: 600;
}
.results-heading > span {
color: var(--muted);
font-family: var(--data-font);
font-size: 9px;
}
.search-results {
display: grid;
gap: 10px;
}
.search-empty {
min-height: 220px;
border: 1px dashed var(--line-strong);
border-radius: 4px;
}
.search-result-card {
display: grid;
grid-template-columns: 54px 1fr;
gap: 18px;
padding: 23px;
border: 1px solid var(--line);
border-radius: 4px;
background: var(--surface);
transition: border-color .16s ease, transform .16s ease;
}
.search-result-card:hover {
border-color: #b5b5af;
transform: translateX(2px);
}
.search-result-card:first-child {
border-left: 4px solid var(--brand);
}
.rank {
display: grid;
width: 42px;
height: 42px;
place-items: center;
background: var(--ink);
color: white;
font-family: var(--data-font);
font-size: 12px;
font-weight: 750;
}
.search-result-card:first-child .rank {
background: var(--brand);
}
.result-title-row {
display: flex;
align-items: start;
justify-content: space-between;
gap: 18px;
}
.result-title-row h4 {
margin: 0;
font-size: 14px;
}
.source-meta {
display: flex;
max-width: 60%;
gap: 16px;
}
.source-meta span {
display: grid;
gap: 3px;
text-align: right;
}
.source-meta small,
.score-row small {
color: var(--muted);
font-family: var(--data-font);
font-size: 8px;
font-weight: 750;
letter-spacing: .07em;
text-transform: uppercase;
}
.source-meta strong {
overflow-wrap: anywhere;
color: #4c4c48;
font-size: 10px;
font-weight: 650;
}
.chunk-content {
margin: 15px 0;
color: #373733;
font-size: 13px;
line-height: 1.75;
white-space: pre-wrap;
}
.score-row {
display: flex;
gap: 22px;
}
.score-row span {
display: flex;
align-items: baseline;
gap: 7px;
}
.score-row strong {
font-family: var(--data-font);
font-size: 10px;
}
.document-dialog {
width: min(570px, calc(100vw - 32px));
padding: 30px;
border: 0;
border-top: 4px solid var(--brand);
border-radius: 4px;
color: var(--ink);
box-shadow: 0 24px 80px rgb(0 0 0 / 25%);
}
.document-dialog::backdrop {
background: rgb(10 10 10 / 58%);
backdrop-filter: blur(2px);
}
.document-dialog form {
position: absolute;
top: 15px;
right: 15px;
}
.icon-button {
width: 34px;
height: 34px;
border: 1px solid var(--line);
border-radius: 50%;
background: var(--canvas);
cursor: pointer;
font-size: 20px;
}
.icon-button:hover {
border-color: var(--brand);
color: var(--brand);
}
.document-dialog h2 {
margin: 10px 36px 24px 0;
font-family: var(--display-font);
font-weight: 600;
}
.dialog-metadata {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 18px;
margin: 0;
}
.dialog-metadata div {
padding-top: 14px;
border-top: 1px solid var(--line);
}
@media (max-width: 820px) {
.app-shell { grid-template-columns: 1fr; }
.sidebar { position: static; width: 100%; height: auto; padding: 18px; }
.brand strong { font-size: 14px; }
.workspace-label, .sidebar-foot { display: none; }
.primary-nav { grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.primary-nav a { min-height: 44px; justify-content: center; padding: 0 8px; font-size: 11px; }
.primary-nav a span { display: none; }
.primary-nav a.active::after { top: auto; right: 50%; bottom: -4px; transform: translate(50%, 50%); }
.workspace { padding: 0 20px 48px; }
.topbar { min-height: 88px; }
.system-state, .api-link { display: none; }
.page { padding-top: 34px; }
.search-controls { grid-template-columns: minmax(0, 1fr) 90px; }
.search-controls textarea { grid-column: 1 / -1; }
.metadata-grid { grid-template-columns: 1fr; }
.batch-item { grid-template-columns: 28px minmax(0, 1fr); }
.batch-item .status-pill { grid-column: 2; }
}
@media (max-width: 540px) {
.brand-mark { width: 36px; }
.primary-nav a { min-height: 40px; }
.heading-row { align-items: start; flex-direction: column; }
.search-controls { grid-template-columns: 1fr; }
.search-controls textarea { grid-column: auto; }
.top-k-control select { min-height: 44px; }
.search-result-card { grid-template-columns: 1fr; }
.result-title-row { align-items: start; flex-direction: column; gap: 8px; }
.source-meta { max-width: 100%; flex-wrap: wrap; }
.source-meta span { text-align: left; }
.dialog-metadata { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
scroll-behavior: auto !important;
animation-duration: .01ms !important;
animation-iteration-count: 1 !important;
transition-duration: .01ms !important;
}
}