/*
Theme Name: wzjscloud-cn
Theme URI: https://mojitech.com.cn
Author: wzjscloud
Author URI: https://mojitech.com.cn
Description: 电子元器件分销商 WordPress 主题（中文版），支持 WooCommerce 产品管理，响应式设计。
Version: 1.0.0
License: GPL v2 or later
Text Domain: wzjscloud-cn
Domain Path: /languages
Requires PHP: 7.4
Requires at least: 5.8
WC requires at least: 5.0
*/

/* ========== 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);
}

.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;
}

.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 {
    background: var(--ink);
    color: var(--paper);
    border-radius: 14px;
    padding: 44px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 44px;
    align-items: center;
}

.trust h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -.01em;
}

.trust p {
    color: var(--slate);
    font-size: 14px;
    margin-bottom: 20px;
    max-width: 440px;
}

.trust .contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--slate);
    margin-bottom: 22px;
}

.trust .contacts b {
    color: var(--paper);
    font-weight: 600;
}

.bom-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;
}

.bom-card h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--slate);
    margin-bottom: 14px;
}

.bom-card textarea {
    width: 100%;
    height: 90px;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--paper);
    font-family: var(--mono);
    font-size: 12.5px;
    padding: 10px;
    margin-bottom: 12px;
    resize: none;
}

.bom-card input[type="text"],
.bom-card input[type="email"] {
    width: 100%;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--paper);
    font-size: 13px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.bom-card .form-status {
    font-size: 12px;
    margin-top: 8px;
    display: none;
}

.bom-card .form-status.success {
    color: var(--green);
    display: block;
}

.bom-card .form-status.error {
    color: var(--red);
    display: block;
}

/* ========== 页脚 ========== */
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;
}

/* ========== 面包屑导航 ========== */
.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);
}

/* 规格参数表（左标签右值，匹配静态页） */
.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 固定栏（buy box） */
.detail-buybox {
    position: sticky;
    top: 80px;
    background: var(--panel-light);
    border: 1px solid var(--line-light);
    border-radius: 10px;
    padding: 22px;
}

.rfq-note {
    font-size: 12.5px;
    color: var(--slate-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* RFQ 弹窗触发按钮 */
.rfq-modal-trigger {
    cursor: pointer;
}

/* ========== 同类推荐 ========== */
.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: 14px;
    padding: 32px 28px;
    max-width: 460px;
    width: 92%;
    position: relative;
    animation: modalSlideIn .25s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--slate-light);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--ink);
}

.modal-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-mpn {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--green-dim);
    margin-bottom: 18px;
}

.modal-input {
    width: 100%;
    border: 1px solid var(--line-light);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 10px;
    font-family: inherit;
}

.modal-input:focus {
    outline: none;
    border-color: var(--green);
}

.modal-textarea {
    width: 100%;
    height: 90px;
    border: 1px solid var(--line-light);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 14px;
    font-family: var(--mono);
    resize: none;
}

.modal-textarea:focus {
    outline: none;
    border-color: var(--green);
}

/* ========== 新增品牌展示条 Section 样式 ========== */
.brands-strip-section {
    padding: 64px 0;
}

/* ========== 响应式 ========== */

/* 平板端（max-width: 960px） */
@media (max-width: 960px) {
    .shell {
        grid-template-columns: 1fr;
    }

    .filters {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        margin-bottom: 20px;
    }

    .filter-section {
        flex: 1;
        min-width: 200px;
        margin-bottom: 0;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-buybox {
        position: static;
    }

    .rel-grid {
        grid-template-columns: 1fr 1fr;
    }

    .portfolio.g6 {
        grid-template-columns: 1fr 1fr;
    }
}

/* 平板端（max-width: 860px） */
@media (max-width: 860px) {
    .main-nav {
        display: none !important;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 22px;
    }

    .stat-item:nth-child(3) {
        border-left: none;
    }

    .brand-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .adv-grid {
        grid-template-columns: 1fr 1fr;
    }

    .portfolio {
        grid-template-columns: 1fr;
    }

    .matrix-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ind-grid {
        grid-template-columns: 1fr;
    }

    .process-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .qual-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 14px;
    }

    .trust {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 26px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-buybox {
        position: static;
    }
}

/* 手机端（max-width: 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;
    }

    .ptable td::before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        width: 90px;
        color: var(--slate-light);
        font-size: 11px;
    }
}

/* 手机端（max-width: 560px） */
@media (max-width: 560px) {
    .adv-grid,
    .portfolio.g6 {
        grid-template-columns: 1fr;
    }

    .process-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .qual-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rel-grid {
        grid-template-columns: 1fr;
    }

    .header-actions .btn-ghost {
        display: none;
    }

    .brands-strip-section {
        padding: 40px 0;
    }
}
