Files
zhangjie 5b2219f901
/ 自动构建并推送Docker镜像 (push) Failing after 3s
Init
2026-03-25 17:34:00 +08:00

855 lines
16 KiB
CSS

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--bg-primary: #1d1d20;
--bg-secondary: #252529;
--bg-tertiary: #2d2d33;
--text-primary: #ffffff;
--text-secondary: #888888;
--accent-primary: #4a9eff;
--accent-hover: #3a7eff;
--card-bg: rgba(255, 255, 255, 0.05);
--card-border: rgba(255, 255, 255, 0.1);
--input-bg: rgba(255, 255, 255, 0.05);
--input-border: rgba(255, 255, 255, 0.1);
--shadow: rgba(0, 0, 0, 0.3);
--segment-bg: rgba(255, 255, 255, 0.1);
--segment-active: rgba(74, 158, 255, 0.3);
--success: #10b981;
--danger: #ef4444;
--warning: #f59e0b;
}
.light-mode {
--bg-primary: #f2f4f7;
--bg-secondary: #e8ebf0;
--bg-tertiary: #dfe3e9;
--text-primary: #1d1d20;
--text-secondary: #666666;
--card-bg: rgba(0, 0, 0, 0.03);
--card-border: rgba(0, 0, 0, 0.08);
--input-bg: rgba(0, 0, 0, 0.03);
--input-border: rgba(0, 0, 0, 0.15);
--shadow: rgba(0, 0, 0, 0.1);
--segment-bg: rgba(0, 0, 0, 0.08);
--segment-active: rgba(74, 158, 255, 0.2);
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Microsoft YaHei', sans-serif;
background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
min-height: 100vh;
color: var(--text-primary);
transition: background 0.3s ease, color 0.3s ease;
}
/* Login Page */
body {
display: flex;
align-items: center;
min-height: 100vh;
margin: 0;
}
.login-container {
display: flex;
flex-direction: column;
align-items: center;
background: var(--card-bg);
padding: 40px;
border-radius: 20px;
box-shadow: 0 20px 60px var(--shadow);
width: 100%;
max-width: 420px;
border: 1px solid var(--card-border);
margin: 0 auto;
}
.login-logo {
display: flex;
justify-content: center;
margin-bottom: 20px;
font-size: 80px;
}
.login-container h1 {
text-align: center;
font-size: 28px;
font-weight: 700;
margin-bottom: 8px;
color: var(--text-primary);
transition: color 0.3s ease;
}
.login-container .subtitle {
text-align: center;
color: var(--text-secondary);
font-size: 13px;
margin-bottom: 20px;
}
/* Theme Toggle */
.theme-toggle-dots {
display: inline-flex;
background: var(--segment-bg);
border-radius: 20px;
padding: 3px;
gap: 3px;
}
.theme-dot {
background: transparent;
border: none;
font-size: 13px;
padding: 2px 4px;
cursor: pointer;
border-radius: 14px;
transition: all 0.2s ease;
opacity: 0.6;
}
.theme-dot:hover {
opacity: 1;
transform: scale(1.1);
}
.theme-dot.active {
opacity: 1;
background: var(--accent-primary);
}
/* Forms */
.login-container .form-group {
margin-bottom: 12px;
}
.login-container .form-group small {
display: block;
margin-top: 6px;
color: var(--text-secondary);
font-size: 12px;
}
/* Password Field Wrapper */
.password-field-wrapper {
position: relative;
}
.password-label {
display: block;
margin-bottom: 6px;
font-size: 13px;
font-weight: 600;
color: var(--text-secondary);
}
.password-toggle {
position: absolute;
right: 4px;
top: 4px;
background: transparent;
border: none;
font-size: 14px;
cursor: pointer;
padding: 4px 8px;
border-radius: 6px;
opacity: 0.5;
transition: all 0.2s ease;
z-index: 10;
}
.password-toggle:hover {
opacity: 0.8;
background: var(--card-bg);
}
/* Input Wrapper */
.input-wrapper {
position: relative;
display: flex;
align-items: center;
}
.input-wrapper input {
padding: 8px 36px 8px 12px;
width: 320px;
border: 1.5px solid var(--input-border);
border-radius: 6px;
background: var(--input-bg);
color: var(--text-primary);
font-size: 13px;
transition: all 0.3s ease;
}
.input-wrapper input::placeholder {
color: var(--text-secondary);
opacity: 0.5;
}
.input-wrapper input:focus {
outline: none;
border-color: var(--accent-primary);
background: rgba(74, 158, 255, 0.08);
box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.1);
}
.input-wrapper input:hover:not(:focus) {
border-color: rgba(74, 158, 255, 0.5);
}
/* Buttons */
button {
cursor: pointer;
}
.login-container button[type="submit"] {
width: 100%;
padding: 8px 12px;
margin-top: 18px;
background: linear-gradient(135deg, var(--accent-primary) 0%, #8b5cf6 100%);
border: none;
border-radius: 6px;
color: #fff;
font-size: 14px;
font-weight: 600;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.login-container button[type="submit"]:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(74, 158, 255, 0.4);
}
.login-container button[type="submit"]:active {
transform: translateY(0);
}
.btn-primary {
padding: 12px 24px;
background: linear-gradient(135deg, var(--accent-primary) 0%, #8b5cf6 100%);
border: none;
border-radius: 8px;
color: #fff;
font-size: 14px;
font-weight: 600;
transition: all 0.2s;
box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}
.btn-cancel {
padding: 12px 24px;
background: transparent;
border: 1px solid var(--input-border);
border-radius: 8px;
color: var(--text-secondary);
font-size: 14px;
text-decoration: none;
transition: all 0.2s;
}
.btn-cancel:hover {
color: var(--text-primary);
border-color: var(--text-secondary);
}
.btn-icon {
background: transparent;
border: none;
font-size: 18px;
cursor: pointer;
padding: 4px 8px;
transition: transform 0.2s;
}
.btn-icon:hover {
transform: scale(1.1);
}
.btn-icon.btn-danger {
color: var(--danger);
}
/* Header */
header {
position: fixed;
top: 0;
left: 0;
right: 0;
background: var(--card-bg);
padding: 16px 40px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--card-border);
z-index: 100;
}
.logo {
font-size: 28px;
font-weight: 600;
display: flex;
align-items: center;
}
.header-actions {
display: flex;
align-items: center;
gap: 20px;
}
/* User Avatar */
.user-avatar {
width: 36px;
height: 36px;
border-radius: 50%;
background: var(--accent-primary);
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
cursor: pointer;
border: 1px solid var(--card-border);
padding: 0;
transition: all 0.2s;
}
.user-avatar:hover {
background: var(--bg-secondary);
}
.user-menu {
position: absolute;
top: 50px;
right: 0;
background: var(--bg-tertiary);
border: 1px solid var(--card-border);
border-radius: 12px;
width: 280px;
box-shadow: 0 8px 32px var(--shadow);
display: none;
z-index: 1000;
}
.user-menu.show {
display: block;
}
.user-menu-header {
padding: 20px;
border-bottom: 1px solid var(--card-border);
}
.user-avatar-large {
width: 48px;
height: 48px;
border-radius: 50%;
background: var(--accent-primary);
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
margin-bottom: 12px;
}
.user-info-detail {
display: flex;
flex-direction: column;
gap: 4px;
}
.user-name {
font-weight: 600;
font-size: 16px;
}
.user-role {
display: flex;
align-items: center;
gap: 8px;
}
.role-badge {
padding: 4px 12px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
}
.role-badge.admin {
background: var(--accent-primary);
color: #fff;
}
.role-badge.user {
background: var(--bg-secondary);
color: var(--text-secondary);
}
.user-menu-items {
padding: 8px;
}
.menu-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
border-radius: 8px;
color: var(--text-primary);
text-decoration: none;
transition: background 0.2s;
}
.menu-item:hover {
background: var(--card-bg);
}
.menu-icon {
font-size: 18px;
}
.menu-item.logout {
color: var(--danger);
}
/* Page Container */
.page-container {
max-width: 1200px;
margin: 0 auto;
padding: 40px 20px;
}
.page-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 32px;
}
.page-header h1 {
font-size: 32px;
}
/* Table */
.table-container {
background: var(--card-bg);
border-radius: 12px;
border: 1px solid var(--card-border);
overflow: hidden;
}
.data-table {
width: 100%;
border-collapse: collapse;
}
.data-table th,
.data-table td {
padding: 16px 20px;
text-align: left;
border-bottom: 1px solid var(--card-border);
}
.data-table th {
background: var(--bg-tertiary);
font-weight: 600;
font-size: 14px;
color: var(--text-secondary);
}
.data-table tr:hover {
background: var(--card-bg);
}
.status-badge {
padding: 4px 12px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
}
.status-badge.enabled {
background: rgba(16, 185, 129, 0.2);
color: var(--success);
}
.status-badge.disabled {
background: rgba(239, 68, 68, 0.2);
color: var(--danger);
}
.current-user {
color: var(--text-secondary);
font-size: 12px;
}
/* Modal */
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: none;
align-items: center;
justify-content: center;
z-index: 2000;
}
.modal.show {
display: flex;
}
.modal-content {
background: var(--bg-primary);
border-radius: 16px;
width: 100%;
max-width: 500px;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 8px 32px var(--shadow);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 24px;
border-bottom: 1px solid var(--card-border);
}
.modal-header h2 {
font-size: 20px;
}
.modal-close {
background: transparent;
border: none;
font-size: 24px;
cursor: pointer;
color: var(--text-secondary);
padding: 0;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: background 0.2s;
}
.modal-close:hover {
background: var(--card-bg);
}
.modal-content form {
padding: 24px;
}
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 12px;
margin-top: 24px;
}
.modal-body {
padding: 24px;
color: var(--text-secondary);
}
/* Container */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 100px 40px 40px;
}
.container h1 {
text-align: center;
margin-bottom: 40px;
font-size: 45px;
}
/* Services Grid */
.services-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 24px;
padding: 0;
}
.service-card {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 12px;
padding: 32px;
text-decoration: none;
color: inherit;
transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
height: 250px;
}
.service-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 40px var(--shadow);
border-color: var(--accent-primary);
}
.service-icon-img {
width: 64px;
height: 64px;
border-radius: 6px;
object-fit: cover;
margin-bottom: 16px;
}
.service-icon {
font-size: 48px;
margin-bottom: 16px;
}
.service-name {
font-size: 20px;
font-weight: 600;
margin-bottom: 8px;
padding-top: 5px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
}
.service-description {
color: var(--text-secondary);
font-size: 14px;
line-height: 1.5;
padding-top: 20px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
}
/* Empty State */
.empty-state {
text-align: center;
padding: 60px 20px;
color: var(--text-secondary);
}
.empty-state-icon {
font-size: 64px;
margin-bottom: 20px;
}
/* Flash Messages */
.flash-messages {
margin-bottom: 3px;
}
.login-container .flash-messages {
width: 320px;
}
.flash {
padding: 12px 16px;
border-radius: 8px;
margin-bottom: 12px;
}
.flash.error {
background: rgba(239, 68, 68, 0.2);
border: 1px solid rgba(239, 68, 68, 0.5);
color: var(--danger);
}
.flash.success {
background: rgba(16, 185, 129, 0.2);
border: 1px solid rgba(16, 185, 129, 0.5);
color: var(--success);
}
.flash.warning {
background: rgba(245, 158, 11, 0.2);
border: 1px solid rgba(245, 158, 11, 0.5);
color: var(--warning);
}
.flash.info {
background: rgba(74, 158, 255, 0.2);
border: 1px solid rgba(74, 158, 255, 0.5);
color: var(--accent-primary);
}
/* Profile Page */
.profile-container {
background: var(--card-bg);
border-radius: 20px;
padding: 40px;
max-width: 420px;
margin: 100px auto 40px;
border: 1px solid var(--card-border);
box-shadow: 0 20px 60px var(--shadow);
position: relative;
}
.back-btn {
position: absolute;
top: 20px;
right: 20px;
background: transparent;
border: none;
font-size: 24px;
color: var(--text-secondary);
cursor: pointer;
padding: 4px 8px;
border-radius: 6px;
transition: all 0.2s ease;
line-height: 1;
}
.back-btn:hover {
color: var(--text-primary);
background: var(--card-bg);
}
.profile-container .profile-avatar {
display: block;
margin: 0 auto 16px;
width: 56px;
height: 56px;
border-radius: 50%;
background: var(--accent-primary);
text-align: center;
font-size: 28px;
line-height: 56px;
}
.profile-container h1 {
text-align: center;
font-size: 32px;
font-weight: 700;
margin: 0 0 28px;
color: var(--text-primary);
}
.profile-container .flash-messages {
margin-bottom: 24px;
}
.profile-container form {
max-width: 400px;
margin: 0 auto;
}
.profile-container button[type="submit"] {
width: 100%;
padding: 12px 24px;
background: linear-gradient(135deg, var(--accent-primary) 0%, #8b5cf6 100%);
border: none;
border-radius: 8px;
color: #fff;
font-size: 15px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
display: block;
margin-bottom: 12px;
}
.profile-container button[type="submit"]:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(74, 158, 255, 0.4);
}
.profile-container .logout-btn {
width: 100%;
padding: 10px 24px;
background: transparent;
border: 1px solid var(--danger);
border-radius: 8px;
color: var(--danger);
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}
.profile-container .logout-btn:hover {
background: var(--danger);
color: #fff;
}
/* Profile Form Groups */
.profile-container .form-group {
margin-bottom: 18px;
}
.profile-container .password-label {
display: block;
margin-bottom: 8px;
font-size: 14px;
font-weight: 600;
color: var(--text-secondary);
}
.profile-container .input-wrapper {
position: relative;
width: 100%;
}
.profile-container .input-wrapper input::placeholder {
color: var(--text-secondary);
opacity: 0.5;
}
.profile-container .input-wrapper input:focus {
outline: none;
border-color: var(--accent-primary);
background: rgba(74, 158, 255, 0.08);
box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.1);
}
.profile-container .password-toggle {
position: absolute;
right: 3px;
top: 3px;
background: transparent;
border: none;
font-size: 14px;
cursor: pointer;
padding: 4px 8px;
border-radius: 6px;
opacity: 0.5;
transition: all 0.2s ease;
z-index: 10;
}
.profile-container .password-toggle:hover {
opacity: 1;
background: var(--card-bg);
}