/* 产品中心 / 分类页 / 产品详情 / 搜索 — 样式 */

.page-hero {
    background:
        linear-gradient(rgba(31, 38, 48, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 38, 48, .05) 1px, transparent 1px),
        radial-gradient(900px 360px at 85% -20%, rgba(224, 36, 43, .07), transparent 60%),
        linear-gradient(180deg, #fff, var(--bg-soft));
    background-size: 30px 30px, 30px 30px, auto, auto;
    border-bottom: 1px solid var(--line);
    padding: 28px 0 36px;
}
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.page-hero h1 { font-size: clamp(24px, 3.2vw, 36px); }
.page-hero .lead { color: var(--ink-2); margin: 12px 0 0; max-width: 760px; }
.page-hero .lead a { color: var(--brand); font-weight: 600; }

.hero-search { display: flex; gap: 10px; margin-top: 22px; max-width: 560px; }
.hero-search input { flex: 1; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 6px; font-size: 14.5px; font-family: inherit; }
.hero-search input:focus { outline: none; border-color: var(--brand); }
.hero-search button { padding: 12px 26px; border: none; background: var(--brand); color: #fff; border-radius: 6px; font-weight: 600; cursor: pointer; }
.hero-search button:hover { background: var(--brand-d); }

.muted-note { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.sec-title { font-size: 26px; font-weight: 800; color: var(--ink); margin: 0 0 26px; padding-left: 14px; border-left: 4px solid var(--brand); line-height: 1.2; }
.sec-title .sec-n { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 10px; }
.product-grid + .sec-title { margin-top: 46px; }

/* 分类卡片网格 */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-card-img { height: 280px; display: flex; align-items: center; justify-content: center; padding: 6px; border-bottom: 1px solid var(--line); }
.cat-card-img img { max-height: 100%; max-width: 100%; width: 100%; height: 100%; object-fit: contain; }
.cat-card-body { padding: 18px 20px; }
.cat-card-body h3 { font-size: 17px; margin-bottom: 6px; }
.cat-card-body span { color: var(--muted); font-size: 13px; }
/* E+H 大类卡：用产品图作封面（白底、不裁切、接近原尺寸更清晰） */
.cat-card.eh-cat .cat-card-img { height: 220px; background: #fff; padding: 18px; }
/* NORD 卡：响应式比例框（图已去白边，按比例随宽度缩放，桌面/手机都填满） */
.cat-card.nord-cat .cat-card-img { height: auto; aspect-ratio: 16 / 10; padding: 14px; }

/* 子类筛选 chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { padding: 8px 16px; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 13.5px; color: var(--ink-2); transition: all .2s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }

/* 产品卡内品牌徽标 */
.product-card .pc-brand { display: inline-block; font-size: 12px; color: var(--brand); background: var(--brand-soft); padding: 2px 10px; border-radius: 6px; margin-bottom: 12px; align-self: flex-start; }

/* 产品详情 */
.product-detail { display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: start; margin-bottom: 30px; }
.pd-media { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; justify-content: center; min-height: 200px; }
.pd-media img { max-width: 100%; max-height: 240px; object-fit: contain; }
.pd-info h1 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 16px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.pd-tags .tag { font-size: 13px; padding: 6px 14px; border-radius: 6px; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.pd-tags .tag-brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; font-weight: 600; }
.pd-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.pd-hint { color: var(--muted); font-size: 13.5px; }

/* 富文本内容 */
.rich { margin-top: 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.8; overflow-x: auto; }
.rich h1, .rich h2, .rich h3 { color: var(--ink); margin: 18px 0 12px; line-height: 1.4; }
.rich h1 { font-size: 22px; }
.rich img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
.rich hr { border: none; border-top: 1px solid var(--line); margin: 18px 0; }
.rich p { margin: 10px 0; }
.rich table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 13px; min-width: 600px; }
.rich th, .rich td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.rich th, .rich td strong { color: var(--ink); }
.rich tr:nth-child(odd) td { background: #fbfbfc; }

/* 占位产品 */
.stub-note { background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px; text-align: center; margin-top: 10px; }
.stub-note p { color: var(--ink-2); margin: 0 0 18px; }
.stub-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* NORD 官方目录：产品系列卡 */
.nord-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.nord-item { display: grid; grid-template-columns: 320px 1fr; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.nord-item-img { display: flex; align-items: center; justify-content: center; background: #fff; min-height: 220px; }
.nord-item-img img { width: 100%; height: 100%; max-height: 240px; object-fit: contain; }
.nord-item-body h3 { font-size: 17px; margin-bottom: 6px; }
.nord-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; }
.nord-specs { margin: 0 0 16px; }
.nord-specs li { position: relative; padding-left: 16px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.nord-specs li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
/* NORD 官方型号清单（多列紧凑） */
.nord-models { columns: 160px auto; column-gap: 22px; }
.nord-models span { display: block; font-size: 12.5px; color: var(--ink-2); padding: 4px 2px; border-bottom: 1px dashed var(--line); break-inside: avoid; white-space: nowrap; }
.nord-models span:hover { color: var(--brand); }
/* 大型号清单：限高可滚动框（SEW 等数量多时） */
.model-scrollbox { max-height: 460px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; background: #fafbfc; }
@media (max-width: 900px) { .nord-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .nord-item { grid-template-columns: 1fr; } .nord-item-img img { max-height: 200px; } }

/* E+H 子类卡片（产品图 + 名称 + 英文 + 询价） */
.eh-subgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.eh-subcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.eh-subcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.eh-subcard-img { height: 170px; display: flex; align-items: center; justify-content: center; background: #fff; padding: 16px; border-bottom: 1px solid var(--line); }
.eh-subcard-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.eh-subcard-body { display: flex; flex-direction: column; flex: 1; padding: 15px 18px 18px; }
.eh-subcard h3 { font-size: 16px; line-height: 1.4; margin: 0; color: var(--ink); }
.eh-sub-en { font-size: 12.5px; color: var(--muted); margin: 5px 0 0; letter-spacing: .2px; }
.eh-subcard { text-decoration: none; color: inherit; }
.eh-sub-link { margin-top: auto; padding-top: 12px; color: var(--brand); font-size: 13.5px; font-weight: 600; }
@media (max-width: 560px) { .eh-subgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .eh-subcard-img { height: 128px; padding: 10px; } .eh-subcard-body { padding: 12px 12px 14px; }
    .eh-subcard h3 { font-size: 14px; } }

/* E+H 子类页：型号网格 + 询价 CTA */
.eh-model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 16px; }
.eh-model { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: #fff;
    border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--radius); padding: 18px; }
.eh-model:hover { box-shadow: var(--shadow); }
.eh-model h3 { font-size: 15.5px; line-height: 1.45; margin: 0; color: var(--ink); }
.eh-model .btn { margin-top: auto; align-self: stretch; text-align: center; padding: 8px 12px; font-size: 13.5px; }
.eh-model h3 + .btn { margin-top: 12px; }
.eh-inq-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
@media (max-width: 560px) { .eh-model-grid { grid-template-columns: 1fr; } }

@media (max-width: 1040px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
    .product-detail { grid-template-columns: 1fr; gap: 24px; }
    .pd-media { min-height: 220px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr 1fr; gap: 14px; } }

/* 按品牌选购 — 品牌卡片 */
.brand-grid-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.brandcard { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 34px 18px; transition: all .2s; }
.brandcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.brandcard-logo { height: 92px; display: flex; align-items: center; justify-content: center; }
.brandcard-logo img { max-height: 84px; max-width: 78%; object-fit: contain; }
/* MCN 明椿 为偏扁的字标，单独放大更醒目 */
.brandcard[href="brand-15.html"] .brandcard-logo img { max-width: 94%; max-height: 92px; }
.brandcard-text { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: .5px; }
.brandcard-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.brandcard-n { font-size: 12px; color: var(--muted); }
@media (max-width: 1040px) { .brand-grid-cards { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .brand-grid-cards { grid-template-columns: repeat(2, 1fr); } }
