346 lines
4.8 KiB
CSS
346 lines
4.8 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
font-size: 14px;
|
|
color: #333;
|
|
background: #f5f5f5;
|
|
min-width: 320px;
|
|
}
|
|
|
|
.container {
|
|
padding: 16px;
|
|
}
|
|
|
|
.header {
|
|
text-align: center;
|
|
margin-bottom: 16px;
|
|
padding-bottom: 12px;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #1a73e8;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.header .subtitle {
|
|
font-size: 12px;
|
|
color: #666;
|
|
}
|
|
|
|
.notice {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 12px;
|
|
border-radius: 6px;
|
|
margin-bottom: 12px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.notice.warning {
|
|
background: #fff3e0;
|
|
color: #e65100;
|
|
}
|
|
|
|
.notice .icon {
|
|
font-weight: bold;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.btn-link {
|
|
background: none;
|
|
border: none;
|
|
color: #1a73e8;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
padding: 0;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.btn-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.platform-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.platform-item {
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
padding: 12px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.platform-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.platform-name {
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.platform-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.status-dot.valid {
|
|
background: #4caf50;
|
|
}
|
|
|
|
.status-dot.expired {
|
|
background: #f44336;
|
|
}
|
|
|
|
.status-dot.unknown {
|
|
background: #9e9e9e;
|
|
}
|
|
|
|
.platform-info {
|
|
font-size: 12px;
|
|
color: #666;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.platform-info p {
|
|
margin: 2px 0;
|
|
}
|
|
|
|
.platform-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.btn {
|
|
flex: 1;
|
|
padding: 8px 12px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: #1a73e8;
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #1557b0;
|
|
}
|
|
|
|
.btn-primary:disabled {
|
|
background: #ccc;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: #e0e0e0;
|
|
color: #333;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: #d0d0d0;
|
|
}
|
|
|
|
.btn-danger {
|
|
background: #f44336;
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background: #d32f2f;
|
|
}
|
|
|
|
.actions {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.actions .btn {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.footer {
|
|
margin-top: 16px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid #e0e0e0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 12px;
|
|
color: #666;
|
|
}
|
|
|
|
.footer a {
|
|
color: #1a73e8;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.footer a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.loading {
|
|
display: inline-block;
|
|
width: 12px;
|
|
height: 12px;
|
|
border: 2px solid #fff;
|
|
border-radius: 50%;
|
|
border-top-color: transparent;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* 弹窗样式 */
|
|
.modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.modal-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.modal-content {
|
|
position: relative;
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
width: 90%;
|
|
max-width: 400px;
|
|
max-height: 80%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.modal-header h3 {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin: 0;
|
|
}
|
|
|
|
.modal-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: 20px;
|
|
color: #666;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
line-height: 1;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
color: #333;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 16px;
|
|
flex: 1;
|
|
overflow: auto;
|
|
}
|
|
|
|
.modal-body textarea {
|
|
width: 100%;
|
|
height: 120px;
|
|
padding: 10px;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
font-family: 'Consolas', 'Monaco', monospace;
|
|
resize: vertical;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.modal-body textarea:focus {
|
|
outline: none;
|
|
border-color: #1a73e8;
|
|
}
|
|
|
|
.modal-body textarea:read-only {
|
|
background: #f5f5f5;
|
|
}
|
|
|
|
.modal-body .hint {
|
|
font-size: 11px;
|
|
color: #666;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.modal-footer {
|
|
display: flex;
|
|
gap: 8px;
|
|
padding: 12px 16px;
|
|
border-top: 1px solid #e0e0e0;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.modal-footer .btn {
|
|
flex: none;
|
|
min-width: 60px;
|
|
}
|
|
|
|
/* 按钮成功状态 */
|
|
.btn.success {
|
|
background: #4caf50 !important;
|
|
color: #fff !important;
|
|
}
|
|
|
|
/* 按钮小尺寸调整 */
|
|
.platform-actions .btn {
|
|
flex: none;
|
|
padding: 6px 10px;
|
|
font-size: 12px;
|
|
}
|