style(webui): apply strict modular ui redesign

This commit is contained in:
Your Name committed 2026-06-18 03:29:34 +08:00
1 parent cc4caef6e1
commit dbf9b14fac
10 files changed
+2056 -363

No files matched your search

+388
View File
@@ -0,0 +1,388 @@
/* Strict UI image2 fidelity refinements. */
/* Round 2 fidelity pass: match the generated full-suite UI more closely. */
:root {
--strict-rail: 236px;
--strict-top: 78px;
--strict-status: 152px;
}
:root .brandBlock {
padding: 0 28px !important;
}
:root .title {
font-size: 25px !important;
letter-spacing: 0 !important;
}
:root .header-actions {
gap: 14px !important;
padding: 0 28px !important;
}
:root .overview,
:root:not([data-premium-panel="device"]) .overview {
gap: 18px !important;
padding: 18px 22px 16px !important;
}
:root .overviewCard {
display: grid !important;
grid-template-columns: 64px minmax(0, 1fr) !important;
grid-template-rows: auto auto auto !important;
align-items: center !important;
justify-items: start !important;
min-height: 118px !important;
padding: 18px 22px !important;
text-align: left !important;
}
:root .premiumMetricIcon {
position: static !important;
left: auto !important;
right: auto !important;
top: auto !important;
bottom: auto !important;
grid-column: 1 !important;
grid-row: 1 / span 3 !important;
width: 54px !important;
height: 54px !important;
margin: 0 !important;
align-self: center !important;
justify-self: start !important;
opacity: 1 !important;
transform: none !important;
}
:root .premiumMetricIcon::before {
width: 25px !important;
height: 25px !important;
}
:root .overviewLabel,
:root .overviewValue,
:root .overviewMeta {
grid-column: 2 !important;
min-width: 0 !important;
max-width: 100% !important;
text-align: left !important;
}
:root .overviewLabel {
align-self: end !important;
color: #111827 !important;
font-size: 20px !important;
font-weight: 850 !important;
}
:root .overviewValue {
margin: 2px 0 0 !important;
color: #64748b !important;
font-size: 15px !important;
font-weight: 650 !important;
}
:root .overviewMeta {
margin: 3px 0 0 !important;
color: var(--strict-teal) !important;
font-size: 16px !important;
font-weight: 780 !important;
}
:root .configWorkspace,
:root:not([data-premium-panel="device"]) .configWorkspace {
height: calc(100vh - var(--strict-top) - var(--strict-status) - 38px) !important;
padding: 12px 32px 30px !important;
}
:root .panel,
:root .card[data-panel] {
padding: 28px 32px !important;
border-color: #dce4ee !important;
}
:root .panel > .sectionTitle,
:root .cardTitle,
:root .logTitle {
font-size: 23px !important;
line-height: 1.2 !important;
}
:root .panel > .sectionTitle:not(:first-child) {
margin-top: 30px !important;
}
:root .row {
grid-template-columns: minmax(150px, 0.22fr) minmax(0, 1fr) !important;
gap: 12px 26px !important;
}
:root .row.grid2 {
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
:root .row.grid3 {
grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
:root .row.grid4 {
display: grid !important;
grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
align-items: start !important;
gap: 14px 18px !important;
}
:root .row.grid2 > div,
:root .row.grid3 > div,
:root .row.grid4 > div {
min-width: 0 !important;
}
:root .row.grid4 .label {
display: block !important;
margin-bottom: 7px !important;
white-space: nowrap !important;
}
:root .row.grid4 .input {
width: 100% !important;
}
:root .input,
:root .small,
:root .logSearchBox,
:root input[type="text"],
:root input[type="number"],
:root input[type="search"],
:root select,
:root textarea {
min-height: 40px !important;
border-color: #cbd6e2 !important;
}
:root .btnGroup .btn:first-child,
:root .rowActions .btnPrimary,
:root #btnWifiEnable,
:root #btnRunLogSearch,
:root #btnActionsRefresh {
color: #ffffff !important;
border-color: var(--strict-primary) !important;
background: var(--strict-primary) !important;
}
:root #btnWifiDisconnect {
color: var(--strict-danger) !important;
border-color: #fecdd3 !important;
background: #ffffff !important;
}
:root #wifiScanResults {
min-height: 118px !important;
display: block !important;
}
:root[data-premium-panel="debug"] .panel[data-panel="debug"] {
padding-top: 24px !important;
}
:root[data-premium-panel="debug"] .panel[data-panel="debug"] > .sectionTitle {
display: flex !important;
align-items: center !important;
min-height: 44px !important;
margin: 18px 0 0 !important;
padding: 0 14px !important;
border: 1px solid #dce4ee !important;
border-radius: var(--strict-radius) var(--strict-radius) 0 0 !important;
background: linear-gradient(90deg, #f7fbff, #ffffff) !important;
font-size: 18px !important;
}
:root[data-premium-panel="debug"] .panel[data-panel="debug"] > .sectionTitle:first-child {
margin-top: 0 !important;
}
:root[data-premium-panel="debug"] .panel[data-panel="debug"] > .row {
padding: 12px 14px !important;
border-right: 1px solid #dce4ee !important;
border-left: 1px solid #dce4ee !important;
background: #ffffff !important;
}
:root[data-premium-panel="debug"] .panel[data-panel="debug"] > .row + .row {
border-top: 1px solid #eef2f7 !important;
}
:root[data-premium-panel="debug"] .panel[data-panel="debug"] > .row:has(+ .sectionTitle),
:root[data-premium-panel="debug"] .panel[data-panel="debug"] > .row:last-child {
border-bottom: 1px solid #dce4ee !important;
border-radius: 0 0 var(--strict-radius) var(--strict-radius) !important;
}
:root .cardReservations,
:root .cardLog,
:root .cardShot {
padding: 28px 32px !important;
}
:root .reservationsContent {
min-height: 260px !important;
}
:root .reservationsContent > .hint:only-child {
display: grid !important;
place-items: center !important;
min-height: 220px !important;
color: #6b7280 !important;
font-size: 17px !important;
}
:root .reservationsList {
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
}
:root .logHeader {
grid-template-columns: minmax(110px, auto) minmax(0, 1fr) !important;
min-height: 70px !important;
}
:root .logHeaderActions {
flex-wrap: nowrap !important;
}
:root .log {
min-height: clamp(480px, 58vh, 690px) !important;
max-height: clamp(480px, 58vh, 690px) !important;
}
@media (max-width: 1180px) {
:root {
--strict-rail: 78px;
--strict-status: 220px;
}
:root .brandBlock {
padding: 0 !important;
}
:root .title {
font-size: 0 !important;
}
:root .overviewCard {
min-height: 96px !important;
}
}
@media (max-width: 820px) {
:root {
--strict-top: auto;
--strict-status: auto;
}
:root .header-actions {
padding: 10px !important;
}
:root .overview,
:root:not([data-premium-panel="device"]) .overview {
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
gap: 8px !important;
padding: 10px !important;
}
:root .overviewCard {
grid-template-columns: 1fr !important;
grid-template-rows: auto auto auto !important;
min-height: 78px !important;
padding: 10px 12px !important;
}
:root .premiumMetricIcon {
display: none !important;
}
:root .overviewLabel,
:root .overviewValue,
:root .overviewMeta {
grid-column: 1 !important;
}
:root .overviewLabel {
font-size: 14px !important;
}
:root .overviewValue,
:root .overviewMeta {
font-size: 12px !important;
white-space: normal !important;
overflow-wrap: anywhere !important;
}
:root .configWorkspace,
:root:not([data-premium-panel="device"]) .configWorkspace {
padding: 10px !important;
}
:root .panel,
:root .card[data-panel],
:root .cardReservations,
:root .cardLog,
:root .cardShot {
padding: 14px !important;
}
:root .panel > .sectionTitle,
:root .cardTitle,
:root .logTitle {
font-size: 18px !important;
}
:root .row,
:root .row.grid2,
:root .row.grid3,
:root .row.grid4,
:root .panel[data-panel="license"] .row {
grid-template-columns: 1fr !important;
gap: 8px !important;
}
:root[data-premium-panel="debug"] .panel[data-panel="debug"] > .sectionTitle {
min-height: 38px !important;
padding: 0 10px !important;
font-size: 15px !important;
}
:root[data-premium-panel="debug"] .panel[data-panel="debug"] > .row {
padding: 10px !important;
}
:root .logHeader {
grid-template-columns: 1fr !important;
}
:root .logHeaderActions {
display: grid !important;
grid-template-columns: 1fr 1fr !important;
flex-wrap: initial !important;
}
:root .logHeaderActions .logSearchBox {
grid-column: 1 / -1 !important;
}
:root .log {
min-height: 380px !important;
max-height: 520px !important;
}
}
@media (max-width: 430px) {
:root .overview,
:root:not([data-premium-panel="device"]) .overview {
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
:root .overviewCard {
min-height: 76px !important;
}
}
+299
View File
@@ -0,0 +1,299 @@
/* Strict UI panel cards, form controls, rows, stats, and tables. */
.panel,
.card[data-panel],
.card {
border: 1px solid var(--strict-border);
border-radius: var(--strict-radius);
background: var(--strict-surface);
box-shadow: var(--strict-shadow-soft);
}
.panel,
.card[data-panel] {
width: 100%;
padding: 24px 28px;
}
.panel[hidden],
.card[data-panel][hidden] {
display: none !important;
}
.panel.active {
display: block;
}
.sectionTitle,
.cardTitle,
.logTitle {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
margin: 0;
padding: 0;
border: 0;
color: var(--strict-text);
font-size: 22px;
font-weight: 800;
line-height: 1.22;
}
.sectionTitle {
margin: 0 0 24px;
}
.sectionTitle:not(:first-child) {
margin-top: 30px;
padding-top: 24px;
border-top: 1px solid var(--strict-border);
}
.sectionIcon {
display: none !important;
}
.row {
display: grid;
grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr);
align-items: center;
gap: 16px 28px;
margin: 0;
padding: 10px 0;
border: 0;
background: transparent;
}
.row + .row {
border-top: 1px solid #eef2f7;
}
.row.grid2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px 36px;
}
.row.grid3 {
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 18px 28px;
}
.row.grid2 > div,
.row.grid3 > div {
min-width: 0;
}
.row.grid2 .label,
.row.grid3 .label {
margin-bottom: 8px;
}
.label {
color: #263241;
font-size: 14px;
font-weight: 700;
line-height: 1.35;
}
.hint {
color: var(--strict-muted);
font-size: 13px;
line-height: 1.55;
}
.input,
.small,
.logSearchBox,
input[type="text"],
input[type="number"],
input[type="search"],
select,
textarea {
min-width: 0;
min-height: 38px;
border: 1px solid var(--strict-border-strong);
border-radius: 6px;
color: var(--strict-text);
background: #ffffff;
box-shadow: none;
font-size: 14px;
font-weight: 500;
}
.input,
.logSearchBox,
input[type="text"],
input[type="number"],
input[type="search"],
select {
padding: 0 12px;
}
.textarea,
textarea {
min-height: 110px;
padding: 12px;
resize: vertical;
}
.check {
display: inline-flex;
align-items: center;
gap: 10px;
min-width: 0;
color: #334155;
font-size: 14px;
font-weight: 650;
line-height: 1.35;
}
.check input[type="checkbox"] {
appearance: none;
position: relative;
width: 42px;
height: 24px;
flex: 0 0 42px;
border: 0;
border-radius: 999px;
background: #cbd5e1;
cursor: pointer;
transition: background 140ms ease;
}
.check input[type="checkbox"]::after {
position: absolute;
left: 3px;
top: 3px;
width: 18px;
height: 18px;
content: "";
border-radius: 50%;
background: #ffffff;
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
transition: transform 140ms ease;
}
.check input[type="checkbox"]:checked {
background: var(--strict-teal);
}
.check input[type="checkbox"]:checked::after {
transform: translateX(18px);
}
.inline2 {
display: grid;
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
align-items: center;
gap: 8px;
}
.inline2:not(:has(span)) {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.rowActions {
margin: 16px 0 0;
padding: 0;
}
.btnGroup {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 14px;
}
.btnGroup .btn:first-child,
.rowActions .btnPrimary {
color: #ffffff;
border-color: var(--strict-primary);
background: var(--strict-primary);
}
#btnWifiDisconnect {
color: var(--strict-danger);
border-color: #fecdd3;
}
#wifiStatus {
margin-top: 12px;
}
#wifiScanResults {
display: block;
min-height: 112px;
margin-top: 22px !important;
padding: 42px 16px;
border: 1px solid var(--strict-border);
border-radius: var(--strict-radius);
color: var(--strict-muted);
text-align: center;
background: #ffffff;
}
.statsGrid,
.chartsGrid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px 22px;
}
.statsGridHero {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat,
.chartBlock,
.table {
border: 1px solid var(--strict-border);
border-radius: var(--strict-radius);
background: var(--strict-surface);
box-shadow: none;
}
.stat {
min-height: 86px;
padding: 16px;
}
.statLabel {
color: var(--strict-muted);
font-size: 13px;
font-weight: 700;
}
.statValue {
margin-top: 8px;
color: var(--strict-text);
font-size: 24px;
font-weight: 850;
}
.statHint {
color: var(--strict-muted);
font-size: 12px;
}
.chartBlock {
padding: 18px;
}
.chartTitle {
color: var(--strict-text);
font-size: 16px;
font-weight: 800;
}
.chart {
min-height: 220px;
}
.table {
min-height: 180px;
padding: 12px;
}
.tableRow {
border-color: #eef2f7;
}
+403
View File
@@ -0,0 +1,403 @@
/* Strict UI app shell, header, overview, and navigation layout. */
.app {
display: grid;
grid-template-columns: var(--strict-rail) minmax(0, 1fr);
grid-template-rows: var(--strict-top) var(--strict-status) minmax(0, 1fr) 38px;
grid-template-areas:
"top top"
"rail overview"
"rail workspace"
"rail footer";
gap: 0;
width: 100%;
max-width: none;
min-height: 100vh;
margin: 0;
padding: 0;
animation: none;
overflow: hidden;
}
#topTemplatesMount {
display: contents;
}
.header {
grid-area: top;
position: sticky;
top: 0;
z-index: 40;
display: grid;
grid-template-columns: var(--strict-rail) minmax(0, 1fr);
gap: 0;
min-width: 0;
height: var(--strict-top);
padding: 0;
border: 0;
border-bottom: 1px solid var(--strict-border);
border-radius: 0;
background: rgba(255, 255, 255, 0.95);
box-shadow: none;
backdrop-filter: blur(16px) saturate(1.05);
}
.brandBlock {
display: flex;
align-items: center;
min-width: 0;
height: var(--strict-top);
padding: 0 26px;
border-right: 1px solid var(--strict-border);
}
.title {
color: #0f172a;
font-size: 24px;
font-weight: 800;
line-height: 1;
white-space: nowrap;
}
.header-actions {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
min-width: 0;
margin: 0;
padding: 0 24px;
overflow: hidden;
}
.actionGroup {
display: flex;
align-items: center;
flex-wrap: nowrap;
gap: 10px;
min-width: 0;
padding: 0;
}
.secondaryActions {
flex: 0 1 auto;
}
.primaryActions {
flex: 0 0 auto;
}
.btn {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
min-height: 42px;
min-width: 0;
padding: 0 16px;
border: 1px solid var(--strict-border-strong);
border-radius: var(--strict-radius);
color: var(--strict-text);
background: var(--strict-surface);
box-shadow: none;
font-size: 15px;
font-weight: 700;
line-height: 1;
white-space: nowrap;
transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.btn:hover {
transform: translateY(-1px);
border-color: #b8c6d6;
background: #f8fbff;
box-shadow: var(--strict-shadow-soft);
}
.btn:focus-visible,
.input:focus-visible,
.small:focus-visible,
.logSearchBox:focus-visible,
textarea:focus-visible,
select:focus-visible,
input:focus-visible {
outline: none;
border-color: var(--strict-primary);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.btnIcon,
.btnIcon svg {
width: 18px;
height: 18px;
flex: 0 0 18px;
}
.btnPrimary,
#btnStart {
color: #ffffff;
border-color: var(--strict-primary);
background: var(--strict-primary);
}
.btnPrimary:hover,
#btnStart:hover {
border-color: var(--strict-primary-hover);
background: var(--strict-primary-hover);
}
.btnDanger,
.btnDangerSoft,
#btnStop,
#btnForceStop {
color: var(--strict-danger);
border-color: #fecdd3;
background: #ffffff;
}
#btnForceStop {
font-weight: 800;
}
.btnSoft,
.btnGhost {
color: #1f2937;
background: #ffffff;
}
.btnIconOnly,
#btnTheme {
width: 42px;
min-width: 42px;
padding: 0;
color: #111827;
}
.overview {
grid-area: overview;
position: relative;
z-index: 10;
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 22px;
height: var(--strict-status);
margin: 0;
padding: 22px 28px 16px;
border: 0;
background: transparent;
}
.overviewCard {
position: relative;
display: grid;
grid-template-columns: 58px minmax(0, 1fr);
grid-template-rows: auto auto;
column-gap: 16px;
row-gap: 6px;
min-width: 0;
min-height: 92px;
padding: 18px 22px;
border: 1px solid var(--strict-border);
border-radius: var(--strict-radius);
background: var(--strict-surface);
box-shadow: var(--strict-shadow-soft);
overflow: hidden;
}
.overviewCard:hover {
border-color: var(--strict-border-strong);
box-shadow: var(--strict-shadow);
}
.premiumMetricIcon {
grid-row: 1 / span 2;
grid-column: 1;
display: grid;
place-items: center;
width: 50px;
height: 50px;
align-self: center;
border-radius: 50%;
background: linear-gradient(135deg, #15b8a6, #0f9f8e);
color: #ffffff;
}
.premiumMetricIcon::before {
width: 24px;
height: 24px;
content: "";
background: currentColor;
mask: var(--metric-mask) center / contain no-repeat;
}
.premiumMetricIcon[data-tone="run"] {
--metric-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 13h3l2-7 4 14 2-7h3v2h-4.5l-.5 1.75L10 2.75 8.5 15H5z'/%3E%3C/svg%3E");
}
.premiumMetricIcon[data-tone="device"] {
--metric-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2m0 3v14h10V5zm4 15h2v1h-2z'/%3E%3C/svg%3E");
}
.premiumMetricIcon[data-tone="gift"] {
--metric-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20 7h-2.2A3 3 0 0 0 12 5.8 3 3 0 0 0 6.2 7H4v6h1v8h14v-8h1zM9 5a1 1 0 0 1 1 1v1H9a1 1 0 0 1 0-2m6 0a1 1 0 0 1 0 2h-1V6a1 1 0 0 1 1-1M6 9h5v2H6zm7 0h5v2h-5zM7 13h4v6H7zm6 0h4v6h-4z'/%3E%3C/svg%3E");
}
.premiumMetricIcon[data-tone="log"] {
--metric-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h9l5 5v15H6zm8 2v4h4M8 12h8v2H8zm0 4h8v2H8z'/%3E%3C/svg%3E");
}
.overviewLabel,
.overviewValue,
.overviewMeta {
grid-column: 2;
min-width: 0;
}
.overviewLabel {
align-self: end;
color: var(--strict-text);
font-size: 17px;
font-weight: 800;
line-height: 1.15;
}
.overviewValue {
display: flex;
align-items: center;
gap: 7px;
max-width: 100%;
color: var(--strict-muted);
font-size: 14px;
font-weight: 650;
line-height: 1.2;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.overviewMeta {
color: var(--strict-teal);
font-size: 15px;
font-weight: 750;
line-height: 1.2;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.statusDot {
width: 8px;
height: 8px;
flex: 0 0 8px;
background: var(--strict-teal);
box-shadow: 0 0 0 4px rgba(15, 159, 142, 0.13);
}
.overviewSpark {
display: none;
}
.workspaceShell {
display: contents;
margin: 0;
}
.configRail {
grid-area: rail;
position: sticky;
top: var(--strict-top);
z-index: 20;
align-self: stretch;
width: var(--strict-rail);
max-height: none;
height: calc(100vh - var(--strict-top));
padding: 22px 14px;
border: 0;
border-right: 1px solid var(--strict-border);
border-radius: 0;
background: rgba(255, 255, 255, 0.82);
box-shadow: none;
overflow: auto;
}
.sideNav {
display: flex;
flex-direction: column;
gap: 6px;
margin: 0;
padding: 0;
border: 0;
border-radius: 0;
background: transparent;
box-shadow: none;
}
.sideNav::before,
.sideNav::after {
display: none;
}
.tabBtn {
display: grid;
grid-template-columns: 28px minmax(0, 1fr);
align-items: center;
gap: 10px;
width: 100%;
min-height: 48px;
padding: 0 13px;
border: 1px solid transparent;
border-radius: var(--strict-radius);
color: #334155;
background: transparent;
font-size: 15px;
font-weight: 700;
text-align: left;
box-shadow: none;
}
.tabBtn:hover {
color: var(--strict-primary);
background: #f5f8ff;
border-color: #e5edff;
}
.tabBtn.active,
.tabBtn[aria-selected="true"] {
color: var(--strict-primary);
border-color: #dce7ff;
background: linear-gradient(90deg, #eef4ff, #f4f7ff);
}
.tabIcon {
display: grid;
place-items: center;
width: 24px;
height: 24px;
color: currentColor;
}
.tabIcon svg {
width: 22px;
height: 22px;
stroke-width: 2.1;
}
.tabText {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.configWorkspace {
grid-area: workspace;
min-width: 0;
height: calc(100vh - var(--strict-top) - var(--strict-status) - 38px);
padding: 0 28px 26px;
overflow: auto;
}
.panels {
display: block;
min-width: 0;
}
+434
View File
@@ -0,0 +1,434 @@
/* Strict UI high-priority overrides and fidelity pass. */
/* Final overrides for the previous premium layer. Keep these last. */
.header .btn {
width: auto !important;
min-width: 0 !important;
min-height: 42px !important;
padding: 0 16px !important;
border-radius: var(--strict-radius) !important;
font-size: 15px !important;
gap: 8px !important;
overflow: visible !important;
}
.header .btnIconOnly,
.header #btnTheme {
width: 42px !important;
min-width: 42px !important;
padding: 0 !important;
}
.header .btnDanger,
.header .btnDangerSoft,
.header .btnSoft,
.header .btnGhost {
color: #1f2937 !important;
background: #ffffff !important;
}
.header #btnStop,
.header #btnForceStop {
color: var(--strict-danger) !important;
border-color: #fecdd3 !important;
}
.header .btnPrimary,
.header #btnStart {
color: #ffffff !important;
border-color: var(--strict-primary) !important;
background: var(--strict-primary) !important;
}
.header .btnIcon,
.header .btnIcon svg {
width: 18px !important;
height: 18px !important;
margin: 0 !important;
}
.btn[data-kbd]::after,
.sectionTitle::before,
.sectionTitle::after,
.cardTitle::after,
.row::before,
.overviewCard::before,
.overviewCard::after,
.tabBtn::before,
.tabBtn::after {
display: none !important;
content: none !important;
}
.workspaceShell .configRail,
.configRail {
position: sticky !important;
top: var(--strict-top) !important;
height: calc(100vh - var(--strict-top)) !important;
max-height: none !important;
padding: 22px 14px !important;
border: 0 !important;
border-right: 1px solid var(--strict-border) !important;
border-radius: 0 !important;
background: rgba(255, 255, 255, 0.82) !important;
box-shadow: none !important;
overflow: auto !important;
}
.configRail .cardTitle {
display: none !important;
}
.sideNav,
:root:not([data-premium-panel="device"]) .sideNav {
display: flex !important;
flex-direction: column !important;
align-items: stretch !important;
justify-content: flex-start !important;
gap: 6px !important;
width: 100% !important;
height: auto !important;
min-height: 0 !important;
max-height: none !important;
margin: 0 !important;
padding: 0 !important;
border: 0 !important;
border-radius: 0 !important;
background: transparent !important;
box-shadow: none !important;
overflow: visible !important;
}
.sideNav .tabBtn,
.tabBtn {
position: relative !important;
display: grid !important;
grid-template-columns: 28px minmax(0, 1fr) !important;
align-items: center !important;
justify-content: stretch !important;
gap: 10px !important;
width: 100% !important;
min-width: 0 !important;
min-height: 48px !important;
height: 48px !important;
padding: 0 13px !important;
border: 1px solid transparent !important;
border-radius: var(--strict-radius) !important;
color: #334155 !important;
background: transparent !important;
box-shadow: none !important;
text-align: left !important;
}
.sideNav .tabBtn:hover,
.sideNav .tabBtn.active,
.tabBtn.active,
.tabBtn[aria-selected="true"] {
color: var(--strict-primary) !important;
border-color: #dce7ff !important;
background: linear-gradient(90deg, #eef4ff, #f4f7ff) !important;
}
.sideNav .tabText,
.tabText {
display: inline !important;
min-width: 0 !important;
max-width: 100% !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
white-space: nowrap !important;
font-size: 15px !important;
line-height: 1 !important;
}
.sideNav .tabIcon,
.tabIcon {
display: grid !important;
place-items: center !important;
width: 24px !important;
height: 24px !important;
margin: 0 !important;
}
.sideNav .tabIcon svg,
.tabIcon svg {
width: 22px !important;
height: 22px !important;
}
.workspaceHeader {
display: none !important;
}
:root .app {
display: grid !important;
grid-template-columns: var(--strict-rail) minmax(0, 1fr) !important;
grid-template-rows: var(--strict-top) var(--strict-status) minmax(0, 1fr) 38px !important;
grid-template-areas:
"top top"
"rail overview"
"rail workspace"
"rail footer" !important;
width: 100% !important;
max-width: none !important;
min-height: 100vh !important;
margin: 0 !important;
padding: 0 !important;
gap: 0 !important;
overflow: hidden !important;
}
:root .header {
grid-area: top !important;
display: grid !important;
grid-template-columns: var(--strict-rail) minmax(0, 1fr) !important;
width: 100% !important;
height: var(--strict-top) !important;
}
:root .overview,
:root:not([data-premium-panel="device"]) .overview {
grid-area: overview !important;
position: relative !important;
left: auto !important;
top: auto !important;
width: auto !important;
height: var(--strict-status) !important;
margin: 0 !important;
padding: 22px 28px 16px !important;
}
:root .configWorkspace,
:root:not([data-premium-panel="device"]) .configWorkspace {
grid-area: workspace !important;
position: static !important;
width: auto !important;
height: calc(100vh - var(--strict-top) - var(--strict-status) - 38px) !important;
max-height: none !important;
padding: 0 28px 26px !important;
overflow: auto !important;
}
:root .appFooter {
grid-area: footer !important;
width: auto !important;
height: 38px !important;
margin: 0 !important;
}
:root .panels {
display: block !important;
width: 100% !important;
}
:root .panel[hidden],
:root .card[data-panel][hidden] {
display: none !important;
}
:root .panel.active,
:root .panel:not([hidden])[data-panel] {
display: block !important;
width: 100% !important;
}
:root:not([data-premium-panel="device"]) .overview,
.overview {
display: grid !important;
}
:root:not([data-premium-panel="device"]) .configWorkspace,
.configWorkspace {
max-height: none !important;
overflow: auto !important;
}
.panel > .sectionTitle,
.panel > .row,
.panel > .rowActions {
opacity: 1 !important;
transform: none !important;
}
:root .panel > .sectionTitle,
:root .cardTitle,
:root .logTitle {
min-height: 0 !important;
padding: 0 !important;
border: 0 !important;
border-radius: 0 !important;
color: var(--strict-text) !important;
background: transparent !important;
box-shadow: none !important;
}
:root .panel > .sectionTitle {
margin: 0 0 24px !important;
}
:root .panel > .sectionTitle:not(:first-child) {
margin-top: 30px !important;
padding-top: 24px !important;
border-top: 1px solid var(--strict-border) !important;
}
:root .panel > .row {
min-height: 0 !important;
margin: 0 !important;
padding: 10px 0 !important;
border: 0 !important;
border-radius: 0 !important;
background: transparent !important;
box-shadow: none !important;
}
:root .panel > .row + .row {
border-top: 1px solid #eef2f7 !important;
}
:root .panel > .rowActions {
margin: 16px 0 0 !important;
padding: 0 !important;
border: 0 !important;
background: transparent !important;
box-shadow: none !important;
}
:root .check {
border: 0 !important;
background: transparent !important;
box-shadow: none !important;
}
:root .input,
:root .small,
:root .logSearchBox,
:root input[type="text"],
:root input[type="number"],
:root input[type="search"],
:root select,
:root textarea {
box-shadow: none !important;
}
@media (max-width: 1180px) {
.workspaceShell .configRail,
.configRail {
width: var(--strict-rail) !important;
padding: 22px 10px !important;
}
.sideNav .tabBtn,
.tabBtn {
grid-template-columns: 1fr !important;
justify-items: center !important;
padding: 0 !important;
}
.sideNav .tabText,
.tabText {
display: none !important;
}
}
@media (max-width: 820px) {
:root .app {
display: block !important;
overflow: visible !important;
}
:root .header {
display: block !important;
height: auto !important;
}
.header-actions {
display: grid !important;
grid-template-columns: 1fr !important;
gap: 8px !important;
align-items: stretch !important;
justify-content: stretch !important;
padding: 10px !important;
overflow: visible !important;
}
.primaryActions {
display: grid !important;
grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
gap: 8px !important;
width: 100% !important;
}
.secondaryActions {
display: grid !important;
grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
gap: 8px !important;
width: 100% !important;
}
.header .btn {
width: 100% !important;
min-width: 0 !important;
min-height: 40px !important;
padding: 0 8px !important;
font-size: 13px !important;
}
.secondaryActions .btn,
.secondaryActions #btnLoad,
.secondaryActions #btnSave,
.secondaryActions #btnTheme {
width: 100% !important;
min-width: 0 !important;
padding: 0 !important;
font-size: 0 !important;
gap: 0 !important;
overflow: hidden !important;
}
.secondaryActions .btn .btnIcon {
margin: 0 !important;
}
:root .overview,
:root:not([data-premium-panel="device"]) .overview {
height: auto !important;
padding: 12px !important;
}
:root .configWorkspace,
:root:not([data-premium-panel="device"]) .configWorkspace {
height: auto !important;
padding: 12px !important;
overflow: visible !important;
}
.workspaceShell .configRail,
.configRail {
position: sticky !important;
top: 62px !important;
width: 100% !important;
height: auto !important;
padding: 8px 12px !important;
border-right: 0 !important;
border-bottom: 1px solid var(--strict-border) !important;
overflow-x: auto !important;
overflow-y: hidden !important;
}
.sideNav,
:root:not([data-premium-panel="device"]) .sideNav {
flex-direction: row !important;
width: max-content !important;
min-width: max-content !important;
height: auto !important;
overflow: visible !important;
}
.sideNav .tabBtn,
.tabBtn {
width: 54px !important;
min-width: 54px !important;
height: 44px !important;
min-height: 44px !important;
}
}
+263
View File
@@ -0,0 +1,263 @@
/* Strict UI feature panel special cases, logs, footer, and motion. */
.panel[data-panel="keywords"] .row {
display: block;
padding: 0;
border: 0;
}
.panel[data-panel="keywords"] .row + .row {
margin-top: 26px;
}
.panel[data-panel="keywords"] .textarea {
min-height: 205px;
margin-top: 10px;
}
.panel[data-panel="license"] {
max-width: none;
}
.panel[data-panel="license"] .row {
grid-template-columns: minmax(170px, 0.3fr) minmax(320px, 0.7fr);
justify-content: center;
}
.panel[data-panel="license"] .rowActions {
display: flex;
justify-content: center;
}
.monitorPanel,
.panel[data-panel="monitor"] {
display: block;
}
.monitorPanel[hidden],
.panel[data-panel="monitor"][hidden] {
display: none !important;
}
.cardShot {
padding: 24px 28px;
}
.cardShot .cardTitle {
margin-bottom: 24px;
}
.preview {
width: min(360px, 100%);
min-height: 610px;
max-height: none;
margin: 0 auto;
border: 1px solid var(--strict-border);
border-radius: var(--strict-radius);
background: #0f172a;
box-shadow: none;
}
.preview img {
width: 100%;
height: 100%;
object-fit: contain;
}
.previewFullscreen {
position: static;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
width: auto;
min-width: 124px;
height: 40px;
margin: 16px auto 0;
padding: 0 16px;
border: 1px solid var(--strict-primary);
border-radius: 6px;
color: var(--strict-primary);
background: #ffffff;
font-size: 0;
box-shadow: none;
transform: none;
}
.previewFullscreen::after {
content: "全屏查看";
font-size: 14px;
font-weight: 700;
}
#liveShotStatus {
margin-top: 18px;
padding-top: 16px;
border-top: 1px solid var(--strict-border);
text-align: center;
}
.cardReservations {
padding: 28px;
}
.cardReservations > .cardTitle,
.cardLog > .cardTitle {
padding: 0;
margin: 0 0 22px;
border: 0;
}
.reservationsContent {
display: grid;
place-items: center;
min-height: 190px;
border: 1px solid var(--strict-border);
border-radius: var(--strict-radius);
background: #ffffff;
}
.reservationsContent .hint {
color: var(--strict-muted);
font-size: 15px;
}
.divider {
height: 22px;
border: 0;
}
details > summary.sectionTitle {
align-items: center;
margin: 0 0 14px;
padding: 0;
border: 0;
cursor: pointer;
}
.summaryActions {
margin-left: auto;
}
.summaryActions .btn {
min-height: 36px;
padding: 0 14px;
font-size: 14px;
}
.cardLog {
padding: 28px;
}
.singleLogSection {
border: 1px solid var(--strict-border);
border-radius: var(--strict-radius);
background: #ffffff;
overflow: hidden;
}
.logHeader {
display: grid;
grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
align-items: center;
gap: 18px;
padding: 18px;
border-bottom: 1px solid var(--strict-border);
}
.logHeaderActions {
display: flex;
justify-content: flex-end;
align-items: center;
gap: 12px;
min-width: 0;
}
.logHeaderActions .small {
width: 108px;
}
.logSearchBox {
width: min(100%, 520px);
}
.logHeaderActions .btn.small {
min-height: 38px;
padding: 0 18px;
}
#btnRunLogSearch,
#btnActionsRefresh {
color: #ffffff;
border-color: var(--strict-primary);
background: var(--strict-primary);
}
.log {
min-height: clamp(430px, 54vh, 640px);
max-height: clamp(430px, 54vh, 640px);
margin: 0;
padding: 20px;
border: 0;
border-radius: 0;
color: #d6e3ec;
background: #101820;
font-family: "Consolas", "Cascadia Mono", "Microsoft YaHei", monospace;
font-size: 13px;
line-height: 1.55;
white-space: pre-wrap;
}
#actionsLog {
color: #111827;
background: #ffffff;
}
.appFooter {
grid-area: footer;
display: flex;
align-items: center;
min-width: 0;
height: 38px;
margin: 0;
padding: 0 28px;
border-top: 1px solid var(--strict-border);
color: var(--strict-muted);
background: rgba(255, 255, 255, 0.78);
font-family: "Consolas", "Microsoft YaHei", monospace;
font-size: 12px;
letter-spacing: 0;
text-transform: none;
}
.appFooterLeft {
min-width: 0;
}
.premiumReveal {
animation: strictReveal 240ms ease both;
animation-delay: calc(var(--stagger, 0) * 18ms);
}
.panel.isPremiumPulse {
animation: strictPulse 420ms ease both;
}
@keyframes strictReveal {
from {
opacity: 0;
transform: translateY(4px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes strictPulse {
0% {
box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.18);
}
100% {
box-shadow: var(--strict-shadow-soft);
}
}
+146
View File
@@ -0,0 +1,146 @@
/* Strict UI responsive rules. */
@media (max-width: 1180px) {
:root {
--strict-rail: 74px;
}
.brandBlock {
justify-content: center;
padding: 0;
}
.title {
font-size: 0;
}
.title::before {
content: "抖";
font-size: 24px;
}
.tabBtn {
grid-template-columns: 1fr;
justify-items: center;
padding: 0;
}
.tabText {
display: none;
}
.header-actions {
justify-content: flex-start;
overflow-x: auto;
}
.overview {
grid-template-columns: repeat(2, minmax(0, 1fr));
height: auto;
}
.configWorkspace {
height: calc(100vh - var(--strict-top) - 220px - 38px);
}
}
@media (max-width: 820px) {
.app {
display: block;
overflow: visible;
}
.header {
position: sticky;
display: block;
height: auto;
}
.brandBlock {
display: none;
}
.header-actions {
justify-content: flex-start;
padding: 10px;
}
.overview {
grid-template-columns: 1fr;
height: auto;
padding: 12px;
}
.configRail {
position: sticky;
top: 62px;
width: 100%;
height: auto;
max-height: none;
padding: 8px 12px;
border-right: 0;
border-bottom: 1px solid var(--strict-border);
overflow-x: auto;
}
.sideNav {
flex-direction: row;
min-width: max-content;
}
.tabBtn {
width: 54px;
min-height: 44px;
}
.configWorkspace {
height: auto;
padding: 12px;
overflow: visible;
}
.row,
.row.grid2,
.row.grid3,
.panel[data-panel="license"] .row {
grid-template-columns: 1fr;
gap: 8px;
}
.statsGrid,
.statsGridHero,
.chartsGrid {
grid-template-columns: 1fr;
}
.logHeader {
grid-template-columns: 1fr;
}
.logHeaderActions {
display: grid;
grid-template-columns: 1fr 1fr;
justify-content: stretch;
}
.logHeaderActions .logSearchBox {
grid-column: 1 / -1;
width: 100%;
}
.panel,
.card[data-panel],
.cardLog,
.cardReservations,
.cardShot {
padding: 16px;
}
}
@media (prefers-reduced-motion: reduce) {
.premiumReveal,
.panel.isPremiumPulse,
.btn:hover {
animation: none;
transform: none;
}
}
+91
View File
@@ -0,0 +1,91 @@
/* Strict UI tokens, base reset, and global cleanup. */
/* Strict UI layer: visual-only redesign based on the current WebUI feature set. */
:root {
--strict-bg: #f6f8fb;
--strict-bg-soft: #eef3f7;
--strict-surface: #ffffff;
--strict-surface-soft: #f9fbfd;
--strict-border: #dfe6ee;
--strict-border-strong: #cbd6e2;
--strict-text: #111827;
--strict-muted: #64748b;
--strict-muted-soft: #94a3b8;
--strict-primary: #2563eb;
--strict-primary-hover: #1d4ed8;
--strict-primary-soft: #eef4ff;
--strict-teal: #0f9f8e;
--strict-teal-soft: #e7f8f5;
--strict-danger: #dc2626;
--strict-danger-soft: #fff1f2;
--strict-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
--strict-shadow-soft: 0 4px 14px rgba(15, 23, 42, 0.05);
--strict-radius: 8px;
--strict-rail: 188px;
--strict-top: 74px;
--strict-status: 130px;
--strict-font: "Microsoft YaHei", "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
color-scheme: light;
}
:root[data-theme="dark"] {
--strict-bg: #f3f6fa;
--strict-bg-soft: #eaf0f6;
--strict-surface: #ffffff;
--strict-surface-soft: #f8fbfd;
--strict-border: #dce5ee;
--strict-border-strong: #c7d3df;
--strict-text: #111827;
--strict-muted: #5f7186;
--strict-muted-soft: #8ca0b4;
--strict-primary: #2563eb;
--strict-primary-hover: #1d4ed8;
--strict-primary-soft: #eef4ff;
--strict-teal: #0f9f8e;
--strict-teal-soft: #e7f8f5;
--strict-danger: #dc2626;
--strict-danger-soft: #fff1f2;
color-scheme: light;
}
html,
body,
button,
input,
select,
textarea {
font-family: var(--strict-font);
letter-spacing: 0;
}
html {
background: var(--strict-bg);
}
body {
min-width: 0;
color: var(--strict-text);
background:
linear-gradient(180deg, rgba(37, 99, 235, 0.025), transparent 280px),
linear-gradient(90deg, rgba(15, 159, 142, 0.02), transparent 520px),
var(--strict-bg);
}
body::before,
body::after,
.header::before,
.header::after,
.card::before,
.workspaceHeader,
.configRail > .cardTitle,
.brandMark,
.subtitle,
.secondaryActions::before,
.workspaceSearchKbd,
.previewBracket,
.previewRec,
.previewTs,
.appFooterRight,
.appFooterDivider,
.scrollTopBtn {
display: none !important;
}