/* 全局样式 */
body {
    background-color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 导航栏样式 */
.nav-tabs {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 20px;
    padding: 0 15px;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tabs .nav-item {
    flex: 0 0 auto;
}

.nav-tabs .nav-link {
    color: #666;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    white-space: nowrap;
    position: relative;
    transition: all 0.3s;
}

.nav-tabs .nav-link:hover {
    color: #1890ff;
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: #1890ff;
    background: transparent;
    font-weight: 500;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #1890ff;
    transform: scaleX(1);
    transition: transform 0.3s;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    transition: all 0.3s;
    background: #fff;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0 !important;
}

.card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.card-body {
    padding: 20px;
}

/* 状态标签样式 */
.status-pending {
    background: #fff7e6;
    color: #d46b08;
    border: 1px solid #ffd591;
}

.status-processing {
    background: #e6f4ff;
    color: #0958d9;
    border: 1px solid #91caff;
}

.status-completed {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* 按钮样式 */
.btn {
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: #1890ff;
    border-color: #1890ff;
}

.btn-primary:hover {
    background: #40a9ff;
    border-color: #40a9ff;
}

.btn-outline-primary {
    color: #1890ff;
    border-color: #1890ff;
}

.btn-outline-primary:hover {
    background: #1890ff;
    border-color: #1890ff;
}

/* 表单样式 */
.form-control {
    border-radius: 4px;
    border: 1px solid #d9d9d9;
    padding: 8px 12px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
}

/* 提示框样式 */
.toast {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.toast-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* 加载动画 */
.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-tabs .nav-link {
        font-size: 0.9rem;
        white-space: nowrap;
        padding: 0.5rem 0.3rem;
    }

    .nav-tabs .nav-item {
        flex: 0 0 auto;
    }

    .nav-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .btn {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .order-title {
        font-size: 16px;
    }

    .order-info {
        font-size: 13px;
    }

    .status-tag {
        font-size: 12px;
        padding: 3px 8px;
    }

    .search-box {
        padding: 15px;
    }

    .form-label {
        font-size: 14px;
    }

    .form-control {
        font-size: 14px;
    }

    .search-tip {
        font-size: 12px;
    }

    .service-items {
        grid-template-columns: 1fr;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .service-item h3 {
        font-size: 15px;
    }
    
    .service-item p {
        font-size: 13px;
    }
}

/* 更小屏幕的适配 */
@media (max-width: 480px) {
    .nav-tabs .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.2rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }

    .order-title {
        font-size: 15px;
    }

    .order-info {
        font-size: 12px;
    }

    .status-tag {
        font-size: 11px;
        padding: 2px 6px;
    }

    .search-box {
        padding: 12px;
    }

    .form-label {
        font-size: 13px;
    }

    .form-control {
        font-size: 13px;
    }

    .search-tip {
        font-size: 11px;
    }

    .page-title {
        font-size: 20px;
    }
}

.container {
    padding: 20px 16px;
    max-width: 600px;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    margin-bottom: 24px;
    color: #323233;
    font-size: 24px;
    font-weight: 600;
}

.search-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.search-tip {
    color: #969799;
    font-size: 13px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f5f7fa;
    border-radius: 6px;
    line-height: 1.5;
}

.order-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.order-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #323233;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.order-title .course-name {
    flex: 1;
    word-break: break-all;
    word-wrap: break-word;
}

.order-title .status-tag {
    flex-shrink: 0;
}

.order-title i {
    margin-right: 8px;
    color: #1989fa;
}

.order-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.order-info i {
    margin-right: 8px;
    width: 16px;
    color: #1989fa;
}

.status-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.progress {
    height: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-left: 8px;
    overflow: hidden;
}

.progress-bar {
    background-color: #1989fa;
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-in-out;
}

@keyframes progressIn {
    from {
        width: 0;
    }
}

.progress-bar.animate {
    animation: progressIn 1s ease-out;
}

.order-info .progress {
    height: 8px;
}

/* 售后类型卡片样式 */
.service-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.service-section:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.service-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.service-item {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
    transition: all 0.3s;
}

.service-item:hover {
    background-color: #f0f0f0;
}

.service-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1890ff;
    margin-bottom: 8px;
}

.service-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

/* 课程卡片中的售后类型信息样式 */
.course-service-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e8e8e8;
}

.service-item-mini {
    margin-bottom: 10px;
}

.service-item-mini:last-child {
    margin-bottom: 0;
}

.service-item-mini h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1890ff;
    margin-bottom: 5px;
}

.service-item-mini p {
    font-size: 13px;
    color: #666;
    margin-bottom: 0;
    line-height: 1.4;
}