/* 步骤进度条样式 */
.step-progress {
    background: #ffffff;
    border-bottom: 1px solid var(--deba-border);
    padding: 0.25rem 0;
    margin-bottom: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.step-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 4px 0 2px;
}

.step-scroll-container::-webkit-scrollbar {
    height: 3px;
}

.step-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--deba-border);
    border-radius: 6px;
}

.step-indicator {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    padding: 0 4px;
    gap: 2px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    min-width: 100px;
    max-width: 150px;
    cursor: default;
    text-align: center;
    transition: all 0.1s ease;
}

.step-marker {
    width: 32px;
    height: 32px;
    background-color: #e9ecef;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    transition: all 0.1s ease;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.step-item.completed .step-marker {
    background-color: var(--deba-blue);
    color: white;
    border: 2px solid var(--deba-blue);
}

.step-item.active .step-marker {
    background-color: white;
    color: var(--deba-blue);
    border: 2px solid var(--deba-blue);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.step-item.active .step-label {
    font-weight: 700;
    color: var(--deba-blue);
}

.step-item.pending .step-marker {
    background-color: #e9ecef;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.step-item.skipped .step-marker {
    background-color: #f1f3f5;
    color: #adb5bd;
    border: 2px solid #f1f3f5;
}

.step-label {
    font-size: 1rem;
    font-weight: 500;
    color: #212529;
    width: 100%;
    white-space: nowrap;
    line-height: 1.3;
    padding: 0 2px;
}

.step-status {
    font-size: 0.75rem;
    color: #6c757d;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0 2px;
    padding-top: 12px;
}

.connector-line {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: color 0.1s ease;
}

.connector-active {
    color: var(--deba-blue);
}

.connector-inactive {
    color: #dee2e6;
}

/* 内容区域样式 */
.content-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--deba-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.1s ease;
}

.content-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.section-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--deba-border);
    color: #212529;
    display: flex;
    align-items: center;
}

.section-title i {
    color: var(--deba-blue);
    margin-right: 8px;
    font-size: 1.2rem;
}

/* 信息表格样式 */
.info-table {
    width: 100%;
}

.info-table tr {
    border-bottom: 1px dashed var(--deba-border);
    display: block;
    margin-bottom: 0.75rem;
}

.info-table tr:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-table td {
    display: block;
    padding: 0.25rem 0;
    border: none;
}

.info-label {
    font-weight: 600;
    color: #495057;
    width: auto;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.info-value {
    color: #212529;
    font-size: 1rem;
    padding-left: 0.5rem;
}

/* 输入框包装器 - 用于内嵌按钮 */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.form-control-custom {
    display: block;
    width: 100%;
    padding: 0.7rem 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--deba-border);
    border-radius: 12px;
    background-color: #fff;
    transition: all 0.1s ease;
}

.form-control-custom:focus {
    border-color: var(--deba-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.form-control-custom:disabled {
    background-color: var(--deba-light);
    border-color: var(--deba-border);
    color: #6c757d;
}

/* 内嵌编辑按钮 */
.edit-inline-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--deba-blue);
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    z-index: 5;
    cursor: pointer;
    transition: all 0.1s ease;
    white-space: nowrap;
}

.edit-inline-btn i {
    font-size: 1rem;
}

.edit-inline-btn:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.edit-inline-btn:active {
    transform: translateY(-50%) scale(0.98);
}

/* 当输入框被禁用时，右侧内边距留出按钮空间 */
.form-control-custom:disabled {
    padding-right: 70px;
}

select.form-control-custom {
    padding-right: 2.5rem;
}

/* 表单标签样式 */
.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: #2c3e50;
    display: inline-block;
}

.required-star {
    color: #dc3545;
    margin-right: 3px;
    font-size: 1.1rem;
    vertical-align: middle;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.grid-full-width {
    grid-column: 1 / -1;
}

/* 地址卡片样式 */
.address-card {
    background-color: var(--deba-light);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid var(--deba-border);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.address-line {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: baseline;
}

.address-line:last-child {
    margin-bottom: 0;
}

.address-line strong {
    font-weight: 600;
    color: #495057;
    min-width: 65px;
    font-size: 0.9rem;
}

.address-line span {
    flex: 1;
    word-break: break-word;
}

.address-warning {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #ced4da;
    color: #e67e22;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 支付徽章样式 */
.custom-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
}

.custom-badge.success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.custom-badge.fail {
    background-color: #f8d7da;
    color: #842029;
}

/* 费用列表样式 - 两个页面共用 */
.fee-list {
    margin-top: 1rem;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--deba-border);
    flex-wrap: wrap;
    gap: 12px;
    background: #f8fafc;
    border-radius: 10px;
}

.fee-item:last-child {
    border-bottom: none;
}

.fee-item a {
    font-weight: 600;
    color: #212529;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    flex: 2 1 auto;
    transition: color 0.1s ease;
}

.fee-item a:hover {
    color: var(--deba-blue);
}

.fee-item .fee-name-with-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fee-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.fee-status {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    background-color: #e9ecef;
    color: #495057;
}

/* 状态页面样式 */
.status-page {
    text-align: center;
    padding: 2rem 1rem;
}

.status-icon {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.status-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #212529;
}

.status-page div:not(.status-title):not(.status-icon) {
    color: #6c757d;
}

/* 操作栏样式 */
.action-wrapper {
    display: flex;
    flex-direction: column;
}

.action-bar {
    background: #ffffff;
    border: 1px solid var(--deba-border);
    border-radius: 40px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.action-group {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.btn-step {
    min-width: 100px;
    border-radius: 40px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    transition: all 0.1s ease;
}

.btn-step.btn-primary {
    background-color: var(--deba-blue);
}

.btn-step.btn-primary:hover:not(:disabled) {
    background-color: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.btn-step.btn-outline-secondary {
    background: transparent;
    border: 1.5px solid #ced4da;
    color: #495057;
}

.btn-step.btn-outline-secondary:hover:not(:disabled) {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.btn-step.btn-success {
    background-color: #198754;
}

.btn-step.btn-success:hover:not(:disabled) {
    background-color: #157347;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.2);
}

.btn-step:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 响应式样式 */
@media (min-width: 576px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 1.25rem 1rem;
    }

    .btn-step {
        min-width: 85px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .edit-inline-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.9rem;
    }

    .edit-inline-btn i {
        font-size: 0.9rem;
    }

    .form-control-custom:disabled {
        padding-right: 65px;
    }
}

@media (max-width: 576px) {
    .step-marker {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .connector-line {
        font-size: 0.85rem;
    }

    .step-connector {
        padding-top: 10px;
    }

    .btn-step {
        min-width: 75px;
        padding: 0.45rem 0.75rem;
        font-size: 0.85rem;
    }

    .action-group {
        gap: 0.75rem;
    }

    .edit-inline-btn {
        padding: 0.35rem 0.4rem;
        font-size: 0.85rem;
    }

    .edit-inline-btn i {
        font-size: 0.85rem;
    }

    .form-control-custom:disabled {
        padding-right: 60px;
    }
}

@media (max-width: 380px) {
    .step-marker {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    .btn-step {
        min-width: 65px;
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .edit-inline-btn {
        padding: 0.3rem 0.35rem;
        font-size: 0.8rem;
    }

    .edit-inline-btn i {
        font-size: 0.8rem;
    }

    .form-control-custom:disabled {
        padding-right: 55px;
    }
}

/* 通用工具类 */
.badge.bg-warning {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
    border-radius: 30px;
    background-color: #ffc107 !important;
    color: #212529;
}

.font-monospace {
    font-size: 0.9rem;
    word-break: break-all;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.text-secondary {
    color: #6c757d !important;
}

.text-success {
    color: #198754 !important;
}