/* Tab切换样式 */
.tabs-container {
    display: flex;
    background: white;
    margin: 0 16px 12px 16px;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.2s;
}

.tab-item.active {
    background: linear-gradient(135deg, #ff7eb3 0%, #E64377 100%);
    color: white;
    font-weight: 600;
}

/* 记录列表容器 */
.records-list {
    padding: 0;
}

/* 订单卡片样式 */
.record-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    margin: 0 12px 12px 12px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.2s;
}

.record-card:active {
    transform: scale(0.99);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.record-card-item {
    margin-bottom: 12px;
}

.record-card-item:last-child {
    margin-bottom: 0;
}

.record-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.record-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    word-break: break-word;
    line-height: 1.5;
}

.record-content {
    font-size: 14px;
    color: #333;
    word-break: break-word;
    line-height: 1.6;
    background: #f7f8fa;
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 4px;
}

.record-reply {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.record-reply-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.record-reply-content {
    font-size: 13px;
    color: #666;
    word-break: break-word;
    line-height: 1.5;
    background: #f0f9ff;
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 4px;
}

.record-reply-empty {
    font-size: 12px;
    color: #bbb;
    font-style: italic;
    background: #f5f5f5;
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 4px;
}

.record-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-processing {
    background: #fff4e6;
    color: #ff9800;
}

.status-sent {
    background: #e8f5e9;
    color: #4caf50;
}

.status-failed {
    background: #ffebee;
    color: #f44336;
}

.status-paid {
    background: #e8f5e9;
    color: #4caf50;
}

.status-unpaid {
    background: #f5f5f5;
    color: #999;
}

.status-refunded {
    background: #f3e8ff;
    color: #ff3706;
}

/* 详情弹窗样式 */
.detail-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    animation: fadeIn 0.3s;
}

.detail-modal-mask.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.detail-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    background: #fff;
    border-radius: 16px;
    z-index: 10001;
    display: none;
    animation: slideUp 0.3s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.detail-modal.show {
    display: block;
}

.detail-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.detail-modal-close:active {
    background: rgba(0, 0, 0, 0.08);
}

@keyframes slideUp {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.detail-modal-content {
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

.detail-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item {
    margin-bottom: 14px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.detail-content-box {
    background: #f7f8fa;
    padding: 12px;
    border-radius: 8px;
    margin-top: 6px;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
    font-size: 14px;
    color: #333;
}

/* 会话弹窗底部主按钮（与其他主操作按钮保持一致风格） */
.detail-modal-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff7eb3 0%, #E64377 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(230, 67, 119, 0.35);
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.detail-modal-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(230, 67, 119, 0.2);
}

/* 加载更多按钮 */
.load-more-btn {
    width: 100%;
    padding: 10px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    margin: 12px 0;
}

.load-more-btn:active {
    background: #f7f8fa;
}


