/* 冷库视界 后台样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #23303d; background: #eef1f4; line-height: 1.6;
}
a { color: #0d6e6e; text-decoration: none; }

/* 登录页 */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { background: #fff; border-radius: 10px; padding: 36px; width: 380px; box-shadow: 0 8px 30px rgba(18, 58, 74, .12); }
.login-card h1 { font-size: 20px; margin-bottom: 20px; text-align: center; color: #123a4a; }

/* 框架 */
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
    width: 210px; background: #123a4a; color: #cfe0e8; flex-shrink: 0;
    display: flex; flex-direction: column;
}
.admin-brand { padding: 20px; font-size: 17px; font-weight: 700; color: #fff; }
.admin-side nav { display: flex; flex-direction: column; flex: 1; }
.admin-side nav a { color: #cfe0e8; padding: 12px 20px; font-size: 14px; }
.admin-side nav a:hover, .admin-side nav a.active { background: #0d6e6e; color: #fff; }
.logout-form { padding: 16px 20px; }
.logout-form button {
    width: 100%; background: transparent; border: 1px solid #4a6b7d; color: #cfe0e8;
    border-radius: 4px; padding: 8px; cursor: pointer;
}
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
    background: #fff; padding: 14px 28px; display: flex; justify-content: space-between;
    border-bottom: 1px solid #e2e7eb; font-size: 14px;
}
.admin-body { padding: 28px; }
.admin-body h1 { font-size: 20px; margin-bottom: 18px; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.page-head h1 { margin: 0; }

/* 统计卡 */
.stat-cards { display: flex; gap: 18px; flex-wrap: wrap; }
.stat-card { background: #fff; border-radius: 8px; padding: 24px 32px; min-width: 180px; }
.stat-num { font-size: 32px; font-weight: 700; color: #0d6e6e; }
.stat-label { color: #6a7680; font-size: 13px; margin-top: 4px; }

/* 表格 */
.table { width: 100%; background: #fff; border-radius: 8px; border-collapse: collapse; overflow: hidden; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid #eef0f2; font-size: 14px; }
.table th { background: #f5f7f9; color: #4a5a66; font-weight: 600; }
.table tr:last-child td { border-bottom: none; }
.msg-cell { max-width: 320px; }
.ops { display: flex; gap: 10px; align-items: center; }
.ops form { display: inline; }
.ops button {
    background: none; border: none; color: #0d6e6e; cursor: pointer; font-size: 14px; padding: 0;
}
.ops .link-danger { color: #b3261e; }

/* 表单 */
.form { background: #fff; border-radius: 8px; padding: 26px; max-width: 520px; }
.form.wide { max-width: 860px; }
.form label { display: block; margin-bottom: 16px; font-weight: 600; font-size: 14px; }
.form input[type=text], .form input[type=password], .form input[type=tel],
.form input[type=number], .form textarea, .form select {
    display: block; width: 100%; margin-top: 6px; padding: 9px 12px;
    border: 1px solid #cfd8de; border-radius: 4px; font: inherit; font-weight: 400;
}
.form.inline { display: flex; gap: 12px; padding: 16px; margin-bottom: 18px; max-width: none; align-items: center; }
.form.inline input { margin: 0; }
.form-row { display: flex; gap: 16px; }
.form-row label { flex: 1; }
.checkboxes { gap: 24px; }
.checkboxes label { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row img { height: 42px; border-radius: 4px; cursor: pointer; }

.btn {
    background: #eef1f4; color: #23303d; border: none; border-radius: 4px;
    padding: 9px 22px; font-size: 14px; cursor: pointer; display: inline-block;
}
.btn.primary, .form button[type=submit] { background: #0d6e6e; color: #fff; }

.alert { padding: 10px 16px; border-radius: 6px; margin-bottom: 16px; }
.alert.success { background: #e6f6ec; color: #18794e; }
.alert.error { background: #fdecea; color: #b3261e; }
.pager { display: flex; gap: 18px; align-items: center; justify-content: center; margin: 24px 0; }

@media (max-width: 860px) {
    .admin-shell { flex-direction: column; }
    .admin-side { width: 100%; }
}
