kaikai_test/public/styles.css

1678 lines
26 KiB
CSS

:root {
color-scheme: light;
--bg: #f6f7f9;
--panel: #ffffff;
--panel-soft: #eef3f7;
--text: #18202a;
--muted: #637083;
--line: #d9e0e7;
--accent: #0f766e;
--accent-strong: #0b5f59;
--warn: #ad6817;
--bad: #b42318;
--ok: #16794c;
--shadow: 0 8px 24px rgba(30, 41, 59, 0.08);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: var(--bg);
color: var(--text);
font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
font-size: 14px;
line-height: 1.5;
}
html {
scroll-behavior: smooth;
}
.auth-gate {
position: fixed;
inset: 0;
z-index: 1000;
display: grid;
place-items: center;
padding: 24px;
background: rgba(246, 247, 249, 0.96);
}
.auth-card {
width: min(420px, 100%);
display: grid;
gap: 12px;
padding: 24px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 8px;
box-shadow: var(--shadow);
}
.auth-title {
font-size: 20px;
font-weight: 900;
}
.auth-card p {
margin: 0;
color: var(--muted);
}
.auth-card input,
.auth-card button {
min-height: 42px;
border-radius: 6px;
}
.auth-card button {
border: 1px solid var(--accent);
background: var(--accent);
color: #fff;
font-weight: 800;
cursor: pointer;
}
.auth-message {
min-height: 20px;
color: var(--bad);
font-weight: 700;
}
.app-nav {
position: sticky;
top: 0;
z-index: 30;
display: grid;
grid-template-columns: auto auto minmax(360px, 1fr) auto;
gap: 16px;
align-items: center;
min-height: 52px;
padding: 8px 24px;
background: rgba(255, 255, 255, 0.96);
border-bottom: 1px solid var(--line);
box-shadow: 0 4px 18px rgba(30, 41, 59, 0.06);
backdrop-filter: blur(8px);
}
.app-nav-brand {
color: var(--text);
font-size: 16px;
font-weight: 900;
text-decoration: none;
}
.app-version-badge {
display: inline-flex;
align-items: center;
justify-content: center;
height: 26px;
padding: 0 10px;
border-radius: 6px;
background: #e8f5f2;
color: var(--accent);
font-size: 12px;
font-weight: 900;
white-space: nowrap;
}
.app-nav-links {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
}
.app-nav-links a {
display: inline-flex;
align-items: center;
justify-content: center;
height: 34px;
padding: 0 12px;
border-radius: 6px;
color: var(--muted);
text-decoration: none;
font-weight: 800;
}
.app-nav-links a:hover,
.app-nav-links a:focus-visible {
color: var(--accent);
background: #edf7f5;
}
.app-nav-meta {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--muted);
font-size: 12px;
white-space: nowrap;
}
.app-nav-meta strong {
color: var(--accent);
font-size: 13px;
}
.shell {
min-height: 100vh;
display: flex;
flex-direction: column;
padding-bottom: 42px;
}
.topbar {
display: grid;
grid-template-columns: minmax(360px, 480px) minmax(320px, 1fr);
gap: 28px;
align-items: center;
padding: 28px 24px;
background: var(--panel);
border-bottom: 1px solid var(--line);
}
.app-status-dock {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 32;
display: flex;
align-items: center;
gap: 10px;
min-height: 36px;
padding: 7px 24px;
background: #ffffff;
border-top: 1px solid var(--line);
color: var(--muted);
font-size: 12px;
box-shadow: 0 -4px 18px rgba(30, 41, 59, 0.06);
}
.dock-label {
color: var(--accent);
font-weight: 900;
}
.dock-separator {
width: 1px;
height: 14px;
background: var(--line);
}
.brand-block {
display: grid;
gap: 14px;
align-content: center;
min-width: 0;
max-width: 360px;
}
.brand-copy {
min-width: 0;
}
h1 {
margin: 0;
font-size: 30px;
font-weight: 800;
letter-spacing: 0;
line-height: 1.12;
}
#subtitle {
margin: 8px 0 0;
color: var(--muted);
font-size: 16px;
line-height: 1.35;
}
.top-collect-all {
width: 100%;
min-width: 0;
height: 54px;
padding: 0 20px;
font-size: 16px;
font-weight: 800;
}
.top-actions {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.top-collect-all.secondary {
background: #fff;
color: var(--teal);
border: 1px solid var(--teal);
}
.searchbar {
display: grid;
grid-template-columns: minmax(220px, 360px) 108px 108px 108px minmax(0, 1fr);
gap: 10px;
align-items: center;
}
.url-grid {
grid-column: 1 / -1;
display: grid;
grid-template-columns: repeat(4, minmax(120px, 1fr));
gap: 8px;
}
.url-grid input {
height: 34px;
font-size: 13px;
}
.temporary-query-panel {
margin: 16px 24px 0;
padding: 16px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 8px;
}
.desktop-dashboard {
display: grid;
grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
gap: 12px;
margin: 12px 0 0;
}
.dashboard-card {
min-width: 0;
padding: 14px 16px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 8px;
box-shadow: var(--shadow);
}
.dashboard-card-main {
border-color: rgba(15, 118, 110, 0.28);
}
.dashboard-label {
color: var(--muted);
font-size: 12px;
font-weight: 700;
}
.dashboard-value {
margin-top: 4px;
font-size: 30px;
line-height: 1.15;
font-weight: 800;
color: var(--text);
}
.dashboard-value.compact {
font-size: 22px;
}
.dashboard-note {
margin-top: 6px;
color: var(--muted);
font-size: 12px;
}
.dashboard-actions-card {
display: grid;
align-content: center;
gap: 10px;
}
.dashboard-actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.dashboard-action {
display: inline-flex;
align-items: center;
justify-content: center;
height: 32px;
padding: 0 12px;
border-radius: 6px;
border: 1px solid var(--accent);
color: var(--accent);
text-decoration: none;
font-weight: 800;
}
.task-queue-panel {
margin: 12px 24px 0;
padding: 14px 16px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 8px;
box-shadow: var(--shadow);
}
.brand-task-queue {
margin: 6px 0 0;
padding: 10px 12px;
box-shadow: none;
}
.task-queue-panel.idle {
box-shadow: none;
}
.task-queue-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
}
.task-current {
margin-top: 2px;
color: var(--muted);
font-size: 13px;
}
.task-ratio {
font-weight: 800;
color: var(--accent);
}
.task-progress-track {
height: 8px;
margin-top: 12px;
overflow: hidden;
border-radius: 999px;
background: var(--panel-soft);
}
.task-progress-fill {
width: 0%;
height: 100%;
border-radius: inherit;
background: var(--accent);
transition: width 160ms ease;
}
.task-counters {
display: flex;
gap: 16px;
flex-wrap: wrap;
margin-top: 10px;
color: var(--muted);
font-size: 12px;
}
.task-counters strong {
color: var(--text);
}
.mobile-sync-panel {
margin: 12px 24px 0;
padding: 14px 16px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 8px;
box-shadow: var(--shadow);
}
.mobile-sync-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 10px;
margin-top: 12px;
}
.mobile-sync-list.empty {
display: block;
color: var(--muted);
}
.mobile-sync-item {
display: grid;
gap: 8px;
align-content: start;
padding: 12px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fbfdff;
}
.mobile-sync-main {
display: grid;
gap: 2px;
}
.mobile-sync-main span,
.mobile-sync-meta,
.mobile-sync-note {
color: var(--muted);
font-size: 12px;
}
.mobile-sync-note {
word-break: break-word;
}
.duty-panel {
margin: 12px 24px 0;
padding: 14px 16px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 8px;
box-shadow: var(--shadow);
}
.duty-grid {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
margin-top: 12px;
}
.duty-grid label {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 32px;
color: var(--text);
font-size: 13px;
font-weight: 800;
}
.duty-grid input[type="checkbox"] {
width: auto;
height: auto;
}
.duty-time input {
width: 120px;
height: 32px;
}
.duty-status {
margin-top: 10px;
color: var(--muted);
font-size: 13px;
}
.temporary-actions {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.file-button {
display: inline-flex;
align-items: center;
justify-content: center;
height: 32px;
padding: 0 12px;
border: 1px solid var(--teal);
border-radius: 6px;
color: var(--teal);
font-size: 13px;
font-weight: 700;
cursor: pointer;
}
.file-button input {
display: none;
}
#temporary-query-text {
width: 100%;
margin-top: 12px;
min-height: 92px;
resize: vertical;
}
#temporary-query-text.drag-over {
border-color: var(--accent);
background: #f0fdfa;
box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}
.temporary-result {
margin-top: 12px;
}
.temporary-result-wrap {
overflow: auto;
border: 1px solid var(--line);
border-radius: 8px;
}
.temporary-table {
width: 100%;
min-width: 760px;
border-collapse: collapse;
}
.temporary-table th,
.temporary-table td {
padding: 10px 12px;
border-bottom: 1px solid var(--line);
text-align: left;
white-space: nowrap;
}
.link-candidates {
grid-column: 1 / -1;
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
}
.link-candidate-card {
border: 1px solid var(--border);
border-radius: 8px;
background: #fbfdff;
padding: 8px;
min-width: 0;
}
.link-candidate-head {
display: flex;
justify-content: space-between;
gap: 8px;
font-size: 12px;
color: var(--muted);
margin-bottom: 6px;
}
.link-candidate-head strong {
color: var(--text);
}
.link-candidate-list {
display: grid;
gap: 6px;
}
.link-candidate-list button {
display: grid;
gap: 2px;
text-align: left;
border: 1px solid var(--border);
border-radius: 6px;
background: #fff;
padding: 6px;
cursor: pointer;
}
.link-candidate-list button:hover {
border-color: var(--accent);
background: #f0fdfa;
}
.link-candidate-list span {
color: var(--accent-strong);
font-size: 12px;
font-weight: 700;
}
.link-candidate-list small {
color: var(--muted);
font-size: 11px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.link-candidate-empty {
color: var(--muted);
font-size: 12px;
}
.collect-platforms {
grid-column: 1 / -1;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
color: var(--muted);
font-size: 13px;
font-weight: 700;
}
.collect-platforms label {
display: inline-flex;
align-items: center;
gap: 5px;
min-height: 30px;
border: 1px solid var(--line);
border-radius: 999px;
padding: 0 10px;
background: #fff;
color: var(--muted);
}
.collect-platforms label.active {
border-color: var(--accent);
background: #e5f4f2;
color: var(--accent-strong);
}
.collect-platforms input {
width: auto;
height: auto;
}
.mini-button {
height: 30px;
border-color: var(--line);
border-radius: 999px;
padding: 0 10px;
background: #fff;
color: var(--accent-strong);
font-size: 13px;
}
.mini-button.warn {
color: var(--bad);
}
.library-row {
grid-column: 1 / -1;
display: grid;
grid-template-columns: minmax(180px, 1fr) 116px minmax(90px, auto);
gap: 8px;
align-items: center;
}
.library-row input {
height: 34px;
font-size: 13px;
}
.library-row .button {
height: 34px;
font-size: 13px;
}
.inline-status {
color: var(--muted);
font-size: 12px;
}
.network-help {
grid-column: 1 / -1;
border-top: 1px solid var(--line);
padding-top: 8px;
}
.network-help summary {
color: var(--accent-strong);
cursor: pointer;
font-weight: 700;
}
.help-grid {
display: grid;
gap: 4px;
margin-top: 8px;
color: var(--muted);
font-size: 13px;
}
input {
width: 100%;
height: 40px;
border: 1px solid var(--line);
border-radius: 6px;
padding: 0 12px;
background: #fff;
color: var(--text);
font: inherit;
outline: none;
}
select,
textarea {
width: 100%;
border: 1px solid var(--line);
border-radius: 6px;
padding: 8px 10px;
background: #fff;
color: var(--text);
font: inherit;
outline: none;
}
textarea {
resize: vertical;
min-height: 92px;
}
input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}
button,
.button {
display: inline-flex;
align-items: center;
justify-content: center;
height: 40px;
border: 1px solid var(--accent);
border-radius: 6px;
padding: 0 14px;
background: var(--accent);
color: #fff;
font: inherit;
font-weight: 600;
text-decoration: none;
cursor: pointer;
white-space: nowrap;
}
button:disabled,
.button[aria-disabled="true"] {
opacity: 0.55;
cursor: not-allowed;
pointer-events: none;
}
.button.ghost {
background: #fff;
color: var(--accent-strong);
}
.statusline {
display: flex;
gap: 8px;
align-items: center;
min-height: 38px;
padding: 0 24px;
border-bottom: 1px solid var(--line);
color: var(--muted);
background: #fbfcfd;
}
.dot {
width: 9px;
height: 9px;
border-radius: 50%;
background: #94a3b8;
}
.dot.busy {
background: var(--warn);
}
.dot.ok {
background: var(--ok);
}
.dot.error {
background: var(--bad);
}
.workspace {
flex: 1;
display: grid;
grid-template-columns: 280px minmax(0, 1fr);
min-height: 0;
}
.side {
border-right: 1px solid var(--line);
background: #fbfcfd;
padding: 16px;
overflow: auto;
}
.side-title {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-bottom: 10px;
color: var(--muted);
font-size: 13px;
font-weight: 700;
}
.side-title > span {
flex: 0 0 auto;
}
.collect-history-button {
height: 28px;
border-color: var(--accent);
border-radius: 6px;
padding: 0 8px;
background: #fff;
color: var(--accent-strong);
font-size: 12px;
font-weight: 700;
}
.history-actions,
.history-bulk-bar {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 6px;
}
.history-actions {
min-width: 0;
}
.history-bulk-bar {
margin-bottom: 10px;
}
.history-bulk-bar button {
min-height: 28px;
border-color: var(--line);
border-radius: 6px;
padding: 0 8px;
background: #fff;
color: var(--accent-strong);
font-size: 12px;
font-weight: 700;
}
.history-bulk-bar #history-collect-selected {
border-color: var(--accent);
background: #f0fffb;
color: var(--accent-strong);
}
.history-bulk-bar #history-delete-selected {
border-color: #f2c0bd;
background: #fff7f6;
color: var(--bad);
}
.program-list {
display: grid;
gap: 6px;
}
.program-item-row {
display: grid;
grid-template-columns: 24px minmax(130px, 1fr) 44px;
gap: 6px;
align-items: center;
min-width: 0;
}
.program-item-row.bulk {
grid-template-columns: 24px minmax(170px, 1fr);
}
.program-select {
display: grid;
place-items: center;
min-height: 36px;
padding: 0;
}
.program-select input {
width: 18px;
height: 18px;
cursor: pointer;
}
.program-item-row.active .program-item {
border-color: var(--line);
background: var(--panel);
}
.program-item {
min-height: 36px;
width: 100%;
min-width: 0;
border: 1px solid transparent;
border-radius: 6px;
padding: 8px 10px;
background: transparent;
color: var(--text);
text-align: left;
cursor: pointer;
}
.program-name-text {
display: -webkit-box;
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
line-clamp: 2;
word-break: break-word;
line-height: 1.35;
}
.program-item:hover,
.program-item.active {
border-color: var(--line);
background: var(--panel);
}
.delete-program {
width: 44px;
min-width: 44px;
height: 36px;
border-color: #f2c0bd;
border-radius: 6px;
padding: 0;
background: #fff7f6;
color: var(--bad);
font-size: 12px;
font-weight: 700;
}
.delete-program:hover {
background: #ffeceb;
}
.table-panel {
min-width: 0;
padding: 18px 24px 24px;
}
.table-tools {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-bottom: 12px;
}
.table-actions,
.run-bulk-bar {
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: flex-end;
gap: 8px;
}
.run-collapse-tools {
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: flex-start;
gap: 10px;
margin: -2px 0 12px;
padding: 10px 12px;
border: 1px solid #b8ddd9;
border-radius: 8px;
background: #f2fbfa;
}
.run-collapse-note {
color: #24515b;
font-size: 13px;
font-weight: 800;
}
#run-collapse-toggle {
min-height: 32px;
border-color: var(--accent);
background: var(--accent);
color: #fff;
box-shadow: 0 8px 16px rgba(15, 118, 110, 0.14);
}
#run-collapse-toggle:hover {
background: var(--accent-strong);
}
.run-bulk-bar {
margin-bottom: 10px;
}
.run-bulk-bar button {
min-height: 28px;
border-color: var(--line);
border-radius: 6px;
padding: 0 8px;
background: #fff;
color: var(--accent-strong);
font-size: 12px;
font-weight: 700;
}
.run-bulk-bar #run-delete-selected {
border-color: #f2c0bd;
background: #fff7f6;
color: var(--bad);
}
.platform-filters {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 12px;
}
.filter-chip {
height: 32px;
border-color: var(--line);
border-radius: 999px;
padding: 0 12px;
background: #fff;
color: var(--muted);
font-size: 13px;
font-weight: 700;
}
.filter-chip.active {
border-color: var(--accent);
background: #e5f4f2;
color: var(--accent-strong);
}
.filter-chip.reset {
border-style: dashed;
}
.table-title {
font-size: 18px;
font-weight: 700;
}
.run-count {
color: var(--muted);
font-weight: 600;
}
.table-wrap {
width: 100%;
overflow: auto;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 8px;
box-shadow: var(--shadow);
}
table {
width: 100%;
min-width: 780px;
border-collapse: collapse;
table-layout: fixed;
}
th,
td {
border-bottom: 1px solid var(--line);
padding: 8px 10px;
text-align: left;
vertical-align: middle;
}
th {
position: sticky;
top: 0;
z-index: 1;
background: var(--panel-soft);
color: #314154;
font-size: 13px;
font-weight: 700;
}
.run-head {
display: grid;
gap: 4px;
}
.run-collapse-cell {
min-width: 108px;
background: #f8fafc;
color: var(--muted);
text-align: center;
font-size: 12px;
font-weight: 700;
}
.run-collapse-cell button {
min-height: 26px;
border: 1px solid var(--line);
border-radius: 6px;
padding: 0 8px;
background: #fff;
color: var(--accent-strong);
font-size: 12px;
font-weight: 700;
}
.run-collapse-cell button:hover {
background: #e5f4f2;
}
.run-select {
display: inline-flex;
align-items: center;
gap: 4px;
}
.run-select input {
width: 18px;
height: 18px;
cursor: pointer;
}
.delete-run {
justify-self: start;
height: 24px;
border-color: #f2c0bd;
border-radius: 5px;
padding: 0 8px;
background: #fff7f6;
color: var(--bad);
font-size: 12px;
font-weight: 700;
}
th:first-child,
td:first-child {
width: 118px;
position: sticky;
left: 0;
z-index: 2;
background: inherit;
}
thead th:first-child {
z-index: 3;
}
tbody tr {
background: var(--panel);
}
tbody tr:hover {
background: #f9fbfb;
}
.url-cell {
width: 210px;
color: var(--muted);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.url-cell a {
color: var(--accent-strong);
text-decoration: none;
}
.heat-cell {
min-width: 72px;
text-align: center;
}
.heat-value {
display: block;
font-weight: 700;
}
.heat-meta {
display: block;
color: var(--muted);
font-size: 12px;
}
.metric-help {
display: none;
}
.compact-label {
display: inline-flex;
align-items: center;
min-height: 24px;
border-radius: 5px;
padding: 0 6px;
background: #f5f8fb;
color: #314154;
font-size: 12px;
font-weight: 800;
white-space: nowrap;
}
.short-status {
display: inline-flex;
align-items: center;
min-height: 24px;
border-radius: 5px;
padding: 0 6px;
font-size: 13px;
font-weight: 800;
white-space: nowrap;
}
.short-status.muted {
background: #f5f8fb;
color: var(--muted);
}
.detail-link {
height: 24px;
margin-top: 4px;
border-color: var(--line);
border-radius: 5px;
padding: 0 8px;
background: #fff;
color: var(--accent-strong);
font-size: 12px;
font-weight: 700;
}
.anomaly-badge {
display: inline-flex;
align-items: center;
min-height: 18px;
border-radius: 5px;
padding: 0 5px;
background: #fff3dc;
color: var(--warn);
font-size: 12px;
}
.credibility-badge {
display: inline-flex;
align-items: center;
min-height: 18px;
margin-top: 4px;
border-radius: 5px;
padding: 0 5px;
background: #edf6ff;
color: #175cd3;
font-size: 12px;
font-weight: 800;
}
.credibility-badge.high {
background: #e7f6ec;
color: var(--ok);
}
.credibility-badge.medium {
background: #edf6ff;
color: #175cd3;
}
.credibility-badge.low {
background: #fff3dc;
color: var(--warn);
}
.credibility-badge.rejected {
background: #fff1f0;
color: var(--bad);
}
.status-ok {
color: var(--ok);
}
.status-warn {
color: var(--warn);
}
.status-bad {
color: var(--bad);
}
.empty {
color: var(--muted);
text-align: center;
padding: 36px 12px;
}
.chart-panel,
.compare-panel {
margin-top: 16px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 8px;
padding: 14px;
box-shadow: var(--shadow);
}
.panel-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 10px;
}
.panel-title {
font-weight: 800;
}
.panel-note {
color: var(--muted);
font-size: 12px;
font-weight: 700;
}
.compare-controls {
display: grid;
grid-template-columns: 180px 108px;
gap: 8px;
align-items: center;
}
.compare-controls select {
height: 34px;
padding: 0 10px;
font-size: 13px;
}
.trend-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 10px;
}
.trend-card {
border: 1px solid var(--line);
border-radius: 7px;
padding: 10px;
}
.trend-title {
font-weight: 800;
}
.trend-meta {
color: var(--muted);
font-size: 12px;
}
.line-chart {
width: 100%;
height: 120px;
margin-top: 6px;
}
.line-chart line {
stroke: var(--line);
}
.line-chart polyline {
fill: none;
stroke: var(--accent);
stroke-width: 2.5;
}
.line-chart circle {
fill: var(--accent);
}
.batch-form {
display: grid;
grid-template-columns: minmax(240px, 1fr) 128px;
gap: 10px;
align-items: start;
}
.compare-list {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 10px;
}
.compare-check {
display: inline-flex;
align-items: center;
gap: 6px;
border: 1px solid var(--line);
border-radius: 999px;
padding: 6px 10px;
background: #fff;
}
.compare-check input {
width: auto;
height: auto;
}
.compare-chart {
display: grid;
gap: 8px;
}
.compare-line-chart {
min-height: 204px;
}
.compare-line-svg {
width: 100%;
min-height: 188px;
display: block;
overflow: visible;
}
.compare-plot-bg {
fill: #fbfdff;
}
.compare-grid-line line {
stroke: var(--line);
stroke-width: 1;
}
.compare-grid-line text,
.compare-axis-label,
.compare-time-label {
fill: var(--muted);
font-size: 6px;
}
.compare-time-tick line {
stroke: var(--muted);
stroke-width: 1;
}
.compare-point-value {
font-size: 5px;
font-weight: 700;
paint-order: stroke;
stroke: #ffffff;
stroke-width: 1.2px;
stroke-linejoin: round;
}
.compare-axis {
stroke: var(--muted);
stroke-width: 1;
}
.compare-legend {
display: flex;
flex-wrap: wrap;
gap: 6px 14px;
margin-top: 4px;
color: #314154;
font-size: 16px;
font-weight: 700;
}
.compare-legend span {
display: inline-flex;
align-items: center;
gap: 6px;
}
.compare-legend i {
width: 16px;
height: 16px;
border-radius: 999px;
}
.bar-row,
.compare-row {
display: grid;
grid-template-columns: minmax(120px, 1fr) minmax(120px, 2fr) minmax(70px, auto);
gap: 10px;
align-items: center;
}
.compare-row {
grid-template-columns: minmax(120px, 1fr) minmax(70px, auto);
margin-top: 6px;
color: var(--muted);
}
.bar-track {
height: 10px;
overflow: hidden;
border-radius: 999px;
background: var(--panel-soft);
}
.bar-track i {
display: block;
height: 100%;
border-radius: inherit;
background: var(--accent);
}
.detail-dialog {
width: min(720px, calc(100vw - 32px));
border: 1px solid var(--line);
border-radius: 8px;
padding: 0;
color: var(--text);
}
.detail-dialog::backdrop {
background: rgba(15, 23, 42, 0.35);
}
.dialog-head {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--line);
padding: 12px 14px;
}
.close-button {
width: 30px;
height: 30px;
border-color: var(--line);
border-radius: 6px;
padding: 0;
background: #fff;
color: var(--text);
font-size: 20px;
}
.detail-body {
display: grid;
gap: 10px;
max-height: min(70vh, 620px);
overflow: auto;
padding: 14px;
}
.detail-label {
color: var(--muted);
font-size: 12px;
font-weight: 800;
}
.detail-value {
word-break: break-word;
}
.candidate-list {
margin: 4px 0 0;
padding-left: 20px;
}
.candidate-list li {
margin-bottom: 8px;
}
.candidate-actions {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.candidate-actions button {
border: 1px solid var(--border-strong);
background: #f8ffff;
color: var(--accent-strong);
border-radius: 6px;
padding: 4px 8px;
font-size: 12px;
font-weight: 700;
cursor: pointer;
}
.candidate-actions button:hover {
background: #e8fbfa;
}
.candidate-list span {
display: block;
color: var(--muted);
font-size: 12px;
}
@media (max-width: 820px) {
.topbar {
grid-template-columns: 1fr;
gap: 12px;
padding: 16px;
}
.searchbar {
grid-template-columns: 1fr;
}
.top-actions {
grid-template-columns: 1fr;
}
.url-grid {
grid-template-columns: 1fr;
}
.link-candidates {
grid-template-columns: 1fr;
}
.library-row,
.bar-row {
grid-template-columns: 1fr;
}
.workspace {
grid-template-columns: 1fr;
}
.side {
border-right: 0;
border-bottom: 1px solid var(--line);
max-height: 180px;
}
.table-panel {
padding: 16px;
}
}