.search-box-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.search-box-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 15px;
}
.search-form {
    display: flex;
    gap: 15px;
    align-items: center;
}
.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.search-input:focus {
    border-color: var(--primary-color);
}
.btn-search {
    background: var(--primary-color);
    color: #FFFFFF;
    border: none;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-search:hover {
    background: #cccccc;
}


@media (max-width: 768px) {
    /* 将表格元素重置为块级元素 */
    .instock-table,
    .instock-table thead,
    .instock-table tbody,
    .instock-table th,
    .instock-table td,
    .instock-table tr {
        display: block;
    }

    /* 隐藏表头 */
    .instock-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    /* 每一个数据行变成独立的卡片 */
    .instock-table tr {
        border: 1px solid #E2E8F0;
        border-radius: 6px;
        margin-bottom: 12px;
        padding: 10px;
        background: #fff;
    }

    .instock-table td {
        border: none;
        border-bottom: 1px dashed #F1F5F9;
        position: relative;
        padding: 8px 10px;
        text-align: right;
    }

    .instock-table td:last-child {
        border-bottom: none;
        text-align: center;
    }

    .instock-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        color: #0F172A;
    }
}

.instock-table-wrapper {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}
.table-title-bar {
    background: #F8FAFC;
    padding: 15px 20px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.table-title-bar h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
}

.instock-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.instock-table th {
    background: #0F172A;
    color: #FFFFFF;
    padding: 14px 16px;
    font-size: 13.5px;
    font-weight: 600;
    text-transform: uppercase;
}
.instock-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #E2E8F0;
    font-size: 14px;
    color: #334155;
    vertical-align: middle;
}
.instock-table tr:last-child td {
    border-bottom: none;
}
.instock-table tr:hover {
    background-color: #F8FAFC;
}
.qty-input {
    width: 70px;
    padding: 6px 8px;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    font-size: 13.5px;
    text-align: center;
}
.qty-input:focus {
    border-color: var(--primary-color);
    outline: none;
}
.btn-add {
    background: var(--primary-color);
    color: #FFFFFF;
    border: none;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-add:hover {
    background: #cccccc;
}
.btn-delete {
    background: #EF4444;
    color: #FFFFFF;
    border: none;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-delete:hover {
    background: #DC2626;
}

/* Floating Cart Icon with Pulse/Shake Animation */
.floating-cart {
    position: fixed;
    right: 35px;
    top: 45%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    z-index: 998;
    transition: transform 0.2s, background 0.2s;
}
.floating-cart:hover {
    background: #cccccc;
    transform: translateY(-50%) scale(1.05);
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
}

/* 联动动画（缩放与闪烁） */
.cart-bounce {
    animation: cartPulse 0.5s ease-in-out;
}
@keyframes cartPulse {
    0% {
        transform: translateY(-50%) scale(1);
    }
    30% {
        transform: translateY(-50%) scale(1.35) rotate(-10deg);
        background: #22C55E;
    }
    60% {
        transform: translateY(-50%) scale(0.9) rotate(10deg);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}

/* RFQ Form Area */
.rfq-form-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: none; /* 默认隐藏 */
}
.rfq-form-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 8px;
}
.rfq-form-card p {
    font-size: 13.5px;
    color: #64748B;
    margin-bottom: 20px;
}
.rfq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.rfq-full {
    grid-column: span 2;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
}
.form-group input, .form-group textarea {
    padding: 10px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
}
.btn-submit-rfq {
    background: var(--primary-color);
    color: #FFFFFF;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
}
.btn-submit-rfq:hover {
    background: #cccccc;
}
.captcha-row { display: flex; gap: 12px; align-items: center; }
.captcha-code-box {
    background: #e2e8f0; color: #1a2530; font-family: 'Courier New', Courier, monospace;
    font-weight: 700; font-size: 18px; letter-spacing: 4px; 
    border-radius: 5px; user-select: none; border: 1px solid #cbd5e1; cursor: pointer; text-align: center;
}
@media (max-width: 991px) {
    .rfq-grid {
        grid-template-columns: 1fr;
    }
    .rfq-full { grid-column: span 1; }
}
@media (max-width: 576px) {
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
}