
/* ============================================
   右侧内容
   ============================================ */
.member-main {
}

.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;
}

/* ============================================
   询价单信息（两列两行）
   ============================================ */
.inquiry-info {
    margin-top: 37px;
    display: grid;
    grid-template-columns: 596px 1fr;
}

.info-item {
    height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-label {
    font-size: 18px;
    color: #696969;
    white-space: nowrap;
}

.info-value {
    margin-top: 11px;
    font-size: 18px;
    color: #000;
    white-space: nowrap;
}

/* ============================================
   产品分节标题
   ============================================ */
.sec-title {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 24px;
    line-height: 32px;
    color: #000;
    white-space: nowrap;
}

.sec-title:first-of-type {
    margin-top: 64px;
}

.sec-title + .detail-table {
    margin-top: 22px;
}

.sec-title + .detail-table + .sec-title {
    margin-top: 35px;
}

/* ============================================
   产品明细表（灯具 8 列 / 配件 5 列）
   ============================================ */
.detail-table {
    width: 1044px;
}

.d-head {
    height: 50px;
    display: grid;
    align-items: center;
    background: #ccd7e6;
    border-radius: 8px 8px 0 0;
    font-size: 18px;
    color: #000;
    white-space: nowrap;
}

.d-head .cell {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 灯具表 8 列（列边界 = min(表头起点, 数据行起点)，合计 1044px） */
.d-head {
    grid-template-columns: 160px 207px 128px 130px 88px 114px 92px 125px;
}

/* 配件表 5 列 */
.d-head.acc-head {
    grid-template-columns: 160px 162px 453px 144px 125px;
}

/* 表头文本对齐设计稿坐标（相对各自列起点） */
.d-head .cell:nth-child(1) { padding-left: 33px; }  /* Image */
.d-head .cell:nth-child(2) { padding-left: 1px; }   /* Module NO. / Accessory model */
.d-head .cell:nth-child(4) { padding-left: 25px; }  /* Input */
.acc-head .cell:nth-child(3) { padding-left: 75px; } /* Accessory Description */

.d-row {
    min-height: 82px;
    display: grid;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
    font-size: 16px;
    color: #333;
}

/* 数据行列模板与对应表头一致 */
.d-row.lamp-row {
    grid-template-columns: 160px 207px 128px 130px 88px 114px 92px 125px;
}

.d-row.acc-row {
    grid-template-columns: 160px 162px 453px 144px 125px;
}

/* 行内单元格 */
.d-row .cell {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 灯具行文字对齐设计稿坐标（相对各自列起点） */
.lamp-row .cell:nth-child(1) { padding-left: 32px; } /* 产品图 */
.lamp-row .cell:nth-child(3) { padding-left: 4px; }  /* DLC code */
.lamp-row .cell:nth-child(5) { padding-left: 5px; }  /* LPW */
.lamp-row .cell:nth-child(6) { padding-left: 12px; } /* CCT/Ra */
.lamp-row .cell:nth-child(7) { padding-left: 3px; }  /* Packing */
.lamp-row .cell:nth-child(8) { padding-left: 26px; } /* Quantity */

/* 配件行文字对齐设计稿坐标 */
.acc-row .cell:nth-child(1) { padding-left: 32px; } /* 产品图 */
.acc-row .cell:nth-child(3) { padding-left: 75px; } /* 产品图 */
.acc-row .cell:nth-child(4) { padding-left: 25px; }  /* Packing */
.acc-row .cell:nth-child(5) { padding-left: 26px; } /* Quantity */

.d-thumb {
    width: 45px;
    height: 45px;
    display: block;
}

.d-thumb img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    display: block;
}

/* ============================================
   购物车悬浮按钮（悬浮交互控件，固定于视口）
   ============================================ */
.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;
}

/* 侧边栏步进器 */
.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;
}

.sidebar-list .stepper {
    width: 148px;
}

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

.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;
}

/* 底部提交按钮 */
.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;
}
