/* 退款申请页面专用样式 */

/* 提交按钮样式优化 */
.btn-primary-custom {
    padding: 12px 36px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary-custom:hover {
    background-color: #e65000;
    border-color: #e65000;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 105, 0, 0.2);
}

.btn-primary-custom:active {
    transform: translateY(0);
    box-shadow: none;
}

/* iPad 屏幕适配 */
/* iPad 通用优化 */
@media (min-width: 768px) {
    .card-custom {
        margin-bottom: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .form-group {
        margin-bottom: 24px;
    }

    .upload-area {
        padding: 30px;
    }

    .reason-tags {
        gap: 12px;
    }

    .reason-tag {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* iPad Mini (768px) */
@media (min-width: 768px) and (max-width: 819px) {
    .col-md-8 {
        flex: 0 0 90%;
        max-width: 90%;
    }

    .order-info {
        padding: 16px;
    }

    .btn-primary-custom {
        padding: 10px 24px;
    }

    /* 退款原因标签布局优化 */
    .reason-tags {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 0;
    }

    .reason-tag {
        margin: 0;
        flex-grow: 0;
        flex-shrink: 0;
    }

    .form-group {
        margin-bottom: 20px;
    }
}

/* iPad Air (820px) */
@media (min-width: 820px) and (max-width: 1023px) {
    .col-md-8 {
        flex: 0 0 85%;
        max-width: 85%;
    }

    .order-info {
        padding: 18px;
    }
}

/* iPad Pro (1024px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .col-md-8 {
        flex: 0 0 80%;
        max-width: 80%;
    }
}

/* 移动端按钮适配 */
@media (max-width: 767px) {
    .btn-primary-custom {
        width: 100%;
        padding: 10px 24px;
        font-size: 15px;
    }

    .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 10px;
    }

    .col-md-3 {
        width: 25%;
        max-width: 25%;
    }

    .col-md-7 {
        width: 50%;
        max-width: 50%;
    }

    .refund-types {
        flex-direction: column;
    }

    .reason-tags {
        flex-direction: row;
    }

    .reason-tag {
        text-align: left;
    }

    .order-info {
        padding: 15px;
    }

    .order-info .row {
        display: flex;
        align-items: flex-start;
        margin: 0;
    }

    .order-info .col-md-2,
    .order-info .col-md-6 {
        padding: 0;
    }

    .order-info .col-md-2:first-child {
        width: 60px;
        flex: 0 0 60px;
        margin-right: 12px;
    }

    .order-info .col-md-6 {
        flex: 1;
        min-width: 0;
        padding-right: 12px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .order-info .col-md-2:last-child {
        width: auto;
        flex: 0 0 auto;
        text-align: right;
        padding-top: 2px;
    }

    .order-info img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 4px;
    }

    .order-info h6 {
        font-size: 14px;
        line-height: 1.4;
        margin: 0 0 4px 0;
        color: #333;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .order-info .text-muted {
        display: block;
        font-size: 12px;
        color: #999 !important;
        margin: 0;
    }

    .order-info .h6.text-primary {
        margin: 0;
        font-size: 15px;
        font-weight: 500;
        white-space: nowrap;
        color: #FF6900;
    } 
}


/* 退款原因标签 */
.reason-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.reason-tag {
    flex: 0 0 auto;
    min-width: auto;
    padding: 6px 16px;
    font-size: 14px;
    border-radius: 4px;
    white-space: nowrap;
}

.reason-tag.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 图片上传区域 */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(255, 105, 0, 0.02);
}

.uploaded-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.uploaded-image {
    position: relative;
    width: 120px;
    height: 120px;
}

.uploaded-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 退货信息区域 */
.return-info {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #f8f9fa;
}

/* 订单信息区域 */
.order-info {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
 
 