﻿/* ==============================
   RFQ Cart Page
   Main Color: #004ac5
   Accent Color: #e27a1f
============================== */

.rfq-page {
    width: 100%;
    background: #f5f7fb;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
}

.rfq-content {
    padding: 60px 0 80px;
}

/* 顶部提示 */
.rfq-tips-card {
    background: #fff;
    border: 1px solid #e1e9f8;
    border-radius: 22px;
    padding: 30px 34px;
    margin-bottom: 30px;
    box-shadow: 0 14px 38px rgba(0, 74, 197, .08);
    position: relative;
    overflow: hidden;
}

.rfq-tips-card::before {
    content: "";
    width: 5px;
    height: 74px;
    background: #004ac5;
    border-radius: 0 5px 5px 0;
    position: absolute;
    left: 0;
    top: 32px;
}

.rfq-tips-card h2 {
    margin: 0 0 14px;
    color: #222;
    font-size: 26px;
    line-height: 1.3;
}

.rfq-tips-card p {
    margin: 0 0 8px;
    color: #666;
    font-size: 15px;
    line-height: 26px;
}

.rfq-tips-card p:last-child {
    margin-bottom: 0;
}

.rfq-tips-card a {
    color: #004ac5;
    text-decoration: none;
    font-weight: bold;
}

.rfq-tips-card a:hover {
    color: #e27a1f;
}

/* BOM 上传 */
.rfq-bom-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    background: linear-gradient(135deg, #004ac5 0%, #003a9b 100%);
    border-radius: 22px;
    padding: 34px 38px;
    margin-bottom: 32px;
    color: #fff;
    box-shadow: 0 18px 46px rgba(0, 74, 197, .22);
}

.rfq-bom-info h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 28px;
    line-height: 1.3;
}

.rfq-bom-info p {
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 15px;
    line-height: 26px;
}

.rfq-bom-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.rfq-bom-actions a,
.rfq-bom-actions label,
.rfq-bom-actions button {
    height: 44px;
    line-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all .25s ease;
}

.rfq-template-btn {
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,.28) !important;
}

.rfq-template-btn:hover {
    background: #fff;
    color: #004ac5;
}

.rfq-file-btn {
    background: #fff;
    color: #004ac5;
    overflow: hidden;
    position: relative;
}

.rfq-file-btn:hover {
    color: #e27a1f;
}

.rfq-file-btn input {
    display: none;
}

.rfq-upload-btn {
    background: #e27a1f;
    color: #fff;
}

.rfq-upload-btn:hover {
    background: #c96513;
}

.rfq-file-name {
    width: 100%;
    text-align: right;
    color: rgba(255,255,255,.82);
    font-size: 13px;
}

/* RFQ 主区 */
.rfq-panel {
    background: #fff;
    border: 1px solid #e1e9f8;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(0, 74, 197, .09);
    margin-bottom: 34px;
}

.rfq-panel-head {
    padding: 28px 34px;
    border-bottom: 1px solid #edf1f8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rfq-panel-head h2 {
    margin: 0;
    color: #222;
    font-size: 28px;
    line-height: 1.3;
}

.rfq-panel-head p {
    margin: 8px 0 0;
    color: #777;
    font-size: 14px;
}

.rfq-table-wrap {
    overflow-x: auto;
}

.rfq-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}

.rfq-table th {
    height: 58px;
    background: #202c34;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    padding: 0 14px;
}

.rfq-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #eef2f8;
    background: #fff;
    text-align: center;
    vertical-align: middle;
}

.rfq-table tbody tr:nth-child(even) td {
    background: #f8faff;
}

.rfq-table tbody tr:hover td {
    background: #edf5ff;
}

.rfq-table .col-part {
    width: 26%;
}

.rfq-table .col-brand {
    width: 19%;
}

.rfq-table .col-package {
    width: 18%;
}

.rfq-table .col-qty {
    width: 14%;
}

.rfq-table .col-price {
    width: 15%;
}

.rfq-table .col-action {
    width: 8%;
}

.rfq-table input[type="text"],
.rfq-table input:not([type]) {
    width: 100%;
    height: 42px;
    border: 1px solid #dfe5f1;
    border-radius: 10px;
    padding: 0 12px;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    font-size: 14px;
    outline: none;
    transition: all .25s ease;
}

.rfq-table input:focus {
    border-color: #004ac5;
    box-shadow: 0 0 0 4px rgba(0,74,197,.08);
}

.rfq-part-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rfq-part-cell .checkall {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.rfq-delete-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: #fff2f2;
    color: #e53935;
    cursor: pointer;
    transition: all .25s ease;
}

.rfq-delete-btn:hover {
    background: #e53935;
    color: #fff;
}

.rfq-table-actions {
    padding: 24px 34px 30px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.rfq-action-btn {
    height: 44px;
    padding: 0 24px;
    border: none;
    border-radius: 999px;
    background: #004ac5;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all .25s ease;
}

.rfq-action-btn:hover {
    background: #e27a1f;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(226,122,31,.25);
}

.rfq-action-btn.is-light {
    background: #f6f8ff;
    color: #004ac5;
    border: 1px solid #e4eafd;
}

.rfq-action-btn.is-light:hover {
    background: #004ac5;
    color: #fff;
}

/* 联系信息 */
.rfq-contact-card {
    background: #fff;
    border: 1px solid #e1e9f8;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(0, 74, 197, .09);
}

.rfq-contact-head {
    padding: 30px 34px;
    background: linear-gradient(135deg, #f6f8ff 0%, #ffffff 100%);
    border-bottom: 1px solid #edf1f8;
    position: relative;
}

.rfq-contact-head::before {
    content: "";
    width: 5px;
    height: 66px;
    background: #004ac5;
    border-radius: 0 5px 5px 0;
    position: absolute;
    left: 0;
    top: 30px;
}

.rfq-contact-head h2 {
    margin: 0;
    color: #222;
    font-size: 28px;
    line-height: 1.3;
}

.rfq-contact-head p {
    margin: 10px 0 0;
    color: #777;
    font-size: 15px;
    line-height: 26px;
}

.rfq-form-grid {
    padding: 34px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 26px;
}

.rfq-form-group {
    margin: 0;
}

.rfq-form-group.is-full {
    grid-column: span 2;
}

.rfq-form-group dt {
    margin-bottom: 9px;
    color: #333;
    font-size: 15px;
    font-weight: bold;
}

.rfq-form-group dt span {
    color: #e27a1f;
    margin-left: 3px;
}

.rfq-form-group dd {
    margin: 0;
}

.rfq-form-group input,
.rfq-form-group select,
.rfq-form-group textarea {
    width: 100%;
    height: 50px;
    border: 1px solid #dfe5f1;
    border-radius: 12px;
    padding: 0 15px;
    box-sizing: border-box;
    background: #f8faff;
    color: #333;
    font-size: 15px;
    outline: none;
    transition: all .25s ease;
}

.rfq-form-group textarea {
    height: 130px;
    padding: 14px 15px;
    line-height: 24px;
    resize: none;
    font-family: Arial, Helvetica, sans-serif;
}

.rfq-form-group input:focus,
.rfq-form-group select:focus,
.rfq-form-group textarea:focus {
    background: #fff;
    border-color: #004ac5;
    box-shadow: 0 0 0 4px rgba(0,74,197,.08);
}

/* 国家输入+下拉 */
.rfq-country-wrap {
    position: relative;
}

.rfq-country-wrap::after {
    content: "\f107";
    font-family: FontAwesome;
    position: absolute;
    right: 16px;
    top: 50%;
    margin-top: -9px;
    color: #8b95aa;
    pointer-events: none;
}

.rfq-country-wrap input {
    padding-right: 42px;
}

.rfq-submit-bar {
    padding: 0 34px 38px;
}

.rfq-submit-btn {
    width: 190px;
    height: 52px;
    border: none;
    border-radius: 999px;
    background: #004ac5;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 12px 26px rgba(0,74,197,.25);
}

.rfq-submit-btn:hover {
    background: #e27a1f;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(226,122,31,.28);
}

/* ==============================
   RFQ Confirm Modal
============================== */

.rfq-modal-mask {
    display: none;
    position: fixed;
    z-index: 999998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    background: rgba(20, 30, 50, .58);
}

.rfq-modal-box {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 50%;
    top: 50%;
    width: 420px;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .25);
    overflow: hidden;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

.rfq-modal-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 5px;
    background: #004ac5;
}

.rfq-modal-body {
    padding: 42px 34px 34px;
}

.rfq-modal-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: #004ac5;
    color: #fff;
    font-size: 34px;
    font-weight: bold;
}

.rfq-modal-box.error .rfq-modal-icon {
    background: #e53935;
}

.rfq-modal-box.success .rfq-modal-icon {
    background: #22a957;
}

.rfq-modal-title {
    margin: 0 0 10px;
    color: #222;
    font-size: 22px;
    line-height: 30px;
    font-weight: bold;
}

.rfq-modal-text {
    margin: 0 auto;
    max-width: 320px;
    color: #666;
    font-size: 15px;
    line-height: 26px;
}

.rfq-modal-actions {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    gap: 14px;
}

.rfq-modal-actions a {
    min-width: 120px;
    height: 42px;
    line-height: 42px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: all .25s ease;
}

.rfq-modal-confirm {
    background: #004ac5;
    color: #fff;
    box-shadow: 0 12px 26px rgba(0, 74, 197, .25);
}

.rfq-modal-confirm:hover {
    background: #e27a1f;
    color: #fff;
}

.rfq-modal-cancel {
    background: #f6f8ff;
    color: #004ac5;
    border: 1px solid #e4eafd;
}

.rfq-modal-cancel:hover {
    background: #004ac5;
    color: #fff;
}

.rfq-modal-box.loading .rfq-modal-icon {
    background: #004ac5;
    position: relative;
    font-size: 0;
}

.rfq-modal-box.loading .rfq-modal-icon::after {
    content: "";
    width: 34px;
    height: 34px;
    border: 4px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -21px;
    margin-top: -21px;
    animation: rfqSpin .8s linear infinite;
}

@keyframes rfqSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.rfq-submit-btn.is-loading {
    opacity: .75;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==============================
   RFQ Success Page
============================== */

.rfq-success-page {
    background: #f5f7fb;
}

.rfq-success-content {
    padding: 60px 0 80px;
}

.rfq-success-hero {
    background: #fff;
    border: 1px solid #e1e9f8;
    border-radius: 28px;
    padding: 54px 40px;
    text-align: center;
    box-shadow: 0 18px 48px rgba(0, 74, 197, .10);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.rfq-success-hero::before {
    content: "";
    width: 100%;
    height: 5px;
    background: #004ac5;
    position: absolute;
    left: 0;
    top: 0;
}

.rfq-success-icon {
    width: 92px;
    height: 92px;
    line-height: 92px;
    border-radius: 50%;
    margin: 0 auto 24px;
    background: #004ac5;
    color: #fff;
    font-size: 42px;
    box-shadow: 0 18px 36px rgba(0, 74, 197, .25);
}

.rfq-success-hero h1 {
    margin: 0 0 16px;
    color: #20232a;
    font-size: 34px;
    line-height: 44px;
    font-weight: 700;
}

.rfq-success-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: #667085;
    font-size: 16px;
    line-height: 28px;
}

.rfq-success-meta {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.rfq-success-meta span {
    height: 40px;
    line-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: #f6f8ff;
    color: #4d5b75;
    font-size: 14px;
}

.rfq-success-meta i {
    color: #004ac5;
    margin-right: 6px;
}

.rfq-success-actions {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.rfq-success-btn {
    min-width: 170px;
    height: 48px;
    line-height: 48px;
    border-radius: 999px;
    background: #004ac5;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(0, 74, 197, .25);
    transition: all .25s ease;
}

.rfq-success-btn:hover {
    background: #e27a1f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(226,122,31,.28);
}

.rfq-success-btn.is-light {
    background: #f6f8ff;
    color: #004ac5;
    box-shadow: none;
    border: 1px solid #e4eafd;
}

.rfq-success-btn.is-light:hover {
    background: #004ac5;
    color: #fff;
}

.rfq-success-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 30px;
}

.rfq-summary-card {
    background: #fff;
    border: 1px solid #e1e9f8;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 14px 36px rgba(0, 74, 197, .08);
}

.rfq-summary-icon {
    width: 46px;
    height: 46px;
    line-height: 46px;
    display: inline-block;
    border-radius: 14px;
    background: #edf5ff;
    color: #004ac5;
    text-align: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.rfq-summary-card strong {
    display: block;
    color: #20232a;
    font-size: 24px;
    line-height: 32px;
    word-break: break-word;
}

.rfq-summary-card p {
    margin: 8px 0 0;
    color: #667085;
    font-size: 14px;
}

.rfq-success-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 30px;
    margin-bottom: 30px;
}

.rfq-success-panel {
    background: #fff;
    border: 1px solid #e1e9f8;
    border-radius: 24px;
    box-shadow: 0 16px 42px rgba(0, 74, 197, .09);
    overflow: hidden;
}

.rfq-success-panel-head {
    padding: 28px 32px;
    border-bottom: 1px solid #edf1f8;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
}

.rfq-success-panel-head h2 {
    margin: 0;
    color: #20232a;
    font-size: 26px;
    line-height: 34px;
}

.rfq-success-panel-head p {
    margin: 8px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 24px;
}

.rfq-success-info-list {
    padding: 28px 32px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 24px;
}

.rfq-success-info-list dl {
    margin: 0;
}

.rfq-success-info-list dl.is-full {
    grid-column: span 2;
}

.rfq-success-info-list dt {
    color: #8a94a6;
    font-size: 13px;
    margin-bottom: 6px;
}

.rfq-success-info-list dd {
    margin: 0;
    color: #20232a;
    font-size: 15px;
    line-height: 24px;
    word-break: break-word;
}

.rfq-next-steps {
    padding: 28px 32px;
}

.rfq-step {
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px dashed #dfe5f1;
}

.rfq-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.rfq-step span {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    line-height: 38px;
    border-radius: 50%;
    background: #004ac5;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.rfq-step h3 {
    margin: 0 0 8px;
    color: #20232a;
    font-size: 17px;
    line-height: 24px;
}

.rfq-step p {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 24px;
}

.rfq-success-items-panel {
    margin-bottom: 24px;
}

.rfq-success-table-wrap {
    overflow-x: auto;
}

.rfq-success-table {
    width: 100%;
    border-collapse: collapse;
}

.rfq-success-table th {
    height: 56px;
    background: #202c34;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    padding: 0 20px;
}

.rfq-success-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #edf1f8;
    color: #333;
    font-size: 14px;
    line-height: 24px;
}

.rfq-success-table tbody tr:nth-child(even) td {
    background: #f8faff;
}

.rfq-empty {
    text-align: center !important;
    color: #8a94a6 !important;
    padding: 34px 20px !important;
}

.rfq-success-note {
    background: #f6f8ff;
    border: 1px solid #e4eafd;
    border-radius: 18px;
    padding: 18px 22px;
    color: #667085;
    font-size: 15px;
    line-height: 26px;
}

.rfq-success-note i {
    color: #004ac5;
    margin-right: 8px;
}

.rfq-success-note a {
    color: #004ac5;
    font-weight: 700;
    text-decoration: none;
}

.rfq-success-note a:hover {
    color: #e27a1f;
}