/*
Theme Name: PetInWholesale Supply Chain
Theme URI: https://petinwholesale.com/
Author: PetInWholesale
Description: 轻量定制主题，面向 OEM/ODM 询盘型宠物供应链平台。刻意不用页面构建器：共享主机上 TTFB 优先，信息结构优先于装饰。
Version: 2.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: petinwholesale
*/

/* ==========================================================================
   1. 设计令牌
   ========================================================================== */
:root {
    /* 中性色：偏冷的工业灰，避免暖白带来的"电商促销感" */
    --ink:      #0b1118;
    --ink-2:    #3d4a59;
    --ink-3:    #77839a;
    --ink-4:    #a3adbd;
    --line:     #e3e8ef;
    --line-2:   #eef1f6;
    --bg:       #ffffff;
    --bg-2:     #f6f8fb;
    --bg-3:     #0a1119;
    --bg-4:     #111b26;

    /* 主色：深海蓝，比电商蓝更沉，适合工业/B2B */
    --brand:    #0d4d8b;
    --brand-dk: #093866;
    --brand-lt: #eaf1f9;

    /* 点缀：铜色，只用于 eyebrow / 分隔 / 数字，不用于按钮 */
    --accent:   #c8873c;

    --ok:       #1c7a4a;
    --warn:     #b45309;

    --max:      1280px;
    --gutter:   24px;
    --r:        5px;

    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
            Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

    --shadow-sm: 0 1px 2px rgba(11,17,24,.05);
    --shadow-md: 0 8px 28px rgba(11,17,24,.09);
    --shadow-lg: 0 24px 64px rgba(11,17,24,.16);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.68;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.pw-body img { max-width: 100%; height: auto; }
img { max-width: 100%; }

a { color: var(--brand); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--brand-dk); }
.pw-entry a { text-decoration: underline; text-decoration-color: rgba(13,77,139,.3); }
.pw-entry a:hover { text-decoration-color: currentColor; }

::selection { background: rgba(13,77,139,.14); }

/* ==========================================================================
   2. 布局基础
   ========================================================================== */
.pw-main { display: block; min-height: 50vh; }
.pw-container { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 88px; }
.pw-container.narrow { max-width: 880px; }

.pw-section { padding: 96px 0; }
.pw-section--tight { padding: 64px 0; }
.pw-section--bg { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pw-section--dark { background: var(--bg-3); color: #cfdae6; }
.pw-section--dark h2, .pw-section--dark h3, .pw-section--dark h4 { color: #fff; }
.pw-section--dark p { color: #a9b8c8; }
.pw-section-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* 中段标题：左标题 + 右说明的双栏头 */
.pw-sec-head { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 40px;
               align-items: end; margin-bottom: 44px; }
.pw-sec-head .pw-h2 { margin: 0; }
.pw-sec-head p { margin: 0; color: var(--ink-2); font-size: 1rem; max-width: 52ch; }
@media (max-width: 860px) { .pw-sec-head { grid-template-columns: 1fr; gap: 14px; align-items: start; } }

/* ==========================================================================
   3. 排版
   ========================================================================== */
.pw-h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.08; margin: 0 0 18px;
         font-weight: 800; letter-spacing: -.028em; }
.pw-h2 { font-size: clamp(1.5rem, 2.7vw, 2.15rem); line-height: 1.16; margin: 0 0 14px;
         font-weight: 800; letter-spacing: -.022em; }
.pw-h3 { font-size: 1.15rem; margin: 34px 0 10px; font-weight: 700; letter-spacing: -.012em; }
.pw-sub { color: var(--ink-2); font-size: 1.02rem; max-width: 74ch; margin: 0 0 28px; }
.pw-lede { font-size: clamp(1.02rem, 1.4vw, 1.16rem); color: var(--ink-2); max-width: 62ch; margin: 0 0 26px; line-height: 1.62; }
.pw-eyebrow { display: inline-flex; align-items: center; gap: 9px; text-transform: uppercase;
              letter-spacing: .16em; font-size: .7rem; font-weight: 700; color: var(--accent);
              margin: 0 0 14px; }
.pw-eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.pw-note { font-size: .84rem; color: var(--ink-3); margin: 12px 0 0;
           /* 13.4px 的字跑满 1232px 容器 = 92 字符一行，眼睛找不到下一行。
              正文规格：小字也必须收在 72ch 以内。 */
           max-width: 72ch; }
.pw-mt12 { margin-top: 12px; }

/* 正文可读性 */
.pw-entry { max-width: 78ch; min-width: 0; }
.pw-entry > *:first-child { margin-top: 0; }
.pw-entry h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 48px 0 14px;
               letter-spacing: -.018em; font-weight: 800; line-height: 1.22; }
.pw-entry h3 { font-size: 1.12rem; margin: 32px 0 10px; font-weight: 700; }
.pw-entry h4 { font-size: .95rem; margin: 26px 0 8px; font-weight: 700;
               text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.pw-entry p { margin: 0 0 17px; color: var(--ink-2); }
.pw-entry ul, .pw-entry ol { color: var(--ink-2); padding-left: 20px; margin: 0 0 18px; }
.pw-entry li { margin-bottom: 7px; }
.pw-entry img { border-radius: var(--r); border: 1px solid var(--line); }
.pw-entry blockquote { margin: 26px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent);
                       color: var(--ink-2); font-size: 1.04rem; }
/* 表格在窄屏必须能在自己的容器里横向滚动。
   4 列的规格表 min-content 约 400px，而 390px 手机的可用宽度只有 342px，
   没有这层包裹时表格会把父级的 grid 轨道顶开（父级是 1fr = minmax(auto,1fr)），
   整个页面出现横向滚动条。台阶：2026-10-23 about-us 移动端溢出 59px。 */
.pw-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch;
                   margin: 0 0 22px; border-radius: 6px; }
.pw-table-scroll > table { margin: 0; }
.pw-table-scroll::-webkit-scrollbar { height: 6px; }
.pw-table-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.pw-entry table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 0 0 22px; }
.pw-entry th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
               color: var(--ink-3); font-weight: 700; padding: 10px 14px; background: var(--bg-2);
               border-bottom: 1px solid var(--line); }
.pw-entry td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }

/* ==========================================================================
   4. 按钮
   ========================================================================== */
.pw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
          padding: 13px 24px; border: 1.5px solid transparent; border-radius: var(--r);
          font-weight: 650; font-size: .93rem; line-height: 1.2; cursor: pointer;
          text-decoration: none !important; font-family: var(--font);
          transition: background .18s, color .18s, border-color .18s, transform .18s; }
.pw-btn-primary { background: var(--brand); color: #fff; }
.pw-btn-primary:hover { background: var(--brand-dk); color: #fff; transform: translateY(-1px); }
.pw-btn-dark { background: var(--ink); color: #fff; }
.pw-btn-dark:hover { background: #000; color: #fff; }
.pw-btn-outline { background: transparent; color: var(--ink); border-color: var(--ink-4); }
.pw-btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pw-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }
.pw-btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.pw-btn-sm { padding: 9px 16px; font-size: .85rem; }
.pw-btn-lg { padding: 16px 30px; font-size: 1rem; }
.pw-btn-block { width: 100%; }
.pw-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* 文字箭头链接 */
.pw-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 650;
            font-size: .9rem; color: var(--brand); }
.pw-arrow::after { content: "→"; transition: transform .18s; }
.pw-arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   5. 顶栏 / 页头 / 导航
   ========================================================================== */
.pw-topbar { background: var(--bg-3); color: #93a4b7; font-size: .78rem; letter-spacing: .01em; }
.pw-topbar-in { max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter);
                display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
                align-items: center; }
.pw-topbar a { color: #93a4b7; text-decoration: none; }
.pw-topbar a:hover { color: #fff; }
.pw-topbar-sep { opacity: .4; margin: 0 8px; }

.pw-header { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line);
             position: sticky; top: 0; z-index: 90; backdrop-filter: saturate(1.2) blur(8px); }
.pw-header-in { max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter);
                display: flex; align-items: center; gap: 28px; }

.pw-logo { font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink);
           text-decoration: none; white-space: nowrap; display: inline-block; line-height: 1.02; }
.pw-logo span { color: var(--brand); }
.pw-logo::after { content: "OEM · ODM · PRIVATE LABEL"; display: block; font-size: .55rem;
                  letter-spacing: .17em; color: var(--ink-4); font-weight: 600; margin-top: 5px;
                  white-space: nowrap; }

/* 主导航：短标签 + 下拉，不做长句堆词 */
.pw-nav { display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; align-items: center; list-style: none; }
.pw-nav > li { position: relative; list-style: none; }
.pw-nav > li > a { display: block; padding: 10px 13px; border-radius: var(--r);
                   color: var(--ink-2); font-size: .9rem; font-weight: 600; white-space: nowrap;
                   text-decoration: none; transition: color .15s, background .15s; }
.pw-nav > li > a:hover { color: var(--brand); background: var(--bg-2); }
.pw-nav > li.current-menu-item > a,
.pw-nav > li.current-menu-ancestor > a { color: var(--brand); }
.pw-nav > li.menu-item-has-children > a::after { content: ""; display: inline-block;
                   width: 5px; height: 5px; margin-left: 7px; vertical-align: 2px;
                   border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
                   transform: rotate(45deg); opacity: .55; }

.pw-nav ul { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: calc(100% + 6px);
             background: #fff; border: 1px solid var(--line); border-radius: 8px; min-width: 268px;
             box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(6px);
             transition: opacity .16s, transform .16s, visibility .16s; z-index: 95; }
.pw-nav li:hover > ul, .pw-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.pw-nav ul li { list-style: none; position: relative; }
.pw-nav ul li a { display: block; padding: 9px 12px; border-radius: 4px; font-size: .87rem;
                  color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.pw-nav ul li a:hover { background: var(--bg-2); color: var(--brand); }
.pw-nav ul ul { left: 100%; top: -8px; }
.pw-nav ul li.menu-item-has-children > a::after { content: "›"; float: right; margin-left: 12px; opacity: .45; }

.pw-header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.pw-list-link { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem;
                font-weight: 650; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.pw-list-link:hover { color: var(--brand); }
.pw-list-badge { display: none; align-items: center; justify-content: center; min-width: 19px; height: 19px;
                 padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff;
                 font-size: .68rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pw-burger { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer;
             color: var(--ink); padding: 6px 8px; line-height: 1; }

/* ==========================================================================
   6. 首页轮播 Hero
   ========================================================================== */
.pw-hero { position: relative; background: var(--bg-3); overflow: hidden; }
.pw-slides { position: relative; height: clamp(480px, 68vh, 700px); }
.pw-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden;
            transition: opacity .9s ease, visibility .9s; }
.pw-slide.is-active { opacity: 1; visibility: visible; }
.pw-slide-bg { position: absolute; inset: 0; }
.pw-slide-bg img { width: 100%; height: 100%; object-fit: cover; display: block;
                   transform: scale(1.04); transition: transform 7s linear; }
.pw-slide.is-active .pw-slide-bg img { transform: scale(1); }
.pw-slide-bg::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(6,12,20,.92) 0%, rgba(6,12,20,.78) 42%, rgba(6,12,20,.28) 72%, rgba(6,12,20,.12) 100%); }

.pw-slide-in { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto;
               padding: 0 var(--gutter); height: 100%; display: flex; align-items: center; }
.pw-slide-copy { max-width: 640px; color: #fff; }
.pw-slide-copy .pw-eyebrow { color: var(--accent); }
.pw-slide-copy h1, .pw-slide-copy h2 { font-size: clamp(2.05rem, 4.4vw, 3.5rem); line-height: 1.07;
               font-weight: 800; letter-spacing: -.03em; margin: 0 0 20px; color: #fff; }
.pw-slide-copy p { font-size: clamp(.98rem, 1.6vw, 1.12rem); color: #c3d0dd; max-width: 52ch;
                   margin: 0 0 30px; line-height: 1.62; }
.pw-slide-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* 轮播控件 */
.pw-slides-nav { position: absolute; z-index: 3; bottom: 26px; right: var(--gutter);
                 display: flex; align-items: center; gap: 8px; }
.pw-slides-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.32);
                        background: rgba(10,17,25,.35); color: #fff; cursor: pointer; font-size: 1rem;
                        display: flex; align-items: center; justify-content: center;
                        transition: background .18s, border-color .18s; backdrop-filter: blur(4px); }
.pw-slides-nav button:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.pw-slides-dots { position: absolute; z-index: 3; bottom: 40px; left: 50%; transform: translateX(-50%);
                  display: flex; gap: 9px; }
.pw-slides-dots button { width: 30px; height: 3px; border: 0; padding: 0; border-radius: 2px;
                         background: rgba(255,255,255,.32); cursor: pointer; transition: background .2s; }
.pw-slides-dots button.is-active { background: #fff; }

/* Hero 下方事实条 */
.pw-hero-facts { position: relative; z-index: 3; background: rgba(8,14,22,.92);
                 border-top: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.pw-hero-facts-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
                    display: grid; grid-template-columns: repeat(4,1fr); }
.pw-hero-fact { padding: 20px 22px 20px 0; border-right: 1px solid rgba(255,255,255,.08); }
.pw-hero-fact:last-child { border-right: 0; }
.pw-hero-fact dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .14em;
                   color: #7c8fa3; font-weight: 700; margin-bottom: 5px; }
.pw-hero-fact dd { margin: 0; font-size: 1.02rem; font-weight: 700; color: #fff;
                   letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

/* 内页 hero 带 */
.pw-page-hero { background: var(--bg-3); color: #fff; position: relative; overflow: hidden; }
.pw-page-hero--img::before { content: ""; position: absolute; inset: 0;
    background-image: var(--pw-hero-img); background-size: cover; background-position: center;
    opacity: .30; }
.pw-page-hero--img::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8,14,22,.95) 0%, rgba(8,14,22,.82) 55%, rgba(8,14,22,.55) 100%); }
.pw-page-hero-in { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto;
                   padding: 62px var(--gutter) 58px; }
.pw-page-hero .pw-breadcrumb { color: #8fa1b4; margin-bottom: 20px; }
.pw-page-hero .pw-breadcrumb a { color: #8fa1b4; }
.pw-page-hero .pw-breadcrumb a:hover { color: #fff; }
.pw-page-hero .pw-breadcrumb span { color: #5d6e80; }
.pw-page-hero .pw-h1 { color: #fff; margin-bottom: 16px; max-width: 22ch; }
.pw-page-hero .pw-lede { color: #b8c6d4; margin-bottom: 0; }

/* ==========================================================================
   7. 面包屑
   ========================================================================== */
.pw-breadcrumb { font-size: .8rem; color: var(--ink-3); margin-bottom: 22px; line-height: 1.5; }
.pw-breadcrumb a { color: var(--ink-3); text-decoration: none; }
.pw-breadcrumb a:hover { color: var(--brand); }
.pw-breadcrumb span { margin: 0 7px; color: var(--ink-4); }

/* ==========================================================================
   8. 数据条
   ========================================================================== */
.pw-stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.pw-stats-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
               display: grid; grid-template-columns: repeat(5,1fr); }
.pw-stat { padding: 30px 22px 30px 0; border-right: 1px solid var(--line); }
.pw-stat:last-child { border-right: 0; }
.pw-stat-k { display: block; font-size: clamp(1.5rem,2.4vw,2rem); font-weight: 800;
             letter-spacing: -.03em; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.pw-stat-l { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em;
             color: var(--ink-3); font-weight: 650; margin-top: 6px; }

/* ==========================================================================
   9. 分类卡
   ========================================================================== */
.pw-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pw-cat-card { position: relative; display: block; border-radius: 8px; overflow: hidden;
               background: var(--bg-2); aspect-ratio: 4/3; text-decoration: none !important;
               border: 1px solid var(--line); }
.pw-cat-card img { width: 100%; height: 100%; object-fit: cover; display: block;
                   transition: transform .5s ease; }
.pw-cat-card:hover img { transform: scale(1.045); }
.pw-cat-card::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(9,14,20,0) 34%, rgba(9,14,20,.72) 74%, rgba(9,14,20,.9) 100%); }
.pw-cat-card-in { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 22px 22px 20px; }
.pw-cat-card-t { display: block; font-size: 1.14rem; font-weight: 750; color: #fff;
                 letter-spacing: -.015em; line-height: 1.28; }
.pw-cat-card-m { display: block; font-size: .78rem; color: #adbcCb; margin-top: 5px;
                 font-variant-numeric: tabular-nums; }
.pw-cat-card:hover .pw-cat-card-t { text-decoration: underline; text-underline-offset: 4px; }
.pw-cat-card--wide { grid-column: span 2; aspect-ratio: auto; min-height: 240px; }

/* ==========================================================================
   10. 商品栅格与卡片
   ========================================================================== */
ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
              gap: 22px; list-style: none; padding: 0; margin: 0; }
ul.products::before, ul.products::after { display: none; content: none; }
ul.products li.product { width: auto !important; float: none !important; margin: 0 !important;
                         clear: none !important; list-style: none; }

.pw-product-card { border: 1px solid var(--line); border-radius: 8px; background: #fff;
                   display: flex; flex-direction: column; overflow: hidden;
                   transition: border-color .18s, box-shadow .18s, transform .18s; }
.pw-product-card:hover { border-color: #c9d5e2; box-shadow: var(--shadow-md); transform: translateY(-2px); }

.pw-card-media { display: block; background: #fff; overflow: hidden; position: relative;
                 border-bottom: 1px solid var(--line-2); }
.pw-card-media img { width: 100%; aspect-ratio: 1/1; object-fit: contain; display: block;
                     padding: 10px; transition: transform .4s ease; background: #fff; }
.pw-product-card:hover .pw-card-media img { transform: scale(1.035); }
.pw-card-noimg { display: flex; align-items: center; justify-content: center; aspect-ratio: 1/1;
                 color: var(--ink-4); font-size: .8rem; background: var(--bg-2); }

.pw-card-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pw-card-cat { font-size: .64rem; text-transform: uppercase; letter-spacing: .11em;
               color: var(--brand); font-weight: 750; }
.pw-card-title { margin: 0; font-size: .92rem; line-height: 1.4; font-weight: 650; letter-spacing: -.008em; }
.pw-card-title a { color: var(--ink); text-decoration: none !important; }
.pw-card-title a:hover { color: var(--brand); }
.pw-card-sku { font-family: var(--mono); font-size: .7rem; color: var(--ink-4); letter-spacing: .02em; }

/* 卡片规格：只留 MOQ（价格与交期不对外展示） */
.pw-card-specs { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line-2);
                 display: flex; gap: 22px; flex-wrap: wrap; }
.pw-card-specs div { display: flex; flex-direction: column; }
.pw-card-specs dt { font-size: .6rem; text-transform: uppercase; letter-spacing: .09em;
                    color: var(--ink-4); font-weight: 700; }
.pw-card-specs dd { margin: 0; font-size: .84rem; font-weight: 700; color: var(--ink);
                    font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.pw-card-cta { margin-top: auto; padding-top: 12px; font-size: .82rem; font-weight: 700;
               color: var(--brand); text-decoration: none !important; display: inline-flex;
               align-items: center; gap: 6px; }
.pw-card-cta::after { content: "→"; transition: transform .18s; }
.pw-product-card:hover .pw-card-cta::after { transform: translateX(4px); }

/* 横向滚动商品带（首页专题）
   注意：ul.products 上有 display:grid !important，这里必须同样带 !important，
   否则会退化成单列 grid —— 每张卡撑满 1232px 宽，整段被撑到两万多像素高。 */
ul.products.pw-rail {
    display: flex !important;
    flex-wrap: nowrap;
    grid-template-columns: none;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    margin: 0;
    list-style: none;
}
.pw-rail::-webkit-scrollbar { height: 6px; }
.pw-rail::-webkit-scrollbar-track { background: var(--line-2); border-radius: 3px; }
.pw-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
ul.products.pw-rail > li.product { flex: 0 0 258px; width: 258px !important; scroll-snap-align: start; }

/* ==========================================================================
   11. 车间画廊
   ========================================================================== */
/* 内容页区块用 .pw-workshop，与 PDP 图库的 .pw-pdp-gallery 彻底分名。
   历史上两者共用一个 .pw-gallery，PDP 的 sticky 把这块钉在视口上，
   FAQ 文字会压到图片上——分名后这种耦合不可能再发生。 */
.pw-workshop { position: static; margin: 0 0 8px; }
.pw-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr);
                   grid-auto-rows: clamp(150px, 17vw, 208px); gap: 14px;
                   grid-auto-flow: dense; }
.pw-shot { position: relative; overflow: hidden; border-radius: 6px; background: var(--bg-2);
           border: 1px solid var(--line); margin: 0; }
.pw-shot:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.pw-shot figcaption strong { display:block; font-weight:700; margin-bottom:2px; }
.pw-shot figcaption span { display:block; font-weight:400; opacity:.86; font-size:.74rem; line-height:1.45; }
.pw-shot img { width: 100%; height: 100%; object-fit: cover; display: block;
               transition: transform .6s ease; }
.pw-shot:hover img { transform: scale(1.04); }
.pw-shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px;
                      font-size: .78rem; font-weight: 600; color: #fff; letter-spacing: .01em;
                      background: linear-gradient(180deg, rgba(9,14,20,0), rgba(9,14,20,.82)); }

/* ==========================================================================
   12. 能力 / 流程
   ========================================================================== */
.pw-cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pw-cap-card { border: 1px solid var(--line); border-radius: 8px; padding: 26px 24px 24px;
               background: #fff; }
.pw-cap-icon { width: 34px; height: 34px; border-radius: 6px; background: var(--brand-lt);
               color: var(--brand); display: flex; align-items: center; justify-content: center;
               font-weight: 800; font-size: .82rem; margin-bottom: 14px; }
.pw-cap-card h3 { font-size: 1.02rem; margin: 0 0 8px; font-weight: 750; letter-spacing: -.012em; }
.pw-cap-list { margin: 0; padding: 0; list-style: none; }
.pw-cap-list li { position: relative; padding-left: 16px; font-size: .87rem; color: var(--ink-2);
                  margin-bottom: 7px; line-height: 1.5; }
.pw-cap-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 1px;
                          background: var(--accent); }
.pw-cap-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 26px 0; }
.pw-cap-table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .09em;
                   color: var(--ink-3); padding: 11px 14px; background: var(--bg-2);
                   border-bottom: 1px solid var(--line); font-weight: 700; }
.pw-cap-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }

/* 流程：编号 + 竖线 */
.pw-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 8px;
              counter-reset: pwstep; }
.pw-step { position: relative; padding: 0 26px 0 0; }
.pw-step::before { counter-increment: pwstep; content: "0" counter(pwstep);
                   display: block; font-size: 1.6rem; font-weight: 800; color: var(--accent);
                   letter-spacing: -.04em; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.pw-step::after { content: ""; position: absolute; top: 14px; right: 12px; left: 46px; height: 1px;
                  background: var(--line); }
.pw-step:last-child::after { display: none; }
.pw-step h3 { font-size: .98rem; margin: 0 0 7px; font-weight: 700; }
.pw-step p { font-size: .87rem; color: var(--ink-2); margin: 0; line-height: 1.6; }

/* 分栏图文 */
.pw-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pw-split--rev > figure { order: 2; }
.pw-split figure { margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.pw-split figure img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.pw-split-copy .pw-h2 { margin-top: 0; }
.pw-check { list-style: none; margin: 0 0 26px; padding: 0; }
.pw-check li { position: relative; padding-left: 26px; margin-bottom: 11px; font-size: .93rem;
               color: var(--ink-2); line-height: 1.55; }
.pw-check li::before { content: ""; position: absolute; left: 0; top: .34em; width: 15px; height: 15px;
                       border-radius: 50%; background: var(--brand-lt); }
.pw-check li::after { content: ""; position: absolute; left: 5px; top: .58em; width: 5px; height: 2px;
                      border-left: 1.6px solid var(--brand); border-bottom: 1.6px solid var(--brand);
                      transform: rotate(-45deg); }

/* 认证列表 */
.pw-cert-list { list-style: none; margin: 24px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pw-cert-list li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 4px;
                   font-size: .8rem; font-weight: 650; color: var(--ink-2); background: #fff; }

/* ==========================================================================
   13. FAQ
   ========================================================================== */
.pw-faq-list { border-top: 1px solid var(--line); }
.pw-faq-item { border-bottom: 1px solid var(--line); }
.pw-faq-item summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
                       font-size: 1.02rem; font-weight: 700; color: var(--ink); letter-spacing: -.012em; }
.pw-faq-item summary::-webkit-details-marker { display: none; }
.pw-faq-item summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 9px; height: 9px;
                              border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3);
                              transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.pw-faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.pw-faq-item summary:hover { color: var(--brand); }
.pw-faq-a { padding: 0 44px 24px 0; color: var(--ink-2); font-size: .94rem; line-height: 1.68; }
.pw-faq-a p { margin: 0 0 12px; }
.pw-faq-a p:last-child { margin-bottom: 0; }

/* GEO 明文问答表 */
.pw-qa-table { border: 1px solid var(--line); border-radius: 8px; background: #fff;
               margin: 34px 0; overflow: hidden; }
.pw-qa-table dl { margin: 0; }
.pw-qa-table dt { padding: 15px 20px 7px; font-weight: 750; font-size: .98rem; color: var(--ink);
                  background: var(--bg-2); border-bottom: 1px solid var(--line); }
.pw-qa-table dd { margin: 0; padding: 13px 20px 17px; font-size: .92rem; color: var(--ink-2);
                  line-height: 1.66; border-bottom: 1px solid var(--line-2); }
.pw-qa-table dd:last-child { border-bottom: none; }
.pw-keyword-note { font-size: .92rem; color: var(--ink-2); background: var(--bg-2);
                   border-left: 2px solid var(--accent); padding: 14px 18px;
                   border-radius: 0 6px 6px 0; margin: 26px 0; }
.pw-keyword-note strong { color: var(--ink); }
/* Key facts：dt/dd 直接成对排列（没有包 div），必须用两列 grid 逐行铺 */
.pw-factblock { border: 1px solid var(--line); border-radius: 8px;
                max-width: var(--max); margin: 48px auto 0; background: var(--bg-2);
                overflow: hidden; }
.pw-factblock-h { padding: 14px 20px; font-size: .68rem; text-transform: uppercase;
                  letter-spacing: .12em; font-weight: 750; color: var(--ink-3);
                  background: #fff; border-bottom: 1px solid var(--line); margin: 0; }
.pw-factblock dl { margin: 0; display: grid; grid-template-columns: minmax(150px, 210px) minmax(0,1fr); }
.pw-factblock dt { padding: 11px 20px; font-size: .64rem; text-transform: uppercase;
                   letter-spacing: .1em; color: var(--ink-4); font-weight: 700;
                   border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
                   display: flex; align-items: center; }
.pw-factblock dd { margin: 0; padding: 11px 20px; font-size: .87rem; font-weight: 600;
                   color: var(--ink); border-bottom: 1px solid var(--line); }
.pw-factblock dt:last-of-type, .pw-factblock dd:last-of-type { border-bottom: 0; }
@media (max-width: 760px) {
    .pw-factblock { margin: 36px 20px 0; }
    .pw-factblock dl { grid-template-columns: 1fr; }
    .pw-factblock dt { border-right: 0; padding-bottom: 0; border-bottom: 0; }
    .pw-factblock dd { padding-top: 2px; }
}

/* ==========================================================================
   14. CTA 条
   ========================================================================== */
.pw-cta-band { background: var(--bg-3); color: #fff; position: relative; overflow: hidden; }
.pw-cta-band::before { content: ""; position: absolute; inset: 0;
    background: radial-gradient(900px 320px at 78% 50%, rgba(13,77,139,.42), transparent 70%); }
.pw-cta-band-in { position: relative; max-width: var(--max); margin: 0 auto; padding: 66px var(--gutter);
                  display: flex; align-items: center; justify-content: space-between; gap: 36px;
                  flex-wrap: wrap; }
.pw-cta-band h2 { margin: 0 0 8px; font-size: clamp(1.4rem,2.6vw,2rem); color: #fff;
                  letter-spacing: -.02em; font-weight: 800; }
.pw-cta-band p { margin: 0; color: #a9b8c8; font-size: .96rem; max-width: 56ch; }

/* ==========================================================================
   15. 页脚
   ========================================================================== */
.pw-footer { background: var(--bg-3); color: #94a6b8; font-size: .89rem; }
.pw-footer-in { max-width: var(--max); margin: 0 auto; padding: 64px var(--gutter) 40px;
                display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 44px;
                border-top: 1px solid rgba(255,255,255,.08); }
.pw-footer h3 { color: #fff; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
                margin: 0 0 16px; font-weight: 750; }
.pw-footer ul { list-style: none; margin: 0; padding: 0; }
.pw-footer li { margin-bottom: 9px; line-height: 1.5; }
.pw-footer a { color: #94a6b8; text-decoration: none; }
.pw-footer a:hover { color: #fff; }
.pw-footer-brand .pw-logo { color: #fff; font-size: 1.24rem; margin-bottom: 16px; }
.pw-footer-brand .pw-logo::after { color: #5d6e80; }
.pw-footer-brand p { margin: 0 0 14px; max-width: 46ch; line-height: 1.62; color: #8598ab; }
.pw-footer-badge { font-size: .74rem; color: #62748a !important; line-height: 1.7; }
.pw-footer-bot { border-top: 1px solid rgba(255,255,255,.08); }
.pw-footer-bot-in { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter);
                    display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
                    font-size: .78rem; color: #6d7f93; }
.pw-footer-bot a { color: #6d7f93; }
.pw-footer-bot a:hover { color: #fff; }

/* ==========================================================================
   16. 归档页 / 分类页
   ========================================================================== */
.pw-cat-specs { display: flex; flex-wrap: wrap; gap: 0; margin: 26px 0 30px;
                border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pw-cat-specs > div { padding: 15px 30px 15px 0; margin-right: 30px;
                      border-right: 1px solid var(--line); font-size: .9rem; color: var(--ink); }
.pw-cat-specs > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.pw-cat-specs strong { display: block; font-size: .64rem; text-transform: uppercase;
                       letter-spacing: .1em; color: var(--ink-4); font-weight: 700; margin-bottom: 3px; }

.pw-shop-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px;
               flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px;
               margin-bottom: 26px; font-size: .84rem; color: var(--ink-3); }
.pw-archive-grid { display: grid; grid-template-columns: 1fr; gap: 0; }

/* 分页：WP/WC 都输出 ul.page-numbers，全部接管 */
.pw-pagination,
.woocommerce-pagination { margin-top: 44px; }
.pw-pagination ul, .woocommerce-pagination ul.page-numbers {
    display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pw-pagination li, .woocommerce-pagination ul.page-numbers li { list-style: none; margin: 0; }
.pw-pagination .page-numbers,
.woocommerce-pagination ul.page-numbers .page-numbers {
    display: inline-flex; min-width: 40px; height: 40px; padding: 0 12px;
    align-items: center; justify-content: center; border: 1px solid var(--line);
    border-radius: var(--r); color: var(--ink-2); text-decoration: none; font-size: .87rem;
    font-weight: 600; background: #fff; font-variant-numeric: tabular-nums;
    transition: border-color .15s, background .15s, color .15s; }
.pw-pagination a.page-numbers:hover,
.woocommerce-pagination ul.page-numbers a.page-numbers:hover { border-color: var(--ink-4); color: var(--brand); }
.pw-pagination .page-numbers.current,
.woocommerce-pagination ul.page-numbers .page-numbers.current {
    background: var(--ink); color: #fff; border-color: var(--ink); }
.pw-pagination .page-numbers.dots, .woocommerce-pagination .page-numbers.dots { border-color: transparent; }

/* ==========================================================================
   17. 商品详情页
   ========================================================================== */
.pw-single-product { max-width: var(--max); margin: 0 auto; padding: 30px var(--gutter) 72px; }

.pw-pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
          gap: 56px; align-items: start; margin-bottom: 60px; }
/* 轨道用 minmax(0,1fr) 还不够：grid item 默认 min-width:auto，
   图集/缩略图这类内容会把轨道的最小尺寸顶起来，整页出现横向滚动。 */
.pw-pdp > * { min-width: 0; }

/* 图库：主图 + 缩略图条
   ⚠️ 这个类必须叫 .pw-pdp-gallery，不能叫 .pw-gallery。
   内容页的「Inside the supply chain」区块历史上也用 .pw-gallery，
   一旦此处的 sticky 命中共名元素，那块画廊会被钉在视口上，
   后面的 FAQ 文字就滚过来盖在图片上（2026-10-23 用户第二次反馈的排版事故）。
   模板与 CSS 必须同时是 .pw-pdp-gallery。 */
.pw-pdp-gallery { position: sticky; top: 96px; }
.pw-gallery-main { border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
                   background: #fff; position: relative; }
.pw-gallery-main img { width: 100%; aspect-ratio: 1/1; object-fit: contain; display: block;
                       padding: 16px; transition: opacity .2s; }
.pw-gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px;
                  border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.94);
                  color: var(--ink); cursor: pointer; display: flex; align-items: center;
                  justify-content: center; font-size: 1rem; box-shadow: var(--shadow-sm);
                  transition: background .15s; }
.pw-gallery-nav:hover { background: #fff; }
.pw-gallery-nav--prev { left: 12px; }
.pw-gallery-nav--next { right: 12px; }

.pw-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto;
                     scroll-snap-type: x mandatory; padding-bottom: 6px; }
.pw-gallery-thumbs::-webkit-scrollbar { height: 5px; }
.pw-gallery-thumbs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.pw-gallery-thumb { flex: 0 0 82px; width: 82px; height: 82px; padding: 4px; border: 1px solid var(--line);
                    border-radius: 6px; background: #fff; cursor: pointer; scroll-snap-align: start;
                    transition: border-color .15s, box-shadow .15s; }
.pw-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pw-gallery-thumb:hover { border-color: var(--ink-4); }
.pw-gallery-thumb.is-active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

/* 信息列 */
.pw-pdp-info { max-width: 560px; }
.pw-pdp-info > h1 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.22; margin: 0 0 12px;
                    font-weight: 800; letter-spacing: -.024em; }
.pw-pdp-sku { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
              font-family: var(--mono); font-size: .78rem; color: var(--ink-3);
              margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pw-badge-oem { font-family: var(--font); padding: 3px 8px; border-radius: 3px;
                background: var(--brand-lt); color: var(--brand); font-size: .62rem;
                font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.pw-badge-stock { font-family: var(--font); padding: 3px 8px; border-radius: 3px;
                  background: #f1f4f8; color: var(--ink-2); font-size: .62rem;
                  font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }

/* 询价区 */
.pw-inquiry-cta { border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px;
                  background: var(--bg-2); margin: 0 0 24px; }
.pw-inquiry-price { margin-bottom: 16px; }
.pw-inquiry-price-k { display: block; font-size: .64rem; text-transform: uppercase;
                      letter-spacing: .12em; color: var(--ink-4); font-weight: 700; }
.pw-inquiry-price-v { display: block; font-size: 1.08rem; font-weight: 750; color: var(--ink);
                      letter-spacing: -.01em; margin-top: 3px; }
.pw-inquiry-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.pw-inquiry-qty { display: flex; flex-direction: column; gap: 5px; font-size: .64rem;
                  text-transform: uppercase; letter-spacing: .1em; color: var(--ink-4); font-weight: 700; }
.pw-inquiry-qty input { width: 132px; padding: 12px 13px; border: 1px solid var(--line);
                        border-radius: var(--r); font-family: var(--font); font-size: .95rem;
                        font-variant-numeric: tabular-nums; background: #fff; color: var(--ink); }
.pw-inquiry-qty input:focus { outline: 2px solid rgba(13,77,139,.25); border-color: var(--brand); }
.pw-inquiry-add { flex: 1; min-width: 190px; }
.pw-inquiry-add.added { background: var(--ok); border-color: var(--ok); }
.pw-inquiry-or { margin: 12px 0 0; font-size: .84rem; color: var(--ink-2); }
.pw-inquiry-or a { color: var(--brand); font-weight: 650; }
.pw-inquiry-note { margin: 14px 0 0; font-size: .78rem; color: var(--ink-3); line-height: 1.55; }

/* OEM 规格面板 */
.pw-oem-panel { border-top: 1px solid var(--line); padding-top: 22px; }
.pw-oem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 20px; margin-bottom: 24px; }
.pw-oem-cell { display: flex; flex-direction: column; gap: 2px; }
.pw-oem-k { font-size: .62rem; text-transform: uppercase; letter-spacing: .11em;
            color: var(--ink-4); font-weight: 700; }
.pw-oem-v { font-size: .95rem; font-weight: 750; color: var(--ink); letter-spacing: -.01em;
            font-variant-numeric: tabular-nums; }
.pw-oem-n { font-size: .74rem; color: var(--ink-3); line-height: 1.45; margin-top: 2px; }
.pw-custom-list { border-top: 1px solid var(--line-2); padding-top: 18px; margin-bottom: 22px; }
.pw-custom-list h4 { font-size: .68rem; text-transform: uppercase; letter-spacing: .11em;
                     color: var(--ink-3); font-weight: 750; margin: 0 0 12px; }
.pw-custom-list ul { list-style: none; margin: 0; padding: 0; display: grid;
                     grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.pw-custom-list li { position: relative; padding-left: 15px; font-size: .82rem;
                     color: var(--ink-2); line-height: 1.5; }
.pw-custom-list li::before { content: ""; position: absolute; left: 0; top: .6em;
                             width: 5px; height: 1px; background: var(--accent); }

.pw-pdp-links { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-2);
                display: flex; gap: 22px; flex-wrap: wrap; font-size: .85rem; }
.pw-pdp-links a { color: var(--brand); font-weight: 650; }
.pw-pdp-links a:hover { text-decoration: underline; }

/* 规格表 */
.pw-pdp-info table.shop_attributes { width: 100%; border-collapse: collapse; font-size: .87rem;
                                     margin: 0 0 20px; }
.pw-pdp-info table.shop_attributes th { text-align: left; padding: 9px 14px 9px 0; color: var(--ink-3);
                                        font-weight: 500; width: 42%; border-bottom: 1px solid var(--line-2); }
.pw-pdp-info table.shop_attributes td { padding: 9px 0; color: var(--ink); font-weight: 600;
                                        border-bottom: 1px solid var(--line-2); }
.pw-pdp-info table.shop_attributes td p { margin: 0; }

/* 正文区（详情） */
.pw-pdp-body { border-top: 1px solid var(--line); padding-top: 46px; max-width: 900px; }
.pw-pdp-body .pw-entry { max-width: none; }
.pw-pdp-body h2 { font-size: 1.3rem; }

/* 相关商品 */
.pw-related { max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter) 72px; }
.pw-related .pw-h2 { margin-bottom: 26px; }

/* WC 默认 tab 兜底（我们已接管，但防止插件注入） */
.woocommerce-tabs { display: none; }

/* ==========================================================================
   18. 报价表单
   ========================================================================== */
.pw-quote-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px;
                 align-items: start; }
/* 嵌套在联系页里时不再二次分栏：外层已经是两栏了 */
.pw-contact-form .pw-quote-wrap { grid-template-columns: 1fr; }
.pw-quote-form { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.pw-qf-section { padding: 26px 28px; border-bottom: 1px solid var(--line-2); }
.pw-qf-section:last-of-type { border-bottom: 0; }
.pw-qf-h { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3);
           font-weight: 750; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.pw-qf-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* 1fr 的隐式最小值是 min-content，而 <input> 的 min-content 由 size 属性决定（约 170px）。
   两列 = 170×2 + gap，在 390px 屏上把 286px 的内容区顶出 33px。
   minmax(0,1fr) + min-width:0 才是真正可压缩的 1fr。 */
.pw-qf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.pw-qf-grid label { display: flex; flex-direction: column; gap: 6px; font-size: .72rem;
                    text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3);
                    font-weight: 700; }
.pw-qf-grid input, .pw-qf-grid select, .pw-qf-grid textarea,
.pw-qf-wide input, .pw-qf-wide select, .pw-qf-wide textarea {
    padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r);
    font-family: var(--font); font-size: .93rem; color: var(--ink); background: #fff;
    text-transform: none; letter-spacing: normal; font-weight: 400;
    width: 100%; min-width: 0; }
.pw-qf-grid input:focus, .pw-qf-grid select:focus, .pw-qf-grid textarea:focus,
.pw-qf-wide input:focus, .pw-qf-wide select:focus, .pw-qf-wide textarea:focus {
    outline: 2px solid rgba(13,77,139,.22); border-color: var(--brand); }
.pw-qf-wide { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px;
              font-size: .72rem; text-transform: uppercase; letter-spacing: .09em;
              color: var(--ink-3); font-weight: 700; }
.pw-qf-lines { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.pw-qf-line { display: grid; grid-template-columns: 1fr 130px 34px; gap: 10px; align-items: center; }
.pw-qf-add { margin-top: 2px; }
.pw-qf-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pw-qf-hint { font-size: .8rem; color: var(--ink-3); max-width: 72ch; }
.pw-qf-result { margin-top: 18px; }
.pw-qf-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .85rem; color: var(--ink-2); }
.pw-qf-checks label { display: inline-flex; align-items: center; gap: 7px; text-transform: none;
                      letter-spacing: normal; font-size: .85rem; font-weight: 400; color: var(--ink-2); }
.pw-res-amount { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.pw-res-ok { color: var(--ok); font-weight: 700; }
.pw-res-note { font-size: .85rem; color: var(--ink-3); }
.pw-quote-side { position: sticky; top: 96px; }
.pw-quote-side h3 { font-size: 1rem; margin: 0 0 12px; }

/* ==========================================================================
   19. 联系页
   ========================================================================== */
.pw-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 44px; }
.pw-contact-info { border-left: 1px solid var(--line); padding-left: 34px; }
.pw-contact-dl { margin: 0; }
.pw-contact-dl dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .11em;
                    color: var(--ink-4); font-weight: 700; margin-top: 20px; }
.pw-contact-dl dt:first-child { margin-top: 0; }
.pw-contact-dl dd { margin: 4px 0 0; font-size: .93rem; color: var(--ink); line-height: 1.6; }

/* ==========================================================================
   20. 询价清单页
   ========================================================================== */
.pw-list-page { margin-top: 8px; }
.pw-list-empty { text-align: center; padding: 72px 24px; border: 1px dashed var(--line); border-radius: 10px; }
.pw-list-empty h2 { margin: 0 0 10px; font-size: 1.4rem; }
.pw-list-empty p { color: var(--ink-2); max-width: 52ch; margin: 0 auto 24px; }
.pw-list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
                flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 20px; }
.pw-list-head h2 { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.pw-list-meta { font-size: .86rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.pw-list-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pw-list-table th { text-align: left; font-size: .66rem; text-transform: uppercase; letter-spacing: .09em;
                    color: var(--ink-4); font-weight: 700; padding: 0 10px 10px;
                    border-bottom: 1px solid var(--line); }
.pw-list-table th:nth-child(n+2), .pw-list-table td:nth-child(n+2) { text-align: right; }
.pw-list-table td { padding: 14px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.pw-list-prod a { display: flex; align-items: center; gap: 12px; text-decoration: none !important;
                  color: var(--ink); }
.pw-list-prod img { width: 56px; height: 56px; object-fit: contain; border-radius: 5px;
                    border: 1px solid var(--line); flex-shrink: 0; padding: 3px; background: #fff; }
.pw-list-prod span { font-weight: 650; line-height: 1.35; }
.pw-list-prod small { display: block; font-family: var(--mono); font-size: .7rem;
                      color: var(--ink-4); font-weight: 400; margin-top: 2px; }
.pw-list-moq { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: .85rem; }
.pw-list-qty input { width: 96px; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r);
                     font-family: var(--font); text-align: right; font-variant-numeric: tabular-nums; }
.pw-below-moq { display: block; font-size: .66rem; color: var(--warn); font-style: normal; margin-top: 3px; }
.pw-list-unit, .pw-list-line { font-family: var(--mono); font-size: .85rem; font-variant-numeric: tabular-nums; }
.pw-list-line { font-weight: 700; }
.pw-inq { font-family: var(--font); font-size: .78rem; color: var(--brand); font-weight: 650; }
.pw-list-rm button { background: none; border: 0; font-size: 1.25rem; line-height: 1; color: var(--ink-4);
                     cursor: pointer; padding: 4px 6px; }
.pw-list-rm button:hover { color: #b00020; }
.pw-list-summary { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 18px; }
.pw-list-summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pw-list-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
                 color: var(--ink-4); font-weight: 700; }
.pw-list-summary strong { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pw-list-note { margin: 10px 0 0; font-size: .84rem; color: var(--ink-2); }
.pw-list-warn { margin: 8px 0 0; font-size: .84rem; color: var(--warn); }
.pw-list-buyer { margin-top: 40px; border: 1px solid var(--line); border-radius: 10px;
                 padding: 28px; background: var(--bg-2); }
.pw-list-buyer h3 { margin: 0 0 16px; font-size: 1.05rem; }

/* ==========================================================================
   21. 杂项
   ========================================================================== */
.pw-team-note, .pw-cert { font-size: .9rem; color: var(--ink-2); }
.pw-terms { max-width: 78ch; }
.pw-terms-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 0 0 24px; }
.pw-terms-table th { text-align: left; font-size: .68rem; text-transform: uppercase;
                     letter-spacing: .09em; color: var(--ink-3); padding: 11px 14px;
                     background: var(--bg-2); border-bottom: 1px solid var(--line); font-weight: 700; }
.pw-terms-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.pw-qc-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.pw-qc-card { border: 1px solid var(--line); border-radius: 8px; padding: 24px; background: #fff; }
.pw-qc-card h3 { font-size: 1rem; margin: 0 0 8px; }
.pw-qc-card p { margin: 0; font-size: .89rem; color: var(--ink-2); }
.pw-oemodm { }
.pw-list { color: var(--ink-2); }

/* 404 */
.pw-404 { text-align: center; padding: 100px 24px; }
.pw-404 h1 { font-size: clamp(2rem,5vw,3.4rem); margin: 0 0 14px; }
.pw-404 p { color: var(--ink-2); margin: 0 auto 26px; max-width: 48ch; }

/* 滚动显现（只动 transform，不动 opacity）
   早先版本用 opacity:0 起手，结果全页截图与不滚动的访问者会看到整段空白，
   而且对搜索引擎来说等于把正文内容隐藏了。这里只保留位移，内容始终可见。 */
.pw-js .pw-reveal { transform: translateY(12px); transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.pw-js .pw-reveal.is-in { transform: none; }

/* ==========================================================================
   22. 响应式
   ========================================================================== */
@media (max-width: 1100px) {
    .pw-pdp { grid-template-columns: minmax(0,1fr); gap: 34px; }
    .pw-pdp-gallery { position: static; }
    .pw-pdp-info { max-width: none; }
    .pw-cat-grid { grid-template-columns: repeat(2,1fr); }
    .pw-cap-grid { grid-template-columns: repeat(2,1fr); }
    .pw-quote-wrap, .pw-contact { grid-template-columns: 1fr; gap: 32px; }
    .pw-contact-info { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 26px; }
    .pw-quote-side { position: static; }
    .pw-split { grid-template-columns: 1fr; gap: 30px; }
    .pw-split--rev > figure { order: 0; }
    .pw-process { grid-template-columns: repeat(2,1fr); gap: 30px 0; }
    .pw-step::after { display: none; }
    .pw-stats-in { grid-template-columns: repeat(3,1fr); }
    .pw-stat:nth-child(3n) { border-right: 0; }
    .pw-hero-facts-in { grid-template-columns: repeat(2,1fr); }
    .pw-hero-fact:nth-child(2n) { border-right: 0; }
    .pw-footer-in { grid-template-columns: 1fr 1fr; gap: 34px; }
    .pw-gallery-grid { grid-template-rows: 160px 160px; }
}

@media (max-width: 900px) {
    .pw-header-in { gap: 14px; padding: 13px var(--gutter); }
    .pw-burger { display: block; }
    /* 移动端保留主 CTA：它是整站转化入口，藏掉等于让手机用户多点两次 */
    .pw-header-cta { gap: 8px; }
    .pw-header-cta .pw-btn { padding: 9px 13px; font-size: .82rem; }
    .pw-list-link { font-size: 0; gap: 0; }
    .pw-list-badge { font-size: .68rem; }
    .pw-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
              border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
              padding: 14px var(--gutter) 20px; flex-direction: column; gap: 2px;
              margin: 0; align-items: stretch; max-height: 78vh; overflow-y: auto; }
    .pw-nav.open { display: flex; }
    .pw-header-in { position: relative; }
    .pw-nav > li > a { padding: 12px 2px; font-size: 1rem; border-bottom: 1px solid var(--line-2); border-radius: 0; }
    .pw-nav ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
                 border: 0; border-left: 2px solid var(--line); border-radius: 0;
                 margin: 4px 0 10px 6px; padding: 0 0 0 12px; min-width: 0; display: none; }
    .pw-nav li.is-open > ul { display: block; }
    .pw-nav li:hover > ul { display: none; }
    .pw-nav li.is-open:hover > ul { display: block; }
    .pw-nav > li.menu-item-has-children > a::after { float: right; margin-top: 8px; }
    .pw-slides { height: clamp(430px, 62vh, 560px); }
    .pw-slide-copy { max-width: 100%; }
    .pw-slides-nav { bottom: 16px; }
    .pw-slides-dots { display: none; }
    .pw-section { padding: 68px 0; }
    .pw-container { padding: 40px var(--gutter) 64px; }
    .pw-hero-facts-in { grid-template-columns: 1fr 1fr; }
    .pw-gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: 180px 150px 150px; }
    .pw-shot:nth-child(1) { grid-column: span 2; grid-row: span 1; }
    .pw-factblock dl { grid-template-columns: 1fr; }
    .pw-factblock dl > div { border-right: 0; }
    .pw-qc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    body { font-size: 15px; }
    .pw-topbar-in span:first-child { display: none; }
    .pw-topbar-in { justify-content: center; }
    .pw-cat-grid, .pw-cap-grid { grid-template-columns: 1fr; }
    .pw-stats-in { grid-template-columns: 1fr 1fr; }
    .pw-stat { padding: 22px 16px 22px 0; }
    .pw-stat:nth-child(2n) { border-right: 0; }
    .pw-hero-facts-in { grid-template-columns: 1fr 1fr; }
    .pw-hero-fact { padding: 16px 14px 16px 0; }
    .pw-hero-fact dd { font-size: .9rem; }
    ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
    .pw-card-body { padding: 11px 12px 12px; }
    .pw-card-title { font-size: .84rem; }
    .pw-card-sku { display: none; }
    .pw-card-specs { gap: 12px; margin-top: 8px; padding-top: 8px; }
    .pw-inquiry-row { flex-direction: column; align-items: stretch; }
    .pw-inquiry-qty input { width: 100%; }
    .pw-oem-grid { grid-template-columns: 1fr 1fr; }
    .pw-custom-list ul { grid-template-columns: 1fr; }
    .pw-qf-grid { grid-template-columns: 1fr; }
    .pw-qf-line { grid-template-columns: 1fr 92px 30px; }
    .pw-list-table thead { display: none; }
    .pw-list-table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px;
                        border-bottom: 1px solid var(--line-2); padding: 14px 0; }
    .pw-list-table td { border: none; padding: 2px 0; text-align: left !important; }
    .pw-list-prod { grid-column: 1 / -1; }
    .pw-list-moq { display: none; }
    .pw-list-line { text-align: right !important; }
    .pw-list-rm { grid-row: 1; grid-column: 2; justify-self: end; }
    .pw-cta-band-in { padding: 48px var(--gutter); }
    .pw-footer-in { grid-template-columns: 1fr; gap: 30px; padding-top: 48px; }
    .pw-pdp { gap: 24px; }
    .pw-gallery-thumb { flex: 0 0 68px; width: 68px; height: 68px; }
    .pw-page-hero-in { padding: 40px var(--gutter) 38px; }
    .pw-related { padding-bottom: 52px; }
    .pw-cat-specs > div { padding: 12px 16px 12px 0; margin-right: 16px; font-size: .82rem; }
}

/* ==========================================================================
   23. 二级页版式 / 侧栏 / chips（模板新增区块）
   ========================================================================== */
/*
 * 无障碍跳转链接：不能用 left:-9999px —— 在 RTL（阿拉伯语）下会把文档
 * 向左撑宽 9999px，整页内容被挤到右侧一条窄缝里（实测 docScrollWidth 11439 / 1440）。
 * 改用 clip 隐藏，方向无关；获得焦点时再展开到左上角。
 */
.pw-skip { position:absolute; inline-size:1px; block-size:1px; overflow:hidden;
           clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;
           top:0; inset-inline-start:0; z-index:200; padding:0; }
.pw-skip:focus { inline-size:auto; block-size:auto; overflow:visible; clip:auto;
                 clip-path:none; padding:12px 18px; background:#fff; color:var(--ink);
                 border-radius:0 0 6px 0; }
.pw-skip:focus { left:0; }

.pw-page-layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:60px; align-items:start; }
.pw-page-side { position:sticky; top:96px; display:flex; flex-direction:column; gap:16px; }
.pw-side-card { border:1px solid var(--line); border-radius:8px; padding:24px; background:#fff; }
.pw-side-card--plain { background:var(--bg-2); border-color:transparent; padding:20px 22px; }
.pw-side-card h3 { font-size:1rem; margin:0 0 10px; font-weight:750; letter-spacing:-.012em; }
.pw-side-card p { font-size:.88rem; color:var(--ink-2); margin:0 0 16px; line-height:1.6; }
.pw-side-link { display:block; margin-top:11px; text-align:center; font-size:.82rem; font-weight:650; color:var(--brand); }
.pw-side-list { list-style:none; margin:0; padding:0; }
.pw-side-list li { border-bottom:1px solid var(--line-2); }
.pw-side-list li:last-child { border-bottom:0; }
.pw-side-list a { display:block; padding:9px 0; font-size:.87rem; color:var(--ink-2); font-weight:550; }
.pw-side-list a:hover { color:var(--brand); }

.pw-chips { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 28px; }
.pw-chip { display:inline-flex; align-items:center; gap:6px; padding:8px 15px; border:1px solid var(--line);
           border-radius:200px; font-size:.84rem; font-weight:600; color:var(--ink-2);
           text-decoration:none !important; background:#fff; transition:border-color .15s, color .15s; }
.pw-chip:hover { border-color:var(--brand); color:var(--brand); }
.pw-chip span { color:var(--ink-4); font-size:.75rem; font-variant-numeric:tabular-nums; }
.pw-xlink { margin-top:56px; padding-top:34px; border-top:1px solid var(--line); }
.pw-xlink .pw-h2 { font-size:1.25rem; }

.pw-pdp-attrs { margin-top:20px; padding-top:18px; border-top:1px solid var(--line); }
.pw-rail-wrap { position:relative; }

.pw-price-note { display:none; }

@media (max-width:1100px) {
    .pw-page-layout { grid-template-columns:minmax(0,1fr); gap:36px; }
    .pw-page-side { position:static; flex-direction:row; flex-wrap:wrap; }
    .pw-side-card { flex:1 1 260px; }
}

/* 报价结果：只显示物流口径，不显示金额 */
.pw-res-total { border-bottom:1px solid var(--line); padding-bottom:16px; margin-bottom:16px; }
.pw-res-label { display:block; font-size:.66rem; text-transform:uppercase; letter-spacing:.11em;
                color:var(--ink-4); font-weight:700; margin-bottom:4px; }
.pw-res-headline { font-size:1.2rem; font-weight:750; letter-spacing:-.015em; color:var(--ink); }
.pw-res-kv { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.pw-res-kv > div { display:flex; flex-direction:column; }
.pw-res-kv span { font-size:.64rem; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-4); font-weight:700; }
.pw-res-kv strong { font-size:.9rem; font-weight:700; font-variant-numeric:tabular-nums; }
@media (max-width:680px){ .pw-res-kv { grid-template-columns:1fr 1fr; } }

/* OEM 面板里嵌套的重量说明要换行，否则 "38×16×6 cm0.6 kg" 会连在一起 */
.pw-oem-v .pw-oem-n { display:block; font-size:.72rem; font-weight:500; color:var(--ink-3); margin-top:2px; }
/* 详情正文里的三级小标题（Markdown 转换后产生） */
.pw-entry h3 { font-size:1.02rem; margin:26px 0 8px; letter-spacing:-.01em; }
.pw-entry ul { padding-left:18px; }
.pw-entry li { margin-bottom:6px; }
.pw-entry p + ul { margin-top:-4px; }
.pw-page-layout--wide { grid-template-columns: minmax(0,1fr); }
/* 宽版页面（表单页）不受正文 78ch 行宽限制，否则两栏表单会被压成一栏 */
.pw-page-layout--wide .pw-entry { max-width: none; }

/* 表单控件：让 select / 多选 / 文件控件与输入框同一视觉 */
.pw-qf-grid select, .pw-qf-wide select, .pw-qf-add select {
    appearance: none; -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
                      linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
    background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
    padding-right: 34px;
}
.pw-qf-add select { width: 100%; max-width: 100%; padding: 11px 34px 11px 13px;
    border: 1px solid var(--line); border-radius: var(--r); font-family: var(--font);
    font-size: .93rem; color: var(--ink); background-color: #fff; }
select[multiple] { min-height: 180px; max-height: 260px; }

/* 深色区块里的导语：.pw-sec-head p 的常规色会盖掉深色版，单独提亮 */
.pw-section--dark .pw-sec-head p,
.pw-section--dark .pw-cap-table td { color: #a9b8c8; }
.pw-section--dark .pw-cap-table th { color: #7c8fa3; }
.pw-section--dark .pw-eyebrow { color: var(--accent); }

/* ==========================================================================
   24. 商品分页（自建 pager）
   ========================================================================== */
.pw-pager { margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line);
            display: flex; justify-content: space-between; align-items: center; gap: 18px 28px;
            flex-wrap: wrap; }
.pw-pager-meta { margin: 0; font-size: .84rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pw-pager-meta strong { color: var(--ink); font-weight: 700; }
.pw-pager-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pw-pager-nums { display: inline-flex; align-items: center; gap: 4px; }
.pw-pager-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px;
                border: 1px solid var(--line); border-radius: var(--r); background: #fff;
                font-size: .86rem; font-weight: 650; color: var(--ink-2); text-decoration: none !important;
                transition: border-color .15s, color .15s, background .15s; }
.pw-pager-btn:hover { border-color: var(--ink-4); color: var(--brand); }
.pw-pager-btn.is-disabled { opacity: .42; cursor: not-allowed; }
.pw-pager-num { display: inline-flex; align-items: center; justify-content: center;
                min-width: 40px; height: 40px; padding: 0 11px; border: 1px solid transparent;
                border-radius: var(--r); font-size: .87rem; font-weight: 650; color: var(--ink-2);
                text-decoration: none !important; font-variant-numeric: tabular-nums;
                transition: background .15s, color .15s, border-color .15s; }
.pw-pager-num:hover { background: var(--bg-2); color: var(--brand); }
.pw-pager-num.is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pw-pager-gap { padding: 0 4px; color: var(--ink-4); }

@media (max-width: 680px) {
    .pw-pager { flex-direction: column; align-items: stretch; gap: 14px; }
    .pw-pager-meta { text-align: center; }
    .pw-pager-nav { justify-content: space-between; }
    /* 手机上收起页码，只留上一页/下一页 + 当前位置 */
    .pw-pager-nums { display: none; }
    .pw-pager-btn { flex: 1; justify-content: center; }
}

/* ==========================================================================
   25. 询价表单：搜索选品器 + 上传清单
   ========================================================================== */
.pw-qf-add { display:flex; gap:10px; flex-wrap:wrap; align-items:flex-start; }
.pw-picker { position:relative; flex:1 1 320px; min-width:0; }
.pw-picker-input { width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:var(--r);
                   font-family:var(--font); font-size:.94rem; color:var(--ink); background:#fff; }
.pw-picker-input:focus { outline:2px solid rgba(13,77,139,.22); border-color:var(--brand); }
.pw-picker-native { display:none !important; }

.pw-picker-results { position:absolute; z-index:40; left:0; right:0; top:calc(100% + 6px);
                     background:#fff; border:1px solid var(--line); border-radius:8px;
                     box-shadow:var(--shadow-md); max-height:330px; overflow-y:auto; padding:6px; }
.pw-picker-item { display:flex; align-items:center; gap:11px; width:100%; text-align:left;
                  background:none; border:0; padding:8px; border-radius:6px; cursor:pointer;
                  font-family:var(--font); }
.pw-picker-item:hover, .pw-picker-item:focus-visible { background:var(--bg-2); outline:none; }
.pw-picker-thumb { flex:0 0 46px; width:46px; height:46px; border:1px solid var(--line);
                   border-radius:5px; background:#fff; overflow:hidden;
                   display:flex; align-items:center; justify-content:center; }
.pw-picker-thumb img { width:100%; height:100%; object-fit:contain; }
.pw-picker-text { flex:1; min-width:0; }
.pw-picker-text strong { display:block; font-size:.86rem; font-weight:650; color:var(--ink);
                         line-height:1.35; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pw-picker-text small { display:block; font-family:var(--mono); font-size:.7rem; color:var(--ink-4);
                        margin-top:2px; }
.pw-picker-add { flex:0 0 auto; font-size:.74rem; font-weight:750; color:var(--brand);
                 opacity:0; transition:opacity .15s; }
.pw-picker-item:hover .pw-picker-add { opacity:1; }
.pw-picker-empty { margin:0; padding:16px 14px; font-size:.86rem; color:var(--ink-3); }

.pw-qf-upload { margin-top:18px; padding-top:18px; border-top:1px dashed var(--line); }
.pw-upload { display:flex; align-items:center; gap:12px; flex-wrap:wrap; cursor:pointer; }
.pw-upload input[type="file"] { display:none; }
.pw-upload-btn { display:inline-flex; align-items:center; padding:10px 16px; border:1px solid var(--line);
                 border-radius:var(--r); background:#fff; font-size:.85rem; font-weight:650;
                 color:var(--ink-2); transition:border-color .15s, color .15s; }
.pw-upload:hover .pw-upload-btn { border-color:var(--brand); color:var(--brand); }
.pw-upload-name { font-size:.82rem; color:var(--ink-3); }
.pw-upload-name.is-set { color:var(--ok); font-weight:600; }
.pw-qf-loaded { margin:0 0 16px; padding:11px 15px; background:var(--brand-lt); border-radius:6px;
                font-size:.85rem; color:var(--brand-dk); }

/* ==========================================================================
   30. 询价清单页的全站目录（分类筛选 + 一行 6 个卡片）
   ========================================================================== */
.pw-catalog { margin: 0 0 56px; }
.pw-catalog-head { margin-bottom: 22px; }
.pw-catalog-head .pw-h2 { margin-bottom: 8px; }
.pw-catbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px;
             padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.pw-catcount { margin: 0 0 18px; font-size: .8rem; color: var(--ink-3); letter-spacing: .01em; }
.pw-chip { display: inline-flex; align-items: center; gap: 7px;
           padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
           background: #fff; color: var(--ink-2); font-size: .82rem; font-weight: 600;
           text-decoration: none; transition: .16s ease; white-space: nowrap; }
.pw-chip span { color: var(--ink-3); font-weight: 500; font-size: .76rem; }
.pw-chip:hover { border-color: var(--brand); color: var(--brand); }
.pw-chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pw-chip.is-on span { color: rgba(255,255,255,.78); }
.pw-catalog-empty { padding: 40px 0; color: var(--ink-3); }

/* 一行 4 个 —— 页面右侧还有询价侧栏，6 个会被挤成窄条、标题频繁折行。
   密度要，但可读性优先：4 列时卡片宽约 210–240px，标题两行内放得下。 */
.pw-catgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pw-gcard { display: flex; flex-direction: column; border: 1px solid var(--line);
            border-radius: 8px; background: #fff; overflow: hidden; transition: .18s ease; }
.pw-gcard:hover { border-color: var(--ink-4); box-shadow: var(--shadow-sm); }
.pw-gcard-media { display: block; aspect-ratio: 1/1; background: var(--bg-2); overflow: hidden; }
.pw-gcard-media img { width: 100%; height: 100%; object-fit: cover; display: block;
                      transition: transform .5s ease; }
.pw-gcard:hover .pw-gcard-media img { transform: scale(1.04); }
.pw-gcard-body { padding: 12px 12px 14px; display: flex; flex-direction: column; flex: 1; }
.pw-gcard-title { font-size: .84rem; line-height: 1.35; font-weight: 650; margin: 4px 0 6px;
                  letter-spacing: -.008em; }
.pw-gcard-title a { color: var(--ink); text-decoration: none; }
.pw-gcard-title a:hover { color: var(--brand); }
.pw-gcard-body .pw-card-sku { font-size: .68rem; color: var(--ink-3); }
.pw-gcard-body .pw-card-specs { margin: 8px 0 10px; }
.pw-gcard-body .pw-card-specs dt { font-size: .64rem; }
.pw-gcard-body .pw-card-specs dd { font-size: .78rem; }
.pw-gcard-actions { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.pw-gcard-actions .pw-btn { flex: 1; justify-content: center; padding: 8px 6px; font-size: .74rem; }
.pw-gcard-link { font-size: .72rem; color: var(--ink-3); text-decoration: none; white-space: nowrap; }
.pw-gcard-link:hover { color: var(--brand); }
.pw-catpager { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 0; }
.pw-page { min-width: 34px; height: 34px; display: inline-flex; align-items: center;
           justify-content: center; border: 1px solid var(--line); border-radius: 6px;
           background: #fff; color: var(--ink-2); font-size: .82rem; text-decoration: none; }
.pw-page:hover { border-color: var(--brand); color: var(--brand); }
.pw-page.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

@media (max-width: 1180px) { .pw-catgrid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 860px)  { .pw-catgrid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; } }
@media (max-width: 700px)  { .pw-catgrid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; } }
@media (max-width: 480px)  { .pw-catgrid { grid-template-columns: minmax(0,1fr); }
                             .pw-gcard-actions { flex-direction: row; }
                             .pw-gcard-link { text-align: center; } }

/* ==========================================================================
   31. 多语言：语言切换器 + RTL
   ========================================================================== */
.pw-lang { display: inline-flex; align-items: center; gap: 2px; margin-right: 6px;
           padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.pw-lang-item { padding: 4px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700;
                color: var(--ink-3); text-decoration: none; letter-spacing: .02em; }
.pw-lang-item:hover { color: var(--brand); background: var(--brand-lt); }
.pw-lang-item.is-on { background: var(--ink); color: #fff; }

/* 阿拉伯语：整站镜像。只反转头像/图文排列方向性的部分，
   数字、SKU、价格不镜像（浏览器按 dir 自动处理中性字符）。 */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .pw-header-in,
html[dir="rtl"] .pw-header-cta,
html[dir="rtl"] .pw-nav { flex-direction: row-reverse; }
html[dir="rtl"] .pw-gcard-body,
html[dir="rtl"] .pw-entry { text-align: right; }
html[dir="rtl"] .pw-card-specs div { flex-direction: row-reverse; }
html[dir="rtl"] .pw-list-table th,
html[dir="rtl"] .pw-list-table td { text-align: right; }
@media (max-width: 760px) { .pw-lang { display: none; } }

/* 询盘提交成功卡：编号必须显眼且常驻 */
.pw-res-card { border: 1px solid var(--ok, #1a7f4b); border-radius: 8px; padding: 22px 24px;
               background: #f4fbf7; }
.pw-res-ok { font-weight: 750; color: var(--ok, #1a7f4b); margin: 0 0 6px; font-size: .95rem; }
.pw-res-ref { font-size: 1.05rem; margin: 0 0 10px; letter-spacing: .01em; }
.pw-res-ref strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.pw-res-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 0; }

/* ==========================================================================
   32. 全站搜索（页头按钮 + 覆盖面板）
   ========================================================================== */
.pw-search-btn { display: inline-flex; align-items: center; justify-content: center;
                 width: 34px; height: 34px; padding: 0; margin-right: 8px;
                 border: 1px solid var(--line); border-radius: 999px; background: #fff;
                 color: var(--ink-2); cursor: pointer; transition: .16s ease; }
.pw-search-btn:hover { border-color: var(--brand); color: var(--brand); }

.pw-search-panel { position: fixed; inset: 0; z-index: 300; }
.pw-search-scrim { position: absolute; inset: 0; background: rgba(17, 24, 28, .48);
                   backdrop-filter: blur(2px); }
.pw-search-card { position: relative; width: min(720px, 92vw); max-height: 76vh;
                  margin: 12vh auto 0; background: #fff; border-radius: 12px;
                  box-shadow: 0 24px 64px rgba(0,0,0,.22); display: flex; flex-direction: column;
                  overflow: hidden; }
.pw-search-field { display: flex; align-items: center; gap: 10px; padding: 14px 16px;
                   border-bottom: 1px solid var(--line); color: var(--ink-3); flex: none; }
.pw-search-field input { flex: 1; border: 0; outline: 0; font-size: 1rem; color: var(--ink);
                         background: transparent; font-family: inherit; }
.pw-search-field input::-webkit-search-cancel-button { display: none; }
.pw-search-esc { border: 0; background: transparent; font-size: 1.4rem; line-height: 1;
                 color: var(--ink-3); cursor: pointer; padding: 0 4px; }
.pw-search-esc:hover { color: var(--ink); }

.pw-search-results { overflow-y: auto; }
.pw-search-hint, .pw-search-empty { margin: 0; padding: 20px 18px; color: var(--ink-3); font-size: .88rem; }
.pw-search-empty a { color: var(--brand); }
.pw-search-list { list-style: none; margin: 0; padding: 6px; }
.pw-search-list a { display: flex; align-items: center; gap: 12px; padding: 9px 10px;
                    border-radius: 8px; text-decoration: none; color: var(--ink); }
.pw-search-list a:hover, .pw-search-list a.is-active { background: var(--brand-lt, #f4f1ec); }
.pw-search-list img, .pw-search-noimg { width: 40px; height: 40px; border-radius: 6px;
                    object-fit: cover; background: var(--bg-2, #f2f2f0); flex: none; }
.pw-search-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pw-search-meta strong { font-size: .87rem; font-weight: 650; line-height: 1.3;
                         overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-search-meta em { font-style: normal; font-size: .7rem; color: var(--ink-3);
                     font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 700px) {
  .pw-search-card { margin-top: 0; width: 100vw; max-height: 100vh; height: 100vh;
                    border-radius: 0; }
  .pw-search-field { padding: 16px; }
}

/* ==========================================================================
   33. 移动端页头修正
   390px 下 logo + 搜索 + 清单 + "Request a quote" + 汉堡 总宽超出视口 38px，
   汉堡被压到屏幕外（右边界 428 > 390），菜单点不开。
   ========================================================================== */
.pw-only-sm { display: none; }
@media (max-width: 900px) {
  .pw-header-in { gap: 10px; }
  .pw-search-btn { flex: none; }
  .pw-burger { flex: none; }
}
@media (max-width: 760px) {
  .pw-hide-sm { display: none; }
  .pw-only-sm { display: inline; }
  .pw-logo { font-size: 1.04rem; }
  .pw-header-cta .pw-btn { padding: 8px 11px; font-size: .78rem; }
}
@media (max-width: 400px) {
  .pw-logo { font-size: .96rem; }
  .pw-header-cta { gap: 6px; }
  .pw-header-cta .pw-btn { padding: 7px 9px; font-size: .74rem; }
}

/* 移动菜单里的语言切换：桌面不显示（页头已有独立的切换器）
   选择器必须带上 .pw-nav 前缀 —— 否则被 .pw-nav li 的 display 覆盖掉，桌面上也会冒出来 */
.pw-nav .pw-nav-lang-item { display: none; }
@media (max-width: 900px) {
  .pw-nav .pw-nav-lang-item { display: block; margin-top: 10px; padding-top: 14px;
                              border-top: 1px solid var(--line); }
  .pw-nav .pw-nav-lang-item .pw-lang { display: inline-flex; margin: 0; padding: 3px;
                                       border-color: var(--line); }
  .pw-nav .pw-nav-lang-item .pw-lang-item { font-size: .76rem; padding: 6px 11px; }
}

/* ==========================================================================
   34. 320px 窄屏：报价按钮移入菜单
   360px 以上页头放得下；320px 时 CTA 右边界会到 351（视口 320），
   logo + 搜索 + 按钮 + 汉堡 挤不下，汉堡被推出屏幕。
   ========================================================================== */
.pw-nav-quote-item { display: none; }
@media (max-width: 360px) {
  .pw-header-cta .pw-btn { display: none; }
  .pw-logo { font-size: .88rem; }
  .pw-header-cta { gap: 4px; }
}
@media (max-width: 900px) {
  .pw-nav-quote-item { display: block; margin: 4px 0 2px; }
  .pw-nav-quote-item .pw-btn { display: inline-flex; justify-content: center; width: 100%;
                               padding: 11px 16px; font-size: .86rem; }
}

/* ==========================================================================
   35. 分类采购指南
   由 termmeta _pw_buying_guide 渲染，位置在商品网格下方。
   之前分类页只有一句 lede，长尾采购问题没有任何承载面。
   ========================================================================== */
.pw-guide {
  margin: 56px 0 0;
  padding: 34px 38px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.pw-guide .pw-entry { max-width: 74ch; }
.pw-guide h2 {
  font-size: 1.02rem;
  letter-spacing: -.01em;
  margin: 28px 0 10px;
  color: var(--ink);
}
.pw-guide h2:first-child { margin-top: 0; }
.pw-guide p {
  margin: 0 0 12px;
  color: var(--ink-2);
  line-height: 1.72;
  font-size: .96rem;
}
.pw-guide ul { margin: 0 0 15px; padding-left: 19px; }
.pw-guide li {
  margin: 0 0 7px;
  color: var(--ink-2);
  line-height: 1.66;
  font-size: .95rem;
}
.pw-guide li strong { color: var(--ink); font-weight: 500; }

/* 规格块：正文里的 .oem-specs 在指南里排成两列，不再是竖排长列表 */
.pw-guide .oem-specs {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px 16px;
}
.pw-guide .oem-specs li {
  margin: 0;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  font-size: .92rem;
}

@media (max-width: 760px) {
  .pw-guide { padding: 26px 20px; margin-top: 40px; border-radius: 12px; }
  .pw-guide h2 { font-size: .98rem; margin-top: 24px; }
  .pw-guide p, .pw-guide li { font-size: .93rem; }
}

/* ==========================================================================
   阿拉伯语排版校正（RTL）
   --------------------------------------------------------------------------
   两个必须覆盖的点：
   1) letter-spacing：拉丁/西里尔用负字距收紧标题没问题，但阿拉伯文是连写体，
      任何 letter-spacing 都会把字母之间的连笔拉开，看起来像断字。阿拉伯语下全部归零。
   2) line-height：阿拉伯文的字身更高、叠音点与升部/降部都超出 em 框，
      沿用拉丁的 1.08 / 1.16 会把字的上下缘切掉，也会让相邻两行贴在一起。
   ========================================================================== */
html[lang="ar"] body { line-height: 1.9; }

html[lang="ar"] .pw-h1,
html[lang="ar"] .pw-h2,
html[lang="ar"] .pw-h3,
html[lang="ar"] .pw-entry h2,
html[lang="ar"] .pw-entry h3,
html[lang="ar"] .pw-entry h4,
html[lang="ar"] .pw-eyebrow,
html[lang="ar"] .pw-btn,
html[lang="ar"] .pw-nav a,
html[lang="ar"] .pw-footer-badge,
html[lang="ar"] .pw-chip,
html[lang="ar"] .pw-badge { letter-spacing: 0; }

html[lang="ar"] .pw-h1 { line-height: 1.45; }
html[lang="ar"] .pw-h2 { line-height: 1.5; }
html[lang="ar"] .pw-h3 { line-height: 1.6; }
html[lang="ar"] .pw-entry h2,
html[lang="ar"] .pw-entry h3 { line-height: 1.6; }
html[lang="ar"] .pw-eyebrow { line-height: 1.95; }
html[lang="ar"] .pw-lede,
html[lang="ar"] .pw-sub,
html[lang="ar"] .pw-entry p,
html[lang="ar"] .pw-entry li,
html[lang="ar"] .pw-cap-card p,
html[lang="ar"] .pw-qc-card p { line-height: 1.95; }

/* ==========================================================================
   Cookie 同意横幅（PW_Consent）
   —— 底部通栏，不遮挡页头 CTA；≤760px 按钮整行铺满，避免两个按钮挤成一行。
   ========================================================================== */
.pw-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: #16202b; color: #e8eef3; box-shadow: 0 -8px 28px rgba(0,0,0,.28);
  /* 底部留 20px：链接的下划线原来贴着边框，看起来像被裁掉 */
  padding: 16px var(--gutter, 20px) 20px;
}
.pw-consent[hidden] { display: none; }
.pw-consent-in {
  max-width: var(--max, 1200px); margin: 0 auto;
  display: flex; gap: 20px; align-items: center; justify-content: space-between;
}
.pw-consent-copy { max-width: 78ch; }
.pw-consent-title { margin: 0 0 4px; font-weight: 700; font-size: .95rem; color: #fff; }
.pw-consent-text { margin: 0; font-size: .86rem; line-height: 1.65; color: #b9c6d2; }
.pw-consent-links { margin: 6px 0 0; font-size: .82rem; line-height: 1.5; }
.pw-consent-links a { color: var(--accent, #c98b4b); text-decoration: underline; }
.pw-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.pw-consent-actions .pw-btn { white-space: nowrap; }
.pw-consent-actions .pw-btn-ghost { color: #e8eef3; border-color: rgba(255,255,255,.35); }

html[lang="ar"] .pw-consent-text { line-height: 1.95; }

@media (max-width: 860px) {
  .pw-consent { padding: 14px var(--gutter, 16px) 16px; }
  .pw-consent-in { flex-direction: column; align-items: stretch; gap: 10px; }
  .pw-consent-text { font-size: .82rem; line-height: 1.6; }
  .pw-consent-actions { flex-direction: column; }
  .pw-consent-actions .pw-btn { width: 100%; justify-content: center; }
}

/* 页脚「Cookie 设置」：按钮做成文字链，保持底栏节奏 */
.pw-footer-link {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; cursor: pointer; text-decoration: none;
}
.pw-footer-link:hover { text-decoration: underline; }

/* ==========================================================================
   页头在 1280–1500 视口溢出（2026-10-27 修）
   —— 五语导航 + 五语语言切换器 + 长 CTA 一起把 .pw-header-cta 顶出容器：
      1440 溢出 22px、1366 溢出 59px、1280 溢出 102px，"Demander un devis" 被切掉。
      容器 --max 固定 1280，所以只要完整导航在，可用宽度就一样 ——
      收紧规则不再按视口上限，而是覆盖整个桌面区间（≥1280px），避免 1501 这类边界漏网。
   ========================================================================== */
@media (min-width: 1280px) {
  .pw-header-in { gap: 10px; }
  .pw-nav { gap: 2px; }
  .pw-nav > li > a { padding: 10px 9px; font-size: .93rem; }
  .pw-header-cta { gap: 8px; }
  .pw-lang { margin-right: 2px; }
  .pw-lang-item { padding: 4px 6px; font-size: .66rem; }
}

@media (min-width: 1280px) and (max-width: 1366px) {
  /* 长标签收起来，只留短标签（与 ≤390 的既有约定一致，但作用域限定在页头 CTA） */
  .pw-header-cta .pw-hide-sm { display: none; }
  .pw-header-cta .pw-only-sm { display: inline; }
  .pw-nav > li > a { padding: 9px 8px; }
  .pw-lang-item { padding: 3px 5px; }
}

/* ==========================================================================
   901–1279px：31 项导航 + 5 语切换器放不进一行（1024 溢出 116–169px、1181 溢出 12px）
   —— 提前收进汉堡菜单。不动 ≤900 那套块里的版式规则，只复制页头部分，
      避免把 slate 高度、section padding 等桌面版式一起改掉。
   ========================================================================== */
@media (min-width: 901px) and (max-width: 1279px) {
  .pw-burger { display: block; }
  .pw-header-in { position: relative; gap: 10px; }
  .pw-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 14px var(--gutter) 20px; flex-direction: column; gap: 2px;
    margin: 0; align-items: stretch; max-height: 78vh; overflow-y: auto;
  }
  .pw-nav.open { display: flex; }
  .pw-nav > li > a {
    padding: 12px 2px; font-size: 1rem; border-bottom: 1px solid var(--line-2); border-radius: 0;
  }
  .pw-nav ul {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--line); border-radius: 0;
    margin: 4px 0 10px 6px; padding: 0 0 0 12px; min-width: 0; display: none;
  }
  .pw-nav li.is-open > ul { display: block; }
  .pw-nav li:hover > ul { display: none; }
  .pw-nav li.is-open:hover > ul { display: block; }
  .pw-nav > li.menu-item-has-children > a::after { float: right; margin-top: 8px; }
  /* 语言切换器随导航进菜单，否则这个宽度区间没法换语言 */
  .pw-nav .pw-nav-lang-item { display: block; margin-top: 10px; padding-top: 14px;
                              border-top: 1px solid var(--line); }
  .pw-nav .pw-nav-lang-item .pw-lang { display: inline-flex; margin: 0; padding: 3px; border-color: var(--line); }
  .pw-nav .pw-nav-lang-item .pw-lang-item { font-size: .76rem; padding: 6px 11px; }
  .pw-header-cta .pw-hide-sm { display: none; }
  .pw-header-cta .pw-only-sm { display: inline; }
}

/* Cookie 政策页的清单表（.pw-entry 里原来没有表格样式） */
.pw-entry table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: .92rem; }
.pw-entry th, .pw-entry td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pw-entry th { background: var(--bg-2); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.pw-entry td code { font-size: .86em; background: var(--bg-2); padding: 1px 5px; border-radius: 4px; }
.pw-entry tbody tr:last-child td { border-bottom: 0; }
html[lang="ar"] .pw-entry th { letter-spacing: 0; text-transform: none; }
@media (max-width: 640px) {
  .pw-entry table { font-size: .86rem; }
  .pw-entry th, .pw-entry td { padding: 8px 8px; }
}

/* ==========================================================================
   文字排版修复（2026-10-29 全站体检）
   ========================================================================== */

/* 1. 分类页导语卡：正文限宽 74ch 靠左，1440 下右侧空出近 400px，看着像没铺满。
      居中后左右留白对称，卡片仍是满宽，不改阅读行宽。 */
.pw-guide .pw-entry { margin-inline: auto; }

/* 2. 窄屏表单改单列。双列时每格只剩约 134px，字段标签会折成两三行，
      输入框还被 <input> 的 min-content 顶出容器（390px 下溢出 33px）。 */
@media (max-width: 560px) {
    .pw-qf-grid { grid-template-columns: 1fr; }
    .pw-qf-section { padding: 22px 20px; }
    .pw-qf-line { grid-template-columns: minmax(0, 1fr) 92px 32px; }
}

/* 3. 兜底：装饰性溢出（hero 图 transform: scale、负边距的横向导轨）不该产生横向滚动条。
      用 clip 而非 hidden —— hidden 会把 body 变成滚动容器，内页 .pw-quote-side 的
      position: sticky 会跟着失效。 */
body.pw-body { overflow-x: clip; }
/* 法语首页在 390px 下仍有 11px 横向溢出（横向导轨的负边距）。html 也 clip 掉：
   clip 不创建滚动容器，所以内页 .pw-quote-side 的 position: sticky 不受影响。 */
html { overflow-x: clip; }

/* 4. cookie 横幅：横屏手机 / 矮窗口里内容可能高于视口，收到 100dvh 以内并允许内部滚动，
      避免文字被屏幕底边切掉。 */
.pw-consent { max-height: calc(100vh - 8px); max-height: calc(100dvh - 8px); overflow-y: auto; }

/* ==========================================================================
   买家指南（blog 内容层）
   2026-11-01 新增。指南页与商品页是两套内容逻辑：
   商品页靠目录密度，指南页靠正文可读性，所以这里单独一套排版，
   不复用 .pw-entry 之外的任何商品样式。
   ========================================================================== */

/* -------- 归档：主题簇导航 -------- */
.pw-topic-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.pw-topic-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px;
    font-size: .86rem; font-weight: 600; color: var(--ink-2); background: #fff;
    text-decoration: none; transition: border-color .15s, color .15s;
}
.pw-topic-chip:hover { border-color: var(--brand); color: var(--brand); }
.pw-topic-chip-n { font-size: .74rem; color: var(--ink-3); font-weight: 500; }

/* -------- 归档：卡片网格 -------- */
.pw-guide-grid {
    display: grid; gap: 22px;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.pw-guide-card {
    border: 1px solid var(--line); border-radius: var(--r);
    background: #fff; overflow: hidden; transition: border-color .15s, transform .15s;
}
.pw-guide-card:hover { border-color: var(--brand-lt); transform: translateY(-2px); }
.pw-guide-card-link { display: block; padding: 22px; color: inherit; text-decoration: none; height: 100%; }
.pw-guide-card-img { display: block; margin: -22px -22px 18px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.pw-guide-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pw-guide-card-topic {
    display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 9px;
}
.pw-guide-card-h { font-size: 1.06rem; line-height: 1.35; margin: 0 0 10px; color: var(--ink); }
.pw-guide-card-ex { font-size: .89rem; line-height: 1.6; color: var(--ink-2); margin: 0 0 14px; }
.pw-guide-card-meta { font-size: .76rem; color: var(--ink-3); }
.pw-guide-pager { margin-top: 40px; }

/* -------- 单篇：正文列宽。65–75ch 是阅读舒适区，别再放宽 -------- */
.pw-article-wrap { padding-top: 34px; }
.pw-article { max-width: 100%; }
.pw-article-body { max-width: 74ch; margin-inline: auto; }
.pw-article-fig { margin: 0 auto 30px; max-width: 74ch; }
.pw-article-fig img { width: 100%; height: auto; border-radius: var(--r); display: block; }

/* 目录 */
.pw-toc {
    max-width: 74ch; margin: 0 auto 32px; padding: 18px 22px;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
}
.pw-toc-h {
    font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ink-3); margin: 0 0 12px;
}
.pw-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.pw-toc li { margin: 0 0 7px; font-size: .9rem; }
.pw-toc li::before { counter-increment: toc; content: counter(toc) ". "; color: var(--ink-4); }
.pw-toc-l3 { padding-left: 20px; }
.pw-toc-l3::before { content: "" !important; }
.pw-toc a { color: var(--ink-2); text-decoration: none; }
.pw-toc a:hover { color: var(--brand); text-decoration: underline; }

/* 发布/更新时间 */
.pw-article-dates {
    max-width: 74ch; margin: 0 auto 30px; font-size: .82rem; color: var(--ink-3);
    padding-bottom: 18px; border-bottom: 1px solid var(--line-2);
}

/* 正文里的锚点标题：滚动时不被吸顶头部挡住 */
.pw-article-body h2[id], .pw-article-body h3[id] { scroll-margin-top: 96px; }
.pw-article-body h2 { margin-top: 2.2em; }
.pw-article-body h3 { margin-top: 1.7em; }
.pw-article-body table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: .88rem; }
/* 首列是"名目"，给足宽度；数值列不换行，避免 "1,440 pcs" 被拆成两行 */
.pw-article-body th:first-child, .pw-article-body td:first-child { min-width: 168px; }
.pw-article-body th + th, .pw-article-body td + td { white-space: normal; }
.pw-article-body td:nth-child(2) { white-space: nowrap; }
.pw-article-body th, .pw-article-body td {
    padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
}
.pw-article-body th { background: var(--bg-2); font-weight: 600; color: var(--ink); }
.pw-article-body blockquote {
    margin: 26px 0; padding: 16px 20px; border-left: 3px solid var(--accent);
    background: var(--bg-2); color: var(--ink-2); font-size: .94rem;
}

/* 作者卡 */
.pw-author {
    max-width: 74ch; margin: 44px auto 0; padding: 22px;
    display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
}
.pw-author-img { border-radius: 50%; width: 64px; height: 64px; }
.pw-author-name { margin: 0 0 3px; font-weight: 700; color: var(--ink); }
.pw-author-role { margin: 0 0 8px; font-size: .78rem; color: var(--accent); font-weight: 600; }
.pw-author-bio { margin: 0; font-size: .87rem; line-height: 1.6; color: var(--ink-2); }

/* 文末 CTA */
.pw-article-cta {
    max-width: 74ch; margin: 34px auto 0; padding: 28px;
    background: var(--bg-3); border-radius: var(--r); color: #e8eef6;
}
.pw-article-cta-h { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; color: #fff; }
.pw-article-cta p { margin: 0 0 18px; font-size: .9rem; line-height: 1.6; color: #b9c6d6; }
.pw-article-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pw-article-cta .pw-btn { border-color: #35455a; color: #fff; }
.pw-article-cta .pw-btn:hover { border-color: #fff; }

.pw-article-products { margin-top: 46px; }

/* -------- 商品分类页底部的指南内链 -------- */
.pw-cat-guides { margin: 46px 0 10px; padding-top: 30px; border-top: 1px solid var(--line); }
.pw-cat-guides-h { font-size: 1.06rem; margin: 0 0 16px; }
.pw-cat-guides-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pw-cat-guides-list li {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: .92rem;
}
.pw-cat-guides-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.pw-cat-guides-list a:hover { color: var(--brand); text-decoration: underline; }
.pw-cat-guides-t { font-size: .76rem; color: var(--ink-3); white-space: nowrap; }

@media (max-width: 640px) {
    .pw-guide-grid { grid-template-columns: 1fr; }
    .pw-author { grid-template-columns: 1fr; }
    .pw-article-cta { padding: 22px; }
    .pw-cat-guides-list li { flex-direction: column; gap: 4px; }
}

/* -------- 多语言内容中心：覆盖率仪表盘 -------- */
.pw-cov { margin: 0 0 30px; padding: 18px 20px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.pw-cov-h { margin: 0 0 12px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pw-cov-list { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; }
.pw-cov-i { display: inline-flex; align-items: baseline; gap: 7px; font-size: .88rem; color: var(--ink); }
.pw-cov-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.pw-cov-i.is-empty { color: var(--ink-4); }
.pw-cov-i.is-empty .pw-cov-n::after { content: "—"; font-weight: 400; }
.pw-cov-i.is-empty .pw-cov-n { font-size: 0; }
.pw-cov-i.is-empty .pw-cov-n::after { font-size: .88rem; }

/* 卡片上的语种徽记 */
.pw-guide-card-langs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.pw-guide-card-langs i {
    font-style: normal; font-size: .66rem; font-weight: 700; letter-spacing: .06em;
    padding: 2px 6px; border-radius: 4px; background: var(--brand-lt); color: var(--brand-dk);
}

/* 文章页语言条 */
.pw-langbar-wrap { border-bottom: 1px solid var(--line); background: #fff; }
.pw-langbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; }
.pw-langbar-l { font-size: .78rem; color: var(--ink-3); margin-right: 4px; }
.pw-langbar-i {
    font-size: .82rem; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px;
    color: var(--ink-2); text-decoration: none;
}
.pw-langbar-i:hover { border-color: var(--brand); color: var(--brand); }
.pw-langbar-i.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
