/* ============================================
   LEDVANCE 询价表单页 - Inquiry Form
   6 询价表单（Figma 20:1556）
   正常文档流排版，无定位（购物车/侧边栏除外）
   ============================================ */

.form-page {
    width: 100%;
    margin: 0 auto;
    background: #fff;
}

/* ============================================
   主体内容
   ============================================ */
.content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 80px;
}

/* 页面标题 */
.form-title {
    padding-top: 52px;
    text-align: center;
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 52px;
    line-height: 69px;
    color: #000;
    white-space: nowrap;
}

/* ============================================
   询价表头（Grid 5 列，与设计稿列位一致）
   列宽：image 193 / module 512 / stock 250 /
         quantity 242 / operation 203
   ============================================ */
.f-head {
    margin-top: 52px;
    height: 50px;
    display: grid;
    grid-template-columns: 193px 512px 250px 242px 203px;
    align-items: center;
    background: #16288b;
    border-radius: 8px 8px 0 0;
}

.f-th {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 18px;
    color: #fff;
    white-space: nowrap;
}

.th-image {
    padding-left: 59px;
}

/* ============================================
   询价产品行
   ============================================ */
.f-rows {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
}

.f-row {
    height: 120px;
    display: grid;
    grid-template-columns: 193px 512px 250px 242px 203px;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

/* 产品图 60×60（列1，左 53px） */
.f-thumb {
    width: 60px;
    height: 60px;
    margin-left: 53px;
}

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

/* 型号（列2 起点与表头 Module NO. 对齐） */
.f-model {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 18px;
    line-height: 28px;
    color: #1e2939;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 库存数量（列3，左 33px） */
.f-stock {
    margin-left: 33px;
    font-size: 16px;
    color: #333;
    white-space: nowrap;
}

/* 数量步进器（列4，与表头 Quantity 对齐，左移 40px） */
.f-row .stepper {
    margin-left: -40px;
}

/* 删除按钮（列5，左 26px） */
.f-del {
    width: 24px;
    height: 24px;
    margin-left: 26px;
    cursor: pointer;
}

.f-del svg {
    width: 24px;
    height: 24px;
    display: block;
    pointer-events: none;
}

/* ============================================
   数量步进器（148×40，圆角 25，白底 #e5e7eb 边框）
   ============================================ */
.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;
}

/* ============================================
   询价表单
   ============================================ */
.inquiry-form {
    margin-top: 53px;
}

/* 表单标签 */
.form-label {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 18px;
    line-height: 24px;
    color: #000;
    white-space: nowrap;
}

.form-label.email {
    margin-top: 31px;
}

.req {
    color: red;
}

/* 配送方式单选 */
.radio-row {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 51px;
}

.radio-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.radio {
    width: 20px;
    height: 20px;
    flex: none;
    display: block;
}

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

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

/* 输入框（#F0F0F0 圆角 4） */
.form-input {
    margin-top: 31px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-input input {
    width: 100%;
    height: 100%;
    padding: 0 23px;
    box-sizing: border-box;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    font-family: 'Helvetica', 'Arial', sans-serif;
    color: #6c757d;
}

.form-input input::placeholder {
    color: #6c757d;
}

/* 获取报价按钮 */
.quote-btn {
    width: 406px;
    height: 50px;
    margin: 51px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1c2b86;
    border-radius: 50px;
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
}

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

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