1
0
This repository has been archived on 2025-05-29. You can view files and clone it, but cannot push or open issues or pull requests.

106 lines
1.8 KiB
CSS
Raw Normal View History

2025-04-14 16:50:30 +08:00
/* 通用样式 */
body {
font-family: 'Segoe UI', sans-serif;
margin: 0;
background: #f0f2f5;
}
/* 登录页面 */
.login-container {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.login-box {
background: white;
padding: 2rem;
border-radius: 10px;
box-shadow: 0 5px 20px rgba(0,0,0,0.1);
width: 400px;
}
.error-msg {
color: #dc3545;
margin: 1rem 0;
padding: 0.5rem;
background: #f8d7da;
border-radius: 5px;
}
.form-group input {
width: 100%;
padding: 12px;
margin: 8px 0;
border: 2px solid #ddd;
border-radius: 6px;
transition: border-color 0.3s;
}
.form-group input:focus {
border-color: #667eea;
outline: none;
}
button {
background: #667eea;
color: white;
padding: 12px 24px;
border: none;
border-radius: 6px;
cursor: pointer;
width: 100%;
margin-top: 1rem;
}
/* 管理后台 */
.admin-container {
max-width: 1200px;
margin: 2rem auto;
padding: 2rem;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}
.logout-btn {
background: #dc3545;
padding: 8px 16px;
text-decoration: none;
}
.form-wrapper {
background: white;
padding: 2rem;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
margin-bottom: 1rem;
}
select, textarea {
width: 100%;
padding: 12px;
border: 2px solid #ddd;
border-radius: 6px;
margin-bottom: 1rem;
}
.success-msg {
background: #d4edda;
color: #155724;
padding: 1rem;
margin-bottom: 1rem;
border-radius: 6px;
}