/* admin/style.css — 后台管理样式 */
* { box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: #f2f4f8;
    margin: 0;
    color: #333;
    font-size: 14px;
}
a { color: #2f6fde; text-decoration: none; }
a:hover { text-decoration: underline; }

/* 顶栏 */
.topbar {
    background: #1f2d3d;
    color: #fff;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.topbar-title { font-size: 15px; font-weight: bold; }
.topbar-right { font-size: 13px; }
.topbar-right a { color: #9fc1f5; margin-left: 12px; }

.wrap { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.page-head h2 { font-size: 18px; margin: 0; }

/* 按钮 */
.btn {
    display: inline-block;
    background: #2f6fde;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { background: #2560c5; text-decoration: none; }
.btn-plain { background: #fff; color: #2f6fde; border: 1px solid #2f6fde; }
.btn-plain:hover { background: #eef4fd; }
.btn-danger { background: #d33; }
.btn-danger:hover { background: #b22; }
.btn-small { padding: 3px 10px; font-size: 12px; }
.btn-block { width: 100%; padding: 11px 0; font-size: 15px; }

/* 提示 */
.alert-ok {
    background: #eaf9ef; border: 1px solid #a9e2bf; color: #17753c;
    border-radius: 4px; padding: 10px 14px; margin-bottom: 16px;
}
.alert-err {
    background: #fdecec; border: 1px solid #f5b5b5; color: #b32d2d;
    border-radius: 4px; padding: 10px 14px; margin-bottom: 16px; line-height: 1.8;
}

/* 列表 */
.list-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.list-table th, .list-table td {
    border-bottom: 1px solid #edf0f5;
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
}
.list-table th { background: #f7f9fc; color: #666; font-weight: normal; }
.list-table .thumb { width: 40px; height: 52px; object-fit: cover; border: 1px solid #eee; }
.list-table .empty { text-align: center; color: #999; padding: 40px 0; }
.list-table .ops a { margin-right: 10px; white-space: nowrap; }

/* 编辑表单 */
.sec-title {
    font-size: 15px;
    font-weight: bold;
    margin: 22px 0 10px;
    padding-left: 8px;
    border-left: 3px solid #2f6fde;
}
.form-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.form-table td, .form-table th {
    border: 1px solid #edf0f5;
    padding: 8px 10px;
    vertical-align: middle;
}
.form-table .flabel {
    width: 170px;
    background: #f7f9fc;
    color: #666;
    white-space: normal;
}
.form-table .flabel i { color: #d33; font-style: normal; }
.form-table input[type="text"],
.form-table input[type="date"],
.form-table select {
    width: 100%;
    padding: 7px 9px;
    border: 1px solid #d5dbe5;
    border-radius: 4px;
    font-size: 14px;
}
.input-disabled { background: #f2f3f5; color: #888; }
.photo-preview { margin-top: 8px; }
.photo-preview img { width: 90px; border: 1px solid #ddd; border-radius: 4px; }
.photo-tip { color: #999; font-size: 12px; margin-top: 4px; }

/* 历史记录表 */
.hist-table { margin-bottom: 10px; }
.hist-table th { background: #f7f9fc; color: #666; font-weight: normal; font-size: 13px; }
.hist-table input, .hist-table select { min-width: 90px; }
.hist-table .seq { text-align: center; color: #999; }

.form-actions { margin: 24px 0 40px; text-align: center; }
.form-actions .btn { margin: 0 6px; }

/* 登录页 */
.login-body { display: block; }
.login-box {
    max-width: 380px;
    margin: 90px auto;
    background: #fff;
    border-radius: 8px;
    padding: 32px 34px;
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.login-box h1 { font-size: 19px; margin: 0 0 4px; text-align: center; }
.login-sub { text-align: center; color: #999; font-size: 13px; margin-bottom: 22px; }
.login-box .form-row { margin-bottom: 16px; }
.login-box label { display: block; margin-bottom: 6px; color: #555; }
.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #d5dbe5;
    border-radius: 4px;
    font-size: 14px;
}
.remember-row label { color: #777; font-size: 13px; cursor: pointer; }
.remember-row input { vertical-align: middle; margin-right: 4px; }
