/* ============================================
   平台管理 - 用户管理页面样式
   ============================================ */

.pm-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pm-search-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 12px;
    flex: 1;
    min-width: 220px;
    max-width: 360px;
}

.pm-search-box input {
    background: transparent;
    border: none;
    color: #d0d0e0;
    font-size: 13px;
    outline: none;
    width: 100%;
}

.pm-search-box input::placeholder {
    color: #6a6a80;
}

.pm-filter-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 7px 12px;
    color: #d0d0e0;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.pm-filter-select option {
    background: #1a1f35;
    color: #d0d0e0;
}

.pm-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.pm-btn-primary {
    background: linear-gradient(135deg, #e85d2a, #c44518);
    color: #fff;
}

.pm-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 93, 42, 0.3);
}

.pm-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #c0c0d0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pm-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.pm-btn-danger {
    background: rgba(230, 60, 60, 0.15);
    color: #ff8080;
    border: 1px solid rgba(230, 60, 60, 0.25);
}

.pm-btn-danger:hover {
    background: rgba(230, 60, 60, 0.25);
}

.pm-btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.pm-table-wrap {
    background: rgba(20, 25, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.pm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pm-table thead {
    background: rgba(255, 255, 255, 0.04);
}

.pm-table th {
    padding: 12px 14px;
    text-align: left;
    color: #8a8aa0;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.pm-table td {
    padding: 10px 14px;
    color: #c0c0d0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pm-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.pm-table tbody tr:last-child td {
    border-bottom: none;
}

.pm-role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.pm-role-super_admin {
    background: rgba(232, 93, 42, 0.15);
    color: #e8a070;
    border: 1px solid rgba(232, 93, 42, 0.2);
}

.pm-role-enterprise_admin {
    background: rgba(100, 150, 255, 0.12);
    color: #80a0e0;
    border: 1px solid rgba(100, 150, 255, 0.2);
}

.pm-role-operator {
    background: rgba(80, 200, 120, 0.12);
    color: #80c890;
    border: 1px solid rgba(80, 200, 120, 0.2);
}

.pm-role-gov_supervisor {
    background: rgba(180, 130, 255, 0.12);
    color: #b090d0;
    border: 1px solid rgba(180, 130, 255, 0.2);
}

.pm-status-active {
    color: #80c890;
    font-weight: 600;
}

.pm-status-disabled {
    color: #ff8080;
    font-weight: 600;
}

.pm-actions {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

.pm-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 13px;
    color: #8a8aa0;
}

.pm-page-btns {
    display: flex;
    gap: 6px;
}

.pm-page-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #c0c0d0;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.pm-page-btn:hover:not(:disabled) {
    background: rgba(255, 140, 60, 0.1);
    border-color: rgba(255, 140, 60, 0.3);
}

.pm-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pm-page-btn.active {
    background: rgba(232, 93, 42, 0.2);
    border-color: rgba(232, 93, 42, 0.4);
    color: #e8a070;
}

/* ========== 弹窗 ========== */
.pm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.pm-modal-overlay.show {
    display: flex;
}

.pm-modal {
    width: 480px;
    max-width: 90vw;
    background: rgba(25, 30, 45, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pm-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pm-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #e0e0e8;
    margin: 0;
}

.pm-modal-close {
    background: none;
    border: none;
    color: #8a8aa0;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.pm-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.pm-modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.pm-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.pm-form-group {
    margin-bottom: 18px;
}

.pm-form-label {
    display: block;
    font-size: 12px;
    color: #8a8aa0;
    margin-bottom: 6px;
    font-weight: 600;
}

.pm-form-label .required {
    color: #e85d2a;
}

.pm-form-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e0e0e8;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.pm-form-input:focus {
    border-color: rgba(255, 140, 60, 0.5);
}

.pm-form-input::placeholder {
    color: #5a5a70;
}

.pm-form-select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e0e0e8;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
}

.pm-form-select option {
    background: #1a1f35;
    color: #e0e0e8;
}

.pm-form-row {
    display: flex;
    gap: 14px;
}

.pm-form-row .pm-form-group {
    flex: 1;
}

.pm-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6a6a80;
    font-size: 14px;
}

.pm-empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.4;
}
