.substitutes-page {
    width: 100%;
    min-height: 100px;
    background: white;
    color: #000;
    margin: 0 auto;
}

.container {
    width: 1400px;
    margin: 0 auto;
}

.substitutes-page .substitutes-container {
    padding: 15px 0 50px 0;
}

.substitutes-container .substitutes-main .substitutes-section {
    padding: 0 15px 15px 15px;
    width: 1050px;
}

.substitutes-container .substitutes-content-wrapper {
    position: relative;
    padding-right: 360px;
}

.recommend-section {
    width: 100%;
}

.recommend-substiute-parts {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
    border-radius: 8px;
    padding-bottom: 5px;
    position: relative;
}

.recommend-substiute-parts::-webkit-scrollbar {
    height: 6px;
}

.recommend-substiute-parts::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.recommend-substiute-parts::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.recommend-substiute-parts::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.recommend-part {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    width: 240px;
    padding: 12px;
    text-decoration: none;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
}

.recommend-part:first-child::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-image: url('/dist/img/product_vs.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.recommend-title {
    width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.2;
    color: #000;
}

.recommend-title:hover{
    color: #1e6ffa;
    text-decoration: underline;
}

.product-info-detail {
    width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #848383;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.manufacturer-name{
    margin-bottom: 5px;
}

.product-pdf{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    cursor: pointer;
}



.product-pdf img{
    margin-right: 5px;
}

.pdf-name{
    font-size: 14px;
    color: #1e6ffa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-name:hover{
    text-decoration: underline;
}

.product-img {
    width: 100%;
    height: 156px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    margin-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tip {
    font-size: 16px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    font-style: italic;
    color: #cc0000;
    margin-top: 5px;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center; /* 保证Current Part居中 */
    position: relative; /* 为按钮绝对定位提供参考 */
}

.tip span{
    font-family: CAI978;

}


.sub-rfq-btn {
    display: inline-block;
    padding: 3px 5px;
    background-color: #fff;
    color: #cc0000;
    font-size: 12px;
    font-weight: bolder;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #cc0000;
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
    font-family: Arial, sans-serif;
    /* 关键修改：绝对定位到最右侧 */
    position: absolute;
    right: 8px; /* 与容器右侧保持8px间距，和tip的padding一致 */
    margin-left: 0; /* 清除原有margin-left，避免错位 */
}

.sub-rfq-btn:hover {
    background-color: #cc0000;
    color: #fff;
}



.substitutes-container p,
.substitutes-container li {
    color: #848383;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    font-family: arial, helvetica, sans-serif;
}

.substitutes-container p strong{
    color: #cc0000;
}

.substitutes-container li strong{
    color: #000;
}

/* .substitutes-container h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    color: #262626;
    line-height: 32px;
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
} */


.substitutes-container h1 {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    color: #262626;
    line-height: 1.2;
    text-align: center;
    font-size: 32px;
    margin: 35px 0 45px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, #bf121261 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-left: 5px solid #cc0000;
    border-right: 5px solid #cc0000;
    position: relative;
    overflow: hidden;
}

.substitutes-container h1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    /* background: linear-gradient(135deg, #cc0000, #ff4757, #cc0000); */
}



.substitutes-container h2 {
    text-align: left;
    position: relative;
    padding-bottom: 8px;
}

.substitutes-container h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #cc0000;
    border-radius: 2px;
}

.substitutes-container table {
    border: 1px solid #ddd;
    border-collapse: collapse;
    width: 100%;
    font-size: 16px;
    display: table;
    overflow-x: auto;
    white-space: nowrap;
    position: relative;
}

.substitutes-container table th,
.substitutes-container table td {
    border: 1px solid #ddd;
    padding: 12px;
    white-space: nowrap;
    text-align: left;
}

.substitutes-container table th {
    font-size: 18px;
    font-weight: 500;
    padding-bottom: 5px;
    border-top: none;
}

.substitutes-container table td {
    color: #848383;
}

.substitutes-container table thead tr {
    background-color: rgb(245, 245, 245);
}

.substitutes-container table tbody tr:nth-child(even) {
    background-color: white;
}

.substitutes-container table tbody tr:nth-child(odd) {
    background-color: rgb(245, 245, 245);
}

.substitutes-container table::-webkit-scrollbar {
    height: 6px;
}

.substitutes-container table::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.substitutes-container table::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.substitutes-container table::-webkit-scrollbar-thumb:hover {
    background: #999;
}


/* 为最后一个表格的第一列添加固定样式 */
.substitutes-container table:last-of-type th:first-child,
.substitutes-container table:last-of-type td:first-child {
    position: sticky;
    left: 0;
    background-color: rgb(245, 245, 245);
    border-right: none !important;
    border-left: none;
}

.substitutes-container table:last-of-type th:last-child,
.substitutes-container table:last-of-type td:last-child {
    border-right: none;
}

.substitutes-container table:last-of-type th:first-child::after,
.substitutes-container table:last-of-type td:first-child::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 0.1px;
    background-color: #ddd;
}


.substitutes-container table:last-of-type tr:nth-child(odd) td:first-child {
    background-color: rgb(245, 245, 245);
}

.substitutes-container table:last-of-type tr:nth-child(even) td:first-child {
    background-color: white;
}




.substitutes-container .other-substitutes {
    margin-left: 10px;
    position: absolute;
    width: 300px;
    top: 0;
    right: 0;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    box-sizing: border-box;
    background: #ffffff;
    padding-top: 0px;
    z-index: 90;
    overflow-x: hidden;
}

.substitutes-container .other-substitutes.fixed {
    position: fixed;
    right: calc((100% - 1400px) / 2);
    margin-top: 30px;
}

.substitutes-container .other-substitutes .other-substitutes-title {
    font-size: 20px;
    font-family: Arial;
    font-weight: 700;
    color: #262626;
    line-height: 32px;
    border: 0.5px solid #e9e9e9;
    padding: 10px;

}

.substitutes-container .other-substitutes .other-substitutes-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}




.other-substitutes::-webkit-scrollbar {
    display: none;
}

.quote-bar {
    padding: 10px;
    background-color: #fff;
    flex: 1;
    border: .6rem solid #ccc;
}

.quote-bar .title{
    font-size: 18px;
    font-family: Arial;
    font-weight: 700;
    color: #262626;
}
.quote-bar .quote-bar-tle{
    padding: 0 0 10px 0;

}

.qty {
    display: flex;
    height: 50px;
}

.qty > div:first-child {
    width: 200px;
    text-align: right;
    margin-right: 20px;
}
.qty > div:first-child {
    width: auto;
    padding: 0 0 0 5px;
}
.qty input {
    width: 100%;
    height: 31px;
    font-size: 18px;
    font-family: Arial;
    font-weight: 600;
    border: 1px solid #cbd0d3;
    color: #1d1d1d;
    text-align: center;
    outline-color: #c00;
    outline: none;
    border-radius: 3px;
    box-sizing: border-box;
}

.qty input:focus{
    border-color: #1eadfa;
    box-shadow: 0 0 2px #1e6ffa;
}

.qty input.error{
    border-color: #f56c6c;
    box-shadow: 0 0 3px #f56c6c;
}

.qty > div:first-child > span:first-child {
    font-size: 13px;
    font-family: Arial;
    font-weight: 700;
    color: #1d1d1d;
    line-height: 18px;
}

.qty > div:last-child {
    flex-grow: 1;
}

.el-form--label-top .el-form-item {
    display: block;
}

/* .el-form{
    padding: 0 5px;
} */

.el-form-item {
    display: flex;
    --font-size: 12px;
    margin-bottom: 5px;
}

.el-form--default.el-form--label-top .el-form-item .el-form-item__label {
    margin-bottom: 8px;
    line-height: 22px;
    font-size: 14px;
}
.el-form--default.el-form--label-top .el-form-item .el-form-item__label.error{
    color: #f56c6c;
}

.el-form--label-top .el-form-item .el-form-item__label {
    display: block;
    height: 15px;
    text-align: left;
}

.el-form-item__label {
    color: #1d1d1d;
    font-weight: 500;
}

.el-form-item.is-required:not(.is-no-asterisk).asterisk-left > .el-form-item__label-wrap > .el-form-item__label:before,
.el-form-item.is-required:not(.is-no-asterisk).asterisk-left > .el-form-item__label:before {
    content: "*";
    color: #f56c6c;
    margin-right: 4px;
}

.el-form-item__content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
    line-height: 32px;
    position: relative;
    font-size: var(--font-size);
    min-width: 0;
}

.el-form-item__content .el-input {
    width: 100%;
}

.el-form-item__content .el-input__wrapper {
    width: 100%;
    display: inline-flex;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: visible;
}

.el-input__wrapper input {
    --el-input-inner-height: 25px;
    width: 100%;
    flex-grow: 1;
    -webkit-appearance: none;
    color: #606266;
    font-size: inherit;
    height: var(--el-input-inner-height);
    line-height: var(--el-input-inner-height);
    padding: 0 11px;
    outline: 0;
    background: 0 0;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    box-sizing: border-box;
}
.el-input__wrapper input:focus {
    border-color: #1eadfa;
    box-shadow: 0 0 2px #1e6ffa;
}
.el-input__wrapper input.error{
    border-color: #f56c6c;
    box-shadow: 0 0 3px #f56c6c;
}

.el-input__wrapper input:focus-visible {
    outline: none;
}

.el-form-item__content .el-textarea {
    position: relative;
    display: inline-block;
    width: 100%;
    vertical-align: bottom;
    font-size: 14px;
}

.el-form-item__content .el-textarea textarea {
    position: relative;
    display: block;
    resize: vertical;
    padding: 5px 11px;
    line-height: 1.5;
    box-sizing: border-box;
    width: 100%;
    font-size: inherit;
    font-family: inherit;
    background-image: none;
    -webkit-appearance: none;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
}
.el-form-item__content .el-textarea textarea:focus {
    border-color: #1eadfa;
    box-shadow: 0 0 2px #1e6ffa;
}

.el-form-item__content .el-textarea textarea:focus-visible {
    outline: none;
}


.quote-bar .submit {
    height: 53px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quote-bar .submit .des {
    line-height: 5px;
    vertical-align: middle;
    font-size: 14px;
    font-family: Arial;
    color: #848383;
    padding: 10px 0;
}

.quote-bar .submit .el-button {
    width: 100px;
    height: 30px;
    border: 2px solid #CC0000;
    font-weight: 400 !important;
    background-color: #fff;
}

.quote-bar .submit .el-button:hover {
    border-color: #C00000;
    background-color: #C00000;
    outline: 0;
    cursor: pointer;
}

.quote-bar .submit .el-button:hover span {
    color: white;
}

.quote-bar .submit .btn {
    font-size: 14px;
    font-family: Black;
    font-weight: bolder;
    color: #C00000;
}

.verificationCode input{
    width: 80px;
}

.verificationCode .codePic{
    margin-left: 10px;
    cursor:  pointer;
}


.recommend-parts .recommend-parts-content{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 15px;
}

.recommend-parts .recommend-parts-content .recommend-item{
    display: flex;
    gap: 15px;
    height: 100px;
    padding: 10px;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 5px;
    cursor: pointer;
    color: #262626;
}

.recommend-info{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.recommend-parts .recommend-part-title{
    font-size: 20px;
    font-family: Arial;
    font-weight: 700;
    color: #262626;
    line-height: 32px;
    padding: 10px;
}


.recommend-part-img{
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recommend-part-img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.recommend-name{
    width: 120px;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommend-name:hover{
    color: #1e6ffa;
}

.recommend-manfacturer{
    width: 120px;
    font-size: 14px;
    color: #848383;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 5px 0;
}

.recommend-alternative{
    width: 120px;
    font-size: 14px;
    color: #cc0000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}