/* ============================================
   LEDVANCE 会员中心-我的询价页 - Member Center
   8 会员中心-我的询价（Figma 25:770）
   正常文档流排版，无定位（购物车/侧边栏除外）
   ============================================ */

/* ============================================
   右侧内容
   ============================================ */
.member-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    padding: 0px 0px 20px 0px;
    box-sizing: border-box;
}

.main-title {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 20px;
    line-height: 26px;
    color: #333;
    white-space: nowrap;
}

.main-line {
    margin-top: 21px;
    height: 1px;
    background: #ddd;
}

/* 状态 Tab */
.tabs {
    margin-top: 28px;
    display: flex;
    gap: 37px;
}

.tab {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 18px;
    line-height: 16px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
}

.tab.active {
    font-weight: bold;
    color: #1e2381;
}

.tab.active::after {
    content: '';
    display: block;
    width: 59px;
    height: 3px;
    margin: 6px auto 0;
    background: #1e2381;
}

/* ============================================
   询价单卡片
   ============================================ */
.order-list {
    margin-top: 31px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    border: 1px solid #e5e5e5;
    background: #fff;
}

/* 卡片头部：时间 + 报价编号 + 状态标签 */
.order-head {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 0 25px;
    box-sizing: border-box;
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
}

.order-date {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.status-pill {
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 14px;
    white-space: nowrap;
    box-sizing: border-box;
}

.status-pill.to-quote {
    width: 102px;
    background: #d1d5ee;
    color: #1c2b86;
}

.status-pill.quoted {
    width: 70px;
    background: #bff6c7;
    color: #5ab767;
}

/* 卡片主体：4 行产品 + 详情按钮 */
.order-body {
    padding: 19px 0 17px;
}

.order-row {
    height: 41px;
    display: flex;
    align-items: center;
    margin: 0 20px 15px;
    border-bottom: 1px solid #eaeaea;
    column-gap: 15px;
}

.order-row:last-child {
    margin-bottom: 0;
}

.row-model {
    flex: 0 0 80%;
    font-size: 16px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-qty {
    font-size: 16px;
    color: #333;
    white-space: nowrap;
}

.order-foot {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 19px;
    padding-right: 25px;
}

.details-btn {
    width: 109px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #1e2381;
    border-radius: 4px;
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 14px;
    color: #1e2381;
    cursor: pointer;
    box-sizing: border-box;
}

/* ============================================
   分页
   ============================================ */
.pagination {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 13px;
}

.page-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #999;
    border-radius: 5px;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    box-sizing: border-box;
}

.page-btn.active {
    background: #1c2b86;
    border-color: #1c2b86;
    color: #fff;
}

.page-arrow {
    width: 44px;
    height: 44px;
    cursor: pointer;
}

.page-arrow svg {
    width: 44px;
    height: 44px;
    display: block;
    pointer-events: none;
}

/* ============================================
   购物车悬浮按钮（悬浮交互控件，固定于视口）
   ============================================ */
.cart-fab {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 71px;
    height: 71px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    place-items: center;
    cursor: pointer;
    z-index: 10;
}

.cart-circle {
    grid-area: 1 / 1;
    width: 71px;
    height: 71px;
    display: block;
}

.cart-icon {
    grid-area: 1 / 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cart-count {
    grid-area: 1 / 1;
    place-self: start;
    min-width: 29px;
    height: 21px;
    line-height: 21px;
    padding: 0 5px;
    margin: 3px 0 0 49px;
    box-sizing: border-box;
    background: #f80;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    text-align: center;
}

/* ============================================
   询价列表侧边栏（弹出抽屉控件，固定于视口）
   ============================================ */

/* 遮罩 */
.sidebar-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(11.55px);
    backdrop-filter: blur(11.55px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 20;
}

.sidebar-mask.open {
    opacity: 1;
    visibility: visible;
}

/* 抽屉主体 */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 560px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 21;
}

.sidebar.open {
    transform: translateX(0);
}

/* 头部 */
.sidebar-head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 20px 26px;
    background: #1c2b86;
    border-bottom: 1px solid #f3f4f6;
}

.sidebar-head-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-icon {
    width: 24px;
    height: 24px;
    flex: none;
    display: block;
}

.sidebar-title {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 24px;
    line-height: 24px;
    color: #fff;
    white-space: nowrap;
}

.sidebar-badge {
    min-width: 30px;
    height: 20px;
    line-height: 20px;
    padding: 0 8px;
    box-sizing: border-box;
    background: #f80;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.sidebar-close {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sidebar-close svg {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}

/* 列表区 */
.sidebar-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 22px;
    box-sizing: border-box;
}

.sidebar-list::-webkit-scrollbar {
    width: 5px;
}

.sidebar-list::-webkit-scrollbar-track {
    background: #e4e4e4;
    border-radius: 10px;
}

.sidebar-list::-webkit-scrollbar-thumb {
    background: #1c2b86;
    border-radius: 10px;
}

/* 侧边栏产品项 */
.s-item {
    height: 118px;
    display: flex;
    gap: 21px;
    padding: 10px 0 0;
    box-sizing: border-box;
    border-bottom: 1px solid #e5e7eb;
}

.s-thumb {
    width: 90px;
    height: 90px;
    flex: none;
}

.s-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.s-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.s-info-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.s-model {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 16px;
    line-height: 28px;
    color: #1e2939;
    word-break: break-word;
}

.s-del {
    width: 14px;
    height: 14px;
    flex: none;
    margin-top: 5px;
    cursor: pointer;
    display: block;
}

.s-info-bottom {
    margin-top: auto;
    padding-bottom: 10px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.s-category {
    font-size: 16px;
    line-height: 28px;
    color: #333;
    white-space: nowrap;
}

/* 侧边栏步进器图标尺寸（20px） */
.sidebar-list .stepper {
    width: 148px;
}

.sidebar-list .step-btn svg {
    width: 20px;
    height: 20px;
}

/* 底部提交按钮 */
.sidebar-foot {
    flex: none;
    padding: 17px 16px 16px;
    border-top: 1px solid #f3f4f6;
}

.submit-btn {
    padding: 11px 0;
    background: #1c2b86;
    border-radius: 100px;
    text-align: center;
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 16px;
    line-height: 20px;
    color: #fff;
    cursor: pointer;
}

.submit-btn:hover {
    background: #24349c;
}

/* 侧边栏步进器（复用） */
.stepper {
    width: 147px;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 9px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 25px;
}

.step-btn {
    width: 24px;
    height: 24px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.step-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}

.step-num {
    flex: 1;
    text-align: center;
    font-size: 16px;
    color: #000;
}

.step-div {
    width: 1px;
    height: 24px;
    flex: none;
    background: #e5e7eb;
}
