mirror of
https://github.com/YuleBest/LuminPro.git
synced 2026-12-04 00:54:42 +08:00
1466 lines
31 KiB
CSS
1466 lines
31 KiB
CSS
:root {
|
|
--md-sys-color-background: #111318;
|
|
--md-sys-color-background-rgb: 17, 19, 24;
|
|
--md-sys-color-on-background: #e2e2e9;
|
|
--md-sys-color-surface: #1e1f25;
|
|
--md-sys-color-surface-container: #212429;
|
|
--md-sys-color-surface-container-high: #2b2930;
|
|
--md-sys-color-surface-container-high-rgb: 43, 41, 48;
|
|
--md-sys-color-on-surface: #e2e2e9;
|
|
--md-sys-color-on-surface-variant: #c4c6d0;
|
|
--md-sys-color-primary: #a8c7fa;
|
|
--md-sys-color-primary-rgb: 168, 199, 250;
|
|
--md-sys-color-on-primary: #062e6f;
|
|
--md-sys-color-primary-container: #1b4b9b;
|
|
--md-sys-color-on-primary-container: #d3e3fd;
|
|
--md-sys-color-outline: #8e9099;
|
|
--md-sys-color-outline-variant: #44474f;
|
|
--md-sys-color-error: #ffb4ab;
|
|
--md-sys-color-on-error: #690005;
|
|
|
|
--border-radius-m: 16px;
|
|
--border-radius-s: 8px;
|
|
--spacing-s: 8px;
|
|
--spacing-m: 16px;
|
|
--spacing-l: 24px;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Geist';
|
|
src: url('/Geist-VariableFont_wght.ttf') format('truetype');
|
|
font-weight: 100 900;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Google Sans Code';
|
|
src: url('/GoogleSansCode-VariableFont_wght.ttf') format('truetype');
|
|
font-weight: 100 900;
|
|
font-style: normal;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
/* 隐藏所有滚动条 */
|
|
html {
|
|
scrollbar-width: none; /* Firefox */
|
|
-ms-overflow-style: none; /* IE/Edge */
|
|
}
|
|
|
|
html::-webkit-scrollbar {
|
|
display: none; /* Chrome, Safari */
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
/* insets 会在这里被 internal/insets.css 处理,我们预留顶底内边距 */
|
|
padding-top: var(--safe-area-inset-top, 0);
|
|
padding-bottom: var(--safe-area-inset-bottom, 0);
|
|
background-color: var(--md-sys-color-background);
|
|
color: var(--md-sys-color-on-background);
|
|
font-family: 'Geist', system-ui, -apple-system, sans-serif;
|
|
line-height: 1.5;
|
|
scrollbar-width: none; /* Firefox */
|
|
-ms-overflow-style: none; /* IE/Edge */
|
|
}
|
|
|
|
body::-webkit-scrollbar {
|
|
display: none; /* Chrome, Safari */
|
|
}
|
|
|
|
#app {
|
|
padding: 20px;
|
|
padding-bottom: calc(20px + 80px);
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-m);
|
|
}
|
|
|
|
/* Header */
|
|
.app-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 20px 20px;
|
|
}
|
|
|
|
.header-content {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
flex: 1;
|
|
}
|
|
|
|
.header-icon {
|
|
font-size: 2.5rem;
|
|
background: linear-gradient(135deg, var(--md-sys-color-primary-container), var(--md-sys-color-secondary-container));
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.header-text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.header-text h1 {
|
|
margin: 0;
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: var(--md-sys-color-on-background);
|
|
letter-spacing: -0.3px;
|
|
}
|
|
|
|
.header-subtitle {
|
|
margin: 0;
|
|
font-size: 0.9rem;
|
|
color: var(--md-sys-color-on-surface-variant);
|
|
font-weight: 400;
|
|
}
|
|
|
|
.header-version {
|
|
margin: 0;
|
|
font-size: 0.75rem;
|
|
color: var(--md-sys-color-primary);
|
|
font-weight: 600;
|
|
letter-spacing: 0.5px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.header-status-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 12px;
|
|
}
|
|
|
|
.header-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: var(--md-sys-color-surface-container-high);
|
|
padding: 8px 16px;
|
|
border-radius: 12px;
|
|
font-size: 0.8125rem;
|
|
color: var(--md-sys-color-on-surface);
|
|
font-weight: 500;
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
|
|
border: 1px solid rgba(var(--md-sys-color-on-surface-rgb, 0, 0, 0), 0.08);
|
|
}
|
|
|
|
.header-status-actions {
|
|
display: flex;
|
|
gap: 16px;
|
|
}
|
|
|
|
.btn-status-action {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--md-sys-color-primary);
|
|
font-size: 0.8125rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
padding: 2px 4px;
|
|
border-radius: 4px;
|
|
transition: all 0.2s;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.btn-status-action:active {
|
|
background-color: var(--md-sys-color-primary-container);
|
|
opacity: 1;
|
|
}
|
|
|
|
.status-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background-color: var(--md-sys-color-error);
|
|
box-shadow: 0 0 8px rgba(244, 67, 54, 0.5);
|
|
animation: status-pulse 2s infinite;
|
|
}
|
|
|
|
@keyframes status-pulse {
|
|
0%, 100% {
|
|
box-shadow: 0 0 8px rgba(244, 67, 54, 0.5);
|
|
}
|
|
50% {
|
|
box-shadow: 0 0 12px rgba(244, 67, 54, 0.8);
|
|
}
|
|
}
|
|
|
|
@keyframes status-pulse-green {
|
|
0%, 100% {
|
|
box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
|
|
}
|
|
50% {
|
|
box-shadow: 0 0 12px rgba(76, 175, 80, 0.8);
|
|
}
|
|
}
|
|
|
|
.header-status.status-running .status-dot {
|
|
animation: status-pulse-green 2s infinite;
|
|
}
|
|
|
|
.header-status.status-paused .status-dot,
|
|
.header-status.status-loading .status-dot {
|
|
animation: status-pulse 2s infinite;
|
|
}
|
|
|
|
/* Cards */
|
|
.card {
|
|
background-color: var(--md-sys-color-surface);
|
|
border-radius: var(--border-radius-m);
|
|
padding: var(--spacing-l);
|
|
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 4px 8px 3px rgba(0, 0, 0, 0.15);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Page Transitions */
|
|
.card-animate-in {
|
|
animation: cardFadeIn 0.4s cubic-bezier(0.2, 0, 0, 1) forwards;
|
|
}
|
|
|
|
.navbar-slider {
|
|
left: 0;
|
|
}
|
|
|
|
@keyframes cardFadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(12px) scale(0.985);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
}
|
|
|
|
#log-section {
|
|
flex: 1;
|
|
min-height: calc(100vh - 220px);
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-s);
|
|
margin-bottom: var(--spacing-l);
|
|
}
|
|
|
|
.card-header h2 {
|
|
margin: 0;
|
|
font-size: 1.125rem;
|
|
font-weight: 500;
|
|
color: var(--md-sys-color-on-surface);
|
|
flex-grow: 1;
|
|
}
|
|
|
|
/* Config Items */
|
|
.config-group {
|
|
margin-bottom: var(--spacing-l);
|
|
padding: var(--spacing-m);
|
|
background-color: var(--md-sys-color-surface-container);
|
|
border-radius: var(--border-radius-m);
|
|
border: 1px solid rgba(var(--md-sys-color-on-surface-rgb, 0,0,0), 0.05);
|
|
}
|
|
|
|
.group-title {
|
|
margin: 0 0 var(--spacing-m) 0;
|
|
color: var(--md-sys-color-primary);
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.group-title i, .group-title svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.config-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
#advanced-section .config-item {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
width: 100%;
|
|
}
|
|
|
|
#advanced-section .config-value {
|
|
width: 100%;
|
|
}
|
|
|
|
.config-item + .config-item {
|
|
margin-top: var(--spacing-m);
|
|
border-top: 1px solid rgba(var(--md-sys-color-outline-variant-rgb, 142, 144, 153), 0.1);
|
|
padding-top: var(--spacing-m);
|
|
}
|
|
|
|
.config-label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.config-name {
|
|
font-size: 1rem;
|
|
color: var(--md-sys-color-on-surface);
|
|
}
|
|
|
|
.config-desc {
|
|
font-size: 0.875rem;
|
|
color: var(--md-sys-color-on-surface-variant);
|
|
}
|
|
|
|
.config-input {
|
|
width: 100px;
|
|
padding: 8px 12px;
|
|
background-color: var(--md-sys-color-surface-container-high);
|
|
border: 1px solid var(--md-sys-color-outline-variant);
|
|
border-radius: var(--border-radius-s);
|
|
color: var(--md-sys-color-on-surface);
|
|
font-size: 1rem;
|
|
font-family: inherit;
|
|
text-align: right;
|
|
outline: none;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.config-input:focus {
|
|
border-color: var(--md-sys-color-primary);
|
|
box-shadow: 0 0 0 2px rgba(var(--md-sys-color-primary-rgb), 0.2);
|
|
background-color: var(--md-sys-color-surface);
|
|
}
|
|
|
|
#advanced-section .config-input {
|
|
width: 100%;
|
|
text-align: left;
|
|
}
|
|
|
|
.config-textarea {
|
|
background-color: var(--md-sys-color-surface-container-high);
|
|
width: 100%;
|
|
min-height: 60px;
|
|
max-height: 300px;
|
|
color: var(--md-sys-color-on-surface);
|
|
border: 1px solid var(--md-sys-color-outline-variant);
|
|
border-radius: var(--border-radius-m);
|
|
resize: vertical;
|
|
padding: 10px 14px;
|
|
font-family: 'Google Sans Code', system-ui, monospace;
|
|
font-size: 0.875rem;
|
|
line-height: 1.4;
|
|
transition: all 0.2s ease;
|
|
outline: none;
|
|
}
|
|
|
|
.config-textarea:focus {
|
|
border-color: var(--md-sys-color-primary);
|
|
box-shadow: 0 0 0 2px rgba(var(--md-sys-color-primary-rgb), 0.2);
|
|
background-color: var(--md-sys-color-surface);
|
|
}
|
|
|
|
.config-input-wide {
|
|
width: 140px;
|
|
}
|
|
|
|
.config-item-expand {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
margin-top: var(--spacing-s);
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
opacity: 0;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.config-item-expand.show {
|
|
max-height: 100px; /* 调整为适合内容的高度 */
|
|
opacity: 1;
|
|
margin-bottom: var(--spacing-m);
|
|
}
|
|
|
|
/* Custom Time Picker Styles */
|
|
.custom-time-picker {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.time-unit {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
background-color: var(--md-sys-color-surface-container-high);
|
|
padding: 2px 6px;
|
|
border-radius: var(--border-radius-s);
|
|
border: 1px solid var(--md-sys-color-outline);
|
|
}
|
|
|
|
.time-input {
|
|
width: 32px;
|
|
background-color: transparent;
|
|
color: var(--md-sys-color-on-surface);
|
|
border: none;
|
|
font-size: 0.875rem;
|
|
text-align: center;
|
|
font-family: 'Google Sans Code', monospace;
|
|
outline: none;
|
|
-moz-appearance: textfield;
|
|
}
|
|
|
|
.time-input::-webkit-outer-spin-button,
|
|
.time-input::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
|
|
.time-sep {
|
|
color: var(--md-sys-color-on-surface-variant);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
/* Switch Styles */
|
|
.switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 52px;
|
|
height: 32px;
|
|
}
|
|
|
|
.switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: var(--md-sys-color-surface-container-high);
|
|
transition: .4s;
|
|
border-radius: 34px;
|
|
border: 2px solid var(--md-sys-color-outline);
|
|
}
|
|
|
|
.slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 24px;
|
|
width: 24px;
|
|
left: 2px;
|
|
bottom: 2px;
|
|
background-color: var(--md-sys-color-outline);
|
|
transition: .4s;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
input:checked + .slider {
|
|
background-color: var(--md-sys-color-primary-container);
|
|
border-color: var(--md-sys-color-primary);
|
|
}
|
|
|
|
input:checked + .slider:before {
|
|
transform: translateX(20px);
|
|
background-color: var(--md-sys-color-primary);
|
|
}
|
|
|
|
/* Status Grid */
|
|
.status-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: var(--spacing-m);
|
|
}
|
|
|
|
.status-item {
|
|
background-color: var(--md-sys-color-surface-container);
|
|
padding: var(--spacing-m);
|
|
border-radius: var(--border-radius-m);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
border: 1px solid rgba(var(--md-sys-color-on-surface-rgb, 0,0,0), 0.04);
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.status-item:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.status-item-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
color: var(--md-sys-color-on-surface-variant);
|
|
}
|
|
|
|
.status-item-header svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.status-label {
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.status-value {
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
color: var(--md-sys-color-primary);
|
|
word-break: break-all;
|
|
}
|
|
|
|
/* Brightness Section */
|
|
.brightness-section {
|
|
margin-top: var(--spacing-l);
|
|
padding: var(--spacing-m);
|
|
background: linear-gradient(135deg, var(--md-sys-color-surface-container-high) 0%, var(--md-sys-color-surface-container) 100%);
|
|
border-radius: var(--border-radius-m);
|
|
border: 1px solid var(--md-sys-color-outline-variant);
|
|
}
|
|
|
|
.brightness-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: var(--spacing-m);
|
|
}
|
|
|
|
.brightness-title {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--md-sys-color-on-surface);
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.brightness-percent {
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
color: var(--md-sys-color-primary);
|
|
min-width: 50px;
|
|
text-align: right;
|
|
}
|
|
|
|
/* Brightness Slider Container */
|
|
.brightness-container {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: var(--spacing-m);
|
|
padding: var(--spacing-s) 0;
|
|
}
|
|
|
|
.brightness-label {
|
|
font-size: 0.75rem;
|
|
color: var(--md-sys-color-on-surface-variant);
|
|
min-width: 24px;
|
|
text-align: center;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Brightness Slider (Progress Bar Style) */
|
|
.brightness-slider {
|
|
flex: 1;
|
|
height: 24px;
|
|
border-radius: 12px;
|
|
/* 背景将由 JS 通过 linear-gradient 动态更新实现进度条效果 */
|
|
background: var(--md-sys-color-surface-container-high);
|
|
outline: none;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
cursor: grab;
|
|
transition: height 0.2s, box-shadow 0.2s;
|
|
border: 1px solid rgba(255, 255, 255, 0.03);
|
|
box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
|
|
overflow: hidden; /* 确保进度条颜色不溢出圆角 */
|
|
}
|
|
|
|
.brightness-slider:hover {
|
|
height: 28px;
|
|
}
|
|
|
|
.brightness-slider::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
width: 0;
|
|
height: 0;
|
|
background: transparent;
|
|
cursor: grab;
|
|
border: none;
|
|
}
|
|
|
|
.brightness-slider::-webkit-slider-thumb:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.brightness-slider::-moz-range-thumb {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
background: var(--md-sys-color-primary);
|
|
cursor: grab;
|
|
border: 2px solid var(--md-sys-color-surface);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.brightness-slider::-moz-range-thumb:hover {
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3);
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.brightness-slider::-moz-range-thumb:active {
|
|
cursor: grabbing;
|
|
box-shadow: 0 0 0 10px rgba(168, 199, 250, 0.2);
|
|
}
|
|
|
|
.brightness-slider::-moz-range-track {
|
|
background: transparent;
|
|
border: none;
|
|
}
|
|
|
|
/* Auto Brightness Row */
|
|
.auto-brightness-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: var(--spacing-s) var(--spacing-m);
|
|
background-color: rgba(var(--md-sys-color-primary-rgb), 0.08);
|
|
border-radius: var(--border-radius-s);
|
|
}
|
|
|
|
.auto-brightness-label {
|
|
font-size: 0.875rem;
|
|
color: var(--md-sys-color-on-surface);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Actions */
|
|
.card-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
margin-top: var(--spacing-l);
|
|
padding-top: var(--spacing-m);
|
|
border-top: 1px solid var(--md-sys-color-outline-variant);
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 10px 24px;
|
|
border-radius: 100px;
|
|
border: none;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s, opacity 0.2s;
|
|
}
|
|
|
|
.btn:active {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: var(--md-sys-color-primary);
|
|
color: var(--md-sys-color-on-primary);
|
|
}
|
|
|
|
.btn-outline {
|
|
background-color: transparent;
|
|
border: 1px solid var(--md-sys-color-outline);
|
|
color: var(--md-sys-color-primary);
|
|
}
|
|
|
|
.btn-outline-s, .btn-text-s {
|
|
background-color: transparent;
|
|
border: 1px solid var(--md-sys-color-outline-variant);
|
|
color: var(--md-sys-color-primary);
|
|
padding: 4px 10px;
|
|
min-width: 50px;
|
|
height: 28px;
|
|
font-size: 0.75rem;
|
|
border-radius: var(--border-radius-s);
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn-text-s:active {
|
|
background-color: var(--md-sys-color-surface-container-high);
|
|
}
|
|
|
|
.btn-danger {
|
|
background-color: var(--md-sys-color-error) !important;
|
|
color: var(--md-sys-color-on-error) !important;
|
|
border: none !important;
|
|
}
|
|
|
|
/* Header Actions container */
|
|
.header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.btn-icon-only {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--md-sys-color-on-surface-variant);
|
|
font-size: 1.25rem;
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.btn-icon-only-s {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 8px;
|
|
border: none;
|
|
background-color: var(--md-sys-color-surface-container-high);
|
|
color: var(--md-sys-color-primary);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn-icon-only-s:active {
|
|
background-color: var(--md-sys-color-primary-container);
|
|
transform: scale(0.9);
|
|
}
|
|
|
|
.btn-icon-only-s i, .btn-icon-only-s svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.animate-spin {
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
/* About section */
|
|
.about-links {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-m);
|
|
}
|
|
|
|
.about-link-item {
|
|
background-color: var(--md-sys-color-surface-container);
|
|
padding: 16px;
|
|
border-radius: var(--border-radius-m);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
text-decoration: none;
|
|
color: var(--md-sys-color-on-surface);
|
|
border: 1px solid rgba(var(--md-sys-color-primary-rgb), 0.05);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.about-link-item:active {
|
|
background-color: var(--md-sys-color-surface-container-high);
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.about-link-item svg {
|
|
color: var(--md-sys-color-primary);
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
.link-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.link-label {
|
|
font-weight: 600;
|
|
font-size: 0.9375rem;
|
|
}
|
|
|
|
.link-url {
|
|
font-size: 0.75rem;
|
|
color: var(--md-sys-color-on-surface-variant);
|
|
}
|
|
|
|
.about-doc-list {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: var(--spacing-m);
|
|
}
|
|
|
|
.about-doc-item {
|
|
background-color: var(--md-sys-color-surface-container-high);
|
|
padding: 16px;
|
|
border-radius: var(--border-radius-m);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
border: 1px solid rgba(var(--md-sys-color-on-surface-rgb, 0,0,0), 0.05);
|
|
transition: all 0.2s;
|
|
text-align: center;
|
|
}
|
|
|
|
.about-doc-item:active {
|
|
background-color: var(--md-sys-color-primary-container);
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.about-doc-item svg {
|
|
color: var(--md-sys-color-primary);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.about-doc-item span {
|
|
font-size: 0.8125rem;
|
|
font-weight: 600;
|
|
color: var(--md-sys-color-on-surface);
|
|
}
|
|
|
|
/* Document Drawer (Bottom Sheet) */
|
|
.doc-drawer {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
height: 90vh;
|
|
background-color: var(--md-sys-color-surface-container-high);
|
|
z-index: 2000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transform: translateY(100%);
|
|
transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
|
|
border-radius: 28px 28px 0 0;
|
|
box-shadow: 0 -8px 32px rgba(0,0,0,0.3);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.doc-drawer.show {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.drawer-backdrop {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0,0,0,0.5);
|
|
backdrop-filter: blur(4px);
|
|
z-index: 1999;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.drawer-backdrop.show {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.drawer-handle {
|
|
width: 32px;
|
|
height: 4px;
|
|
background-color: var(--md-sys-color-outline-variant);
|
|
border-radius: 2px;
|
|
margin: 12px auto 4px auto;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.drawer-header {
|
|
height: 56px;
|
|
padding: 0 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
background-color: transparent;
|
|
border-bottom: 1px solid rgba(var(--md-sys-color-on-surface-rgb, 0,0,0), 0.05);
|
|
}
|
|
|
|
.drawer-header h2 {
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
color: var(--md-sys-color-on-surface);
|
|
margin: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.drawer-content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 32px 24px 64px 24px;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.doc-loading {
|
|
text-align: center;
|
|
padding: 64px 20px;
|
|
color: var(--md-sys-color-on-surface-variant);
|
|
}
|
|
|
|
/* Markdown Rendering */
|
|
.markdown-body {
|
|
color: var(--md-sys-color-on-surface);
|
|
}
|
|
|
|
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
|
|
color: var(--md-sys-color-primary);
|
|
margin-top: 1.5em;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
.markdown-body p {
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
.markdown-body code {
|
|
background-color: var(--md-sys-color-surface-container-high);
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-family: 'Google Sans Code', monospace;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.markdown-body pre {
|
|
background-color: #0d0e12;
|
|
padding: 16px;
|
|
border-radius: 12px;
|
|
overflow-x: auto;
|
|
margin-bottom: 1.5em;
|
|
border: 1px solid rgba(255,255,255,0.05);
|
|
}
|
|
|
|
.markdown-body pre code {
|
|
background: transparent;
|
|
padding: 0;
|
|
font-size: 0.8125rem;
|
|
}
|
|
|
|
.markdown-body ul, .markdown-body ol {
|
|
padding-left: 1.5em;
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
.markdown-body blockquote {
|
|
border-left: 4px solid var(--md-sys-color-primary);
|
|
padding-left: 16px;
|
|
margin: 0 0 16px 0;
|
|
color: var(--md-sys-color-on-surface-variant);
|
|
background-color: var(--md-sys-color-surface-container);
|
|
padding: 12px 16px;
|
|
border-radius: 0 8px 8px 0;
|
|
}
|
|
|
|
@keyframes spin {
|
|
from { transform: rotate(0deg); }
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Logs */
|
|
.log-output {
|
|
font-family: 'Google Sans Code', 'JetBrains Mono', 'Consolas', monospace;
|
|
font-size: 0.8125rem;
|
|
padding: var(--spacing-m);
|
|
background-color: #0d0e12;
|
|
color: #e3e3e3;
|
|
border-radius: var(--border-radius-m);
|
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
flex: 1;
|
|
max-height: 60vh;
|
|
overflow-y: auto;
|
|
margin: 0;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
line-height: 1.5;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--md-sys-color-outline-variant) transparent;
|
|
}
|
|
|
|
.log-output::-webkit-scrollbar {
|
|
width: 4px;
|
|
}
|
|
|
|
.log-output::-webkit-scrollbar-thumb {
|
|
background-color: var(--md-sys-color-outline-variant);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.log-filter-select {
|
|
padding: 0 12px;
|
|
border: 1px solid var(--md-sys-color-outline-variant);
|
|
border-radius: 8px;
|
|
background-color: var(--md-sys-color-surface-container-high);
|
|
color: var(--md-sys-color-on-surface);
|
|
font-family: inherit;
|
|
font-size: 0.8125rem;
|
|
height: 32px;
|
|
cursor: pointer;
|
|
outline: none;
|
|
transition: all 0.22s ease;
|
|
}
|
|
|
|
.log-filter-select:focus {
|
|
border-color: var(--md-sys-color-primary);
|
|
box-shadow: 0 0 0 2px rgba(var(--md-sys-color-primary-rgb), 0.2);
|
|
}
|
|
|
|
.log-output::-webkit-scrollbar {
|
|
display: none; /* Chrome, Safari */
|
|
}
|
|
|
|
/* Simple Toast */
|
|
.top-blur {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: calc(85px + var(--safe-area-inset-top, 0px));
|
|
z-index: 998;
|
|
pointer-events: none;
|
|
/* 基础暗色背景,增强状态栏文字可读性 */
|
|
background: linear-gradient(to bottom,
|
|
rgba(var(--md-sys-color-background-rgb, 17, 19, 24), 0.85) 0%,
|
|
rgba(var(--md-sys-color-background-rgb, 17, 19, 24), 0.4) 40%,
|
|
rgba(var(--md-sys-color-background-rgb, 17, 19, 24), 0) 100%
|
|
);
|
|
/* 核心:毛玻璃滤镜 */
|
|
-webkit-backdrop-filter: blur(16px);
|
|
backdrop-filter: blur(16px);
|
|
/* 梯度蒙版:越往上越模糊的核心逻辑 */
|
|
-webkit-mask-image: linear-gradient(to bottom,
|
|
rgba(0,0,0,1) 0%,
|
|
rgba(0,0,0,1) 30%,
|
|
rgba(0,0,0,0.7) 60%,
|
|
rgba(0,0,0,0) 100%
|
|
);
|
|
mask-image: linear-gradient(to bottom,
|
|
rgba(0,0,0,1) 0%,
|
|
rgba(0,0,0,1) 30%,
|
|
rgba(0,0,0,0.7) 60%,
|
|
rgba(0,0,0,0) 100%
|
|
);
|
|
transform: translateZ(0); /* 开启 GPU 加速 */
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.top-blur.scrolled {
|
|
opacity: 1;
|
|
}
|
|
|
|
.toast {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(100px);
|
|
background-color: var(--md-sys-color-on-surface);
|
|
color: var(--md-sys-color-surface);
|
|
padding: 12px 24px;
|
|
border-radius: var(--border-radius-s);
|
|
font-size: 0.875rem;
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
|
|
transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
|
|
z-index: 1000;
|
|
width: max-content;
|
|
max-width: 90vw;
|
|
text-align: center;
|
|
}
|
|
|
|
.toast.show {
|
|
transform: translateX(-50%) translateY(0);
|
|
}
|
|
|
|
/* Floating Navigation Bar */
|
|
.floating-navbar {
|
|
position: fixed;
|
|
bottom: calc(18px + var(--safe-area-inset-bottom, 0px));
|
|
left: 50%;
|
|
transform: translateX(-50%) translateZ(0); /* 居中并开启硬件加速 */
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: rgba(var(--md-sys-color-surface-container-high-rgb, 43, 41, 48), 0.6);
|
|
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
|
backdrop-filter: blur(20px) saturate(180%);
|
|
will-change: backdrop-filter;
|
|
padding: 8px 16px;
|
|
border-radius: 28px;
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 8px 32px rgba(0, 0, 0, 0.3);
|
|
z-index: 999;
|
|
width: fit-content;
|
|
max-width: calc(100% - 32px);
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
-webkit-tap-highlight-color: transparent;
|
|
touch-action: none; /* Prevents browser scroll during drag */
|
|
}
|
|
|
|
.navbar-slider {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 8px;
|
|
bottom: 8px;
|
|
height: auto;
|
|
background: rgba(var(--md-sys-color-primary-rgb, 168, 199, 250), 0.35);
|
|
-webkit-backdrop-filter: blur(8px) saturate(120%);
|
|
backdrop-filter: blur(8px) saturate(120%);
|
|
transform: translateZ(0);
|
|
border-radius: 20px;
|
|
transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), width 0.3s ease;
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
border: 1px solid rgba(var(--md-sys-color-primary-rgb, 168, 199, 250), 0.4);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.navbar-btn {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 5px;
|
|
padding: 6px 12px;
|
|
background-color: transparent;
|
|
border: none;
|
|
color: var(--md-sys-color-on-surface-variant);
|
|
font-size: 0.75rem;
|
|
cursor: pointer;
|
|
border-radius: 8px;
|
|
transition: all 0.2s ease;
|
|
flex: 1;
|
|
max-width: 90px;
|
|
white-space: nowrap;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.navbar-btn i, .navbar-btn svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.navbar-btn span {
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.navbar-btn:active {
|
|
/* No scaling here, we rely on the slider feedback */
|
|
}
|
|
|
|
.navbar-btn.active {
|
|
color: var(--md-sys-color-on-primary-container);
|
|
}
|
|
|
|
/* Dropdown Menu */
|
|
.dropdown-container {
|
|
position: relative;
|
|
}
|
|
|
|
.dropdown-menu {
|
|
position: absolute;
|
|
top: 100%;
|
|
right: 0;
|
|
margin-top: 8px;
|
|
background-color: var(--md-sys-color-surface-container-high);
|
|
border: 1px solid var(--md-sys-color-outline-variant);
|
|
border-radius: var(--border-radius-s);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
|
min-width: 160px;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transform: translateY(-8px);
|
|
transition: all 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
|
|
z-index: 100;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 4px;
|
|
}
|
|
|
|
.dropdown-menu.show {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.dropdown-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px 12px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
color: var(--md-sys-color-on-surface);
|
|
font-size: 0.875rem;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.dropdown-item:hover {
|
|
background-color: var(--md-sys-color-surface-container);
|
|
}
|
|
|
|
.dropdown-item:active {
|
|
background-color: var(--md-sys-color-surface);
|
|
}
|
|
|
|
.dropdown-item svg {
|
|
color: var(--md-sys-color-primary);
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.app-list-hint {
|
|
font-size: 0.8125rem;
|
|
color: var(--md-sys-color-on-surface-variant);
|
|
margin-top: 0;
|
|
margin-bottom: var(--spacing-m);
|
|
}
|
|
|
|
/* App Search */
|
|
.app-search-container {
|
|
display: flex;
|
|
align-items: center;
|
|
background-color: var(--md-sys-color-surface-container-high);
|
|
border: 1px solid var(--md-sys-color-outline-variant);
|
|
border-radius: var(--border-radius-m);
|
|
padding: 8px 12px;
|
|
margin-bottom: var(--spacing-m);
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.app-search-container:focus-within {
|
|
border-color: var(--md-sys-color-primary);
|
|
box-shadow: 0 0 0 2px rgba(168, 199, 250, 0.3);
|
|
}
|
|
|
|
.search-icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
color: var(--md-sys-color-on-surface-variant);
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.app-search-input {
|
|
flex: 1;
|
|
width: 100%;
|
|
min-width: 0;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--md-sys-color-on-surface);
|
|
font-size: 0.875rem;
|
|
outline: none;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.app-search-input::placeholder {
|
|
color: var(--md-sys-color-on-surface-variant);
|
|
}
|
|
|
|
.count-badge {
|
|
background-color: var(--md-sys-color-primary-container);
|
|
color: var(--md-sys-color-on-primary-container);
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
padding: 2px 8px;
|
|
border-radius: 20px;
|
|
margin-left: 8px;
|
|
white-space: nowrap;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
/* App List */
|
|
.app-list-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-s);
|
|
max-height: 60vh;
|
|
overflow-y: auto;
|
|
border-radius: var(--border-radius-m);
|
|
padding: 0;
|
|
}
|
|
|
|
.app-list-container::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.app-list-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-m);
|
|
padding: var(--spacing-s) var(--spacing-m);
|
|
background-color: var(--md-sys-color-surface-container-high);
|
|
border-radius: var(--border-radius-s);
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.app-list-item:active {
|
|
background-color: var(--md-sys-color-surface-container);
|
|
}
|
|
|
|
.app-checkbox-label {
|
|
display: flex;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
position: relative;
|
|
}
|
|
|
|
.app-checkbox {
|
|
opacity: 0;
|
|
position: absolute;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.app-checkbox-custom {
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 2px solid var(--md-sys-color-outline);
|
|
border-radius: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.app-checkbox:checked + .app-checkbox-custom {
|
|
background-color: var(--md-sys-color-primary);
|
|
border-color: var(--md-sys-color-primary);
|
|
}
|
|
|
|
.app-checkbox.unsaved:checked + .app-checkbox-custom {
|
|
background-color: #4caf50;
|
|
border-color: #4caf50;
|
|
}
|
|
|
|
.app-checkbox:checked + .app-checkbox-custom::after {
|
|
content: '';
|
|
width: 5px;
|
|
height: 10px;
|
|
border: solid var(--md-sys-color-on-primary);
|
|
border-width: 0 2px 2px 0;
|
|
transform: rotate(45deg);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.app-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.app-name {
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
color: var(--md-sys-color-on-surface);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.app-pkg {
|
|
font-size: 0.8125rem;
|
|
color: var(--md-sys-color-on-surface-variant);
|
|
font-family: 'Google Sans Code', monospace;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 6px;
|
|
word-break: break-all;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.app-badge {
|
|
background-color: var(--md-sys-color-primary-container);
|
|
color: var(--md-sys-color-on-primary-container);
|
|
padding: 0 4px;
|
|
border-radius: 4px;
|
|
font-size: 0.65rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.app-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 8px;
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.app-icon-fallback {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 8px;
|
|
background: linear-gradient(135deg, var(--md-sys-color-primary-container), rgba(168, 199, 250, 0.5));
|
|
color: var(--md-sys-color-on-primary-container);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.25rem;
|
|
font-weight: bold;
|
|
flex-shrink: 0;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.app-uid {
|
|
font-size: 0.65rem;
|
|
color: var(--md-sys-color-on-surface-variant);
|
|
background-color: var(--md-sys-color-surface-container-high);
|
|
border: 1px solid var(--md-sys-color-outline-variant);
|
|
padding: 0 4px;
|
|
border-radius: 4px;
|
|
font-family: 'Google Sans Code', monospace;
|
|
margin-left: 6px;
|
|
vertical-align: middle;
|
|
}
|