/* ==================== 查老赖页面 ==================== */
.check-debtor-page {
    min-height: 100vh;
    background: #f5f5f5;
}

/* 导航栏 */
.cd-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10;
}

.cd-nav .nav-back {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cd-nav .nav-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.cd-nav .nav-spacer {
    width: 32px;
}

/* 搜索区域 */
.cd-search-section {
    padding: 20px 16px;
    background: #fff;
    margin-bottom: 12px;
}

.cd-search-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 24px;
    padding: 4px 4px 4px 16px;
}

.cd-search-icon {
    font-size: 18px;
    margin-right: 8px;
}

.cd-search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 15px;
    outline: none;
    padding: 10px 0;
}

.cd-search-input::placeholder {
    color: #999;
}

.cd-search-btn {
    background: linear-gradient(135deg, #FF6B00, #FF9500);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.cd-search-tip {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin: 12px 0 0;
}

/* 欠款人卡片 */
.cd-debtor-card {
    background: linear-gradient(135deg, #FF8C42, #FF6B35);
    margin: 16px;
    border-radius: 16px;
    padding: 20px;
    color: #fff;
}

.cd-debtor-info {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.cd-debtor-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin-right: 12px;
}

.cd-debtor-detail {
    flex: 1;
}

.cd-debtor-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cd-debtor-phone {
    font-size: 13px;
    opacity: 0.9;
}

.cd-total-amount {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.cd-amount-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.cd-amount-value {
    font-size: 32px;
    font-weight: 800;
}

/* 案件列表 */
.cd-cases-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 16px 12px;
}

.cd-cases-list {
    padding: 0 16px 20px;
}

.cd-case-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.cd-case-amount {
    font-size: 16px;
    font-weight: 700;
    color: #FF6B35;
    margin-bottom: 4px;
}

.cd-case-desc {
    font-size: 12px;
    color: #999;
}

.cd-case-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.cd-case-status.pending {
    background: #FFF3E6;
    color: #FF9500;
}

.cd-case-status.processing {
    background: #E6F7FF;
    color: #1890FF;
}

.cd-case-status.completed {
    background: #F6FFED;
    color: #52C41A;
}

.cd-case-status.rejected {
    background: #FFF1F0;
    color: #FF4D4F;
}

/* 未找到 */
.cd-not-found {
    text-align: center;
    padding: 60px 20px;
}

.cd-not-found-icon {
    font-size: 60px;
    margin-bottom: 16px;
}

.cd-not-found-text {
    font-size: 15px;
    color: #999;
}

/* 初始提示 */
.cd-init-tip {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.cd-tip-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.cd-tip-sub {
    font-size: 13px;
    margin-top: 8px;
}

/* 加载中 */
.cd-loading {
    text-align: center;
    padding: 60px 20px;
}

.cd-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f5f5f5;
    border-top-color: #FF6B00;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: cdSpin 1s linear infinite;
}

@keyframes cdSpin {
    to { transform: rotate(360deg); }
}

.cd-empty {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}
