chore(ui): redesign interface with SF Pro fonts and modern styling

- Update theme variables and styles for light/dark modes
- Implement SF Pro font family across all components
- Redesign cards, buttons, forms, and scrollbars
- Add backdrop filters and improve visual hierarchy
- Optimize spacing, typography, and interactive elements
This commit is contained in:
2026-04-13 18:41:09 +08:00
parent 3859a4170c
commit d87b3268fb
16 changed files with 797 additions and 532 deletions

View File

@@ -3,9 +3,13 @@
}
.page-header h2 {
font-size: 24px;
font-family: 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 40px;
font-weight: 600;
line-height: 1.10;
color: var(--text-color);
margin: 0;
letter-spacing: normal;
transition: color 0.3s;
}
@@ -13,7 +17,7 @@
background: var(--card-bg);
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
box-shadow: var(--card-shadow);
transition: background-color 0.3s;
}
@@ -25,7 +29,11 @@
}
.card-header h3 {
font-size: 16px;
font-family: 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 21px;
font-weight: 700;
line-height: 1.19;
letter-spacing: 0.231px;
color: var(--text-color);
margin: 0;
transition: color 0.3s;
@@ -55,19 +63,38 @@
}
.form-group label {
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 14px;
font-weight: 500;
color: var(--text-color);
font-weight: 600;
line-height: 1.29;
letter-spacing: -0.224px;
color: var(--text-secondary);
}
.form-group input,
.form-group select {
padding: 10px;
border: 1px solid var(--border-color);
border-radius: 4px;
font-size: 14px;
background: var(--bg-color);
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
padding: 10px 14px;
border: 3px solid var(--border-color);
border-radius: 11px;
font-size: 17px;
line-height: 1.47;
letter-spacing: -0.374px;
background: var(--surface-light);
color: var(--text-color);
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 2px var(--focus-ring);
}
.form-group input:disabled {
opacity: 0.48;
cursor: not-allowed;
}
.form-group.checkbox-group {
@@ -80,164 +107,85 @@
width: auto;
}
.empty-state {
text-align: center;
padding: 60px 20px;
color: #999;
font-size: 16px;
color: var(--text-tertiary);
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 17px;
line-height: 1.47;
letter-spacing: -0.374px;
}
.action-btn {
padding: 8px 16px;
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
padding: 8px 15px;
border: none;
border-radius: 6px;
font-size: 14px;
font-weight: 500;
border-radius: 8px;
font-size: 17px;
font-weight: 400;
line-height: 2.41;
cursor: pointer;
transition: all 0.3s;
}
.delete-btn {
background: #ff4d4f;
background: var(--status-stopped);
color: white;
border-radius: 8px;
}
.delete-btn:hover {
background: #f04142;
opacity: 0.85;
}
.edit-btn {
background: #f0f0f0;
background: var(--surface-light);
color: var(--text-color);
border-radius: 8px;
}
.edit-btn:hover {
background: #e0e0e0;
background: var(--surface-hover);
}
.start-btn {
background: #52c41a;
background: var(--primary-color);
color: white;
border-radius: 8px;
}
.start-btn:hover {
background: #45a049;
background: var(--primary-hover);
}
.stop-btn {
background: #ff4d4f;
background: var(--status-stopped);
color: white;
border-radius: 8px;
}
.stop-btn:hover {
background: #f04142;
opacity: 0.85;
}
.add-btn {
padding: 10px 20px;
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
padding: 8px 15px;
background: var(--primary-color);
color: white;
border: none;
border-radius: 6px;
border-radius: 980px;
font-size: 14px;
font-weight: 500;
font-weight: 400;
line-height: 1.43;
letter-spacing: -0.224px;
cursor: pointer;
transition: all 0.3s;
}
.add-btn:hover {
background: #5568d3;
}
.form {
display: flex;
flex-direction: column;
gap: 16px;
}
.form-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.form-group label {
font-size: 14px;
color: #666;
font-weight: 500;
}
.form-group input,
.form-group select {
padding: 10px;
border: 1px solid var(--border-color);
border-radius: 6px;
font-size: 14px;
background: var(--bg-color);
color: var(--text-color);
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus {
outline: none;
border-color: var(--primary-color);
}
.form-group input:disabled {
background: #f5f5f5;
cursor: not-allowed;
}
.dark .form-group label {
color: #b0b0b0;
}
.dark .form-group input,
.dark .form-group select {
background: #3d3d3d;
color: var(--text-color);
border-color: var(--border-color);
}
.dark .form-group input:disabled {
background: #2a2a2a;
color: #666;
}
.dark .cancel-btn {
background: #3d3d3d;
color: var(--text-color);
}
.dark .cancel-btn:hover {
background: #4d4d4d;
}
.dark .info-row .label,
.dark .info-label,
.dark .detail-key,
.dark .config-key {
color: #b0b0b0;
}
.dark .log-item {
background: #2a2a2a;
}
.dark .proxy-item,
.dark .config-item {
background: #2a2a2a;
}
.dark .common-btn {
background: #3d3d3d;
color: var(--text-color);
}
.dark .common-btn:hover {
background: #4d4d4d;
background: var(--primary-hover);
}
.form-actions {
@@ -248,23 +196,26 @@
.cancel-btn,
.submit-btn {
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
flex: 1;
padding: 10px;
padding: 8px 15px;
border: none;
border-radius: 6px;
font-size: 14px;
font-weight: 500;
border-radius: 8px;
font-size: 17px;
font-weight: 400;
line-height: 2.41;
cursor: pointer;
transition: all 0.3s;
}
.cancel-btn {
background: #f0f0f0;
background: var(--surface-light);
color: var(--text-color);
border: 3px solid var(--border-color);
}
.cancel-btn:hover {
background: #e0e0e0;
background: var(--surface-hover);
}
.submit-btn {
@@ -273,22 +224,25 @@
}
.submit-btn:hover:not(:disabled) {
background: #5568d3;
background: var(--primary-hover);
}
.submit-btn:disabled {
opacity: 0.6;
opacity: 0.48;
cursor: not-allowed;
}
.info-row {
display: flex;
justify-content: space-between;
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.29;
letter-spacing: -0.224px;
}
.info-row .label {
color: #666;
color: var(--text-tertiary);
}
.info-row .value {
@@ -300,11 +254,14 @@
.info-item {
display: flex;
justify-content: space-between;
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.29;
letter-spacing: -0.224px;
}
.info-label {
color: #666;
color: var(--text-tertiary);
font-weight: 500;
}
@@ -317,69 +274,60 @@
}
.status-badge {
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
padding: 4px 12px;
border-radius: 12px;
border-radius: 980px;
font-size: 12px;
font-weight: 500;
font-weight: 600;
line-height: 1.33;
letter-spacing: -0.12px;
}
.status-badge.running {
background: #f6ffed;
color: #52c41a;
background: var(--status-running-bg);
color: var(--status-running);
}
.status-badge.stopped {
background: #fff1f0;
color: #ff4d4f;
background: var(--status-stopped-bg);
color: var(--status-stopped);
}
.status-badge.active {
background: #f6ffed;
color: #52c41a;
background: var(--status-running-bg);
color: var(--status-running);
}
.status-badge.inactive {
background: #fff1f0;
color: #ff4d4f;
background: var(--status-stopped-bg);
color: var(--status-stopped);
}
.type-badge {
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
display: inline-block;
padding: 2px 8px;
border-radius: 4px;
border-radius: 980px;
font-size: 12px;
font-weight: 500;
font-weight: 600;
line-height: 1.33;
letter-spacing: -0.12px;
transition: background-color 0.3s, color 0.3s;
}
.type-badge.superuser {
background: #fff7e6;
color: #fa8c16;
background: var(--type-superuser-bg);
color: var(--type-superuser-color);
}
.type-badge.admin {
background: #e6f7ff;
color: #1890ff;
background: var(--type-admin-bg);
color: var(--type-admin-color);
}
.type-badge.visitor {
background: #f9f9f9;
color: #666;
}
.dark .type-badge.superuser {
background: #3a2510;
color: #ffb74d;
}
.dark .type-badge.admin {
background: #0d2633;
color: #40a9ff;
}
.dark .type-badge.visitor {
background: #2a2a2a;
color: #b0b0b0;
background: var(--type-visitor-bg);
color: var(--type-visitor-color);
}
.modal-overlay {
@@ -389,6 +337,7 @@
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
@@ -400,12 +349,16 @@
border-radius: 12px;
padding: 24px;
width: 400px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
box-shadow: var(--card-shadow);
transition: background-color 0.3s;
}
.modal h3 {
font-size: 20px;
font-family: 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 21px;
font-weight: 700;
line-height: 1.19;
letter-spacing: 0.231px;
color: var(--text-color);
margin: 0 0 20px 0;
transition: color 0.3s;
@@ -421,14 +374,16 @@
display: flex;
gap: 12px;
padding: 12px;
background: #f9f9f9;
border-radius: 6px;
background: var(--surface-light);
border-radius: 8px;
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, monospace;
font-size: 14px;
font-family: 'Consolas', 'Monaco', monospace;
line-height: 1.29;
letter-spacing: -0.224px;
}
.log-time {
color: #999;
color: var(--text-tertiary);
min-width: 160px;
}
@@ -437,32 +392,32 @@
font-weight: 600;
text-align: center;
padding: 2px 8px;
border-radius: 4px;
border-radius: 980px;
}
.log-level.DEBUG {
color: #52c41a;
background: #f6ffed;
color: var(--log-debug-color);
background: var(--log-debug-bg);
}
.log-level.INFO {
color: #1890ff;
background: #e6f7ff;
color: var(--log-info-color);
background: var(--log-info-bg);
}
.log-level.WARN {
color: #faad14;
background: #fffbe6;
color: var(--log-warn-color);
background: var(--log-warn-bg);
}
.log-level.ERROR {
color: #ff4d4f;
background: #fff1f0;
color: var(--log-error-color);
background: var(--log-error-bg);
}
.log-level.FATAL {
color: #cf1322;
background: #fff1f0;
color: var(--log-fatal-color);
background: var(--log-fatal-bg);
}
.log-message {
@@ -476,43 +431,55 @@
width: 48px;
height: 48px;
border-radius: 50%;
background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
background: var(--primary-color);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-family: 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 600;
font-size: 18px;
}
.common-btn {
padding: 8px 16px;
background: #f0f0f0;
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
padding: 8px 15px;
background: var(--surface-light);
border: none;
border-radius: 6px;
border-radius: 8px;
cursor: pointer;
font-size: 14px;
font-size: 17px;
font-weight: 400;
line-height: 2.41;
transition: all 0.3s;
}
.common-btn:hover {
background: #e0e0e0;
background: var(--surface-hover);
}
.config-item {
display: flex;
justify-content: space-between;
padding: 12px;
background: #f9f9f9;
border-radius: 6px;
background: var(--surface-light);
border-radius: 8px;
}
.config-key {
color: #666;
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.29;
letter-spacing: -0.224px;
color: var(--text-tertiary);
font-weight: 500;
}
.config-value {
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.29;
letter-spacing: -0.224px;
color: var(--text-color);
transition: color 0.3s;
}
@@ -522,8 +489,8 @@
flex-direction: column;
gap: 12px;
padding: 12px;
background: #f9f9f9;
border-radius: 6px;
background: var(--surface-light);
border-radius: 8px;
}
.proxy-header {
@@ -533,8 +500,11 @@
}
.proxy-name {
font-family: 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 18px;
font-weight: 600;
line-height: 1.14;
letter-spacing: 0.196px;
color: var(--text-color);
transition: color 0.3s;
}
@@ -546,12 +516,15 @@
}
.proxy-type {
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
display: inline-block;
padding: 4px 12px;
border-radius: 12px;
font-size: 14px;
font-weight: 500;
background: var(--primary-bg);
border-radius: 980px;
font-size: 12px;
font-weight: 600;
line-height: 1.33;
letter-spacing: -0.12px;
background: var(--status-running-bg);
color: var(--primary-color);
text-transform: uppercase;
}
@@ -566,11 +539,14 @@
.proxy-detail {
display: flex;
justify-content: space-between;
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.29;
letter-spacing: -0.224px;
}
.detail-key {
color: #666;
color: var(--text-tertiary);
}
.detail-value {
@@ -582,12 +558,16 @@
background: var(--card-bg);
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
box-shadow: var(--card-shadow);
transition: background-color 0.3s;
}
.section h3 {
font-size: 18px;
font-family: 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 21px;
font-weight: 700;
line-height: 1.19;
letter-spacing: 0.231px;
color: var(--text-color);
margin: 0 0 16px 0;
transition: color 0.3s;
@@ -599,11 +579,14 @@
}
.filter-controls select {
padding: 8px 16px;
border: 1px solid var(--border-color);
border-radius: 6px;
font-size: 14px;
background: var(--card-bg);
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
padding: 0px 14px;
border: 3px solid var(--border-color);
border-radius: 11px;
font-size: 17px;
line-height: 1.47;
letter-spacing: -0.374px;
background: var(--surface-light);
color: var(--text-color);
cursor: pointer;
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
@@ -612,6 +595,7 @@
.filter-controls select:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 2px var(--focus-ring);
}
.proxy-actions {