/**
 * 版权信息
 * 开发作者：程序员海阔
 * QQ：726177359
 */

/* 后台管理样式 */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f4f6fb; color: #233044; }
a { color: #5b6cff; text-decoration: none; }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 230px; background: #1f2740; color: #cdd5e8; padding: 24px 16px; flex-shrink: 0; }
.sidebar h1 { font-size: 18px; color: #fff; margin: 0 0 4px; }
.sidebar .sub { font-size: 12px; color: #8a93ad; margin-bottom: 24px; }
.sidebar a { display: block; padding: 11px 14px; border-radius: 10px; color: #cdd5e8; margin-bottom: 6px; font-weight: 600; }
.sidebar a:hover, .sidebar a.active { background: rgba(91,108,255,.25); color: #fff; }
.sidebar .logout { margin-top: 24px; color: #ff8fb1; }
.main { flex: 1; padding: 32px 40px; overflow: auto; }
.main h2 { margin: 0 0 6px; }
.main .crumb { color: #8a93ad; font-size: 14px; margin-bottom: 24px; }
.card { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 8px 30px rgba(31,39,64,.06); margin-bottom: 24px; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 10px; font-weight: 700; cursor: pointer; border: 0; font-size: 14px; }
.btn-primary { background: linear-gradient(120deg,#5b6cff,#9b6bff); color: #fff; }
.btn-ghost { background: #eef1f9; color: #233044; }
.btn-danger { background: #ffe3e8; color: #e1493e; }
.btn:hover { opacity: .92; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 14px; }
.field input, .field textarea, .field select {
    width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid #dfe5f3; font-size: 14px; font-family: inherit; background: #fff; color: #233044;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: #5b6cff; box-shadow: 0 0 0 3px rgba(91,108,255,.15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(31,39,64,.06); }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid #eef1f9; font-size: 14px; }
th { background: #f7f9fd; color: #5b6b82; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.actions a, .actions button { margin-right: 8px; font-size: 13px; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.alert-success { background: rgba(46,155,91,.12); color: #2e9b5b; }
.alert-error { background: rgba(225,73,62,.12); color: #e1493e; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 18px; }
.stat { background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 8px 30px rgba(31,39,64,.06); }
.stat .n { font-size: 30px; font-weight: 800; background: linear-gradient(90deg,#5b6cff,#9b6bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { color: #8a93ad; font-size: 14px; }
.muted { color: #8a93ad; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#5b6cff,#9b6bff); }
.login-box { background: #fff; border-radius: 20px; padding: 40px; width: 360px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.login-box h1 { margin: 0 0 24px; text-align: center; }
@media (max-width: 760px) {
    .layout { flex-direction: column; }
    .sidebar { width: 100%; }
    .row2, .row3 { grid-template-columns: 1fr; }
    .main { padding: 20px; }
}
