:root {
--primary: #0057c3;
--secondary: #ff7a00;
--danger: #e43;
--bg: #f5f7fa;
--radius: 12px;
--shadow: 0 4px 12px rgba(0,0,0,.08);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: "Noto Sans SC", sans-serif;
}
body {
background: var(--bg);
color: #222;
}
/* 登录页 */
.login-box {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.login-card {
background: #fff;
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 2.5rem 3rem;
width: 360px;
text-align: center;
}
.login-card img {
width: 100px;
margin: 0 auto 1rem;
}
.login-card h2 {
margin-bottom: 1.5rem;
font-weight: 500;
}
.login-card input {
width: 100%;
padding: 0.75em 1em;
margin-bottom: 1rem;
border: 1px solid #ddd;
border-radius: 8px;
font-size: 1rem;
transition: border .3s;
}
.login-card input:focus {
border-color: var(--primary);
outline: none;
}
.btn-primary {
width: 100%;
padding: 0.75em;
background: var(--primary);
color: #fff;
border: none;
border-radius: 8px;
font-size: 1rem;
cursor: pointer;
transition: background .3s;
}
.btn-primary:hover {
background: var(--secondary);
}
.msg {
margin-top: .5rem;
color: var(--danger);
font-size: .9rem;
}

/* 控制台 */
.ctrl-box {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.ctrl-header {
background: #fff;
box-shadow: var(--shadow);
padding: 1rem 2rem;
display: flex;
align-items: center;
justify-content: space-between;
}
.ctrl-header h2 {
font-weight: 500;
}
.btn-secondary {
padding: 0.5em 1.2em;
background: transparent;
color: var(--primary);
border: 1px solid var(--primary);
border-radius: 8px;
cursor: pointer;
transition: all .3s;
}
.btn-secondary:hover {
background: var(--primary);
color: #fff;
}
.ctrl-main {
flex: 1;
padding: 2rem;
max-width: 1200px;
margin: auto;
width: 100%;
}
.card {
background: #fff;
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 1.5rem;
margin-bottom: 2rem;
}
.card h3 {
margin-bottom: 1rem;
font-weight: 500;
}
.form-line {
display: flex;
gap: 1rem;
flex-wrap: wrap;
align-items: center;
}
.form-line select,
.form-line input {
flex: 1;
min-width: 180px;
padding: 0.6em;
border: 1px solid #ddd;
border-radius: 8px;
}
.del-grid {
display: grid;
gap: 1rem;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
margin-top: 1rem;
}
.del-card {
background: #f9fafb;
border: 1px solid #e5e7eb;
border-radius: 8px;
overflow: hidden;
transition: transform .2s, opacity .3s;
}
.del-card:hover {
transform: translateY(-2px);
}
.del-card img {
width: 100%;
height: 140px;
object-fit: cover;
}
.del-info {
display: flex;
justify-content: space-between;
align-items: center;
padding: .5rem .75rem;
font-size: .9rem;
}
.btn-danger {
padding: .4em .8em;
background: var(--danger);
color: #fff;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: .8rem;
transition: background .3s;
}
.btn-danger:hover {
background: #c33;
}

/* 响应式 */
@media (max-width: 600px) {
.login-card {
width: 90%;
padding: 2rem;
}
.form-line {
flex-direction: column;
}
.form-line select,
.form-line input,
.btn-primary {
width: 100%;
}
}