feat: 初始提交(仅核心代码,已排除大文件)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,145 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>云产品管理</title>
|
||||
<link rel="icon" href="/icons/cloud.svg" type="image/svg+xml" />
|
||||
<link rel="stylesheet" href="/common/common.css" />
|
||||
<link rel="stylesheet" href="/tools/cloud/cloud.css" />
|
||||
</head>
|
||||
<body class="theme-cloud">
|
||||
<main class="container">
|
||||
<div class="cloud-header"><h2><span class="logo-ico" aria-hidden="true"></span>云产品管理</h2><div class="cloud-tabs"><div class="tabs horizontal"><button id="tab-ops" class="tab active"><svg width="16" height="16" viewBox="0 0 24 24"><circle cx="12" cy="8" r="4" fill="currentColor"/><path d="M4 22c0-4 4-6 8-6s8 2 8 6" fill="none" stroke="currentColor" stroke-width="2"/></svg>运营商</button><button id="tab-ecs" class="tab"><svg width="16" height="16" viewBox="0 0 24 24"><rect x="3" y="5" width="18" height="12" rx="2" fill="none" stroke="currentColor" stroke-width="2"/><rect x="9" y="19" width="6" height="1.5" fill="currentColor"/></svg>ECS服务器</button><button id="tab-vas" class="tab"><svg width="16" height="16" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14" stroke="currentColor" stroke-width="2"/></svg>增值服务</button><button id="tab-renew" class="tab"><svg width="16" height="16" viewBox="0 0 24 24"><path d="M6 9a6 6 0 0 1 10 0l2-2v6h-6l2-2a4 4 0 1 0-6 0" fill="none" stroke="currentColor" stroke-width="2"/></svg>续费情况</button><button id="tab-notes" class="tab"><svg width="16" height="16" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" fill="none" stroke="currentColor" stroke-width="2"/><polyline points="14 2 14 8 20 8" fill="none" stroke="currentColor" stroke-width="2"/><line x1="16" y1="13" x2="8" y2="13" stroke="currentColor" stroke-width="2"/><line x1="16" y1="17" x2="8" y2="17" stroke="currentColor" stroke-width="2"/><polyline points="10 9 9 9 8 9" fill="none" stroke="currentColor" stroke-width="2"/></svg>学习笔记</button><button id="tab-balance" class="tab"><svg width="16" height="16" viewBox="0 0 24 24"><path d="M12 2l8 4v6c0 5-3.4 8.9-8 10-4.6-1.1-8-5-8-10V6l8-4z" fill="none" stroke="currentColor" stroke-width="2"/><path d="M8 12h8M12 8v8" stroke="currentColor" stroke-width="2"/></svg>欠费通知</button></div></div><div class="header-actions"><button id="cloud-toggle-theme" class="icon-theme" title="深色/浅色切换" aria-label="深色/浅色切换">🌙</button><button id="cloud-toggle-nav" class="icon-toggle" title="显示/隐藏导航" aria-label="显示/隐藏导航"></button></div></div>
|
||||
<div class="cloud-layout">
|
||||
|
||||
<div id="cloud-content">
|
||||
<div id="status" class="status" style="display:none"></div>
|
||||
<button id="font-size-toggle" class="font-size-toggle" title="切换字体大小">字体大小</button>
|
||||
|
||||
<section id="panel-ops" class="panel card">
|
||||
<div class="action-buttons">
|
||||
<button class="action-btn" onclick="openModal('ops', 'add')">
|
||||
<span>➕</span>新增运营商
|
||||
</button>
|
||||
</div>
|
||||
<div class="list-card"><table class="grid"><thead><tr><th>名称</th><th>账号</th><th>登录密码</th><th>手机</th><th>关联人</th><th>备注</th><th class="col-cert">认证</th><th class="col-actions">操作</th></tr></thead><tbody id="ops-body"></tbody></table></div>
|
||||
</section>
|
||||
|
||||
<section id="panel-ecs" class="panel card" style="display:none">
|
||||
<div class="action-buttons">
|
||||
<button class="action-btn" onclick="openModal('ecs', 'add')">
|
||||
<span>➕</span>新增服务器
|
||||
</button>
|
||||
</div>
|
||||
<div class="list-card"><table class="grid"><thead><tr><th>ID</th><th>运营商</th><th>服务器名称</th><th>所在地区</th><th>所在区域</th><th>远程桌面IP</th><th>远程账号</th><th>远程账号密码</th><th>服务器配置</th><th>开放端口范围</th><th class="col-actions">操作</th></tr></thead><tbody id="ecs-body"></tbody></table></div>
|
||||
</section>
|
||||
|
||||
<section id="panel-vas" class="panel card" style="display:none">
|
||||
<div class="action-buttons">
|
||||
<button class="action-btn" onclick="openModal('vas', 'add')">
|
||||
<span>➕</span>新增增值服务
|
||||
</button>
|
||||
</div>
|
||||
<div class="list-card"><table class="grid"><thead><tr><th>ID</th><th>运营商</th><th>名称</th><th>增值服务配置</th><th>Access信息</th><th class="col-actions">操作</th></tr></thead><tbody id="vas-body"></tbody></table></div>
|
||||
</section>
|
||||
|
||||
<section id="panel-renew" class="panel card" style="display:none">
|
||||
<div class="action-buttons">
|
||||
<button class="action-btn" onclick="openModal('renew', 'add')">
|
||||
<span>➕</span>新增续费记录
|
||||
</button>
|
||||
</div>
|
||||
<div class="list-card"><table class="grid"><thead><tr><th>缴费主体</th><th>主体名称</th><th>主体ID</th><th>缴费日期</th><th>缴费金额</th><th>发票</th><th>公司缴费人</th><th>到期日期</th><th>下期预计费用</th><th class="col-actions">操作</th></tr></thead><tbody id="rn-body"></tbody></table></div>
|
||||
</section>
|
||||
|
||||
<section id="panel-notes" class="panel card" style="display:none">
|
||||
<div class="action-buttons">
|
||||
<button class="action-btn" onclick="openModal('notes', 'add')">
|
||||
<span>➕</span>新增学习笔记
|
||||
</button>
|
||||
</div>
|
||||
<div class="list-card"><table class="grid"><thead><tr><th>关联类型</th><th>关联主体</th><th>问题描述</th><th>解决方案</th><th>附件</th><th class="col-actions">操作</th></tr></thead><tbody id="nt-body"></tbody></table></div>
|
||||
</section>
|
||||
|
||||
<section id="panel-balance" class="panel card" style="display:none">
|
||||
<div class="action-buttons">
|
||||
<button id="balance-btn-scan" class="action-btn">
|
||||
<span>📬</span>立即补扫
|
||||
</button>
|
||||
<button id="balance-btn-refresh" class="action-btn view">
|
||||
<span>🔄</span>刷新列表
|
||||
</button>
|
||||
<input id="balance-keyword" class="modal-input balance-search" placeholder="搜索标题或正文关键词" />
|
||||
</div>
|
||||
<div class="balance-tip-box">
|
||||
<div class="balance-tip-title">扩展提示</div>
|
||||
<div class="balance-tip-text">当前已接入阿里云欠费邮件告警。未来如需增加亿速云等其他云厂商告警邮件,按插件式扩展即可:每个来源独立维护匹配规则、解析逻辑、推送策略与配置,不影响现有阿里云链路。</div>
|
||||
</div>
|
||||
<div id="balance-status-cards" class="balance-status-cards"></div>
|
||||
<div class="list-card">
|
||||
<table class="grid">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>接收时间(北京)</th>
|
||||
<th>风险级别</th>
|
||||
<th>邮件标题</th>
|
||||
<th>邮件正文</th>
|
||||
<th>发件人</th>
|
||||
<th>日历同步</th>
|
||||
<th>周报预留</th>
|
||||
<th class="col-actions">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="balance-body"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div id="balance-pagination" class="balance-pagination"></div>
|
||||
</section>
|
||||
|
||||
<!-- 模态框容器 -->
|
||||
<div id="modal-overlay" class="modal-overlay">
|
||||
<div id="modal" class="modal">
|
||||
<div class="modal-header">
|
||||
<h3 id="modal-title" class="modal-title">模态框标题</h3>
|
||||
<button class="modal-close" onclick="closeModal()">×</button>
|
||||
</div>
|
||||
<div id="modal-body" class="modal-body">
|
||||
<!-- 模态框内容将通过JavaScript动态生成 -->
|
||||
</div>
|
||||
<div id="modal-footer" class="modal-footer">
|
||||
<!-- 模态框按钮将通过JavaScript动态生成 -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section class="debug" id="cloud-debug" style="display:none">
|
||||
<div class="debug-actions">
|
||||
<button id="cd-btn-copy" class="btn">复制调试信息</button>
|
||||
<button id="cd-btn-refresh" class="btn">刷新</button>
|
||||
<button id="cd-btn-clear" class="btn">清空</button>
|
||||
</div>
|
||||
<div id="cd-output" class="debug-output"></div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section class="debug" id="cloud-debug" style="display:none">
|
||||
<div class="debug-actions">
|
||||
<button id="cd-btn-copy" class="btn">复制调试信息</button>
|
||||
<button id="cd-btn-refresh" class="btn">刷新</button>
|
||||
<button id="cd-btn-clear" class="btn">清空</button>
|
||||
</div>
|
||||
<div id="cd-output" class="debug-output"></div>
|
||||
</section>
|
||||
</main>
|
||||
<script src="/common/common.js"></script>
|
||||
<link rel="stylesheet" href="/tools/cloud/theme/tokens.css" />
|
||||
<link rel="stylesheet" href="/tools/cloud/theme/components.css" />
|
||||
<script src="/tools/cloud/cloud.js"></script>
|
||||
<script src="/tools/cloud/theme/script.js"></script>
|
||||
<script>
|
||||
try { fetch('/api/debug/event', { method:'POST', headers:{'Content-Type':'application/json'}, body: JSON.stringify({ source:'cloud', action:'inline_boot' }) }) } catch {}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,201 @@
|
||||
body.theme-cloud { background: var(--color-bg) }
|
||||
body.theme-cloud .container { color: var(--color-text) }
|
||||
body.theme-cloud h2 { color: var(--color-text) }
|
||||
body.theme-cloud .tabs { margin-bottom: var(--gap) }
|
||||
body.theme-cloud .tabs .tab { background: var(--color-card); color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 6px 12px }
|
||||
body.theme-cloud .tabs .tab.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary) }
|
||||
body.theme-cloud .panel.card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--gap) }
|
||||
body.theme-cloud .cloud-layout { display: grid; grid-template-columns: 1fr; gap: var(--gap) }
|
||||
body.theme-cloud .tabs.vertical { display: flex; flex-direction: column; gap: 8px }
|
||||
body.theme-cloud #cloud-side { height: fit-content }
|
||||
body.theme-cloud .tabs.vertical .tab { text-align: left }
|
||||
/* top tabs */
|
||||
body.theme-cloud .cloud-tabs { flex: 1; margin: 0 12px }
|
||||
body.theme-cloud .cloud-tabs .tabs.horizontal { display:flex; gap:8px }
|
||||
body.theme-cloud .cloud-tabs .tabs.horizontal .tab svg { margin-right:8px }
|
||||
/* ==================== 顶部菜单胶囊 · 玻璃拟态 ==================== */
|
||||
body.theme-cloud .cloud-tabs .tabs { display:flex; gap:10px; padding:0 }
|
||||
body.theme-cloud .cloud-tabs .tab { display:flex; align-items:center; gap:8px; padding:10px 20px; border-radius:999px; background: rgba(17,24,39,0.8); border:1px solid rgba(31,41,55,0.5); color:#cbd5e1; font-size:14px; font-weight:500; cursor:pointer; user-select:none; transition: all .3s cubic-bezier(0.4,0,0.2,1); position:relative; overflow:hidden; backdrop-filter: blur(8px); box-shadow: 0 2px 6px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.05) }
|
||||
body.theme-cloud .cloud-tabs .tab::before { content:""; position:absolute; inset:0; background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.05) 100%); opacity:0; transition: opacity .3s ease }
|
||||
body.theme-cloud .cloud-tabs .tab:hover { background: rgba(26,35,52,0.6); border-color: rgba(51,65,85,0.5); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.10) }
|
||||
body.theme-cloud .cloud-tabs .tab:hover::before { opacity:1 }
|
||||
body.theme-cloud .cloud-tabs .tab.active { background: rgba(37,99,235,0.20); border-color: rgba(59,130,246,0.5); color:#fff; box-shadow: 0 8px 24px rgba(37,99,235,0.25) }
|
||||
body.theme-cloud .cloud-tabs .tab.active::after { content:""; position:absolute; bottom:0; left:20%; right:20%; height:2px; background: rgba(59,130,246,0.5); border-radius:2px }
|
||||
|
||||
/* 暗黑主题适配 */
|
||||
body.theme-cloud[data-theme="dark"] .cloud-tabs .tab { background: rgba(17,24,39,0.8); border-color: rgba(31,41,55,0.5) }
|
||||
|
||||
/* 明亮主题适配 */
|
||||
body.theme-cloud[data-theme="light"] .cloud-tabs .tab { background: rgba(255,255,255,0.9); border-color: rgba(226,232,240,0.8); color:#0f172a }
|
||||
body.theme-cloud[data-theme="light"] .cloud-tabs .tab.active { background: rgba(37,99,235,0.15); color:#1d4ed8 }
|
||||
|
||||
/* 响应式 */
|
||||
@media (max-width: 768px) {
|
||||
body.theme-cloud .cloud-tabs .tabs { flex-wrap: wrap; justify-content: center; gap:8px; padding:6px }
|
||||
body.theme-cloud .cloud-tabs .tab { padding:8px 16px; font-size:13px }
|
||||
body.theme-cloud .cloud-tabs .tab svg { width:14px; height:14px }
|
||||
}
|
||||
|
||||
/* ===== Adapted global form/table styles (scoped) ===== */
|
||||
body.theme-cloud .container { width: 98%; max-width: none; margin: 0 auto; padding: 16px }
|
||||
body.theme-cloud .section { margin-bottom: 24px }
|
||||
body.theme-cloud .header-actions { display: flex; justify-content: flex-end; gap: 12px; margin-bottom: 16px }
|
||||
body.theme-cloud .theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--glass-bg); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); box-shadow: var(--shadow-sm) }
|
||||
body.theme-cloud .theme-toggle:hover { transform: rotate(15deg) scale(1.1); box-shadow: var(--shadow-md) }
|
||||
body.theme-cloud .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--gap); box-shadow: var(--shadow-md); transition: var(--transition) }
|
||||
body.theme-cloud .card:hover { box-shadow: var(--shadow-lg) }
|
||||
body.theme-cloud .card h3 { margin: 0 0 16px 0; font-size: 18px; font-weight: 600; color: var(--text) }
|
||||
body.theme-cloud .form-bar { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px }
|
||||
body.theme-cloud .form-group { display: flex; flex-direction: column; gap: 6px }
|
||||
body.theme-cloud .form-label { font-size: 12px; font-weight: 600; color: var(--text); opacity: 0.8 }
|
||||
body.theme-cloud .input, body.theme-cloud .select, body.theme-cloud .textarea { width: 100%; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--control-border); background: var(--control-bg); color: var(--control-text); font-size: 14px; transition: var(--transition) }
|
||||
body.theme-cloud .input::placeholder, body.theme-cloud .textarea::placeholder { color: var(--control-placeholder) }
|
||||
body.theme-cloud .input:focus, body.theme-cloud .select:focus, body.theme-cloud .textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--glow) }
|
||||
body.theme-cloud .textarea { min-height: 80px; resize: vertical }
|
||||
body.theme-cloud .btn { padding: 10px 16px; border-radius: var(--radius); border: none; background: var(--primary); color: white; font-size: 14px; font-weight: 500; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; gap: 6px }
|
||||
body.theme-cloud .btn:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md) }
|
||||
body.theme-cloud .btn:active { transform: translateY(0) }
|
||||
body.theme-cloud .btn-secondary { background: var(--control-bg); color: var(--text); border: 1px solid var(--border) }
|
||||
body.theme-cloud .btn-secondary:hover { background: var(--table-row-hover) }
|
||||
body.theme-cloud .table-card { background: var(--table-bg); border: 1px solid var(--table-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm) }
|
||||
body.theme-cloud .table { width: 100%; border-collapse: collapse; background: var(--table-bg) }
|
||||
body.theme-cloud .table thead { background: var(--table-header-bg); position: sticky; top: 0 }
|
||||
body.theme-cloud .table th { padding: 10px 12px; text-align: left; font-weight: 600; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--table-border) }
|
||||
body.theme-cloud .table td { padding: 10px 12px; border-bottom: 1px solid var(--table-border); color: var(--text); font-size: 13px; transition: var(--transition) }
|
||||
body.theme-cloud .table tbody tr:nth-child(odd) { background: var(--table-row-odd) }
|
||||
body.theme-cloud .table tbody tr:nth-child(even) { background: var(--table-row-even) }
|
||||
body.theme-cloud .table tbody tr:hover { background: var(--table-row-hover); color: var(--table-text-hover) }
|
||||
body.theme-cloud .table tbody tr:last-child td { border-bottom: none }
|
||||
body.theme-cloud .badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--control-bg); color: var(--text); border: 1px solid var(--border) }
|
||||
body.theme-cloud .badge.success { background: rgba(16, 185, 129, 0.15); color: #10b981; border-color: rgba(16, 185, 129, 0.3) }
|
||||
body.theme-cloud[data-theme="light"] .badge.success { background: rgba(16, 185, 129, 0.1) }
|
||||
body.theme-cloud .icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--control-bg); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition) }
|
||||
body.theme-cloud .icon-btn:hover { background: var(--table-row-hover); transform: translateY(-2px); box-shadow: var(--shadow-sm) }
|
||||
body.theme-cloud .icon-btn.edit:hover { color: var(--primary); border-color: var(--primary) }
|
||||
body.theme-cloud .icon-btn.delete:hover { color: #ef4444; border-color: #ef4444 }
|
||||
@media (max-width: 1024px) { body.theme-cloud .form-bar { grid-template-columns: repeat(2, 1fr) } }
|
||||
@media (max-width: 768px) { body.theme-cloud .form-bar { grid-template-columns: 1fr } body.theme-cloud .container { padding: 12px } body.theme-cloud .table th, body.theme-cloud .table td { padding: 10px 12px; font-size: 13px } }
|
||||
body.theme-cloud .icon-btn { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #0f1628; border: 1px solid var(--color-border); color: var(--color-text); margin-right: 6px }
|
||||
body.theme-cloud .icon-btn:hover { background: #152036 }
|
||||
body.theme-cloud .badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #374151; color: var(--color-text); border: 1px solid #4b5563 }
|
||||
body.theme-cloud .badge.success { background: #064e3b; border-color: #10b981; color: #d1fae5 }
|
||||
body.theme-cloud .bar { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--gap); align-items: center }
|
||||
body.theme-cloud .bar input, body.theme-cloud .bar select, body.theme-cloud .bar textarea { background: #0f1628; color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 8px 10px }
|
||||
body.theme-cloud .btn { background: var(--color-primary); color: #fff; border: none; border-radius: var(--radius); padding: 8px 12px; cursor: pointer; position: relative; overflow: hidden }
|
||||
body.theme-cloud .btn:hover { background: var(--color-primary-2) }
|
||||
body.theme-cloud .status { background: #1f2937; border: 1px solid #374151; color: var(--color-text); border-radius: var(--radius) }
|
||||
body.theme-cloud .grid { width: 100%; border-collapse: collapse }
|
||||
body.theme-cloud .grid thead th { background: var(--color-card); color: var(--color-text) }
|
||||
body.theme-cloud .grid th, body.theme-cloud .grid td { padding: 8px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top }
|
||||
body.theme-cloud .grid tbody tr:nth-child(odd) { background: #0d1526 }
|
||||
body.theme-cloud .grid tbody tr:nth-child(even) { background: #0b1322 }
|
||||
body.theme-cloud .grid tbody tr:hover { background: #0f1a2b }
|
||||
body.theme-cloud .grid a { color: #93c5fd }
|
||||
body.theme-cloud .fade-in { animation: cloudFade 160ms ease-out }
|
||||
@keyframes cloudFade { from { opacity: 0; transform: translateY(4px) } to { opacity: 1; transform: translateY(0) } }
|
||||
body.theme-cloud .ripple { position: absolute; border-radius: 999px; transform: scale(0); animation: ripple 400ms ease-out; pointer-events: none; background: rgba(255,255,255,0.25) }
|
||||
@keyframes ripple { to { transform: scale(6); opacity: 0 } }
|
||||
body.theme-cloud .grid th.col-cert,
|
||||
body.theme-cloud .grid td.col-cert,
|
||||
body.theme-cloud .grid th.col-actions,
|
||||
body.theme-cloud .grid td.col-actions { width: 3em; min-width: 3em; white-space: nowrap; text-align: center }
|
||||
/* 操作列按钮主题化 */
|
||||
body.theme-cloud .grid td.col-actions .action-btn {
|
||||
background: var(--color-card);
|
||||
border: 1px solid var(--color-border);
|
||||
color: var(--color-text);
|
||||
transition: var(--transition);
|
||||
}
|
||||
body.theme-cloud .grid td.col-actions .action-btn:hover {
|
||||
background: var(--table-row-hover);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
body.theme-cloud .grid td.col-actions .action-btn.edit:hover {
|
||||
color: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
body.theme-cloud .grid td.col-actions .action-btn.view {
|
||||
color: #10b981;
|
||||
border-color: #10b981;
|
||||
}
|
||||
body.theme-cloud .grid td.col-actions .action-btn.view:hover {
|
||||
background: #10b981;
|
||||
color: #ffffff;
|
||||
}
|
||||
body.theme-cloud .grid td.col-actions .action-btn.delete {
|
||||
color: #ef4444;
|
||||
border-color: #ef4444;
|
||||
}
|
||||
body.theme-cloud .grid td.col-actions .action-btn.delete:hover {
|
||||
background: #ef4444;
|
||||
color: #ffffff;
|
||||
}
|
||||
/* 导航显示控制 */
|
||||
body.theme-cloud:not(.nav-visible) #topbar { display: none }
|
||||
body.theme-cloud .cloud-nav-toggle { position: sticky; top: 0; z-index: 5; display: flex; justify-content: flex-end; margin-bottom: var(--gap) }
|
||||
body.theme-cloud .cloud-nav-toggle .btn { background: #1e3a8a }
|
||||
body.theme-cloud .cloud-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--gap) }
|
||||
body.theme-cloud .cloud-header h2 { margin: 0; font-size: 18px; line-height: 1.1 }
|
||||
body.theme-cloud .cloud-header .header-topbar { flex: 1; margin: 0 12px }
|
||||
body.theme-cloud .cloud-header .header-topbar .tabs { margin: 0 }
|
||||
/* center top tabs */
|
||||
body.theme-cloud .cloud-tabs { flex:1; margin:0 12px }
|
||||
body.theme-cloud .cloud-tabs .tabs.horizontal { display:flex; gap:8px; justify-content:center; align-items:center }
|
||||
body.theme-cloud .cloud-tabs .tabs.horizontal .tab { display:flex; align-items:center }
|
||||
body.theme-cloud .cloud-tabs .tabs.horizontal .tab svg { margin-right:8px }
|
||||
body.theme-cloud .cloud-header .icon-toggle { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #334155; background: radial-gradient(ellipse at 30% 30%, #1f2937 0%, #0f172a 70%); box-shadow: 0 2px 8px rgba(0,0,0,0.35); cursor: pointer }
|
||||
body.theme-cloud .cloud-header .icon-toggle:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.5) }
|
||||
body.theme-cloud.nav-visible .cloud-header .icon-toggle { border-color: #60a5fa; background: radial-gradient(ellipse at 30% 30%, #1e3a8a 0%, #0f172a 70%) }
|
||||
body.theme-cloud .list-card { background: #0f1628; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 6px }
|
||||
body.theme-cloud .list-card .grid { background: transparent }
|
||||
/* theme specific tweaks */
|
||||
body.theme-cloud[data-theme="dark"] .bar input,
|
||||
body.theme-cloud[data-theme="dark"] .bar select,
|
||||
body.theme-cloud[data-theme="dark"] .bar textarea { background:#0f1628; border:1px solid var(--color-border); color:var(--color-text) }
|
||||
/* table palette overrides (dark) */
|
||||
body.theme-cloud[data-theme="dark"] .list-card { background:var(--table-bg); border:1px solid var(--table-border); border-radius:var(--table-radius) }
|
||||
body.theme-cloud[data-theme="dark"] .list-card .grid { background:var(--table-bg) }
|
||||
body.theme-cloud[data-theme="dark"] .grid thead { background:var(--table-header-bg) }
|
||||
body.theme-cloud[data-theme="dark"] .grid thead th { color:var(--text-primary); border-bottom:2px solid var(--table-border) }
|
||||
body.theme-cloud[data-theme="dark"] .grid td { border-bottom:1px solid var(--table-border) }
|
||||
body.theme-cloud[data-theme="dark"] .grid tbody tr:nth-child(odd) { background:var(--table-row-odd) }
|
||||
body.theme-cloud[data-theme="dark"] .grid tbody tr:nth-child(even) { background:var(--table-row-even) }
|
||||
body.theme-cloud[data-theme="dark"] .grid tbody tr:hover { background:var(--table-row-hover); color:var(--table-text-hover); transition:all .2s ease }
|
||||
body.theme-cloud[data-theme="dark"] .grid tbody tr:last-child td { border-bottom:none }
|
||||
body.theme-cloud[data-theme="dark"] .status { background:#1f2937; border:1px solid #374151; color:var(--color-text) }
|
||||
|
||||
body.theme-cloud[data-theme="light"] .bar input,
|
||||
body.theme-cloud[data-theme="light"] .bar select,
|
||||
body.theme-cloud[data-theme="light"] .bar textarea { background:#f8fafc; border:1px solid #e5e7eb; color:#0f172a }
|
||||
/* table palette overrides (light) */
|
||||
body.theme-cloud[data-theme="light"] .list-card { background:var(--table-bg); border:1px solid var(--table-border); border-radius:var(--table-radius) }
|
||||
body.theme-cloud[data-theme="light"] .list-card .grid { background:var(--table-bg) }
|
||||
body.theme-cloud[data-theme="light"] .grid thead { background:var(--table-header-bg) }
|
||||
body.theme-cloud[data-theme="light"] .grid thead th { color:var(--text-primary); border-bottom:2px solid var(--table-border) }
|
||||
body.theme-cloud[data-theme="light"] .grid td { border-bottom:1px solid var(--table-border) }
|
||||
body.theme-cloud[data-theme="light"] .grid tbody tr:nth-child(odd) { background:var(--table-row-odd) }
|
||||
body.theme-cloud[data-theme="light"] .grid tbody tr:nth-child(even) { background:var(--table-row-even) }
|
||||
body.theme-cloud[data-theme="light"] .grid tbody tr:hover { background:var(--table-row-hover); color:var(--table-text-hover); transition:all .2s ease }
|
||||
body.theme-cloud[data-theme="light"] .grid tbody tr:last-child td { border-bottom:none }
|
||||
body.theme-cloud[data-theme="light"] .status { background:#fffbe6; border:1px solid #ffe08a; color:#7a5900 }
|
||||
body.theme-cloud[data-theme="light"] .icon-btn { background:#eef2f7; border:1px solid #e5e7eb; color:#0f172a }
|
||||
body.theme-cloud[data-theme="light"] .icon-btn:hover { background:#e9eef6 }
|
||||
body.theme-cloud[data-theme="light"] .badge { background:#e5e7eb; border:1px solid #cbd5e1; color:#0f172a }
|
||||
body.theme-cloud[data-theme="light"] .badge.success { background:#dcfce7; border-color:#10b981; color:#065f46 }
|
||||
/* header actions & icons */
|
||||
body.theme-cloud .cloud-header .header-actions { display:flex; gap:12px; align-items:center }
|
||||
body.theme-cloud .cloud-header .icon-toggle, body.theme-cloud .cloud-header .icon-theme { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #334155; background: radial-gradient(ellipse at 30% 30%, #1f2937 0%, #0f172a 70%); box-shadow: 0 2px 8px rgba(0,0,0,0.35); cursor: pointer; color:#fbbf24; display:flex; align-items:center; justify-content:center }
|
||||
/* header logo */
|
||||
body.theme-cloud .logo-ico { display:inline-block; width:20px; height:20px; margin-right:8px; background: linear-gradient(135deg,#93c5fd,#60a5fa); border-radius:6px; position:relative }
|
||||
body.theme-cloud .logo-ico::after { content:''; position:absolute; left:4px; top:3px; width:12px; height:12px; border-radius:50%; background:#fff; opacity:0.2 }
|
||||
/* sidebar tab icons */
|
||||
body.theme-cloud .tabs.vertical .tab { text-align:left; display:flex; align-items:center }
|
||||
body.theme-cloud .tabs.vertical .tab svg { margin-right:8px; flex:0 0 16px }
|
||||
/* light theme header icons */
|
||||
body.theme-cloud[data-theme="light"] .cloud-header .icon-toggle,
|
||||
body.theme-cloud[data-theme="light"] .cloud-header .icon-theme { border-color:#cbd5e1; background: radial-gradient(ellipse at 30% 30%, #ffffff 0%, #e9eef6 70%); color:#0f172a }
|
||||
body.theme-cloud .font-size-toggle { width:32px; height:32px; border-radius:50%; border:1px solid var(--color-border); background: var(--color-card); color: var(--color-text); box-shadow: var(--shadow-sm); display:inline-flex; align-items:center; justify-content:center }
|
||||
body.theme-cloud .font-size-toggle:hover { background: var(--table-row-hover) }
|
||||
body.theme-cloud[data-theme="dark"] .font-size-toggle { background:#0f1628; border-color:#334155; color:#fbbf24 }
|
||||
body.theme-cloud[data-theme="light"] .font-size-toggle { background:#eef2f7; border-color:#e5e7eb; color:#0f172a }
|
||||
@@ -0,0 +1,68 @@
|
||||
;(function(){
|
||||
const CloudTheme = {
|
||||
init(){
|
||||
this.observeLists()
|
||||
this.bindRipple()
|
||||
this.observeCards()
|
||||
this.initNavToggle()
|
||||
this.initThemeToggle()
|
||||
},
|
||||
onSectionSwitch(){},
|
||||
observeLists(){
|
||||
const ids=['ecs-body','vas-body','rn-body']
|
||||
ids.forEach(id=>{
|
||||
const el=document.getElementById(id)
|
||||
if(!el) return
|
||||
const mo=new MutationObserver(muts=>{
|
||||
muts.forEach(m=>{
|
||||
m.addedNodes.forEach(n=>{ if(n.nodeType===1) n.classList.add('fade-in') })
|
||||
})
|
||||
})
|
||||
mo.observe(el,{childList:true})
|
||||
})
|
||||
},
|
||||
bindRipple(){
|
||||
document.body.addEventListener('pointerdown',e=>{
|
||||
const t=e.target.closest('.btn')
|
||||
if(!t || !document.body.classList.contains('theme-cloud')) return
|
||||
const r=document.createElement('span')
|
||||
r.className='ripple'
|
||||
const rect=t.getBoundingClientRect()
|
||||
const size=Math.max(rect.width,rect.height)
|
||||
r.style.width=r.style.height=size+'px'
|
||||
r.style.left=(e.clientX-rect.left-size/2)+'px'
|
||||
r.style.top=(e.clientY-rect.top-size/2)+'px'
|
||||
t.appendChild(r)
|
||||
setTimeout(()=>{ try{ r.remove() }catch{} },420)
|
||||
},{passive:true})
|
||||
},
|
||||
observeCards(){
|
||||
const cards=[...document.querySelectorAll('body.theme-cloud .panel.card')]
|
||||
const io=new IntersectionObserver(entries=>{
|
||||
entries.forEach(en=>{ if(en.isIntersecting){ en.target.style.boxShadow='var(--shadow)' } else { en.target.style.boxShadow='none' } })
|
||||
})
|
||||
cards.forEach(c=>io.observe(c))
|
||||
},
|
||||
initNavToggle(){
|
||||
const key='cloud_nav_visible'
|
||||
const btn=document.getElementById('cloud-toggle-nav')
|
||||
const eye=`<svg width="16" height="16" viewBox="0 0 24 24"><path d="M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12Z" fill="none" stroke="currentColor" stroke-width="2"/><circle cx="12" cy="12" r="3" fill="currentColor"/></svg>`
|
||||
const setVisible=(v)=>{ document.body.classList.toggle('nav-visible', !!v); if(btn) { btn.setAttribute('aria-pressed', v?'true':'false'); btn.title=v?'隐藏导航':'显示导航'; btn.innerHTML=eye } }
|
||||
const initVal=localStorage.getItem(key)==='1'
|
||||
setVisible(initVal)
|
||||
if(btn) btn.addEventListener('click',()=>{ const cur=document.body.classList.contains('nav-visible'); const next=!cur; localStorage.setItem(key, next?'1':'0'); setVisible(next) })
|
||||
},
|
||||
initThemeToggle(){
|
||||
const key='cloud_theme'
|
||||
const btn=document.getElementById('cloud-toggle-theme')
|
||||
const moon=`<svg width="16" height="16" viewBox="0 0 24 24"><path d="M21 12.79A9 9 0 1 1 11.21 3a7 7 0 1 0 9.79 9.79Z" fill="currentColor"/></svg>`
|
||||
const sun=`<svg width="16" height="16" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4" fill="currentColor"/><path d="M12 2v3M12 19v3M4.22 4.22l2.12 2.12M17.66 17.66l2.12 2.12M2 12h3M19 12h3M4.22 19.78l2.12-2.12M17.66 6.34l2.12-2.12" stroke="currentColor" stroke-width="2"/></svg>`
|
||||
const apply=(mode)=>{ document.body.setAttribute('data-theme', mode); if(btn) btn.innerHTML=mode==='dark'?moon:sun }
|
||||
const init=localStorage.getItem(key) || 'dark'
|
||||
apply(init)
|
||||
if(btn) btn.addEventListener('click',()=>{ const cur=document.body.getAttribute('data-theme')||'dark'; const next=cur==='dark'?'light':'dark'; localStorage.setItem(key,next); apply(next) })
|
||||
}
|
||||
}
|
||||
window.CloudTheme=CloudTheme
|
||||
if(document.body && document.body.classList.contains('theme-cloud')) { CloudTheme.init() }
|
||||
})();
|
||||
@@ -0,0 +1,6 @@
|
||||
body.theme-cloud { --radius:12px; --shadow:0 6px 20px rgba(0,0,0,0.35); --gap:12px; --shadow-sm:0 2px 8px rgba(0,0,0,0.1); --shadow-md:0 4px 12px rgba(0,0,0,0.15); --shadow-lg:0 8px 24px rgba(0,0,0,0.2); --glow:0 0 0 3px rgba(59,130,246,0.2) }
|
||||
body.theme-cloud[data-theme="dark"] { --color-bg:#0b1220; --color-card:#111827; --color-border:#1f2937; --color-text:#cbd5e1; --color-muted:#64748b; --color-primary:#2563eb; --color-primary-2:#1d4ed8; --color-accent:#10b981 }
|
||||
body.theme-cloud[data-theme="light"] { --color-bg:#f3f4f6; --color-card:#ffffff; --color-border:#e5e7eb; --color-text:#0f172a; --color-muted:#475569; --color-primary:#2563eb; --color-primary-2:#1d4ed8; --color-accent:#059669 }
|
||||
/* table palette from DeepSeek */
|
||||
body.theme-cloud[data-theme="dark"] { --table-bg:#1e293b; --table-border:#334155; --table-radius:8px; --table-row-odd:#1a2536; --table-row-even:#1e293b; --table-header-bg:#0f172a; --table-row-hover:#2d3748; --table-text-hover:#ffffff; --text-primary:var(--color-text) }
|
||||
body.theme-cloud[data-theme="light"] { --table-bg:#ffffff; --table-border:#e2e8f0; --table-radius:8px; --table-row-odd:#f8fafc; --table-row-even:#ffffff; --table-header-bg:#f1f5f9; --table-row-hover:#f1f5f9; --table-text-hover:#1e293b; --text-primary:var(--color-text) }
|
||||
Reference in New Issue
Block a user