.ap-admin-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ap-admin-noauth {
    text-align: center;
    padding: 80px 20px;
    color: #64748b;
}
.ap-admin-noauth i {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 16px;
    display: block;
}

.ap-admin-header {
    margin-bottom: 24px;
}
.ap-admin-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ap-admin-header h2 i {
    color: #3b82f6;
}
.ap-admin-header p {
    color: #64748b;
    margin: 0;
    font-size: 14px;
}

/* 概览卡片 */
.ap-admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.ap-admin-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}
.ap-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ap-card-icon i {
    font-size: 24px;
    color: #3b82f6;
}
.ap-card-body {
    min-width: 0;
}
.ap-card-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}
.ap-card-value {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ap-status-on {
    color: #10b981;
}
.ap-status-off {
    color: #ef4444;
}

/* 区块 */
.ap-admin-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}
.ap-admin-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ap-admin-section h3 i {
    color: #3b82f6;
}

/* 操作区 */
.ap-admin-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.ap-action-divider {
    color: #cbd5e1;
}
.ap-action-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 280px;
}
.ap-action-form .ap-input {
    flex: 1;
}

/* 按钮 */
.ap-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.ap-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.ap-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.ap-btn-primary {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}
.ap-btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}
.ap-btn-secondary {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}
.ap-btn-secondary:hover {
    background: #059669;
    border-color: #059669;
}
.ap-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}
.ap-btn-danger {
    color: #ef4444;
    border-color: #fecaca;
    background: #fef2f2;
}
.ap-btn-danger:hover {
    background: #fee2e2;
}

/* 输入框 */
.ap-input {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    color: #334155;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.ap-input:focus {
    border-color: #3b82f6;
}
.ap-input-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* 下拉框 */
.ap-select {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    color: #334155;
    background: #fff;
    outline: none;
    cursor: pointer;
}

/* 筛选栏 */
.ap-admin-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* 结果提示 */
.ap-action-result {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}
.ap-action-result.ap-show {
    display: block;
}
.ap-action-result.ap-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.ap-action-result.ap-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.ap-action-result.ap-loading {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* 表格 */
.ap-table-wrap {
    overflow-x: auto;
}
.ap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.ap-table th {
    text-align: left;
    padding: 12px 16px;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
.ap-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}
.ap-table tr:hover td {
    background: #f8fafc;
}
.ap-table .ap-loading,
.ap-table .ap-empty {
    text-align: center;
    color: #94a3b8;
    padding: 40px;
}

/* 状态标签 */
.ap-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.ap-badge-success {
    background: #ecfdf5;
    color: #047857;
}
.ap-badge-failed {
    background: #fef2f2;
    color: #b91c1c;
}
.ap-badge-skipped {
    background: #fffbeb;
    color: #b45309;
}
.ap-badge-link_invalid {
    background: #fef2f2;
    color: #b91c1c;
}
.ap-badge-processing {
    background: #eff6ff;
    color: #1d4ed8;
}
.ap-badge-pending {
    background: #f8fafc;
    color: #64748b;
}

/* 分页 */
.ap-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
}
.ap-pagination button {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.ap-pagination button:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.ap-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.ap-pagination button.ap-active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}
.ap-pagination .ap-page-info {
    color: #64748b;
    font-size: 13px;
    margin: 0 8px;
}

/* 标题链接 */
.ap-title-link {
    color: #334155;
    text-decoration: none;
    font-weight: 500;
}
.ap-title-link:hover {
    color: #3b82f6;
}
.ap-title-text {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}
