
/* ========== 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;
    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 报价表单 ========== */
/* ===== Home Quote CTA — header / layout ===== */
.trust {
    background: var(--ink);
    color: var(--paper);
    border-radius: 14px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.quote-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.quote-eyebrow {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .05em;
    color: var(--green);
    text-transform: none;
    line-height: 1;
}

.quote-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin: 0;
    color: var(--paper);
}

/* Left form + Right QR */
.quote-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    align-items: stretch;
}

/* =========== Left Form Card =========== */
.quote-form-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px;
}

#quoteForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Required field asterisk */
.qf-required {
    color: var(--red);
    margin-left: 2px;
    font-weight: 600;
}

/* Form top required hint */
.qf-hint {
    font-size: 13px;
    color: var(--slate);
    margin: 0 0 4px;
    line-height: 1.6;
}

/* Field row (2 cols) */
.qf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Field */
.qf-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.qf-field--full {
    grid-column: 1 / -1;
}

.qf-field label {
    font-size: 14px;
    font-weight: 500;
    color: #C8CCCF;
    line-height: 1;
}

.qf-field input[type="text"],
.qf-field input[type="tel"],
.qf-field input[type="email"],
.qf-field textarea {
    width: 100%;
    box-sizing: border-box;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--paper);
    font-size: 15px;
    padding: 16px 18px;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.qf-field textarea {
    min-height: 110px;
    resize: vertical;
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.7;
}

.qf-field input::placeholder,
.qf-field textarea::placeholder {
    color: #6B7075;
}

.qf-field input:focus,
.qf-field textarea:focus {
    outline: none;
    border-color: var(--green-dim);
    box-shadow: 0 0 0 3px rgba(0, 209, 122, .12);
}

/* Upload */
.qf-upload {
    display: block;
    cursor: pointer;
    border: 1px dashed #3A3F44;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    color: #C8CCCF;
    font-size: 15px;
    transition: border-color .15s, background .15s;
}
.qf-upload:hover {
    border-color: var(--green-dim);
    background: rgba(255,255,255,.02);
}
.qf-upload input[type="file"] {
    display: none;
}

.qf-upload-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 18px;
    line-height: 1;
    vertical-align: -2px;
}

.qf-file-name {
    margin-top: 8px;
    font-size: 12.5px;
    font-family: var(--mono);
    color: var(--green);
    line-height: 1.5;
}

/* Actions (submit + status) */
.qf-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Privacy note */
.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);
    border: none;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    min-height: 52px;
    transition: background .15s, transform .15s, box-shadow .15s;
}
.qf-submit:hover {
    background: #00E086;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 209, 122, .22);
}
.qf-submit:active {
    transform: translateY(0);
}
.qf-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.qf-arrow {
    margin-left: 6px;
    display: inline-block;
    transition: transform .15s;
}
.qf-submit:hover .qf-arrow {
    transform: translateX(3px);
}

.qf-submit + .form-status {
    flex: 1 1 auto;
    margin: 0;
}

.bom-card .form-status,
#qfStatus {
    font-size: 13px;
    display: none;
    line-height: 1.5;
}
.bom-card .form-status.success,
#qfStatus.success,
.form-status.success {
    color: var(--green);
    display: block;
}
.bom-card .form-status.error,
#qfStatus.error,
.form-status.error {
    color: var(--red);
    display: block;
}

/* =========== Right QR Card =========== */
.quote-qr-card {
    background: var(--panel);
    border: 1.5px solid rgba(0, 209, 122, .3);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.qr-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--paper);
    margin: 0;
}
.qr-desc {
    font-size: 14px;
    color: var(--slate);
    line-height: 1.55;
    margin: 0 0 4px;
}

.qr-image-wrap {
    margin: 10px auto 4px;
    width: 220px;
    height: 220px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
    box-sizing: border-box;
}
.qr-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.qr-image--placeholder {
    background: #f0f0ef;
    color: #777;
    font-size: 12px;
    text-align: center;
    padding: 18px;
    line-height: 1.6;
}

/* 3-step list */
.qr-steps {
    list-style: none;
    padding: 0;
    margin: 12px 0 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    counter-reset: none;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}
.qr-steps li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}
.step-num {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: .05em;
}
.step-text {
    font-size: 13px;
    color: #C8CCCF;
    line-height: 1.4;
}

/* Contact row */
.qr-contact {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.qr-contact-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.qr-contact-label {
    font-size: 12px;
    color: var(--slate-light);
    letter-spacing: .02em;
}
.qr-contact-value {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--paper);
    letter-spacing: -.01em;
}

/* Tablet: form+qr collapse to 1 col */
@media (max-width: 960px) {
    .trust {
        padding: 32px 24px;
    }
    .quote-title {
        font-size: 32px;
    }
    .quote-layout {
        grid-template-columns: 1fr;
    }
    .quote-form-card,
    .quote-qr-card {
        padding: 24px;
    }
}

@media (max-width: 520px) {
    .qf-row {
        grid-template-columns: 1fr;
    }
    .qr-contact {
        grid-template-columns: 1fr;
    }
    .quote-title {
        font-size: 28px;
    }
}

/* ========== 页脚 ========== */
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 {
    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;
    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;
}

/* ========== 面包屑导航（含 Rank Math / Yoast 兼容） ========== */
.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;
}

/* Rank Math 面包屑适配 */
.breadcrumbs .rank-math-breadcrumb p {
    margin: 0;
    font-size: inherit;
}

.breadcrumbs .rank-math-breadcrumb .separator {
    margin: 0 6px;
    color: var(--slate-light);
}

.breadcrumbs .rank-math-breadcrumb .last {
    color: var(--paper);
}

/* ========== 页面头部（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(--slate);
}
.prod-long-desc td {
    padding: 8px 12px;
    border: 1px solid var(--slate);
    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-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.prod-long-desc a:hover {
    border-bottom-color: var(--green-light);
}

/* 产品描述富文本：标题 */
.prod-long-desc h2,
.prod-long-desc h3 {
    color: var(--white);
    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） */
/* TODO: 粘性定位暂时取消 */
.detail-buybox {
    /* position: sticky; */
    /* top: 80px; */
    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 {
    /* top: 0; */
    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: 480px;
    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);
    }
}

/* Modal header: title + close button */
.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);
}

/* Part number tag */
.model-tag {
    background: #e9fbf1;
    color: var(--green-dim);
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
    font-size: 14px;
    margin-bottom: 14px;
}

/* Required fields hint */
.tip-text {
    color: #666;
    font-size: 14px;
    margin: 0 0 20px;
}

/* Red required asterisk */
.red-star {
    color: var(--red);
}

/* Form row */
.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 button */
.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);
}

/* Privacy note */
.bottom-tip {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* Modal form status message */
.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 端样式完全不受影响。 */

/* ---------- 平板竖屏（≤ 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) {
    /* Header：内边距与间距适当收紧（导航菜单在移动端收起） */
    .header-inner {
        gap: 18px;
        padding: 12px 0;
    }

    /* 主导航菜单在平板/手机端隐藏（保留简洁头部，避免横向溢出） */
    .main-nav {
        display: none !important;
    }

    /* 统计栏：4 列改为 2×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;
    }

    /* 首页产品体系：改为单列（默认 2 列布局） */
    .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;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-buybox {
        position: static;
    }
}

/* ---------- 手机（≤ 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;
    }

    /* 用 data-label 属性生成字段名标签 */
    .ptable td::before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        width: 90px;
        color: var(--slate-light);
        font-size: 11px;
    }

    /* 顶部栏：允许换行，避免邮箱 / NET30 标签溢出 */
    .topbar .wrap {
        height: auto;
        min-height: 38px;
        padding-top: 6px;
        padding-bottom: 6px;
        flex-wrap: wrap;
        gap: 6px 16px;
    }

    .topbar .acct {
        gap: 10px;
    }
}

/* ---------- 手机（≤ 768px） ---------- */
/* 处理 Hero、产品筛选、产品详情页等在小屏下的字号与间距 */
@media (max-width: 768px) {
    /* 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;
    }
}

/* ---------- 小屏手机（≤ 560px） ---------- */
/* 处理更窄屏幕下的网格收拢、Header 精简、页脚堆叠等 */
@media (max-width: 560px) {
    /* 全局容器：进一步收窄左右留白（仅改左右，避免覆盖 .shell 等组合类的上下 padding） */
    .wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* 顶部栏：隐藏左侧描述文案，邮箱与 NET30 标签占满一行 */
    .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：隐藏 Get a Quote 按钮（保留语言切换与查看目录） */
    .header-actions .btn-ghost {
        display: none;
    }

    /* 品牌展示条 section 压缩上下间距 */
    .brands-strip-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;
    }
}
