/* 管理页面 — 清爽蓝白配色版
 * 原始金色传奇风已备份为：css/admin-classic-backup.css
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", Arial, sans-serif;
    background: #f3f5f9;
    color: #2c3e50;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    width: 92%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== 顶部导航 ===== */
.admin-header {
    background: #ffffff;
    border: 1px solid #e4e8ef;
    border-radius: 8px;
    padding: 15px 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    flex-wrap: wrap;
    gap: 10px;
}

.admin-header h1 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.admin-header .nav-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-header .nav-links a {
    color: #54667a;
    text-decoration: none;
    padding: 6px 15px;
    border: 1px solid #e4e8ef;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s;
    background: #ffffff;
}

.admin-header .nav-links a:hover {
    background: #eef4fd;
    color: #2f80ed;
    border-color: #c8dbf6;
}

.admin-header .nav-links a.active {
    background: #2f80ed;
    color: #ffffff;
    border-color: #2f80ed;
    font-weight: 600;
}

/* ===== 表单容器 ===== */
.form-container {
    background: #ffffff;
    border: 1px solid #e4e8ef;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.form-container h2 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef1f6;
}

/* ===== 表单组 ===== */
.form-group {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
}

.form-group label {
    display: inline-block;
    width: 140px;
    color: #3a4a5e;
    font-weight: 500;
    font-size: 14px;
    padding-top: 8px;
    text-align: right;
    padding-right: 15px;
    flex-shrink: 0;
}

.form-group label .required {
    color: #e74c3c;
    margin-left: 3px;
}

.form-group .form-control {
    flex: 1;
    max-width: 560px;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #d6dbe5;
    border-radius: 4px;
    color: #2c3e50;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2f80ed;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 6px;
}

.form-group .checkbox-group label {
    width: auto;
    padding: 0;
    text-align: left;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    color: #3a4a5e;
}

.form-group .checkbox-group label input[type="checkbox"] {
    margin-right: 5px;
    width: 16px;
    height: 16px;
    accent-color: #2f80ed;
}

.form-group .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    padding-top: 6px;
}

.form-group .radio-group label {
    width: auto;
    padding: 0;
    text-align: left;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    color: #3a4a5e;
}

.form-group .radio-group label input[type="radio"] {
    margin-right: 5px;
    accent-color: #2f80ed;
}

/* ===== 按钮 ===== */
.btn-group {
    margin-top: 25px;
    padding-left: 140px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 9px 22px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #2f80ed;
    color: #ffffff;
    border-color: #2f80ed;
    box-shadow: 0 2px 6px rgba(47, 128, 237, 0.2);
}

.btn-primary:hover {
    background: #1f6fd6;
    border-color: #1f6fd6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(47, 128, 237, 0.28);
}

.btn-secondary {
    background: #ffffff;
    color: #54667a;
    border: 1px solid #d6dbe5;
}

.btn-secondary:hover {
    background: #f7f9fc;
    border-color: #2f80ed;
    color: #2f80ed;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.btn-danger:hover {
    background: #d63a2b;
    border-color: #d63a2b;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.25);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

/* ===== 管理列表表格 ===== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e4e8ef;
    border-radius: 6px;
    overflow: hidden;
}

.admin-table thead th {
    background: #f7f9fc;
    color: #34495e;
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #eaeef5;
    white-space: nowrap;
}

.admin-table tbody tr {
    transition: background 0.2s;
}

.admin-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.admin-table tbody tr:nth-child(even) {
    background: #fafbfd;
}

.admin-table tbody tr:hover {
    background: #eef4fd;
}

.admin-table td {
    padding: 10px;
    border: 1px solid #eef1f6;
    font-size: 13px;
    color: #3a4a5e;
    vertical-align: middle;
}

.admin-table .game-name {
    font-weight: 600;
    color: #2c3e50;
}

.admin-table .action-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== 标签 ===== */
.tag {
    display: inline-block;
    padding: 2px 7px;
    font-size: 11px;
    color: #fff;
    border-radius: 3px;
    margin-right: 3px;
    letter-spacing: 0.3px;
}

.tag-hot  { background: #e74c3c; }
.tag-rec  { background: #27ae60; }
.tag-new  { background: #2f80ed; }
.tag-wait { background: #f39c12; }
.tag-pass { background: #27ae60; }
.tag-fail { background: #c0392b; }

/* ===== 后台版本/经验 突出显示（占满整格，与首页视觉一致，杜绝错行）===== */
.admin-version {
    display: block;
    width: 100%;
    box-sizing: border-box;
    color: #e67e22;
    font-weight: 700;
    background: linear-gradient(135deg, #fff4e5 0%, #fff9ee 100%);
    border-radius: 6px;
    padding: 8px 12px;
    text-align: center;
    letter-spacing: 0.3px;
    border: 1px solid #ffe1b8;
    line-height: 1.25;
}
.admin-exp {
    display: block;
    width: 100%;
    box-sizing: border-box;
    color: #2f80ed;
    font-weight: 700;
    background: linear-gradient(135deg, #eef4fd 0%, #f7f9fc 100%);
    border-radius: 6px;
    padding: 8px 12px;
    text-align: center;
    letter-spacing: 0.3px;
    border: 1px solid #d8e6f7;
    line-height: 1.25;
}

/* ===== 审核状态提示条 ===== */
.review-notice {
    background: #fff9e8;
    border: 1px solid #ffe394;
    border-radius: 6px;
    padding: 12px 18px;
    margin-bottom: 25px;
    color: #8a6d1f;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 10px;
}
.review-notice.success {
    background: #e9f8ee;
    border-color: #9be1b2;
    color: #1a7a3a;
}
.review-notice .icon {
    font-size: 22px;
    flex-shrink: 0;
}

/* ===== Tab切换 ===== */
.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e4e8ef;
    flex-wrap: wrap;
}
.admin-tabs .tab {
    padding: 10px 20px;
    background: #ffffff;
    color: #54667a;
    border: 1px solid #e4e8ef;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
    top: 2px;
}
.admin-tabs .tab:hover {
    background: #f7f9fc;
    color: #2f80ed;
}
.admin-tabs .tab.active {
    background: #ffffff;
    color: #2f80ed;
    border-color: #2f80ed;
    border-top: 2px solid #2f80ed;
    top: 1px;
    font-weight: 600;
}
.admin-tabs .tab .badge {
    display: inline-block;
    padding: 1px 8px;
    background: #e74c3c;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 6px;
    font-weight: normal;
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}

/* ===== 登录状态 ===== */
.user-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #54667a;
    font-size: 13px;
    padding: 6px 12px;
    background: #f7f9fc;
    border: 1px solid #e4e8ef;
    border-radius: 4px;
}
.user-bar .user-name {
    font-weight: 600;
    color: #2c3e50;
}
.user-bar .btn-logout {
    padding: 4px 10px;
    background: #ffffff;
    color: #e74c3c;
    border: 1px solid #f3c8c3;
    border-radius: 3px;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.user-bar .btn-logout:hover {
    background: #e74c3c;
    color: #ffffff;
    border-color: #e74c3c;
}

/* ===== 管理员头部 ===== */
.admin-header .user-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ===== 提交人信息 ===== */
.submitter-info {
    font-size: 11px;
    color: #8492a5;
    line-height: 1.4;
    margin-top: 4px;
}

/* ===== 设置区块 ===== */
.settings-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #fafbfd;
    border: 1px solid #eef1f6;
    border-radius: 6px;
}
.settings-section h3 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef1f6;
}

/* ===== 设置面板子Tab（管理员账号/密码分离） ===== */
.admin-subtabs {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
    border-bottom: 2px solid #e4e8ef;
    flex-wrap: wrap;
}
.admin-subtabs .subtab {
    padding: 10px 20px;
    background: #ffffff;
    color: #54667a;
    border: 1px solid #e4e8ef;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
    top: 2px;
    user-select: none;
}
.admin-subtabs .subtab:hover {
    background: #f7f9fc;
    color: #2f80ed;
}
.admin-subtabs .subtab.active {
    background: #ffffff;
    color: #2f80ed;
    border-color: #2f80ed;
    border-top: 2px solid #2f80ed;
    top: 1px;
    font-weight: 600;
}
.subtab-panel {
    display: none;
    background: #ffffff;
    padding: 20px;
}
.subtab-panel.active {
    display: block;
}
.settings-section .hint-text {
    color: #8b6914;
    font-size: 12px;
    margin-left: 10px;
}

/* ===== 提示框 ===== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 14px 26px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    animation: toastIn 0.3s ease-out;
}

.toast-success { background: #27ae60; border: 1px solid #1f8c4e; }
.toast-error   { background: #e74c3c; border: 1px solid #c0392b; }
.toast-info    { background: #2f80ed; border: 1px solid #1f6fd6; }

@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1);   }
}

/* ===== 统计卡片 ===== */
.stats-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 160px;
    background: #ffffff;
    border: 1px solid #e4e8ef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-2px); }

.stat-card .stat-value {
    font-size: 30px;
    font-weight: 700;
    color: #2f80ed;
}

.stat-card .stat-label {
    font-size: 13px;
    color: #8492a5;
    margin-top: 5px;
}

/* ===== 工具栏 ===== */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.toolbar .search-box {
    display: flex;
    gap: 10px;
}

.toolbar .search-box input {
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #d6dbe5;
    border-radius: 4px;
    color: #2c3e50;
    font-size: 13px;
    width: 250px;
    transition: all 0.2s;
}

.toolbar .search-box input:focus {
    outline: none;
    border-color: #2f80ed;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #d6dbe5;
    color: #54667a;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
    background: #eef4fd;
    color: #2f80ed;
    border-color: #c8dbf6;
}

.pagination button.active {
    background: #2f80ed;
    color: #ffffff;
    border-color: #2f80ed;
    font-weight: 600;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== 模态框 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 40, 70, 0.45);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.modal-box {
    background: #ffffff;
    border: 1px solid #e4e8ef;
    border-radius: 8px;
    padding: 28px;
    max-width: 450px;
    width: 92%;
    text-align: center;
    box-shadow: 0 18px 48px rgba(20, 40, 70, 0.2);
}

.modal-box h3 {
    color: #2c3e50;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 14px;
}

.modal-box p {
    color: #4a5c72;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.modal-box .modal-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}
