/* 经纪人申请审核页面样式 - PC端专用 */
.agent-page {
    padding: 24px;
    background: #f5f6fa;
    min-height: calc(100vh - 140px);
}

/* 顶部导航区域 */
.agent-page .top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.agent-page .nav-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.agent-page .nav-icon {
    font-size: 1.5rem;
}

.agent-page .nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 筛选下拉框 */
.agent-page .status-filter {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 160px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.agent-page .status-filter:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.agent-page .status-filter:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* 刷新按钮 */
.agent-page .refresh-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.agent-page .refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.agent-page .refresh-btn svg {
    transition: transform 0.3s ease;
}

.agent-page .refresh-btn:hover svg {
    transform: rotate(180deg);
}

/* 统计栏 */
.agent-page .stats-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 0;
}

.agent-page .stat-item {
    flex: 1;
    max-width: 180px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.agent-page .stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.agent-page .stat-item.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
}

.agent-page .stat-item.pending {
    border-left: 4px solid #ffc107;
}

.agent-page .stat-item.approved {
    border-left: 4px solid #28a745;
}

.agent-page .stat-item.rejected {
    border-left: 4px solid #dc3545;
}

.agent-page .stat-item.suspended {
    border-left: 4px solid #6c757d;
}

.agent-page .stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    line-height: 1;
}

.agent-page .stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* 加载状态 */
.agent-page .loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
}

.agent-page .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 申请列表容器 */
.agent-page .app-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* 空状态 */
.agent-page .empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #999;
}

.agent-page .empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.agent-page .empty p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.agent-page .clear-btn {
    padding: 10px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.agent-page .clear-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

/* 申请卡片列表 - 表格形式 */
.agent-page .cards-grid {
    display: flex;
    flex-direction: column;
}

/* 表格样式 */
.agent-page .app-table {
    width: 100%;
    border-collapse: collapse;
}

.agent-page .app-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.agent-page .app-table th {
    padding: 16px 20px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.agent-page .app-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
    cursor: pointer;
}

.agent-page .app-table tbody tr:hover {
    background: #f8f9fa;
}

.agent-page .app-table tbody tr:last-child {
    border-bottom: none;
}

.agent-page .app-table td {
    padding: 16px 20px;
    font-size: 0.95rem;
    color: #495057;
    vertical-align: middle;
}

/* 用户信息列 */
.agent-page .user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-page .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.agent-page .user-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.agent-page .user-detail .name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.agent-page .user-detail .phone {
    font-size: 0.85rem;
    color: #666;
}

/* 状态标签 */
.agent-page .status-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.agent-page .status-tag.pending {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.agent-page .status-tag.approved {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.agent-page .status-tag.rejected {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.agent-page .status-tag.suspended {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* 信息行 */
.agent-page .info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-page .info-row .label {
    color: #999;
    font-size: 0.85rem;
    white-space: nowrap;
}

.agent-page .info-row code {
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.85rem;
    color: #333;
}

/* 时间列 */
.agent-page .time-cell {
    white-space: nowrap;
    font-size: 0.9rem;
}

.agent-page .time-cell .time-ago {
    color: #999;
    font-size: 0.85rem;
}

/* 操作提示 */
.agent-page .view-hint {
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.agent-page .app-card:hover .view-hint,
.agent-page .app-table tbody tr:hover .view-hint {
    opacity: 1;
}

/* 分页 */
.agent-page .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.agent-page .page-btn {
    padding: 8px 14px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.agent-page .page-btn:hover:not(:disabled) {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.agent-page .page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.agent-page .page-info {
    padding: 0 16px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* 模态框样式 */
.agent-page .modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.agent-page .modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
}

.agent-page .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.agent-page .modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.agent-page .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.agent-page .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.agent-page .modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* 模态框内用户卡片 */
.agent-page .user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
}

.agent-page .avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.agent-page .user-detail h4 {
    margin: 0 0 4px 0;
    font-size: 1.2rem;
    color: #333;
}

.agent-page .user-detail p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

.agent-page .status-tag-lg {
    margin-left: auto;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* 信息组 */
.agent-page .info-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.agent-page .info-item {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.agent-page .info-item.full-width {
    grid-column: 1 / -1;
}

.agent-page .info-item .label {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.agent-page .info-item span,
.agent-page .info-item code {
    font-size: 0.95rem;
    color: #333;
    word-break: break-all;
}

.agent-page .info-item code {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, monospace;
}

/* 照片展示区域 */
.agent-page .photos-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.agent-page .photo-box {
    flex: 1;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 2px dashed #dee2e6;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.agent-page .photo-box:hover {
    border-color: #667eea;
    background: #f0f3ff;
}

.agent-page .photo-label {
    display: block;
    padding: 12px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    background: #f0f0f0;
    font-weight: 500;
}

.agent-page .photo-box img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

/* 审核操作区 */
.agent-page .review-actions {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.agent-page .notes-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.agent-page .notes-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.agent-page .notes-input::placeholder {
    color: #adb5bd;
}

.agent-page .action-btns {
    display: flex;
    gap: 12px;
}

.agent-page .action-btns .btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.agent-page .action-btns .btn.approve {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.agent-page .action-btns .btn.approve:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.agent-page .action-btns .btn.reject {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.agent-page .action-btns .btn.reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.agent-page .action-btns .btn.suspend {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.agent-page .action-btns .btn.suspend:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

/* 审核记录 */
.agent-page .review-log {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.agent-page .log-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.agent-page .log-time {
    margin-left: auto;
    font-size: 0.85rem;
    color: #999;
}

.agent-page .log-notes {
    width: 100%;
    margin: 8px 0 0 0;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* 图片预览 */
.agent-page .image-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    cursor: pointer;
    animation: fadeIn 0.2s ease-out;
}

.agent-page .image-preview img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.agent-page .preview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.8rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.agent-page .preview-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 表格滚动容器 */
.agent-page .table-container {
    max-height: calc(100vh - 360px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* 自定义滚动条 */
.agent-page .table-container::-webkit-scrollbar,
.agent-page::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.agent-page .table-container::-webkit-scrollbar-track,
.agent-page::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.agent-page .table-container::-webkit-scrollbar-thumb,
.agent-page::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.agent-page .table-container::-webkit-scrollbar-thumb:hover,
.agent-page::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 操作按钮样式 */
.agent-page .action-cell {
    white-space: nowrap;
}

.agent-page .action-btn {
    padding: 6px 12px;
    margin-right: 6px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.agent-page .action-btn.view {
    background: #667eea;
    color: white;
}

.agent-page .action-btn.view:hover {
    background: #5a6fd8;
}

.agent-page .action-btn.approve {
    background: #28a745;
    color: white;
}

.agent-page .action-btn.approve:hover {
    background: #218838;
}

.agent-page .action-btn.reject {
    background: #dc3545;
    color: white;
}

.agent-page .action-btn.reject:hover {
    background: #c82333;
}
