/* ========== CSS 自定义属性（变量） ========== */
:root {
    --ink: #0B0D0F;
    --paper: #F5F3EE;
    --paper-dim: #EAE7DE;
    --panel: #15171A;
    --panel-light: #FFFFFF;
    --line: #23262B;
    --line-light: #DEDAD0;
    --green: #00D17A;
    --green-dim: #0A8F55;
    --amber: #FF8A3D;
    --red: #FF5C5C;
    --slate: #8B92A0;
    --slate-light: #6B6F76;
    --mono: 'IBM Plex Mono', monospace;
    --sans: 'Inter', 'Noto Sans SC', sans-serif;
}

/* ========== 全局重置 ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 英文辅助文本样式 ========== */
.en {
    font-family: var(--mono);
    font-size: .72em;
    color: var(--slate-light);
    letter-spacing: .02em;
    display: block;
    margin-top: 2px;
    font-weight: 400;
}

/* ========== 无障碍动画关闭 ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* ========== 顶部栏 ========== */
.topbar {
    background: var(--ink);
    color: var(--slate);
    border-bottom: 1px solid #000;
}

.topbar .wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 38px;
    font-size: 12px;
}

.topbar .acct {
    margin-left: auto;
    display: flex;
    gap: 18px;
    align-items: center;
}

.topbar .tag {
    background: var(--panel);
    color: var(--green);
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .04em;
    padding: 2px 7px;
    border-radius: 3px;
    border: 1px solid var(--line);
}

/* ========== Header 导航 ========== */
header.main {
    background: var(--ink);
    color: var(--paper);
    border-bottom: 2px solid var(--green);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-weight: 600;
    font-size: 19px;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.logo img {
    width: 32px;
    height: 32px;
    flex: none;
}

.logo .sub {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 10.5px;
    color: var(--slate);
    letter-spacing: .04em;
    display: block;
    margin-top: 1px;
}

.main-nav {
    display: flex;
    gap: 24px;
    margin-left: 8px;
    font-size: 13.5px;
    color: var(--slate);
}

.main-nav li {
    list-style: none;
}

.main-nav a:hover,
.main-nav .current-menu-item>a {
    color: var(--paper);
}

/* 库存回收菜单项（functions.php 的 nav_menu_css_class 自动加类） */
.main-nav li.nav-excess>a {
    color: var(--green);
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* ========== 按钮通用样式 ========== */
.btn {
    border-radius: 6px;
    height: 40px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: .15s;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--paper);
}

.btn-ghost:hover {
    border-color: var(--slate);
}

.btn-solid {
    background: var(--green);
    color: var(--ink);
    border: 1px solid var(--green);
}

.btn-solid:hover {
    background: #00E886;
}

/* ========== 语言切换按钮 ========== */
.lang-switch {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--slate);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 12px;
    height: 40px;
    display: inline-flex;
    align-items: center;
}

.lang-switch:hover {
    border-color: var(--slate);
    color: var(--paper);
}

.cog-icon {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--slate);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 12px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: .15s;
}

.cog-icon:hover {
    border-color: var(--slate);
    color: var(--paper);
}

/* ========== Hero 区域 ========== */
.hero {
    background: var(--ink);
    color: var(--paper);
    padding: 56px 0 0;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--green);
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 209, 122, .18);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: .35;
    }
}

.hero h1 {
    font-weight: 800;
    font-size: clamp(30px, 4.6vw, 50px);
    line-height: 1.2;
    letter-spacing: -.01em;
    max-width: 820px;
}

.hero h1 em {
    font-style: normal;
    color: var(--green);
}

.hero p.lede {
    font-size: 15.5px;
    color: var(--slate);
    max-width: 620px;
    margin: 18px 0 28px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.hero-search {
    position: relative;
    max-width: 440px;
    margin-bottom: 22px;
}

.hero-search input {
    width: 100%;
    height: 48px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--paper);
    padding: 0 90px 0 42px;
    font-size: 14px;
}

.hero-search input::placeholder {
    color: var(--slate-light);
}

.hero-search input:focus {
    outline: none;
    border-color: var(--green);
}

.hero-search .ic {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate);
    font-size: 15px;
    pointer-events: none;
}

.hero-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: var(--green);
    color: var(--ink);
    border: none;
    border-radius: 5px;
    padding: 0 16px;
    font-size: 12.5px;
    font-weight: 600;
}

.hero-search button:hover {
    background: #00E886;
}

.hero-actions .btn {
    height: 46px;
    padding: 0 22px;
    font-size: 14px;
}

/* ========== 滚动条/Ticker ========== */
.ticker-band {
    border-top: 1px solid var(--line);
    background: #0E1012;
    overflow: hidden;
    position: relative;
    margin-top: 40px;
}

.ticker-band::before,
.ticker-band::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 64px;
    z-index: 2;
    pointer-events: none;
}

.ticker-band::before {
    left: 0;
    background: linear-gradient(90deg, #0E1012, transparent);
}

.ticker-band::after {
    right: 0;
    background: linear-gradient(270deg, #0E1012, transparent);
}

.ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0E1012;
    padding: 0 16px 0 0;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .06em;
    color: var(--slate-light);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: scroll-left 46s linear infinite;
}

.ticker-band:hover .ticker-track {
    animation-play-state: paused;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.tick {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    font-family: var(--mono);
    font-size: 12.5px;
    border-right: 1px solid var(--line);
    white-space: nowrap;
}

.tick .mpn {
    color: var(--paper);
    font-weight: 600;
}

.tick .stat {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.tick .stat.in {
    color: var(--green);
    background: rgba(0, 209, 122, .1);
}

.tick .stat.low {
    color: var(--amber);
    background: rgba(255, 138, 61, .1);
}

.tick .stat.out {
    color: var(--red);
    background: rgba(255, 92, 92, .1);
}

.tick .stat.rfq {
    color: var(--slate-light);
    background: rgba(139, 146, 160, .12);
    font-weight: 500;
}

.tick .px {
    color: var(--slate-light);
}

/* ========== 统计栏 ========== */
.stats {
    background: var(--paper-dim);
    border-bottom: 1px solid var(--line-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 30px 0;
}

.stat-item {
    padding: 0 24px;
    border-left: 1px solid var(--line-light);
}

.stat-item:first-child {
    border-left: none;
    padding-left: 0;
}

.stat-num {
    font-family: var(--mono);
    font-weight: 600;
    font-size: clamp(22px, 3vw, 30px);
    color: var(--ink);
}

.stat-num .u {
    color: var(--green-dim);
    font-size: .55em;
    margin-left: 2px;
}

.stat-label {
    font-size: 12.5px;
    color: var(--slate-light);
    margin-top: 4px;
}

/* ========== Section 通用外壳 ========== */
section {
    padding: 64px 0;
}

.sec-head {
    max-width: 680px;
    margin-bottom: 32px;
}

.sec-kicker {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--green-dim);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.sec-head h2 {
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 700;
    letter-spacing: -.01em;
}

.sec-head p {
    color: var(--slate-light);
    margin-top: 10px;
    font-size: 14px;
}

/* ========== 品牌条 ========== */
.brand-strip {
    background: var(--panel-light);
    border: 1px solid var(--line-light);
    border-radius: 10px;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.brand-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    font-family: var(--mono);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--slate-light);
    border-radius: 6px;
    text-align: center;
    padding: 6px;
}

.brand-chip:hover {
    background: var(--paper);
    color: var(--ink);
}

.brand-chip.core {
    color: var(--green-dim);
}

/* ========== 优势卡片 ========== */
.adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line-light);
    border: 1px solid var(--line-light);
    border-radius: 10px;
    overflow: hidden;
}

.adv-card {
    background: var(--panel-light);
    padding: 24px;
}

.adv-card .idx {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--green-dim);
    font-weight: 600;
    margin-bottom: 12px;
}

.adv-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.adv-card p {
    font-size: 12.5px;
    color: var(--slate-light);
}

/* ========== 产品组合 ========== */
.portfolio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.portfolio.g6 {
    grid-template-columns: repeat(3, 1fr);
}

.pf-group {
    background: var(--panel-light);
    border: 1px solid var(--line-light);
    border-radius: 10px;
    padding: 24px;
}

.pf-group.core {
    border-color: var(--green-dim);
    box-shadow: 0 0 0 1px var(--green-dim) inset;
}

.pf-group h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pf-group .tag-line {
    font-size: 12px;
    color: var(--slate-light);
    margin-bottom: 16px;
    font-family: var(--mono);
}

.pf-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-top: 1px dashed var(--line-light);
    font-size: 13.5px;
    color: inherit;
    text-decoration: none;
    transition: .15s;
}

.pf-item:hover {
    color: var(--green-dim);
}

.pf-item:first-of-type {
    border-top: none;
}

.pf-item .n {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--slate-light);
}

/* ========== 品牌矩阵 ========== */
.matrix-group {
    margin-bottom: 22px;
}

.matrix-group:last-child {
    margin-bottom: 0;
}

.matrix-group .mg-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--green-dim);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 12px;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line-light);
    border: 1px solid var(--line-light);
    border-radius: 10px;
    overflow: hidden;
}

.matrix-item {
    background: var(--panel-light);
    padding: 16px 18px;
    display: block;
    transition: background .12s;
}

.matrix-item:hover {
    background: var(--paper);
}

.matrix-item .name {
    font-size: 13.5px;
    font-weight: 600;
}

.matrix-item .country {
    font-size: 11px;
    color: var(--slate-light);
    margin-top: 3px;
}

/* ========== 行业卡片 ========== */
.ind-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ind-card {
    background: var(--ink);
    color: var(--paper);
    border-radius: 10px;
    padding: 26px;
}

.ind-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
}

.ind-card .row {
    margin-bottom: 10px;
}

.ind-card .row .k {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 4px;
}

.ind-card .row .v {
    font-size: 12.5px;
    color: var(--slate);
}

/* ========== 服务流程 ========== */
.process-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: var(--line-light);
    border: 1px solid var(--line-light);
    border-radius: 10px;
    overflow: hidden;
}

.proc-step {
    background: var(--panel-light);
    padding: 20px 16px;
    text-align: center;
}

.proc-step .num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--green);
    font-family: var(--mono);
    font-size: 12.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.proc-step h4 {
    font-size: 12.5px;
    font-weight: 600;
}

/* ========== 品质标识 ========== */
.qual-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.qual-item {
    border: 1px solid var(--line-light);
    border-radius: 8px;
    padding: 16px 10px;
    text-align: center;
    background: var(--panel-light);
}

.qual-item .ic {
    font-size: 18px;
    margin-bottom: 8px;
}

.qual-item .t {
    font-size: 12px;
    font-weight: 600;
}

/* ========== FAQ ========== */
.faq-list {
    max-width: 820px;
}

.faq-item {
    border-bottom: 1px solid var(--line-light);
    padding: 16px 0;
}

.faq-item summary {
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-family: var(--mono);
    font-size: 18px;
    color: var(--slate-light);
    flex: none;
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-item p {
    font-size: 13.5px;
    color: var(--slate-light);
    margin-top: 10px;
    max-width: 680px;
}

/* ========== CTA / BOM 报价表单 ========== */

/* 询价模块外层：沿用 .trust，改为纵向布局 */
.trust {
    background: var(--ink);
    color: var(--paper);
    border-radius: 14px;
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* ---------- 询价标题区 ---------- */
.quote-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quote-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    letter-spacing: .04em;
}

.quote-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--paper);
    margin: 0;
}

/* ---------- 主体：左表单 + 右二维码 ---------- */
.quote-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 36px;
    align-items: stretch;
}

/* ---------- 左侧：表单卡片 ---------- */
.quote-form-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px;
}

/* 表单行（两列布局） */
.qf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.qf-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qf-field--full {
    margin-bottom: 20px;
}

.qf-field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--slate);
    letter-spacing: .01em;
}

/* 必填项红色星号 */
.qf-required {
    color: var(--red);
    margin-left: 2px;
    font-weight: 600;
}

/* 表单顶部必填提示 */
.qf-hint {
    font-size: 13px;
    color: var(--slate);
    margin: 0 0 24px 0;
    line-height: 1.6;
}

/* 输入框 */
.qf-field input[type="text"],
.qf-field input[type="tel"],
.qf-field input[type="email"] {
    width: 100%;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--paper);
    font-size: 14px;
    padding: 14px 16px;
    font-family: var(--sans);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.qf-field input[type="text"]:focus,
.qf-field input[type="tel"]:focus,
.qf-field input[type="email"]:focus,
.qf-field textarea:focus {
    outline: none;
    border-color: var(--green-dim);
    box-shadow: 0 0 0 3px rgba(0, 209, 122, 0.08);
}

.qf-field input::placeholder,
.qf-field textarea::placeholder {
    color: var(--slate);
    opacity: .7;
}

/* 型号数量文本框 */
.qf-field textarea {
    width: 100%;
    min-height: 120px;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--paper);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.6;
    padding: 14px 16px;
    resize: vertical;
    transition: border-color .2s ease, box-shadow .2s ease;
}

/* 上传文件 */
.qf-upload {
    display: block;
    cursor: pointer;
}

.qf-upload input[type="file"] {
    display: none;
}

.qf-upload-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--ink);
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--slate);
    font-size: 14px;
    transition: all .2s ease;
}

.qf-upload:hover .qf-upload-inner {
    border-color: var(--green-dim);
    color: var(--paper);
}

.qf-upload-icon {
    font-size: 16px;
    line-height: 1;
}

.qf-file-name {
    margin-top: 8px;
    font-size: 12px;
    color: var(--green);
    min-height: 16px;
}

/* 提交按钮 */
.qf-actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

/* 隐私提示文字 */
.qf-privacy {
    font-size: 12px;
    color: var(--slate);
    margin: 0;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}

.qf-submit {
    background: var(--green);
    color: var(--ink) !important;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}

.qf-submit:hover {
    background: #00E086;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 209, 122, 0.2);
}

.qf-submit:active {
    transform: translateY(0);
}

.qf-arrow {
    font-size: 16px;
    font-weight: 700;
}

.qf-actions .form-status {
    font-size: 13px;
    margin-top: 4px;
    display: none;
    flex-basis: 100%;
}

.qf-actions .form-status.success {
    color: var(--green);
    display: block;
}

.qf-actions .form-status.error {
    color: var(--red);
    display: block;
}

/* ---------- 右侧：二维码卡片 ---------- */
.quote-qr-card {
    background: var(--panel);
    border: 1px solid var(--green);
    border-radius: 12px;
    padding: 36px 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.qr-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--paper);
    margin: 0;
    letter-spacing: -.01em;
}

.qr-desc {
    font-size: 13.5px;
    color: var(--slate);
    margin: 0;
    line-height: 1.6;
}

/* 二维码图片 */
.qr-image-wrap {
    margin: 8px 0 4px;
}

.qr-image {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    background: var(--paper);
    object-fit: cover;
    display: block;
}

.qr-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    color: var(--slate);
    font-size: 12px;
    line-height: 1.5;
    border: 1px dashed var(--line);
}

/* 三步流程 */
.qr-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    margin: 8px 0 16px;
    padding: 0;
}

.qr-steps li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-num {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: .04em;
}

.step-text {
    font-size: 13px;
    color: var(--paper);
    line-height: 1.4;
}

/* 联系方式 */
.qr-contact {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.qr-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.qr-contact-label {
    font-size: 12px;
    color: var(--slate);
    letter-spacing: .02em;
}

.qr-contact-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-light);
    font-family: var(--mono);
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
    .trust {
        padding: 40px 28px;
        gap: 28px;
    }
    .quote-title {
        font-size: 32px;
    }
    .quote-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .qf-row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }
    .quote-form-card {
        padding: 24px;
    }
    .quote-qr-card {
        padding: 28px 24px;
    }
}

@media (max-width: 520px) {
    .trust {
        padding: 32px 20px;
    }
    .quote-title {
        font-size: 26px;
    }
    .qr-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .step-text {
        font-size: 12px;
    }
    .qr-contact {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ---------- 旧类名兼容 ---------- */
.trust-left,
.trust .contacts,
.bom-card,
.bom-card h4,
.bom-card input[type="text"],
.bom-card input[type="email"],
.bom-card textarea,
.bom-card .form-status {
    /* 保留旧类，样式已迁移到新的 quote-* 类 */
}

/* ========== 页脚 ========== */
footer.site-footer {
    background: var(--ink);
    color: var(--slate);
    padding: 48px 0 24px;
    margin-top: 16px;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.foot-brand .logo {
    color: var(--paper);
    margin-bottom: 10px;
}

.foot-brand p {
    font-size: 12.5px;
    color: var(--slate-light);
    max-width: 260px;
}

.foot-col h4 {
    font-size: 11.5px;
    color: var(--paper);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 14px;
}

.foot-col a,
.foot-col span {
    display: block;
    font-size: 13px;
    color: var(--slate);
    margin-bottom: 9px;
}

.foot-col a:hover {
    color: var(--paper);
}

.foot-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    font-size: 12px;
    color: var(--slate-light);
    flex-wrap: wrap;
    gap: 10px;
}

/* ========== 产品分类标签（Products页） ========== */
.cat-tabs {
    background: var(--panel-light);
    border-bottom: 1px solid var(--line-light);
}

.cat-tabs .wrap {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cat-tab-btn {
    display: inline-block;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 14px 18px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--slate-light);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: .15s;
}

.cat-tab-btn:hover,
.cat-tab-btn.active {
    color: var(--ink);
    border-bottom-color: var(--green);
}

/* ========== 双栏布局（Products页） ========== */
.shell {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 24px;
    padding: 32px 0;
}

.filters {
    position: sticky;
    top: 80px;
    align-self: start;
}

.filter-section {
    background: var(--panel-light);
    border: 1px solid var(--line-light);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 16px;
}

.filter-section h4 {
    font-size: 11.5px;
    color: var(--slate-light);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 14px;
}

.search-box {
    position: relative;
    margin-bottom: 0;
}

.search-box input {
    width: 100%;
    height: 36px;
    border: 1px solid var(--line-light);
    border-radius: 6px;
    padding: 0 12px 0 34px;
    font-size: 12.5px;
    color: var(--ink);
}

.search-box input:focus {
    outline: none;
    border-color: var(--green);
}

.search-box .ic {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-light);
    font-size: 13px;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 12.5px;
}

.filter-row input[type="checkbox"] {
    accent-color: var(--green-dim);
}

.filter-row .count {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--slate-light);
}

.filter-scroll {
    max-height: 260px;
    overflow-y: auto;
}

.clear-filters-btn {
    width: 100%;
    background: none;
    border: 1px solid var(--line-light);
    border-radius: 6px;
    padding: 8px;
    font-size: 11.5px;
    color: var(--slate-light);
    cursor: pointer;
    transition: .15s;
}

.clear-filters-btn:hover {
    border-color: var(--slate-light);
    color: var(--ink);
}

/* ========== 产品表格 ========== */
.results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 12.5px;
    color: var(--slate-light);
}

.results-bar select {
    border: 1px solid var(--line-light);
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 12px;
}

.ptable-wrap {
    background: var(--panel-light);
    border: 1px solid var(--line-light);
    border-radius: 10px;
    overflow: hidden;
}

.ptable {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.ptable thead th {
    background: var(--ink);
    color: var(--paper);
    font-size: 12px;
    font-weight: 600;
    padding: 14px 18px;
    text-align: left;
}

.ptable tbody tr {
    border-top: 1px solid var(--line-light);
    cursor: pointer;
    transition: background .12s;
}

.ptable tbody tr:hover {
    background: #E4F7EE;
}

.ptable tbody tr.alt {
    background: var(--paper-dim);
}

.ptable tbody tr.alt:hover {
    background: #E4F7EE;
}

.ptable td {
    padding: 14px 18px;
}

.mpn-cell {
    font-family: var(--mono);
    font-weight: 600;
    white-space: nowrap;
}

.mpn-cell .arrow {
    color: var(--green);
    margin-left: 4px;
}

.brand-cell a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.brand-cn {
    display: block;
    font-size: 11px;
    color: var(--slate-light);
}

.series-cell {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--slate-light);
}

.app-cell {
    font-size: 12.5px;
    color: var(--slate-light);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--slate-light);
    font-size: 14px;
}

/* ========== 面包屑导航 ========== */
.breadcrumbs {
    font-size: 12px;
    color: var(--slate-light);
    margin-bottom: 8px;
}

.breadcrumbs a {
    color: var(--slate);
}

.breadcrumbs a:hover {
    color: var(--green);
}

.breadcrumbs .sep {
    margin: 0 6px;
}

/* ========== 页面头部（Products/单产品页） ========== */
.pagehead {
    background: var(--ink);
    color: var(--paper);
    padding: 40px 0;
}

.pagehead h1 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    letter-spacing: -.01em;
}

.pagehead p {
    color: var(--slate);
    font-size: 14px;
    margin-top: 8px;
}

/* ========== 单产品详情页（匹配静态页面布局） ========== */
.product-detail {
    padding: 48px 0;
}

/* 双栏网格：左侧内容自适应 + 右侧 380px RFQ 固定栏 */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 36px;
    align-items: start;
}

/* 左侧：芯片视觉区 */
.visual-panel {
    background: var(--panel-light);
    border: 1px solid var(--line-light);
    border-radius: 10px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    margin-bottom: 16px;
}

/* PDF 下载按钮 */
.datasheet-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line-light);
    border-radius: 6px;
    padding: 9px 14px;
    font-size: 13px;
    color: var(--ink);
    background: var(--panel-light);
    transition: .15s;
    margin-bottom: 14px;
}

.datasheet-btn:hover {
    border-color: var(--green-dim);
    color: var(--green-dim);
}

.datasheet-btn .ic {
    font-size: 16px;
}

/* 标签行：RoHS / 可追溯 / 正品 */
.badge-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.prod-badge {
    font-size: 11.5px;
    color: var(--slate-light);
    padding: 3px 10px;
    border: 1px solid var(--line-light);
    border-radius: 4px;
    background: var(--panel-light);
}

/* 品牌标签 */
.brand-tag {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--green-dim);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 10px;
}

.brand-tag a {
    color: var(--green-dim);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.brand-tag a:hover {
    color: var(--green);
}

/* MPN 标题 */
.prod-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -.01em;
}

/* 产品描述 */
.prod-desc {
    font-size: 13.5px;
    color: var(--slate-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 产品详细描述 */
.prod-long-desc {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--slate-light);
}

/* 产品描述富文本：段落 */
.prod-long-desc p {
    margin-bottom: 1em;
}

/* 空白段落可见 — 后台按几次回车就显示几行间距 */
.prod-long-desc p:empty::before {
    content: '\00a0';
    display: block;
}

/* 产品描述富文本：表格 */
.prod-long-desc table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13px;
}

.prod-long-desc th {
    background: var(--panel-light);
    color: var(--ink);
    font-weight: 600;
    text-align: left;
    padding: 10px 12px;
    border: 1px solid var(--line-light);
}

.prod-long-desc td {
    padding: 8px 12px;
    border: 1px solid var(--line-light);
    color: var(--ink);
}

.prod-long-desc tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.03);
}

/* 产品描述富文本：列表 */
.prod-long-desc ul,
.prod-long-desc ol {
    margin: 12px 0;
    padding-left: 24px;
}

.prod-long-desc li {
    margin-bottom: 6px;
}

/* 产品描述富文本：链接 */
.prod-long-desc a {
    color: var(--green-dim);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}

.prod-long-desc a:hover {
    border-bottom-color: var(--green-dim);
}

/* 产品描述富文本：标题 */
.prod-long-desc h2,
.prod-long-desc h3 {
    color: var(--ink);
    margin: 20px 0 10px;
}

.prod-long-desc h2 { font-size: 18px; }
.prod-long-desc h3 { font-size: 16px; }

/* 产品描述富文本：图片 */
.prod-long-desc img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 12px 0;
}

/* 规格参数表（左标签右值，匹配静态页） */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.spec-table tr {
    border-top: 1px solid var(--line-light);
}

.spec-table tr:first-child {
    border-top: none;
}

.spec-table td {
    padding: 11px 0;
    font-size: 13.5px;
}

.spec-table td:first-child {
    color: var(--slate-light);
    width: 140px;
}

.spec-table td:last-child {
    font-weight: 500;
}

/* 右侧：RFQ + Order Online 列容器 */
.detail-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 右侧：RFQ 固定栏（buy box） */
.detail-buybox {
    align-self: start;
    background: var(--panel-light);
    border: 1px solid var(--line-light);
    border-radius: 10px;
    padding: 22px;
}

/* Order Online 容器 — 仅保留定位，视觉样式由内部 .order-card 提供 */
.detail-buybox.order-card-buybox {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.rfq-note {
    font-size: 14px;
    color: var(--slate-light);
    line-height: 1.75;
    margin-bottom: 18px;
}
.rfq-note strong {
    color: var(--green-dim);
    font-weight: 700;
}

/* RFQ 弹窗触发按钮（大按钮样式） */
.rfq-big-btn {
    width: 100%;
    min-height: 60px;
    justify-content: center;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
    background: var(--green) !important;
    border: none !important;
    border-radius: 12px !important;
    gap: 10px;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.rfq-big-btn:hover {
    background: #00E086 !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 209, 122, .25);
}
.rfq-modal-trigger {
    cursor: pointer;
}

/* 或微信咨询 分割线 */
.wechat-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0 20px;
    color: var(--slate-light);
    font-size: 14px;
}
.wechat-divider::before,
.wechat-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line-light);
}
.wechat-divider span {
    flex: none;
}

/* ===== 微信咨询黑卡片 ===== */
.wechat-consult-card {
    background: var(--ink);
    color: var(--paper);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 16px;
}
.wechat-consult-inner {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    align-items: stretch;
}

/* 二维码盒子（左） */
.wechat-qr-box {
    display: flex;
    align-items: center;
    justify-content: center;
}
.wechat-qr-img {
    width: 130px;
    height: 130px;
    border-radius: 10px;
    background: #fff;
    object-fit: cover;
    display: block;
}
.wechat-qr-placeholder {
    box-sizing: border-box;
    border: 1px dashed rgba(255,255,255,.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    padding: 10px;
}
.qr-ph-text1 {
    font-size: 11.5px;
    color: rgba(255,255,255,.55);
    line-height: 1.3;
}
.qr-ph-text2 {
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(255,255,255,.45);
}

/* 销售信息盒子（右） */
.wechat-info-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
}
.wechat-online-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.wechat-online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(0, 209, 122, .18);
    flex: none;
}
.wechat-online-text {
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
}
.wechat-consult-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--paper);
    margin: 0;
}
.wechat-consult-desc {
    font-size: 13px;
    color: var(--slate);
    line-height: 1.55;
    margin: 0 0 10px;
}

/* 复制型号按钮 */
.wechat-copy-mpn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--panel);
    color: var(--paper);
    border: 1px solid var(--line);
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s ease;
    font-family: inherit;
}
.wechat-copy-mpn:hover {
    background: #1c1f23;
    border-color: var(--green-dim);
    color: var(--green);
}
.wechat-copy-mpn.copied {
    background: rgba(0, 209, 122, .12);
    border-color: var(--green);
    color: var(--green);
}
.copy-ic {
    font-size: 15px;
    line-height: 1;
}

/* 微信号 / 电话行 */
.wechat-contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0 20px;
}
.wc-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.wc-label {
    font-size: 12px;
    color: var(--slate-light);
    letter-spacing: .02em;
}
.wc-value {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -.01em;
}

/* 返回产品目录按钮 */
.wc-back-btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    border-color: var(--line-light) !important;
    color: var(--slate) !important;
    font-size: 14px !important;
    margin-top: 0 !important;
    border-radius: 10px !important;
}
.wc-back-btn:hover {
    border-color: var(--green-dim) !important;
    color: var(--green-dim) !important;
}

/* 小屏适配（卡片宽度变窄） */
@media (max-width: 1080px) {
    .wechat-consult-inner {
        grid-template-columns: 110px 1fr;
        gap: 14px;
    }
    .wechat-qr-img {
        width: 110px;
        height: 110px;
    }
    .wechat-consult-title {
        font-size: 19px;
    }
}

/* ========== Order Online 下单面板 ========== */
.order-card {
    background: var(--panel-light);
    border: 1px solid var(--line-light);
    border-radius: 10px;
    padding: 22px;
}

.order-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--ink);
}

.order-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 12px;
}

.order-stock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    flex: none;
}

.order-stock-dot.in {
    background: var(--green);
    box-shadow: 0 0 6px rgba(0,209,122,.4);
}

.order-price {
    display: flex;
    align-items: baseline;
    margin: 18px 0 6px;
}

.order-currency {
    font-size: 16px;
    color: var(--slate-light);
    margin-right: 6px;
}

.order-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.order-per {
    font-size: 16px;
    color: var(--slate-light);
    margin-left: 4px;
}

.order-tip {
    font-size: 13px;
    color: var(--slate-light);
    margin-bottom: 20px;
}

.order-vol-title {
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 10px;
    font-weight: 500;
}

.order-green {
    color: var(--green);
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.order-table tr {
    cursor: pointer;
    transition: background .15s;
}

.order-table tr td {
    padding: 10px 8px;
    font-size: 14px;
    color: var(--ink);
    border-bottom: 1px solid var(--line-light);
}

.order-table tr:last-child td {
    border-bottom: none;
}

.order-table tr.active {
    background: rgba(0,209,122,.06);
}

.order-table tr:hover {
    background: rgba(0,209,122,.04);
}

.order-table td:last-child {
    text-align: right;
}

.order-table-price {
    color: var(--green);
    font-weight: 600;
}

.order-discount {
    color: var(--slate-light);
    margin-left: 8px;
    font-size: 12px;
}

.order-qty-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
}

.order-qty-left label,
.order-total-right label {
    display: block;
    font-size: 13px;
    color: var(--slate-light);
    margin-bottom: 6px;
}

.order-qty-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--line-light);
    border-radius: 6px;
    overflow: hidden;
}

.order-qty-input input {
    width: 70px;
    border: none;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    padding: 8px 4px;
    color: var(--ink);
    background: transparent;
    -moz-appearance: textfield;
}

.order-qty-input input::-webkit-outer-spin-button,
.order-qty-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.order-qty-btn {
    width: 36px;
    height: 40px;
    border: none;
    background: var(--paper-dim);
    color: var(--ink);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.order-qty-btn:hover {
    background: var(--slate);
    color: var(--paper);
}

.order-total-right {
    text-align: right;
}

.order-total-val {
    font-size: 28px;
    font-weight: 600;
    color: var(--ink);
}

.btn-order-cart {
    width: 100%;
    padding: 14px;
    background: var(--green);
    border: none;
    border-radius: 8px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background .15s;
}

.btn-order-cart:hover {
    background: #00E886;
}

.btn-order-cart:disabled {
    background: var(--slate);
    color: var(--paper);
    cursor: not-allowed;
}

.btn-order-viewcart {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: transparent;
    border: 1px solid var(--line-light);
    border-radius: 8px;
    color: var(--slate-light);
    font-size: 15px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: border-color .15s, color .15s;
}

.btn-order-viewcart:hover {
    border-color: var(--slate);
    color: var(--ink);
}

.order-meta {
    font-size: 14px;
    color: var(--slate-light);
    margin-bottom: 10px;
}

.order-desc {
    font-size: 13px;
    color: var(--slate-light);
    line-height: 1.5;
}

.order-no-price {
    text-align: center;
    color: var(--slate-light);
    padding: 20px 0;
}

/* ========== 同类推荐 ========== */
.related-sec {
    margin-top: 56px;
    padding-bottom: 48px;
}

.related-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.rel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.rel-card {
    background: var(--panel-light);
    border: 1px solid var(--line-light);
    border-radius: 10px;
    padding: 16px;
    display: block;
    transition: .12s;
}

.rel-card:hover {
    border-color: var(--green-dim);
    background: var(--paper);
}

.rel-card .b {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--green-dim);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}

.rel-card .m {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.rel-card .d {
    font-size: 11.5px;
    color: var(--slate-light);
    min-height: 28px;
}

/* ========== 弹窗 Modal ========== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: var(--panel-light);
    border: 1px solid var(--line-light);
    border-radius: 12px;
    padding: 24px;
    max-width: 580px;
    width: 92%;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    animation: modalSlideIn .25s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 弹窗头部：标题 + 关闭按钮 */
.rfq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rfq-header h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: var(--ink);
}

.modal-close {
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.modal-close:hover {
    color: var(--ink);
}

/* 型号标签 */
.model-tag {
    background: #e9fbf1;
    color: var(--green-dim);
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
    font-size: 14px;
    margin-bottom: 14px;
}

/* 顶部必填提示 */
.tip-text {
    color: #666;
    font-size: 14px;
    margin: 0 0 20px;
}

/* 红色必填星号 */
.red-star {
    color: var(--red);
}

/* 表单行 */
.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
    color: #333;
}

.form-row input,
.form-row textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--green);
}

.form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row textarea {
    min-height: 120px;
    resize: vertical;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 8px 0 16px;
    transition: background .2s ease;
}

.submit-btn:hover {
    background: var(--green-dim);
}

/* 底部隐私提示 */
.bottom-tip {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* 弹窗表单状态消息 */
.modal-card .form-status {
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
    display: none;
}

.modal-card .form-status.success {
    color: var(--green-dim);
    display: block;
}

.modal-card .form-status.error {
    color: var(--red);
    display: block;
}

/* ========== 新增品牌展示条 Section 样式 ========== */
.brands-strip-section {
    padding: 64px 0;
}

/* =========================================================
   响应式设计（仅作用于平板与手机端，PC 端样式保持不变）
   断点说明：
   - 1024px 及以下：平板横屏
   - 960px  及以下：平板
   - 860px  及以下：小平板 / 大屏手机
   - 768px  及以下：手机
   - 560px  及以下：小屏手机
   - 400px  及以下：超小屏手机
   ========================================================= */

/* ---------- 平板横屏（≤1024px） ---------- */
@media (max-width: 1024px) {
    /* 全局容器：略微收窄左右留白 */
    .wrap {
        padding: 0 20px;
    }

    /* Header：压缩元素间距，避免导航与按钮挤压 */
    .header-inner {
        gap: 18px;
    }

    .main-nav {
        gap: 18px;
    }
}

/* ---------- 平板（≤960px） ---------- */
@media (max-width: 960px) {
    /* 产品列表页：双栏改单栏，筛选器转为顶部横向排列
       .shell 同时带有 .wrap 类，但基础样式里 .shell 的 padding 覆盖了 .wrap 的
       左右留白（变为 0），导致窄屏下内容贴边/溢出，此处补回左右留白 */
    .shell {
        grid-template-columns: 1fr;
        padding-left: 20px;
        padding-right: 20px;
    }

    .filters {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        margin-bottom: 20px;
    }

    .filter-section {
        flex: 1;
        min-width: 200px;
        margin-bottom: 0;
    }

    /* 产品表格：平板端允许横向滚动，避免列被裁切 */
    .ptable-wrap {
        overflow-x: auto;
    }

    /* 产品详情页：双栏改单栏 */
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-buybox {
        position: static;
    }

    /* 同类推荐：4 列改 2 列 */
    .rel-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* 产品体系：3 列改 2 列 */
    .portfolio.g6 {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------- 小平板 / 大屏手机（≤860px） ---------- */
@media (max-width: 860px) {
    /* 主导航在窄屏隐藏（当前无汉堡菜单，功能保持不变） */
    .main-nav {
        display: none !important;
    }

    /* Header：压缩 Logo 与操作按钮尺寸，保证一行放下 */
    .header-inner {
        gap: 12px;
    }

    .logo {
        font-size: 16px;
    }

    .logo .sub {
        font-size: 9.5px;
    }

    .header-actions {
        gap: 8px;
    }

    .lang-switch {
        height: 36px;
        padding: 0 10px;
        font-size: 11px;
    }

    .header-actions .btn {
        height: 36px;
        padding: 0 12px;
        font-size: 12px;
    }

    /* 统计栏：4 列改 2 列 */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 22px;
    }

    .stat-item:nth-child(3) {
        border-left: none;
    }

    /* 品牌条：6 列改 3 列 */
    .brand-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 核心优势：4 列改 2 列 */
    .adv-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* 产品体系（双栏版）：改单栏 */
    .portfolio {
        grid-template-columns: 1fr;
    }

    /* 品牌矩阵：4 列改 2 列 */
    .matrix-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* 行业卡片：3 列改单栏 */
    .ind-grid {
        grid-template-columns: 1fr;
    }

    /* 服务流程：6 列改 3 列 */
    .process-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 品质标识：6 列改 3 列 */
    .qual-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 14px;
    }

    /* CTA / BOM 报价：双栏改单栏 */
    .trust {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    /* 页脚：4 列改 2 列 */
    .foot-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 26px;
    }
}

/* ---------- 手机（≤768px） ---------- */
@media (max-width: 768px) {
    /* 顶部栏：允许换行，压缩高度，避免溢出 */
    .topbar .wrap {
        height: auto;
        min-height: 38px;
        padding-top: 6px;
        padding-bottom: 6px;
        flex-wrap: wrap;
        gap: 6px 16px;
    }

    .topbar .acct {
        gap: 10px;
    }

    /* Hero：缩小标题与间距 */
    .hero {
        padding-top: 36px;
    }

    .hero h1 {
        font-size: clamp(24px, 7.5vw, 32px);
    }

    .hero p.lede {
        font-size: 14px;
        margin: 14px 0 20px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* 产品筛选：由横向排列改为纵向堆叠，占满宽度 */
    .filters {
        flex-direction: column;
    }

    .filter-section {
        min-width: 0;
        width: 100%;
    }

    /* 产品详情页：压缩头部、视觉区与价格字号 */
    .pagehead {
        padding: 30px 0;
    }

    .product-detail {
        padding: 32px 0;
    }

    .visual-panel {
        padding: 20px;
        min-height: 180px;
    }

    .spec-table td:first-child {
        width: 110px;
    }

    .order-amount {
        font-size: 40px;
    }
}

/* ---------- 手机（≤760px） - 产品表格转卡片式 ---------- */
@media (max-width: 760px) {
    .ptable thead {
        display: none;
    }

    .ptable,
    .ptable tbody,
    .ptable tr,
    .ptable td {
        display: block;
    }

    .ptable tr {
        padding: 16px;
        border-bottom: 1px solid var(--line-light);
    }

    .ptable td {
        padding: 4px 0;
        border: none;
    }

    /* 型号单元格：解除强制不换行，长型号在卡片模式下自动换行，避免横向溢出 */
    .mpn-cell {
        white-space: normal;
        word-break: break-all;
    }

    .ptable td::before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        width: 90px;
        color: var(--slate-light);
        font-size: 11px;
    }
}

/* ---------- 小屏手机（≤560px） ---------- */
@media (max-width: 560px) {
    /* 全局容器：进一步收窄左右留白（仅改左右，避免覆盖 .shell 等组合类的上下 padding） */
    .wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* 顶部栏：隐藏左侧描述文案，邮箱与标签占满一行 */
    .topbar .wrap > span:first-child {
        display: none;
    }

    .topbar .acct {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }

    /* Header：隐藏 Logo 副标题，进一步压缩 */
    .logo .sub {
        display: none;
    }

    .logo {
        font-size: 15px;
    }

    .header-inner {
        padding: 10px 0;
    }

    /* 品牌条：3 列改 2 列 */
    .brand-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 核心优势 / 产品体系：改单列 */
    .adv-grid,
    .portfolio.g6 {
        grid-template-columns: 1fr;
    }

    /* 品牌矩阵：2 列改单列 */
    .matrix-grid {
        grid-template-columns: 1fr;
    }

    /* 服务流程：3 列改 2 列 */
    .process-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 品质标识：3 列改 2 列 */
    .qual-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 同类推荐：2 列改单列 */
    .rel-grid {
        grid-template-columns: 1fr;
    }

    /* CTA / BOM：进一步压缩内边距 */
    .trust {
        padding: 20px;
        gap: 24px;
    }

    .bom-card {
        padding: 18px;
    }

    /* 页脚：品牌列通栏，其余保持 2 列 */
    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }

    .foot-brand {
        grid-column: 1 / -1;
    }

    .foot-bottom {
        flex-direction: column;
    }

    /* 产品列表结果栏：纵向排列 */
    .results-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* 产品详情下单面板：数量与总价纵向排列 */
    .order-qty-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .order-total-right {
        text-align: left;
    }

    .order-qty-left,
    .order-total-right {
        width: 100%;
    }

    /* 弹窗：压缩内边距 */
    .modal-card {
        padding: 24px 20px;
    }

    /* Header：隐藏获取报价按钮（保留语言切换与查看目录） */
    .header-actions .btn-ghost {
        display: none;
    }

    /* 品牌展示区压缩上下间距 */
    .brands-strip-section,
    .brands-section {
        padding: 40px 0;
    }
}

/* ---------- 超小屏手机（≤400px） ---------- */
@media (max-width: 400px) {
    /* 顶部栏邮箱可能过长，超长省略显示 */
    .topbar .acct span:last-child {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 产品卡片标签列宽收窄 */
    .ptable td::before {
        width: 76px;
    }
}

/* =========================================================
   抽屉式购物车（产品详情页「加入购物车」触发）
   - 右侧滑入面板，PC 端固定 420px，窄屏自动铺满
   - 遮罩点击 / × 按钮 / ESC 均可关闭
   ========================================================= */
.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    visibility: hidden;
    pointer-events: none;
}

.cart-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.cart-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .25s ease;
}

.cart-drawer.is-open .cart-drawer-backdrop {
    opacity: 1;
}

.cart-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    background: var(--panel-light);
    border-left: 1px solid var(--line-light);
    box-shadow: -12px 0 32px rgba(0, 0, 0, .18);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s ease;
}

.cart-drawer.is-open .cart-drawer-panel {
    transform: translateX(0);
}

/* 抽屉头部 */
.cart-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cart-drawer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--green-dim);
    background: rgba(0, 209, 122, .12);
    border: 1px solid rgba(0, 209, 122, .35);
    border-radius: 999px;
    padding: 4px 12px;
}

.cart-drawer-close {
    width: 34px;
    height: 34px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    color: var(--slate-light);
    background: transparent;
    border: 1px solid var(--line-light);
    border-radius: 8px;
    transition: border-color .15s, color .15s;
}

.cart-drawer-close:hover {
    border-color: var(--slate);
    color: var(--ink);
}

/* 商品信息 */
.cart-drawer-prod {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line-light);
    border-radius: 10px;
}

.cart-drawer-thumb {
    width: 64px;
    height: 64px;
    flex: none;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line-light);
    border-radius: 8px;
}

.cart-drawer-thumb-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 24px;
    font-weight: 600;
    color: var(--green-dim);
}

.cart-drawer-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-drawer-name {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
}

.cart-drawer-sku {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--slate-light);
    word-break: break-all;
}

.cart-drawer-calc {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--slate-light);
}

.cart-drawer-qty::before {
    content: '×';
    margin-right: 4px;
    opacity: .7;
}

/* 合计 */
.cart-drawer-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid var(--line-light);
    font-size: 13px;
    color: var(--slate-light);
}

.cart-drawer-total-row strong {
    font-family: var(--mono);
    font-size: 20px;
    color: var(--ink);
}

/* 购物车真实数据：共 N 件 / 合计 */
.cart-drawer-cartsum {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    background: var(--paper);
    border: 1px solid var(--line-light);
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--slate-light);
}

.cart-drawer-cartsum strong {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink);
}

/* 底部按钮：立即下单 + 查看购物车 */
.cart-drawer-foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-drawer-checkout {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    background: var(--green);
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: background .15s;
}

.cart-drawer-checkout:hover {
    background: #00E886;
}

.cart-drawer-viewcart {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: transparent;
    border: 1px solid var(--line-light);
    border-radius: 8px;
    color: var(--slate-light);
    font-size: 15px;
    transition: border-color .15s, color .15s;
}

.cart-drawer-viewcart:hover {
    border-color: var(--slate);
    color: var(--ink);
}

.cart-drawer-note {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--slate);
}

/* 抽屉打开时锁定页面滚动 */
body.cart-drawer-open {
    overflow: hidden;
}

/* ---------- 抽屉：手机端铺满全宽 ---------- */
@media (max-width: 560px) {
    .cart-drawer-panel {
        width: 100%;
        gap: 16px;
        padding: 18px;
        border-left: none;
    }

    .cart-drawer-thumb {
        width: 56px;
        height: 56px;
    }

    .cart-drawer-total-row strong {
        font-size: 18px;
    }
}
