/* =========================================================================
   SysPartsDirect — 统一设计系统
   载入顺序：必须放在 style.css 和页面内联样式之后（由 public/head_end.html 引入）
   原则：
     · 一套颜色：品牌深蓝 + 单一强调橙 + 中性灰阶 + 语义色（仅有货/错误）
     · 一套字体、一套字号阶梯、一套圆角与间距
   ========================================================================= */

:root {
    /* 品牌 */
    --brand:        #0b2b57;
    --brand-dark:   #08213f;
    --brand-soft:   #eef3fa;
    --accent:       #f88800;
    --accent-dark:  #d97706;
    --accent-soft:  #fff4e5;

    /* 中性 */
    --ink:          #0f172a;
    --ink-2:        #334155;
    --body:         #475569;
    --muted:        #7b8794;
    --line:         #e6ebf2;
    --line-2:       #eef2f7;
    --bg:           #ffffff;
    --bg-soft:      #f7f9fc;

    /* 语义 */
    --ok:           #15803d;
    --ok-soft:      #eaf6ee;
    --danger:       #dc2626;

    /* 形状与节奏 */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, .07);
    --shadow-lg: 0 18px 44px rgba(15, 23, 42, .10);

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                 Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;

    /* 覆盖 style.css 里的旧变量 */
    --primary-color: var(--brand);
}

/* ---------------------------------------------------------------- 基础排版 */
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans) !important;
    color: var(--body);
    font-size: 15px;
    line-height: 1.65;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-sans) !important;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.28;
}

h1, .h1 { font-size: 34px; }
h2, .h2 { font-size: 26px; }
h3, .h3 { font-size: 20px; }
h4, .h4 { font-size: 17px; }
h5, .h5 { font-size: 15.5px; }
h6, .h6 { font-size: 14px; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: none; }

.text-muted { color: var(--muted) !important; }
small, .small { font-size: 12.5px; }
strong, b { color: var(--ink); font-weight: 600; }

/* 面包屑 */
.nav-title {
    font-size: 12.5px;
    color: var(--muted);
    padding: 2px 0 16px;
}
.nav-title a { color: var(--muted); }
.nav-title a:hover { color: var(--brand); }
.nav-title img { opacity: .45; }

/* ---------------------------------------------------------------- 顶部导航 */
.navbar.fixed-top {
    background: var(--brand) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
    padding-top: 0;
    padding-bottom: 0;
    min-height: 56px;
}
.navbar .navbar-nav .nav-link {
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: .01em;
    color: rgba(255, 255, 255, .82) !important;
    padding: 17px 14px !important;
    transition: color .15s;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-item.show .nav-link {
    color: #fff !important;
}
.navbar .dropdown-menu {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    padding: 6px;
    margin-top: 6px;
}
/* 下拉菜单与导航之间留的 6px 缝，用透明桥接区补上：
   鼠标从分类往下移动经过缝隙时不会掉出 :hover，菜单不会闪关 */
.navbar .nav-item.dropdown > .dropdown-menu::before {
    content: "";
    position: absolute;
    left: -6px;
    right: -6px;
    top: -12px;
    height: 12px;
}
/* JS 悬停意图加的类，和 :hover 同等效果 */
.navbar .nav-item.dropdown.is-open > .dropdown-menu { display: block; }
.navbar .dropdown-item {
    border-radius: var(--r-sm);
    font-size: 13.5px;
    color: var(--ink-2);
    padding: 8px 12px;
}
.navbar .dropdown-item:hover { background: var(--brand-soft); color: var(--brand); }

/* ---------------------------------------------------------------- 搜索区 */
.search-section {
    background: var(--bg) !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 14px 0 !important;
    margin-top: 56px !important;
}
.search-container {
    display: flex !important;
    align-items: center !important;
    gap: 32px !important;
    flex-wrap: nowrap;
}
.logo-container { flex: 0 0 auto; }
.logo-image {
    height: 38px !important;
    width: auto !important;
    display: block;
}
.search-box {
    flex: 1 1 auto !important;
    max-width: 720px !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}
.search-input {
    flex: 1 1 auto !important;
    height: 44px !important;
    padding: 0 118px 0 18px !important;
    border: 1px solid var(--line) !important;
    border-radius: 999px !important;
    background: var(--bg-soft) !important;
    font-size: 13.5px !important;
    color: var(--ink) !important;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.search-input:focus {
    outline: none !important;
    background: #fff !important;
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px rgba(11, 43, 87, .08) !important;
}
.search-input::placeholder { color: #98a2b3 !important; font-size: 13px !important; }
.search-button {
    position: absolute !important;
    right: 4px !important;
    top: 4px !important;
    height: 36px !important;
    padding: 0 22px !important;
    border-radius: 999px !important;
    background: var(--brand) !important;
    color: #fff !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    letter-spacing: .02em;
    border: 0 !important;
    height: 36px !important;
}
.search-button::before { display: none !important; }
.search-button:hover { background: var(--brand-dark) !important; }
.search-text { font-weight: 600 !important; }

@media (max-width: 767.98px) {
    .search-container { gap: 14px !important; }
    .logo-image { height: 30px !important; }
    .search-input { height: 40px !important; padding-right: 96px !important; font-size: 13px !important; }
    .search-button { height: 32px !important; top: 4px !important; padding: 0 16px !important; }
}

/* ---------------------------------------------------------------- 按钮 */
.btn { border-radius: 10px; font-weight: 600; font-size: 13.5px; transition: all .16s; }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline-primary { color: var(--brand); border-color: #d5deea; background: #fff; }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-lg { border-radius: 12px; font-size: 15px; padding: 12px 26px; }
.btn-sm { border-radius: 8px; font-size: 12.5px; padding: 6px 12px; }

/* 卡片上的询价按钮统一成“文字按钮”风格，避免整页都在喊 */
.product-card .chat-btn,
.recommendation-card .chat-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0 !important;
    height: auto !important;
    border: 0 !important;
    background: none !important;
    color: var(--brand) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}
.product-card .chat-btn::after,
.recommendation-card .chat-btn::after {
    content: "→";
    font-size: 13px;
    transition: transform .16s;
}
.product-card .chat-btn:hover,
.recommendation-card .chat-btn:hover { color: var(--accent-dark) !important; }
.product-card .chat-btn:hover::after,
.recommendation-card .chat-btn:hover::after { transform: translateX(3px); }

/* ---------------------------------------------------------------- 商品卡 */
.product-card {
    border: 1px solid var(--line) !important;
    border-radius: var(--r-md) !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: hidden;
    transition: border-color .18s, box-shadow .18s, transform .18s;
    height: 100%;
}
.product-card:hover {
    border-color: #cdd8e6 !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px);
}
.product-card .title-wrap { display: block; }
.product-card .card-img-top,
.product-card img.card-img-top {
    height: 168px !important;
    width: 100% !important;
    object-fit: contain !important;
    background: #fff;
    padding: 14px 12px 6px !important;
}
.product-card .card-body {
    padding: 10px 14px 14px !important;
    display: flex;
    flex-direction: column;
}
.product-card .card-title {
    font-size: 13px !important;
    line-height: 1.5 !important;
    font-weight: 600 !important;
    color: var(--ink) !important;
    margin-bottom: 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 58px;
}
.product-card:hover .card-title { color: var(--brand) !important; }
.product-card .text-muted,
.product-card .small { color: var(--muted) !important; font-size: 11.5px !important; }
.product-card .fw-bold.mb-1 {
    font-size: 14.5px !important;
    color: var(--ink) !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    letter-spacing: -.01em;
}
.product-card .card-body > .d-flex { margin-top: auto; }

/* 详情页推荐卡 */
.recommendation-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 10px;
    transition: border-color .18s, box-shadow .18s;
}
.recommendation-card:hover { border-color: #cdd8e6; box-shadow: var(--shadow-md); }
.recommendation-img { height: 120px; object-fit: contain; width: 100%; }
.recommendation-desc {
    font-size: 12.5px; line-height: 1.5; color: var(--ink-2);
    margin-top: 8px; height: 56px; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.recommendation-min { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* ---------------------------------------------------------------- 新闻列表 */
.news-list .news-item {
    border: 1px solid var(--line) !important;
    border-radius: var(--r-md);
    padding: 14px !important;
    margin-bottom: 16px !important;
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
}
.news-list .news-item:hover { border-color: #cdd8e6; box-shadow: var(--shadow-md); }
.news-list .news-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--r-sm) !important;
}
.news-list .news-item h3,
.news-list .news-item .h5 {
    font-size: 17px !important;
    line-height: 1.45 !important;
    margin-bottom: 6px !important;
}
.news-list .news-item h3 span { color: var(--ink) !important; }
.news-list .news-item:hover h3 span { color: var(--brand) !important; }
.news-list .news-item .text-muted,
.news-list .news-item small { font-size: 12px; color: var(--muted) !important; }

/* 侧栏卡片 */
.col-lg-4 .card {
    border: 1px solid var(--line) !important;
    border-radius: var(--r-md) !important;
    box-shadow: none !important;
}
.col-lg-4 .card-header {
    background: var(--brand) !important;
    border-bottom: 0;
    padding: 12px 16px;
}
.col-lg-4 .card-header h5 { font-size: 13.5px; font-weight: 600; letter-spacing: .02em; }
.col-lg-4 .card-body { padding: 16px; }
.col-lg-4 .card-body h5 { font-size: 13.5px; }

/* 分页 */
.pagination { gap: 6px; }
.pagination .page-link {
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--ink-2);
    font-size: 13px;
    min-width: 36px;
    text-align: center;
    padding: 7px 10px;
}
.pagination .page-link:hover { background: var(--brand-soft); color: var(--brand); border-color: #d5deea; }
.pagination .page-item.active .page-link {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.pagination .page-item.disabled .page-link { color: #c2cbd6; }

/* ---------------------------------------------------------------- 其它 */
hr { border-color: var(--line); }

/* 详情页 “In Stock / MPN / By / Warranty / Dispatch” 信息行：
   每个字段作为一个整体换行，不要在 “3-7 / business days” 中间断开 */
#product-info > .mb-3 > span { white-space: nowrap; }

/* 详情页 “In Stock” 用语义绿，其余强调色一律走橙 */
#product-info b[style*="color:#00812d"] { color: var(--ok) !important; }

/* 页面主体底色 */
section.py-5.bg-light { background: var(--bg-soft) !important; }

/* ---------------------------------------------------------------- 区块标题 */
.product-section-title {
    background: transparent !important;
    color: var(--ink) !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid var(--line);
    border-radius: 0 !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    letter-spacing: -.01em;
    margin-bottom: 18px !important;
}
.product-section-title .modal-title,
.product-section-title > a {
    color: var(--ink) !important;
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-weight: 700;
}
.product-section-title i { color: var(--accent) !important; font-size: .95em; }
.product-section-title .btn-more { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.product-section-title .btn-more-item {
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: var(--muted) !important;
    text-transform: none;
    letter-spacing: 0;
}
.product-section-title .btn-more-item:hover { color: var(--brand) !important; }
.product-section-title .carousel-control-next-icon { opacity: .35; filter: invert(1) grayscale(1); width: 14px; height: 14px; }

/* ---------------------------------------------------------------- 商品卡细节 */
.product-card .card-img-top {
    background: #fbfcfe !important;
    border-bottom: 1px solid var(--line-2);
    padding: 16px 14px !important;
}
.product-card .card-body { padding: 12px 14px 14px !important; }
.product-card .card-title { font-size: 13px !important; min-height: 56px; }
.product-card .fw-bold.mb-1 { font-size: 15px !important; }
.product-card .mb-1.text-muted.small { margin-bottom: 6px !important; }

/* ---------------------------------------------------------------- 分类页侧栏 */
.col-lg-3 > .card {
    border: 1px solid var(--line) !important;
    border-radius: var(--r-md) !important;
    box-shadow: none !important;
    overflow: hidden;
    background: #fff;
}
.col-lg-3 > .card > .card-header {
    background: #fff !important;
    border-bottom: 1px solid var(--line-2) !important;
    padding: 13px 16px !important;
}
.col-lg-3 > .card > .card-header h5 {
    color: var(--ink) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin: 0;
}
.col-lg-3 > .card > .card-body { padding: 14px 16px 16px !important; }
.col-lg-3 .category-item { font-size: 13.5px; }
.col-lg-3 .category-text { color: var(--ink-2); }
.col-lg-3 .category-item:hover .category-text { color: var(--brand); }

/* 分类页页头（补齐 H1） */.cat-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0 16px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.cat-head__eyebrow {
    margin: 0 0 6px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.cat-head__title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.02em;
    line-height: 1.25;
}
.cat-head__meta {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted);
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .cat-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .cat-head__title { font-size: 21px; }
}

/* 分类页网格间距 */
#productsGrid { row-gap: 1.25rem; }

/* ---------------------------------------------------------------- 右侧浮动按钮 */
/* 原模板 z-index 9999，会盖在询盘弹窗遮罩之上；降到 1030，弹窗打开时让位 */
.floating-buttons { z-index: 1030; }
.floating-button { background: var(--brand) !important; box-shadow: 0 4px 16px rgba(8, 33, 63, .18) !important; }
.floating-button:hover { background: var(--brand-dark) !important; }

/* 手机上原来靠 bottom:30% 躲旧 banner，结果压在首屏 CTA 上；改回右下角 */
@media (max-width: 600px) {
    .floating-buttons {
        bottom: 16px !important;
        top: auto !important;
        right: 12px !important;
        transform: none !important;
        gap: 8px !important;
    }
    .floating-button {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.1rem !important;
    }
}


/* =========================================================================
   Hero —— 背景图只做视觉，文案是真实 HTML
   ========================================================================= */
.hero-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #07182e;
}
.hero-band__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}
.hero-band picture { display: block; }
.hero-band__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg,
            #07182e 0%,
            #07182e 28%,
            rgba(7, 24, 46, .94) 42%,
            rgba(7, 24, 46, .58) 60%,
            rgba(7, 24, 46, .10) 80%,
            rgba(7, 24, 46, 0) 100%),
        linear-gradient(180deg, rgba(7, 24, 46, .5) 0%, rgba(7, 24, 46, 0) 34%);
}
.hero-band__inner {
    min-height: 545px;
    display: flex;
    align-items: center;
    padding-top: 76px;
    padding-bottom: 80px;
}
.hero-band__copy { max-width: 620px; }

.hero-band__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #ffc46b;
}
.hero-band__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(248, 136, 0, .16);
}

.hero-band__title {
    margin: 20px 0 0;
    font-size: clamp(29px, 3.35vw, 45px);
    line-height: 1.14;
    font-weight: 700;
    letter-spacing: -.025em;
    color: #fff;
    max-width: 16em;
    text-wrap: balance;
}
.hero-band__lead {
    margin: 20px 0 0;
    max-width: 33em;
    font-size: 15.5px;
    line-height: 1.72;
    color: rgba(206, 220, 238, .84);
}

.hero-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}
.hero-band__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 26px;
    border-radius: 10px;
    border: 1px solid transparent;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    transition: background .16s, border-color .16s, color .16s, transform .16s, box-shadow .16s;
}
.hero-band__btn--primary {
    background: var(--accent);
    color: #17263c;
    box-shadow: 0 6px 18px rgba(248, 136, 0, .26);
}
.hero-band__btn--primary:hover {
    background: #ff9a1f;
    color: #12203a;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(248, 136, 0, .32);
}
.hero-band__btn--ghost {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .26);
    color: #fff;
    backdrop-filter: blur(6px);
}
.hero-band__btn--ghost:hover {
    background: rgba(255, 255, 255, .13);
    border-color: rgba(255, 255, 255, .44);
    color: #fff;
}

.hero-band__trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 36px 0 0;
    padding: 22px 0 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, .13);
    font-size: 13px;
    color: rgba(196, 211, 231, .8);
}
.hero-band__trust li {
    padding: 0 26px;
    border-left: 1px solid rgba(255, 255, 255, .13);
}
.hero-band__trust li:first-child { padding-left: 0; border-left: 0; }
.hero-band__trust strong {
    display: block;
    margin-bottom: 3px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #fff;
}

@media (max-width: 991.98px) {
    .hero-band__inner { min-height: 480px; padding-top: 60px; padding-bottom: 64px; }
    .hero-band__img { object-position: 68% center; }
    .hero-band__title { max-width: 14em; }
    /* 平板宽度下文案会压到机柜上，把左侧压暗范围推远一点 */
    .hero-band__veil {
        background:
            linear-gradient(90deg,
                #07182e 0%,
                #07182e 40%,
                rgba(7, 24, 46, .93) 56%,
                rgba(7, 24, 46, .55) 74%,
                rgba(7, 24, 46, .10) 92%,
                rgba(7, 24, 46, 0) 100%),
            linear-gradient(180deg, rgba(7, 24, 46, .45) 0%, rgba(7, 24, 46, 0) 38%);
    }
}

@media (max-width: 767.98px) {
    .hero-band__inner { min-height: 0; padding-top: 52px; padding-bottom: 56px; }
    .hero-band__img { object-position: 74% center; }
    .hero-band__veil {
        background:
            linear-gradient(180deg, rgba(6, 20, 38, .9) 0%, rgba(6, 20, 38, .88) 52%, #07182e 100%);
    }
    .hero-band__title { font-size: 27px; line-height: 1.2; max-width: none; }
    .hero-band__lead { font-size: 14.5px; }
    .hero-band__actions { flex-direction: column; margin-top: 26px; }
    .hero-band__btn { width: 100%; }
    .hero-band__trust {
        gap: 18px 0;
        margin-top: 30px;
        padding-top: 20px;
    }
    .hero-band__trust li { padding: 0 18px; }
    .hero-band__trust strong { font-size: 17px; }
}


/* =========================================================================
   首页下半部分：品牌墙 + 新闻卡片
   ========================================================================= */
.home-block { margin-bottom: 56px; }
.home-block:last-of-type { margin-bottom: 32px; }
.home-block__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.home-block__title {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--ink);
}
.home-block__sub {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}
.home-block__count {
    flex: 0 0 auto;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}
.home-block__more {
    flex: 0 0 auto;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand);
    white-space: nowrap;
}
.home-block__more span { display: inline-block; transition: transform .16s; }
.home-block__more:hover { color: var(--accent-dark); }
.home-block__more:hover span { transform: translateX(3px); }

/* 品牌墙：静态网格，不再用箭头滚动 */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}
@media (max-width: 1199.98px) { .brand-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 991.98px)  { .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 575.98px)  { .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
.brand-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 82px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    transition: border-color .18s, box-shadow .18s;
}
.brand-tile:hover { border-color: #cdd8e6; box-shadow: var(--shadow-sm); }
.brand-tile img {
    max-width: 100%;
    max-height: 38px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(.78);
    transition: filter .18s;
}
.brand-tile:hover img { filter: none; opacity: 1; }
@media (max-width: 575.98px) { .brand-tile { height: 68px; padding: 8px; } .brand-tile img { max-height: 30px; } }

/* 新闻卡片：4 列，只有标题是链接 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
@media (max-width: 1199.98px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px)  { .news-grid { grid-template-columns: 1fr; } }

.news-tile {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
.news-tile:hover { border-color: #cdd8e6; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-tile__media {
    display: block;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line-2);
    overflow: hidden;
}
.news-tile__media img {
    display: block;
    width: 100%;
    height: 158px;
    object-fit: cover;
    transition: transform .3s;
}
.news-tile:hover .news-tile__media img { transform: scale(1.03); }
.news-tile__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 14px 15px 15px;
}
.news-tile__date {
    margin: 0 0 8px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.news-tile__title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -.005em;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-tile__title a { color: inherit; }
.news-tile__title a:hover { color: var(--brand); }
.news-tile__more {
    margin-top: auto;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand);
}
.news-tile__more:hover { color: var(--accent-dark); }
.news-tile__more::after { content: " →"; font-size: 12px; }

/* =========================================================================
   分类页筛选（品牌排第一，其后是分类绑定的属性）
   ========================================================================= */
.filter-panel {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: #fff;
    overflow: hidden;
}
.filter-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--ink);
}
.filter-panel__clear {
    font-size: 12px;
    font-weight: 500;
    color: var(--brand);
}
.filter-panel__clear:hover { color: var(--accent-dark); }
.filter-empty {
    margin: 0;
    padding: 18px 16px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}
.filter-group {
    padding: 14px 16px;
    border-top: 1px solid var(--line-2);
}
.filter-group:first-of-type { border-top: 0; }
.filter-group__title {
    margin: 0 0 9px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
}
/* 品牌块单独加一点区分：标题用正文色，和属性块拉开层次 */
.filter-group[data-type="brand"] .filter-group__title { color: var(--ink); }
.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    max-height: 264px;
    overflow-y: auto;
}
.filter-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 4px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--body);
}
.filter-item:hover { background: var(--bg-soft); color: var(--brand); }
.filter-item__box {
    position: relative;
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    border: 1.5px solid #c8d2e0;
    border-radius: 3px;
    background: #fff;
}
.filter-item.is-active { color: var(--brand); font-weight: 600; }
.filter-item.is-active .filter-item__box {
    border-color: var(--brand);
    background: var(--brand);
}
.filter-item.is-active .filter-item__box::after {
    content: "";
    position: absolute;
    left: 3.5px;
    top: 1px;
    width: 4px;
    height: 7px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}
.filter-item__label {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.filter-item__count {
    flex: 0 0 auto;
    font-size: 11.5px;
    color: var(--muted);
}
.filter-item.is-active .filter-item__count { color: var(--brand); }

@media (max-width: 991.98px) {
    .filter-panel { margin-bottom: 20px; }
    .filter-list { max-height: none; }
}

/* =========================================================================
   详情页属性表（必选属性 + 自定义属性，独立于正文富文本）
   ========================================================================= */
.spec-wrap { padding: 8px 4px 12px; }
.spec-block + .spec-block { margin-top: 28px; }
.spec-block__title {
    margin: 12px 0 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.spec-table {
    width: 100%;
    max-width: 940px;
    border-collapse: collapse;
    table-layout: fixed;
}
.spec-table th,
.spec-table td {
    padding: 9px 14px 9px 0;
    border-bottom: 1px solid var(--line-2);
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}
.spec-table th {
    width: 34%;
    font-weight: 500;
    color: var(--muted);
}
.spec-table td { color: var(--ink); }
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }
@media (max-width: 575.98px) {
    .spec-table th { width: 42%; padding-right: 10px; font-size: 13px; }
    .spec-table td { font-size: 13px; }
}

/* 筛选无结果 */
.cat-empty {
    padding: 56px 24px;
    border: 1px dashed var(--line);
    border-radius: var(--r-md);
    background: var(--bg-soft);
    text-align: center;
}
.cat-empty__title { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.cat-empty__text { margin: 0 0 16px; font-size: 13.5px; color: var(--muted); }
.cat-empty__btn {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.cat-empty__btn:hover { background: var(--brand-dark); color: #fff; }
.cat-empty__links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* 详情页 tab 卡片：贴合内容宽度，别整屏拉满 */
.tab-card { border-radius: 0; }
.tab-card .card-body { padding: 26px 28px 30px; }
@media (max-width: 767.98px) {
    .tab-card .card-body { padding: 18px 16px 22px; }
}

/* 详情页 FAQ：整块卡片 + 细分隔线 + 右侧加减号 */
.pdp-faq {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}
.pdp-faq__item { border-bottom: 1px solid var(--line); }
.pdp-faq__item:last-child { border-bottom: 0; }
.pdp-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 22px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    transition: color .15s, background .15s;
}
.pdp-faq__q::-webkit-details-marker { display: none; }
.pdp-faq__q::before { display: none; }
.pdp-faq__q > span { flex: 1 1 auto; }
.pdp-faq__q::after {
    content: "";
    flex: 0 0 auto;
    width: 10px; height: 10px;
    border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s, border-color .15s;
}
.pdp-faq__item[open] .pdp-faq__q::after {
    transform: rotate(225deg) translateY(-2px);
    border-color: var(--brand);
}
.pdp-faq__q:hover { background: var(--bg-soft); }
.pdp-faq__item[open] .pdp-faq__q { color: var(--brand); }
.pdp-faq__a {
    padding: 0 22px 18px;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--body);
    max-width: 900px;
}

/* 筛选面板：details/summary 折叠（手机默认收起） */
.filter-panel > summary { list-style: none; cursor: pointer; }
.filter-panel > summary::-webkit-details-marker { display: none; }
.filter-panel__chev {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    transform: rotate(45deg);
    transition: transform .18s;
}
.filter-panel[open] .filter-panel__chev { transform: rotate(-135deg); }
.filter-panel__body { padding-bottom: 4px; }
.filter-panel__top {
    padding: 10px 16px;
    border-bottom: 1px solid var(--line-2);
    font-size: 12.5px;
}
.filter-panel__top a { color: var(--brand); }
.filter-panel__top a:hover { color: var(--accent-dark); }

/* 列表排序条 */
.list-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 2px 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.list-bar__count { margin: 0; font-size: 12.5px; color: var(--muted); }
.search-clear {
    display: inline-flex;
    align-items: center;
    height: 26px;
    margin-top: 8px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
}
.search-clear:hover { background: var(--brand); color: #fff; }

.list-bar__sort { display: flex; align-items: center; gap: 8px; }
.list-bar__sort label { margin: 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.list-bar__select {
    height: 34px;
    padding: 0 30px 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237b8794' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    font-size: 13px;
    color: var(--ink);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.list-bar__select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 43, 87, .08); }
@media (max-width: 575.98px) {
    .list-bar { flex-wrap: wrap; }
    .list-bar__sort { width: 100%; justify-content: space-between; }
    .list-bar__select { flex: 1 1 auto; }
}

/* 详情页三段式：参数 → 详情 → FAQ */
.pdp-block { margin-bottom: 26px; }
.pdp-block:last-child { margin-bottom: 0; }
.pdp-block__title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
}
/* 核心参数（分类必选属性）稍作强调，其余详细参数保持中性 */
.spec-table tr.is-core th { color: var(--ink-2); font-weight: 600; }
.spec-table tr.is-core td { font-weight: 600; }
.spec-empty { margin: 0; padding: 6px 0; font-size: 13.5px; line-height: 1.7; color: var(--muted); }

/* 详情页「Related Products」卡片：标题三行截断，避免长标题顶到价格行 */
#product-prop ~ section .card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

/* ================================================================ PDP 首屏决策区 */
.pdp-title {
    margin: 0 0 12px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.01em;
    color: var(--ink);
}
.pdp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pdp-chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 28px; padding: 0 10px;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--bg-soft);
    font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.pdp-chip em {
    font-style: normal; font-size: 10.5px; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.pdp-facts {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px; background: var(--line);
    border: 1px solid var(--line); border-radius: var(--r-md);
    overflow: hidden; margin-bottom: 18px;
}
.pdp-fact { background: #fff; padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; }
/* 奇数个格子时，最后一个横跨两列，避免右下角出现一块空白 */
.pdp-facts > .pdp-fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pdp-fact__k { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pdp-fact__v { font-size: 13px; font-weight: 600; color: var(--ink); word-break: break-word; }
.pdp-fact__v--in { color: #0a7d3c; }

.pdp-buy { display: flex; gap: 10px; align-items: stretch; margin-bottom: 10px; }
.pdp-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; overflow: hidden; }
.pdp-qty__btn {
    width: 38px; height: 48px; border: 0; background: #fff;
    font-size: 18px; line-height: 1; color: var(--ink-2); cursor: pointer;
}
.pdp-qty__btn:hover { background: var(--bg-soft); }
.pdp-qty__input {
    width: 54px; height: 48px; border: 0; text-align: center;
    font-size: 14px; font-weight: 700; color: var(--ink); background: #fff;
}
.pdp-qty__input:focus { outline: none; }
.pdp-cta { flex: 1 1 auto; height: 48px; font-size: 14px; font-weight: 700; }
.pdp-cta__note { margin: 0 0 18px; font-size: 12px; line-height: 1.65; color: var(--muted); }

.pdp-badges {
    list-style: none; margin: 0; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--bg-soft);
    display: grid; gap: 8px;
}
.pdp-badges li { display: flex; gap: 9px; align-items: center; font-size: 12px; color: var(--body); line-height: 1.45; }
.pdp-badges b { font-size: 12px; color: var(--ink); margin-right: 4px; }
.pdp-badges__i {
    flex: 0 0 auto; width: 26px; height: 26px; margin-top: 1px;
    border-radius: 50%; background: var(--brand-soft); color: var(--brand);
    display: inline-flex; align-items: center; justify-content: center;
}
.pdp-badges a { color: var(--brand); font-weight: 600; margin-left: 4px; }

@media (max-width: 575.98px) {
    .pdp-title { font-size: 18px; }
    .pdp-buy { flex-wrap: wrap; }
    .pdp-cta { width: 100%; }
    .pdp-facts { grid-template-columns: 1fr 1fr; }
}

/* ================================================================ PDP 参数区 / 详情区 */
.spec-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}
.spec-hero {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border-bottom: 1px solid var(--line);
}
/* 末行不足时把最后一块拉宽补齐，避免出现空白格（3 列 / 4 列两套） */
.spec-hero:not(.spec-hero--4):not(.spec-hero--2) > .spec-hero__cell:last-child:nth-child(3n+2) { grid-column: span 2; }
.spec-hero:not(.spec-hero--4):not(.spec-hero--2) > .spec-hero__cell:last-child:nth-child(3n+1) { grid-column: span 3; }
.spec-hero--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spec-hero--2 > .spec-hero__cell:last-child:nth-child(2n+1) { grid-column: span 2; }
.spec-hero--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spec-hero--4 > .spec-hero__cell:last-child:nth-child(4n+2) { grid-column: span 3; }
.spec-hero--4 > .spec-hero__cell:last-child:nth-child(4n+3) { grid-column: span 2; }
.spec-hero--4 > .spec-hero__cell:last-child:nth-child(4n+1) { grid-column: span 4; }
.spec-hero__cell {
    background: #fff;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.spec-hero__k {
    font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.spec-hero__v { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; }

.spec-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 44px;
    padding: 22px 24px 26px;
}
/* 只有一组参数时占满整行，内部按两列排，避免右半边空着 */
.spec-sections > .spec-sec:only-child { grid-column: 1 / -1; }
/* 只剩一个分区时：标签在上、值在下，四列排开，避免出现「标签在左、值飘到老远」的稀疏表格 */
.spec-sections > .spec-sec:only-child .spec-sec__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 26px;
}
.spec-sections > .spec-sec:only-child .spec-sec__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    border-bottom: 1px dashed var(--line);
}
.spec-sections > .spec-sec:only-child .spec-sec__row dt,
.spec-sections > .spec-sec:only-child .spec-sec__row dd {
    flex: 0 0 auto;
    text-align: left;
    width: 100%;
}
.spec-sec__title {
    margin: 0 0 6px;
    font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted);
}
.spec-sec__list { margin: 0; }
.spec-sec__row {
    display: flex; align-items: baseline; gap: 16px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
}
.spec-sec__row:last-child { border-bottom: 0; }
.spec-sec__row dt {
    flex: 0 0 45%;
    margin: 0;
    font-size: 12.5px; color: var(--muted); font-weight: 400;
}
.spec-sec__row dd {
    flex: 1 1 auto; margin: 0; text-align: right;
    font-size: 13px; font-weight: 600; color: var(--ink);
    word-break: break-word;
}
.spec-empty { margin: 0; padding: 26px 24px; font-size: 13.5px; color: var(--muted); }

/* 兼容平台 */
.compat-card {
    margin-top: 16px;
    padding: 20px 24px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.compat-card__title { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--ink); }
.compat-card__sub { margin: 0 0 16px; font-size: 12.5px; color: var(--muted); }
.compat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.compat-cell {
    display: flex; flex-direction: column; gap: 2px;
    padding: 12px 14px;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    background: var(--bg-soft);
}
.compat-vendor { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.compat-series { font-size: 13px; font-weight: 600; color: var(--ink); }
.compat-models { font-size: 12px; color: var(--muted); line-height: 1.5; }
.compat-note { margin: 14px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }

/* 同系列对比 */
.cmp-card {
    margin-top: 16px;
    padding: 20px 24px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.cmp-card__title { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--ink); }
.cmp-wrap { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp-table th, .cmp-table td {
    padding: 10px 12px;
    font-size: 12.5px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    white-space: nowrap;
}
.cmp-table thead th:first-child { text-align: left; }
.cmp-table thead th {
    font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
    color: var(--muted); font-weight: 600;
    border-bottom: 1px solid var(--ink-2);
}
.cmp-table tbody th {
    text-align: left; font-weight: 600; color: var(--ink);
    white-space: normal; min-width: 180px;
}
.cmp-table tbody th a { color: var(--ink); }
.cmp-table tbody th a:hover { color: var(--brand); }
.cmp-table tr.is-current td { background: var(--brand-soft); font-weight: 700; color: var(--brand); }
.cmp-table tr.is-current th { background: var(--brand-soft); }

/* 详情区 */
.pdp-details { display: grid; gap: 20px; }
.pdp-prose {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 26px 30px;
    font-size: 14px;
    line-height: 1.85;
    color: var(--body);
}
.pdp-prose > *:first-child { margin-top: 0; }
.pdp-prose > *:last-child { margin-bottom: 0; }
.pdp-prose h2, .pdp-prose h3, .pdp-prose h4 {
    color: var(--ink);
    line-height: 1.4;
    margin: 26px 0 10px;
}
.pdp-prose h2 { font-size: 18px; font-weight: 800; }
.pdp-prose h3 { font-size: 15.5px; font-weight: 700; }
.pdp-prose h4 { font-size: 14px; font-weight: 700; }
.pdp-prose p { margin: 0 0 14px; }
.pdp-prose ul, .pdp-prose ol { margin: 0 0 14px; padding-left: 20px; }
.pdp-prose li { margin-bottom: 6px; }
.pdp-prose strong { color: var(--ink); }
.pdp-prose img { max-width: 100%; height: auto; border-radius: var(--r-sm); }


@media (max-width: 991.98px) {
    .spec-hero, .spec-hero--4, .spec-hero--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spec-hero--4 > .spec-hero__cell:last-child:nth-child(4n+3),
    .spec-hero--4 > .spec-hero__cell:last-child:nth-child(4n+1) { grid-column: auto; }
    .spec-hero--4 > .spec-hero__cell:last-child:nth-child(2n+1) { grid-column: span 2; }
    .spec-sections { grid-template-columns: 1fr; gap: 20px; padding: 18px 16px 20px; }
    .spec-sections > .spec-sec:only-child .spec-sec__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .pdp-prose { padding: 18px 16px; }
    .compat-card, .cmp-card { padding: 16px; }
}

/* ================================================================ PDP 章节头 / 侧栏 / 流程条 */
.pdp-head { margin-bottom: 16px; }
.pdp-eyebrow {
    margin: 0 0 6px;
    font-size: 11px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand);
}
.pdp-block__title {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.015em;
    color: var(--ink);
    line-height: 1.3;
}

/* 详情：正文 + 侧栏 */
.pdp-details {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
    gap: 18px;
    align-items: start;
}
.pdp-aside {
    position: sticky;
    top: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 18px 20px 20px;
}
.pdp-aside__title {
    margin: 0 0 8px;
    font-size: 10.5px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted);
}
.pdp-aside__title--split {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.pdp-aside__rows { margin: 0; }
.pdp-aside__rows > div {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--line);
}
.pdp-aside__rows > div:last-child { border-bottom: 0; }
.pdp-aside__rows dt { margin: 0; font-size: 12px; color: var(--muted); }
.pdp-aside__rows dd { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--ink); text-align: right; }
.pdp-aside__list { margin: 0; padding-left: 16px; }
.pdp-aside__list li { font-size: 12.5px; line-height: 1.65; color: var(--body); margin-bottom: 6px; }
.pdp-aside__cta {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    line-height: 1.65;
    color: var(--muted);
}
.pdp-aside__cta a { color: var(--brand); font-weight: 600; }

/* 下单流程：横向 4 步 */
.pdp-flow {
    margin-top: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 20px 24px 18px;
}
.pdp-flow__title {
    margin: 0 0 18px;
    font-size: 10.5px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted);
}
.pdp-flow__steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px;
    counter-reset: none;
}
.pdp-flow__steps li { position: relative; padding-top: 34px; }
.pdp-flow__steps li::before {
    content: "";
    position: absolute; top: 11px; left: 12px; right: -22px;
    height: 1px; background: var(--line);
}
.pdp-flow__steps li:last-child::before { display: none; }
.pdp-flow__dot {
    position: absolute; top: 0; left: 0;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--brand); color: #fff;
    font-size: 11.5px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.pdp-flow__steps b { display: block; font-size: 13px; color: var(--ink); margin-bottom: 2px; }
.pdp-flow__steps span { font-size: 12px; line-height: 1.6; color: var(--muted); }
.pdp-flow__note {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
}
.pdp-flow__note a { color: var(--brand); font-weight: 600; }

@media (max-width: 991.98px) {
    .pdp-details { grid-template-columns: 1fr; }
    .pdp-aside { position: static; }
    .pdp-flow__steps { grid-template-columns: 1fr 1fr; gap: 16px; }
    .pdp-flow__steps li::before { display: none; }
    .pdp-flow { padding: 16px; }
    .pdp-block__title { font-size: 18px; }
    .pdp-faq__q { padding: 14px 16px; font-size: 13.5px; }
    .pdp-faq__a { padding: 0 16px 16px; }
}


/* 选项很多的筛选组（如 SSD 容量）：限高滚动，避免一屏全是复选框 */
.filter-list--scroll {
    max-height: 264px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}
.filter-list--scroll::-webkit-scrollbar { width: 6px; }
.filter-list--scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

/* 存储类：装机约束卡片 */
.fit-card {
    margin-top: 16px;
    padding: 18px 22px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.fit-card__title {
    margin: 0 0 10px;
    font-size: 11px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted);
}
.fit-card__list { margin: 0; padding-left: 18px; }
.fit-card__list li {
    font-size: 13px; line-height: 1.7; color: var(--body);
    margin-bottom: 6px;
}
.fit-card__list li:last-child { margin-bottom: 0; }

/* ================================================================ 商品价格 */
.product-price { margin: 2px 0 6px; line-height: 1.3; }
.product-price__now {
    font-size: 15px; font-weight: 800; color: var(--ink);
    letter-spacing: -.01em;
}
.product-price__ask {
    font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.card-title + .product-price { margin-top: 8px; }

.pdp-price-row {
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: var(--r-md);
    background: var(--brand-soft);
}
.pdp-price-row__now { font-size: 22px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.pdp-price-row__unit { font-size: 11.5px; color: var(--muted); }
.pdp-price-row--ask {
    background: var(--bg-soft);
    font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}

@media (max-width: 575.98px) {
    .product-price__now { font-size: 14px; }
    .pdp-price-row__now { font-size: 19px; }
}

/* 参考价说明 */
.price-note {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.price-note::before {
    content: "i";
    flex: 0 0 auto;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 9.5px;
    font-weight: 700;
    font-style: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pdp-price-note {
    margin: -6px 0 14px;
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--muted);
}
