feat: 初始提交(仅核心代码,已排除大文件)

This commit is contained in:
yangxiangyuan
2026-07-08 10:29:50 +08:00
commit be7c5842f1
623 changed files with 332897 additions and 0 deletions
+813
View File
@@ -0,0 +1,813 @@
.container { padding: 12px }
.tabs { display: flex; gap: 8px; margin-bottom: 8px }
.tab { padding: 6px 10px; border: none; background: #f5f5f5; border-radius: 6px; cursor: pointer }
.tab.active { background: #222; color: #fff }
.status { margin: 8px 0; padding: 8px; border: 1px solid #ffd666; background: #fffbe6; color: #a87000; border-radius: 6px }
.panel { border: 1px solid #ddd; border-radius: 8px; padding: 8px; margin-bottom: 8px }
.bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px }
.btn { padding: 6px 10px; border: none; background: #222; color: #fff; border-radius: 6px; cursor: pointer }
.grid { width: 100%; border-collapse: collapse }
.grid th, .grid td { padding: 8px; border-bottom: 1px solid #e6e9ef; text-align: left }
.grid th, .grid td { vertical-align: top }
.grid thead th { position: sticky; top: 0; background: var(--cloud-card-bg); z-index: 1 }
.grid tbody tr:nth-child(odd) { background: #f7f8fb }
.grid tbody tr:nth-child(even) { background: #f2f4f8 }
.grid tbody tr:hover { background: #e9eef6 }
.grid tbody tr { transition: background 120ms ease-in-out }
.grid td.spec-text, .grid td.ports-text, .grid td.remark-text { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word }
.grid td.vas-config, .grid td.vas-access, .grid td.rn-text { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word }
.grid td.vas-config.small, .grid td.vas-access.small, .grid td.rn-text.small { font-size: 10px; line-height: 1.2 }
.grid a { color: var(--cloud-accent); text-decoration: none }
.grid a:hover { text-decoration: underline }
.debug { margin: 12px 0; padding: 8px; border: 1px dashed #aaa; }
.debug-actions { display: flex; gap: 8px; margin-bottom: 8px }
.debug-output { height: 200px; overflow: auto; background: #f6f6f6; padding: 8px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; white-space: pre-wrap }
/* 服务器配置文本使用小号字体 */
.scaled-wrap { display: inline-block }
#ecs-spec.scaled-text { transform: none; width: auto; height: auto; font-size: 10px; line-height: 1.2 }
.small { font-size: 10px; line-height: 1.2 }
.grid td.spec-text, .grid td.ports-text, .grid td.remark-text { white-space: pre-wrap }
.grid td.expandable { position: relative; padding-bottom: 24px }
.grid td.expandable .expandable-content { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden }
.grid td.expandable.expanded .expandable-content { display: block; -webkit-line-clamp: unset; overflow: visible }
.grid td.expandable .expandable-toggle { position: absolute; right: 6px; bottom: 4px; font-size: 12px; color: var(--cloud-accent); cursor: pointer; user-select: none; background: rgba(255,255,255,0.8); padding: 0 4px; border-radius: 4px }
body.theme-cloud[data-theme="dark"] .grid td.expandable .expandable-toggle { background: rgba(15,22,40,0.8) }
:root { --cloud-bg:#f7f8fb; --cloud-card-bg:#ffffff; --cloud-border:#e6e9ef; --cloud-primary:#1f3a5f; --cloud-accent:#2f6b99; --cloud-hover:#e9eef6; --cloud-text:#0f1a2b }
.container { color: var(--cloud-text) }
h2 { margin: 12px 0 8px }
.tabs { margin-bottom: 8px }
.tabs .tab { background: #fff; color: var(--cloud-text); border: 1px solid var(--cloud-border); border-radius: 8px; padding: 6px 12px; margin-right: 6px }
.tabs .tab.active { background: var(--cloud-primary); color: #fff; border-color: var(--cloud-primary) }
.panel.card { background: var(--cloud-card-bg); border: 1px solid var(--cloud-border); border-radius: 10px; box-shadow: 0 2px 8px rgba(15,26,43,0.06); padding: 10px; margin-bottom: 12px }
.bar { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; align-items: center; margin-bottom: 10px }
.bar input, .bar select, .bar textarea { border: 1px solid var(--cloud-border); border-radius: 8px; padding: 6px 10px; font-size: 13px }
.btn { background: var(--cloud-accent); color: #fff; border: none; border-radius: 8px; padding: 6px 12px; cursor: pointer }
.btn:hover { background: #1f5a88 }
.status { background: #fff8e1; border: 1px solid #ffe08a; color: #7a5900; border-radius: 8px; padding: 6px 10px; margin: 8px 0 }
/* Note specific styles */
.small-text-area { font-size: 10px !important; line-height: 1.2; font-family: inherit; }
.note-form-row { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.note-form-row.full-width textarea { width: 100%; }
/* 模态框样式 */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: none;
justify-content: center;
align-items: center;
z-index: 1000;
}
.modal {
background: white;
border-radius: 12px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
max-width: 600px;
width: 90%;
max-height: 80vh;
overflow-y: auto;
animation: modalFadeIn 0.3s ease-out;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
margin: 20px;
}
@keyframes modalFadeIn {
from { opacity: 0; transform: scale(0.9); }
to { opacity: 1; transform: scale(1); }
}
.modal-overlay { display: none; }
.modal-overlay.active { display: flex; }
/* 面板定位与字体按钮 */
body.theme-cloud .panel.card { position: relative; }
.font-size-toggle {
position: absolute;
right: 12px;
top: 10px;
width: 36px;
height: 36px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 8px;
border: 1px solid var(--cloud-border);
background: var(--cloud-card-bg);
color: var(--cloud-primary);
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
cursor: pointer;
}
.font-size-toggle:hover { background: var(--cloud-hover) }
/* 列表字体统一 */
.grid.small { font-size: 10px; line-height: 1.2 }
.grid.large { font-size: 14px; line-height: 1.5 }
@media (min-width: 769px) {
.modal {
width: 800px;
height: auto;
max-width: 90vw;
max-height: 90vh;
overflow: auto;
margin: 0;
}
}
.modal-footer {
padding: 12px 20px;
border-top: 1px solid #e6e9ef;
background: #f8f9fa;
display: flex;
justify-content: flex-end;
gap: 12px;
}
.modal-header {
padding: 12px 20px;
border-bottom: 1px solid #e6e9ef;
display: flex;
justify-content: space-between;
align-items: center;
background: #f8f9fa;
border-radius: 12px 12px 0 0;
width: 100%;
box-sizing: border-box;
}
.modal-title {
font-size: 18px;
font-weight: 600;
color: #1f3a5f;
}
.modal-close {
background: none;
border: none;
font-size: 20px;
cursor: pointer;
color: #666;
padding: 4px;
border-radius: 4px;
}
.modal-close:hover {
background: #e9ecef;
color: #333;
}
.modal-body {
padding: 12px 20px;
}
.modal-form {
display: grid;
gap: 16px;
}
.modal-form-row {
display: grid;
grid-template-columns: 120px minmax(0, 1fr);
gap: 12px;
align-items: center;
}
.modal-form-row.full-width {
grid-template-columns: minmax(0, 1fr);
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
.modal-label {
font-weight: 500;
color: #495057;
text-align: right;
}
.modal-input, .modal-select, .modal-textarea {
border: 1px solid #ced4da;
border-radius: 8px;
padding: 8px 12px;
font-size: 14px;
transition: border-color 0.2s;
width: 100%;
box-sizing: border-box;
}
.modal-input:focus, .modal-select:focus, .modal-textarea:focus {
outline: none;
border-color: #2f6b99;
box-shadow: 0 0 0 3px rgba(47, 107, 153, 0.1);
}
.modal-textarea {
resize: vertical;
min-height: 80px;
font-family: inherit;
}
.modal-textarea.large {
min-height: 120px;
}
.modal-footer {
padding: 16px 20px;
border-top: 1px solid #e6e9ef;
display: flex;
gap: 12px;
justify-content: flex-end;
background: #f8f9fa;
border-radius: 0 0 12px 12px;
width: 100%;
box-sizing: border-box;
}
.modal-btn {
padding: 8px 16px;
border: none;
border-radius: 8px;
cursor: pointer;
font-weight: 500;
transition: all 0.2s;
}
.modal-btn.primary {
background: #2f6b99;
color: white;
}
.modal-btn.primary:hover {
background: #1f5a88;
}
.modal-btn.secondary {
background: #6c757d;
color: white;
}
.modal-btn.secondary:hover {
background: #5a6268;
}
.modal-btn.danger {
background: #dc3545;
color: white;
}
.modal-btn.danger:hover {
background: #c82333;
}
/* 操作按钮样式 */
.action-buttons {
display: flex;
gap: 8px;
margin-bottom: 16px;
padding: 0 4px;
}
.action-btn {
padding: 8px 16px;
border: 1px solid #2f6b99;
border-radius: 8px;
background: white;
color: #2f6b99;
cursor: pointer;
font-weight: 500;
transition: all 0.2s;
display: flex;
align-items: center;
gap: 6px;
}
.action-btn:hover {
background: #2f6b99;
color: white;
}
.action-btn.view {
border-color: #28a745;
color: #28a745;
}
.action-btn.view:hover {
background: #28a745;
color: white;
}
.action-btn.delete {
border-color: #dc3545;
color: #dc3545;
}
.action-btn.delete:hover {
background: #dc3545;
color: white;
}
/* 列表操作列内按钮圆形化 */
.grid td.col-actions .action-btn {
width: 28px;
height: 28px;
padding: 0;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 1;
}
.grid td.col-actions .action-btn + .action-btn {
margin-left: 6px;
}
/* 字体大小切换按钮 */
.font-size-toggle {
position: absolute;
top: 16px;
right: 16px;
background: white;
border: 1px solid #ced4da;
border-radius: 20px;
padding: 6px 12px;
cursor: pointer;
font-size: 12px;
color: #495057;
z-index: 10;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.font-size-toggle:hover {
background: #f8f9fa;
border-color: #2f6b99;
color: #2f6b99;
}
/* 移动端适配 */
@media (max-width: 768px) {
.modal {
width: 95vw;
margin: 20px;
}
.modal-form-row {
grid-template-columns: 1fr;
gap: 8px;
}
.modal-label {
text-align: left;
}
.action-buttons {
flex-wrap: wrap;
}
.action-btn {
flex: 1;
min-width: 120px;
justify-content: center;
}
.grid td.col-actions .action-btn {
flex: 0 0 auto;
min-width: 28px;
}
.font-size-toggle {
top: 8px;
right: 8px;
padding: 4px 8px;
font-size: 11px;
}
}
/* 超细字体模式 */
.font-ultra-thin .grid,
.font-ultra-thin .grid th,
.font-ultra-thin .grid td {
font-size: 10px;
line-height: 1.2;
}
.font-ultra-thin .action-btn {
font-size: 11px;
padding: 6px 12px;
}
/* 恢复上传模态框样式 */
.resume-upload-modal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: white;
padding: 20px;
border-radius: 12px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
z-index: 10000;
max-width: 500px;
max-height: 80vh;
overflow-y: auto;
animation: modalFadeIn 0.3s ease;
}
.resume-upload-modal h3 {
margin: 0 0 16px 0;
color: #1f3a5f;
font-size: 18px;
font-weight: 600;
}
.resume-upload-list {
display: flex;
flex-direction: column;
gap: 16px;
margin-bottom: 20px;
}
.resume-upload-item {
padding: 16px;
border: 1px solid #e6e9ef;
border-radius: 8px;
background: #f8f9fa;
}
.upload-info {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.file-name {
font-weight: 500;
color: #1f3a5f;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 200px;
}
.upload-progress {
font-size: 14px;
color: #2f6b99;
font-weight: 600;
}
.progress-bar {
width: 100%;
height: 8px;
background: #e6e9ef;
border-radius: 4px;
overflow: hidden;
margin-bottom: 12px;
}
.progress-fill {
height: 100%;
background: #28a745;
transition: width 0.3s ease;
border-radius: 4px;
}
.upload-error {
color: #dc3545;
font-size: 12px;
margin-bottom: 12px;
padding: 6px 8px;
background: rgba(220, 53, 69, 0.1);
border-radius: 4px;
}
.upload-actions {
display: flex;
gap: 8px;
}
.upload-actions .action-btn {
flex: 1;
min-width: auto;
padding: 6px 12px;
font-size: 12px;
}
.upload-actions .action-btn.resume {
border-color: #28a745;
color: #28a745;
}
.upload-actions .action-btn.resume:hover {
background: #28a745;
color: white;
}
.upload-actions .action-btn.cancel {
border-color: #6c757d;
color: #6c757d;
}
.upload-actions .action-btn.cancel:hover {
background: #6c757d;
color: white;
}
.badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 44px;
padding: 4px 8px;
border-radius: 999px;
border: 1px solid #c5d0e0;
background: #eef2f7;
color: #44546a;
font-size: 12px;
font-weight: 600;
}
.badge.success {
background: #e8f7ee;
border-color: #98d5ab;
color: #1b7f3a;
}
.badge.warning {
background: #fff7e6;
border-color: #f4c46a;
color: #a15c07;
}
.badge.danger {
background: #fff0f0;
border-color: #f0a5a5;
color: #b42318;
}
.badge.muted {
background: #eef2f7;
border-color: #c5d0e0;
color: #52606d;
}
.grid td.balance-sender-cell {
max-width: 126px;
width: 126px;
white-space: normal;
word-break: break-all;
line-height: 1.45;
}
.grid td.balance-body-text,
.grid td.balance-subject {
min-width: 220px;
}
.grid td.balance-sync-cell {
min-width: 88px;
white-space: nowrap;
}
.balance-search {
max-width: 280px;
}
.balance-tip-box {
margin: 0 0 14px;
padding: 12px 14px;
border: 1px solid #d8e2f0;
border-left: 4px solid #2b6cb0;
border-radius: 10px;
background: #f7fbff;
}
.balance-tip-title {
margin-bottom: 6px;
font-size: 13px;
font-weight: 700;
color: #1f4f82;
}
.balance-tip-text {
font-size: 13px;
line-height: 1.7;
color: #44546a;
}
.balance-status-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 12px;
margin-bottom: 16px;
}
.balance-card {
border: 1px solid var(--cloud-border);
border-radius: 10px;
padding: 12px;
background: var(--cloud-card-bg);
box-shadow: 0 2px 8px rgba(15, 26, 43, 0.05);
}
.balance-card-wide {
grid-column: span 2;
}
.balance-card-label {
font-size: 12px;
color: #6b778c;
margin-bottom: 6px;
}
.balance-card-value {
font-size: 20px;
font-weight: 700;
color: var(--cloud-primary);
}
.balance-card-value.success {
color: #1b7f3a;
}
.balance-card-value.danger {
color: #b42318;
}
.balance-card-note {
margin-top: 6px;
font-size: 12px;
color: #6b778c;
white-space: pre-wrap;
word-break: break-word;
}
.balance-pagination {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 12px;
margin-top: 14px;
}
.balance-page-text {
font-size: 13px;
color: #52606d;
}
.balance-loading {
padding: 16px 0;
color: #52606d;
}
.balance-detail {
display: grid;
gap: 10px;
}
.balance-detail-row {
display: grid;
grid-template-columns: 100px minmax(0, 1fr);
gap: 10px;
align-items: start;
}
.balance-detail-row span {
color: #6b778c;
text-align: right;
}
.balance-detail-row strong {
white-space: pre-wrap;
word-break: break-word;
}
.balance-detail-title {
margin-top: 8px;
font-weight: 700;
color: var(--cloud-primary);
}
.balance-detail-pre {
margin: 0;
padding: 10px 12px;
border-radius: 8px;
background: #f5f7fb;
white-space: pre-wrap;
word-break: break-word;
max-height: 260px;
overflow: auto;
}
.balance-trace-body {
display: grid;
gap: 10px;
}
.balance-trace-item {
border: 1px solid var(--cloud-border);
border-radius: 8px;
padding: 10px;
background: var(--cloud-card-bg);
}
.balance-trace-item.success {
border-color: #98d5ab;
background: #f3fbf6;
}
.balance-trace-item.error {
border-color: #f0a5a5;
background: #fff4f4;
}
.balance-trace-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 8px;
}
.balance-trace-head strong {
color: var(--cloud-primary);
}
.balance-trace-head span {
font-size: 12px;
color: #6b778c;
}
@media (max-width: 768px) {
.balance-card-wide {
grid-column: span 1;
}
.balance-detail-row {
grid-template-columns: 1fr;
}
.balance-detail-row span {
text-align: left;
}
}
/* 移动端恢复上传适配 */
@media (max-width: 768px) {
.resume-upload-modal {
width: 95vw;
max-width: none;
margin: 20px;
padding: 16px;
}
.resume-upload-modal h3 {
font-size: 16px;
}
.upload-info {
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
.file-name {
max-width: 100%;
}
.upload-actions {
flex-direction: column;
}
.upload-actions .action-btn {
width: 100%;
}
}
@media (max-width: 480px) {
.resume-upload-modal {
margin: 10px;
padding: 12px;
}
.resume-upload-item {
padding: 12px;
}
.upload-actions {
gap: 6px;
}
.upload-actions .action-btn {
padding: 5px 10px;
font-size: 11px;
}
}