Files
php_app_downloader/assets/admin.css
T
2026-06-24 17:45:24 +08:00

281 lines
4.1 KiB
CSS

/* 管理后台样式 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #f5f7fa;
color: #333;
}
.admin-container {
min-height: 100vh;
}
/* 头部 */
.admin-header {
background: #fff;
padding: 20px 40px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
display: flex;
justify-content: space-between;
align-items: center;
}
.admin-header h1 {
font-size: 24px;
color: #333;
}
.header-actions {
display: flex;
gap: 16px;
align-items: center;
}
.header-actions span {
color: #666;
font-size: 14px;
}
/* 主内容区 */
.admin-main {
max-width: 1200px;
margin: 40px auto;
padding: 0 20px;
}
/* 区块 */
section {
background: #fff;
border-radius: 12px;
padding: 30px;
margin-bottom: 30px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
section h2 {
font-size: 20px;
margin-bottom: 20px;
color: #333;
}
/* 表单 */
.form-group {
margin-bottom: 20px;
}
.form-row {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 20px;
}
label {
display: block;
color: #555;
font-size: 14px;
font-weight: 500;
margin-bottom: 8px;
}
input[type="text"],
input[type="file"],
textarea {
width: 100%;
padding: 10px 14px;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 14px;
transition: border-color 0.3s;
}
input[type="text"]:focus,
textarea:focus {
outline: none;
border-color: #667eea;
}
textarea {
resize: vertical;
font-family: inherit;
}
.form-hint {
display: block;
margin-top: 6px;
color: #999;
font-size: 12px;
}
/* 按钮 */
.btn {
display: inline-block;
padding: 10px 20px;
border-radius: 6px;
font-size: 14px;
font-weight: 500;
text-decoration: none;
border: none;
cursor: pointer;
transition: all 0.2s;
}
.btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #fff;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.btn-secondary {
background: #f0f0f0;
color: #666;
}
.btn-secondary:hover {
background: #e5e5e5;
}
.btn-small {
padding: 6px 12px;
font-size: 12px;
border-radius: 4px;
}
.btn-info {
background: #3b82f6;
color: #fff;
}
.btn-info:hover {
background: #2563eb;
}
.btn-danger {
background: #ef4444;
color: #fff;
}
.btn-danger:hover {
background: #dc2626;
}
/* 表格 */
.apps-table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
.apps-table thead {
background: #f9fafb;
}
.apps-table th,
.apps-table td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #e5e7eb;
}
.apps-table th {
font-weight: 600;
color: #555;
font-size: 13px;
}
.apps-table td {
font-size: 14px;
}
.apps-table td.description {
max-width: 250px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.apps-table tbody tr:hover {
background: #f9fafb;
}
.apps-table td:last-child {
white-space: nowrap;
}
.apps-table .btn-small {
margin-right: 6px;
}
/* 提示信息 */
.alert {
padding: 12px 16px;
border-radius: 6px;
margin-bottom: 20px;
font-size: 14px;
}
.alert-success {
background: #d1fae5;
color: #065f46;
border: 1px solid #6ee7b7;
}
.alert-error {
background: #fee;
color: #c33;
border: 1px solid #fca5a5;
}
/* 空状态 */
.empty-state {
text-align: center;
color: #999;
padding: 40px;
font-size: 14px;
}
/* Logo 预览 */
.logo-preview {
margin: 10px 0;
padding: 20px;
background: #f9fafb;
border-radius: 8px;
text-align: center;
}
.logo-preview img {
display: block;
margin: 0 auto;
}
/* 响应式 */
@media (max-width: 768px) {
.admin-header {
flex-direction: column;
align-items: flex-start;
gap: 16px;
}
.form-row {
grid-template-columns: 1fr;
}
.apps-table {
font-size: 12px;
}
.apps-table th,
.apps-table td {
padding: 8px;
}
}