/* ===== Local fonts (self-hosted, no Google CDN) ===== */
/* Poppins 600 */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/pxiByp8kv8JHgFVrLEj6Z1JlFc-K.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Poppins 700 */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/pxiByp8kv8JHgFVrLCz7Z1JlFc-K.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Roboto 400 */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBA.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3KUBGEe.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Roboto 500 */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBA.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3KUBGEe.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Roboto 700 */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBA.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3KUBGEe.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== Capsid storefront (blue #1063A4 / orange #E64613) ===== */
:root {
    --blue: #1063A4;
    --blue-soft: #CDE3F5;
    --orange: #E64613;
    --ink: #22303c;
    --muted: #5b6b7b;
    --tint: rgba(16, 99, 164, 0.04);
}
* { box-sizing: border-box; }
/* [hidden] 必须压过组件自带的 display: .account-links(inline-flex) / .cart-count(flex) 上的
   hidden 属性此前被各自的 display 抵消, 导致未登录时 "Sign In/Register" 与
   "My Account/Sign Out" 同时出现, 空购物车也永远挂着红色 0 角标。 */
[hidden] { display: none !important; }
body { margin: 0; font-family: 'Roboto', 'Segoe UI', Arial, sans-serif; color: var(--ink); background: #fff; }
h1, h2, h3 { font-family: 'Poppins', 'Roboto', sans-serif; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
main { min-height: 60vh; }
main > section:not(.home) { max-width: 1400px; margin: 0 auto; padding: 32px 24px 64px; }

/* ===== header (two-row: top bar + nav bar) ===== */
.site-header { background: #fff; border-bottom: 1px solid #eef2f6; position: sticky; top: 0; z-index: 50; }
/* --- top row: logo | search | tools --- */
.header-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding: 14px 24px; }
.header-logo img { height: 68px; width: auto; display: block; }
.header-search { width: 100%; min-width: 0; }
.search-form { display: flex; border: 1px solid #d7e2ec; border-radius: 50px; overflow: hidden; background: var(--tint); }
.search-input-wrap { position: relative; flex: 1; min-width: 0; }
.search-input-wrap input { border: none; outline: none; padding: 10px 16px; width: 100%; font-size: 14px; background: transparent; }
.search-form button { border: none; background: transparent; color: var(--blue); padding: 10px 16px; cursor: pointer; display: flex; align-items: center; }
.search-form button:hover { color: var(--orange); }
.header-tools { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.cart-link { display: flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 600; }
.cart-total { color: var(--orange); }
/* --- nav row --- */
.header-nav-bar { background: var(--blue); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 0; }
.main-nav > a, .has-drop > a { color: #fff; font-weight: 600; font-size: 16px; padding: 14px 32px; white-space: nowrap; transition: background .2s; display: inline-block; }
.main-nav > a:hover, .has-drop:hover > a { background: rgba(255,255,255,.12); color: #fff; }
.caret { font-size: 11px; }
.has-drop { position: relative; }
.drop { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px; border: 1px solid #e6edf3; border-radius: 0 0 8px 8px; box-shadow: 0 10px 30px rgba(16,49,82,.12); padding: 8px 0; z-index: 60; }
.has-drop:hover .drop { display: block; }
.drop a { display: block; padding: 10px 20px; font-size: 15px; color: var(--ink); }
.drop a:hover { background: var(--tint); color: var(--blue); }
/* ===== buttons / pills ===== */
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: 700; font-size: 16px; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: linear-gradient(200deg, #f0642f, var(--orange)); color: #fff; }
.btn-primary:hover { background: linear-gradient(200deg, #2DCBEE, var(--blue)); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-cta { background: #fff; color: var(--blue); }
.btn-cta:hover { background: var(--blue-soft); color: var(--blue); }
.hpill { display: inline-block; font-size: 15px; font-weight: 700; color: var(--orange); background: var(--tint); border: 1px solid rgba(230,70,19,.15); border-radius: 50px; padding: 5px 18px; margin-bottom: 14px; }
.pill-blue { color: var(--blue); border-color: rgba(16,99,164,.15); background: var(--tint); }
.pill-orange { color: var(--orange); }

/* ===== hero carousel ===== */
.hero2 { position: relative; background: var(--tint); overflow: hidden; }
.hslide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hslide.active { opacity: 1; position: relative; pointer-events: auto; }
.hslide-inner { max-width: 1400px; margin: 0 auto; padding: 60px 50px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hleft { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.htitle { margin: 0; font-size: 40px; line-height: 1.15; font-weight: 700; color: var(--blue); }
.hdesc { margin: 0; max-width: 88%; font-size: 18px; line-height: 1.7; color: var(--muted); }
.hbtn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 30px; border-radius: 50px; font-weight: 700; font-size: 17px; color: #fff; background: linear-gradient(200deg, #f0642f, var(--orange)); box-shadow: 0 8px 20px rgba(230,70,19,.25); }
.hbtn:hover { background: linear-gradient(200deg, #2DCBEE, var(--blue)); box-shadow: 0 8px 20px rgba(16,99,164,.25); }
.hright img { width: 100%; border-radius: 12px; display: block; }
.hdots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hdots span { width: 12px; height: 12px; border-radius: 50%; background: #b9c8d6; cursor: pointer; transition: background .25s, transform .25s; }
.hdots span:hover { background: var(--blue); transform: scale(1.2); }
.hdots span.active { background: var(--blue); transform: scale(1.15); }

/* ===== mission / vision / values ===== */
.mvcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; z-index: 10; }
.mvcard { border-radius: 12px; padding: 30px; color: #fff; box-shadow: 0 14px 28px rgba(0,0,0,.10); background-color: var(--blue); background-repeat: no-repeat; background-position: bottom right; }
.mvcard h3 { margin: 16px 0 12px; font-size: 22px; }
.mvcard p { margin: 0; font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.92); }
.mv-blue { background-color: var(--blue); }
.mv-orange { background-color: var(--orange); }
.mv-bg1 { background-image: url('/media/2025/11/9-1.webp'); background-size: 90px; }
.mv-bg2 { background-image: url('/media/2025/11/9-1.webp'); background-size: 90px; }
.mv-bg3 { background-image: url('/media/2025/11/9-1.webp'); background-size: 90px; }

/* ===== home sections ===== */
.home-section { max-width: 1400px; margin: 0 auto; padding: 32px 24px; text-align: center; }
.home-section h2 { font-size: 34px; margin: 0 0 10px; color: var(--blue); }
.home-section .lead { color: var(--muted); font-size: 17px; max-width: 760px; margin: 0 auto 32px; }

.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; text-align: left; }
.about-img img { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.about-text h2 { text-align: left; font-size: 32px; }
.about-text p { color: var(--muted); line-height: 1.8; font-size: 16px; }

.cat-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cat-card { background: #fff; border: 1px solid #e2ecf5; border-radius: 12px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.cat-card:hover { box-shadow: 0 8px 22px rgba(16,99,164,.16); transform: translateY(-3px); }
.cat-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f4f8fb; }
.cat-card .cat-name { display: block; padding: 12px 8px; font-weight: 700; font-size: 15px; color: var(--blue); }

.why-us { background: var(--tint); max-width: none; margin: 0; }
.why-us > * { position: relative; }
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1400px; margin: 0 auto; }
.feature-card { background: #fff; border-radius: 12px; padding: 28px 24px; box-shadow: 0 4px 14px rgba(16,49,82,.08); text-align: left; border-top: 4px solid var(--orange); }
.feature-card:nth-child(2) { border-top-color: var(--blue); }
.feature-card:nth-child(3) { border-top-color: var(--orange); }
.feature-card h3 { margin: 0 0 10px; font-size: 18px; color: var(--blue); }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }

.home-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: left; }
.home-grid .product-card { border-radius: 12px; box-shadow: 0 2px 10px rgba(16,49,82,.08); border: 1px solid #e2ecf5; }
.home-grid .thumb { aspect-ratio: 16/9; }
.home-grid .thumb img { object-fit: cover; object-position: center 25%; }
.home-grid .name { font-weight: 700; font-size: 16px; height: 48px; }
.home-grid .price { font-size: 18px; font-weight: 700; color: var(--blue); }
.more-wrap { margin-top: 32px; }

.cta { background: linear-gradient(135deg, var(--blue), #0b4a7d); max-width: none; margin: 0; color: #fff; }
.cta h2 { color: #fff; }
.cta p { max-width: 780px; margin: 0 auto 26px; color: #d6e6f3; line-height: 1.8; }

/* ===== product listing (shop/category/search) ===== */
.page-section { max-width: 1400px; margin: 0 auto; padding: 32px 24px 64px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.product-card { background: #fff; border: 1px solid #e2ecf5; border-radius: 8px; overflow: hidden; transition: box-shadow .15s; }
.product-card:hover { box-shadow: 0 6px 16px rgba(16,49,82,.10); }
.thumb { aspect-ratio: 1; background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.thumb img { width: 70%; height: 100%; object-fit: cover; }
.no-img { color: #aaa; font-size: 13px; }
.no-img.large { aspect-ratio: 1; width: 100%; display: flex; align-items: center; justify-content: center; background: #f4f8fb; }
.info { padding: 10px 12px; }
.name { font-size: 14px; line-height: 1.4; height: 40px; overflow: hidden; }
.price { margin-top: 6px; font-weight: 700; color: var(--blue); }
.price .sale { color: var(--orange); margin-right: 6px; }
.strikethrough { text-decoration: line-through; color: #999; font-weight: 400; }
.pager { margin-top: 24px; display: flex; gap: 16px; align-items: center; justify-content: center; }
.pager a { color: var(--blue); font-weight: 600; }

/* ===== product detail ===== */
.product-detail { display: block; }
.gallery img { width: 100%; border-radius: 8px; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.summary h1 { margin-top: 0; color: var(--blue); }
.price .big { font-size: 26px; }
.add-to-cart { margin: 16px 0; padding: 12px 28px; background: linear-gradient(200deg, #f0642f, var(--orange)); color: #fff; border: none; border-radius: 50px; font-weight: 700; cursor: pointer; }
.description.full { grid-column: 1 / -1; background: #fff; padding: 24px; border-radius: 8px; border: 1px solid #e2ecf5; }
.description.full img { max-width: 100%; }
.variant-table { border-collapse: collapse; margin: 12px 0; width: 100%; }
.variant-table th, .variant-table td { border: 1px solid #dbe6ef; padding: 6px 10px; text-align: left; font-size: 14px; }
.variant-table th { background: var(--tint); color: var(--blue); }
.muted { color: #999; }

.site-footer { border-top: 1px solid #dddddd; background: #fff; margin-top: 40px; padding: 50px 0 30px; color: #666; font-size: 16px; }
.pd-tabs { margin-top: 34px; }
/* 产品页内容区块全部纵向罗列, 区块间用分隔线区分 */
.tab-pane { padding: 26px 2px; border-bottom: 1px solid #eef2f7; }
.tab-pane:first-child { padding-top: 0; }
.tab-pane:last-child { border-bottom: none; }
.tab-pane h2 { font-family: 'Poppins', sans-serif; font-size: 20px; margin: 0 0 14px; }
.shop_attributes { width: 100%; border-collapse: collapse; }
.shop_attributes th, .shop_attributes td { border: 1px solid #e3e9f0; padding: 9px 14px; text-align: left; font-size: 14px; vertical-align: top; }
.shop_attributes th { width: 220px; background: #f6f9fc; font-weight: 600; color: var(--ink); }
/* 产品页技术内容区块(Biological Activity / Chemical Info / References) */
.pd-tech-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.pd-tech-table th, .pd-tech-table td { border: 1px solid #e3e9f0; padding: 10px 14px; text-align: left; font-size: 14px; line-height: 1.7; vertical-align: top; }
.pd-tech-table th { width: 220px; background: #f6f9fc; font-weight: 600; color: var(--ink); }
.pd-tech-table p { margin: 6px 0; }
.pd-targets, .pd-solubility, .pd-stock { width: 100%; border-collapse: collapse; }
.pd-targets td, .pd-solubility td, .pd-stock td { border: 1px solid #e8edf3; padding: 7px 12px; font-size: 13px; }
.pd-targets td { text-align: center; }
.pd-solubility .solv-name { width: 200px; font-weight: 600; }
.solv-note { color: #c0392b; font-size: 12px; }
.solv-foot { font-size: 12px; color: #666; margin-top: 8px; }
.pd-stock td.head { background: #f6f9fc; font-weight: 600; }
.req { color: #c0392b; font-style: normal; }
.pd-more-doc { margin-top: 12px; font-size: 14px; }
.pd-refs { padding-left: 22px; font-size: 14px; line-height: 1.9; }
.pd-refs li { margin-bottom: 6px; }
/* References 平铺标签样式 */
.pd-refs-flat { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pd-ref-tag { display: inline-block; padding: 5px 14px; border-radius: 20px; font-size: 13px; line-height: 1.5; text-decoration: none; background: #f0f7f5; color: #196758; border: 1px solid #d5e8e3; transition: background .2s, color .2s; }
.pd-ref-tag:hover { background: #196758; color: #fff; }
.pd-ref-tag-text { background: #f5f5f5; color: #555; border-color: #ddd; cursor: default; }
.pd-ref-tag-text:hover { background: #f5f5f5; color: #555; }
/* Claim 文本中的引用标记链接 */
.lit-ref-link { color: #196758; font-weight: 600; text-decoration: none; border-bottom: 1px dashed #196758; cursor: pointer; }
.lit-ref-link:hover { color: #fff; background: #196758; border-radius: 3px; padding: 0 3px; text-decoration: none; }
/* References 锚点偏移：防止固定导航遮挡 */
.pd-ref-tag[id], .pd-ref-tag-text[id] { scroll-margin-top: 130px; }
html { scroll-behavior: smooth; }
.pd-related { margin-top: 40px; margin-bottom: 30px; }
.pd-related h2 { font-family: 'Poppins', sans-serif; color: var(--blue); font-size: 24px; margin: 0 0 20px; text-align: center; }
.pd-related .product-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .pd-related .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pd-related .product-grid { grid-template-columns: 1fr; } }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-logo img { width: 55%; min-width: 170px; display: block; }
.footer-desc { font-size: 18px; line-height: 1.6; margin: 18px 0; max-width: 88%; color: #666; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--blue); transform: scale(.94); }
.footer-col h4 { font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 700; color: var(--orange); margin: 4px 0 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 18px; }
.footer-links a { color: #666; text-decoration: none; }
.footer-links a:hover { color: var(--blue); }
.footer-contact li { display: flex; align-items: center; gap: 6px; }
.fc-icon { color: var(--orange); display: inline-flex; flex: none; }
.footer-contact .fc-dept { align-items: flex-start; }
.footer-contact .fc-dept .fc-icon { margin-top: 2px; }
.fc-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fc-label { font-size: 14px; color: #999; line-height: 1.4; }
.fc-text a { font-size: 15px; overflow-wrap: anywhere; }
.footer-divider { height: 1px; background: #666; opacity: .3; margin: 40px 0 22px; }
.footer-bottom { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 18px; }
.footer-legal { display: flex; align-items: center; gap: 32px; }
.footer-legal i { width: 1px; height: 18px; background: #666; opacity: .4; }
.footer-legal a { color: #666; text-decoration: none; }
.footer-legal a:hover { color: var(--blue); }
.footer-icp a { color: #666; text-decoration: none; font-size: 15px; letter-spacing: .2px; }
.footer-icp a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { justify-content: center; text-align: center; } .footer-desc { max-width: 100%; } }

/* 导航 7 项按 16px/32px 边距的固有宽度约 1319px, 容器可用宽度要到 1367px 才够,
   于是 1101~1347px 区间整页横向滚动 (1100 以下的收紧档又来得太晚)。
   从 1400px 起就降一档边距/字号, 再靠 .main-nav 的 flex-wrap 兜底,
   换语言 (文案更长) 时宁可换行也不会冲出视口。 */
@media (max-width: 1400px) {
    .main-nav > a, .has-drop > a { padding: 12px 16px; font-size: 15px; }
}
@media (max-width: 1100px) {
    .header-top { grid-template-columns: auto auto; gap: 12px; }
    .header-search { grid-column: 1 / -1; max-width: none; }
    .main-nav { flex-wrap: wrap; gap: 0; }
    .main-nav > a, .has-drop > a { padding: 10px 14px; font-size: 14px; }
    .hslide-inner { padding: 40px 24px; }
    .htitle { font-size: 40px; }
}
@media (max-width: 900px) {
    .hslide-inner { grid-template-columns: 1fr; }
    .hright { display: none; }
    .mvcards { grid-template-columns: 1fr; margin-top: 0; padding-top: 30px; }
    .cat-cards { grid-template-columns: repeat(2, 1fr); }
    .feature-cards { grid-template-columns: 1fr; }
    .about-row { grid-template-columns: 1fr; }
    .home-grid { grid-template-columns: repeat(2, 1fr); }
}
/* 小屏: logo(255) 与工具区(~330) 同处一行时固有宽度合计远超视口, 整页横向滚动。
   640px 起改单列堆叠, 工具区允许换行; .search-input-wrap 已有 min-width:0,
   输入框不必再钉死 140px。 */
@media (max-width: 640px) {
    .header-top { grid-template-columns: 1fr; gap: 10px; padding: 12px 16px; }
    .header-logo img { height: 46px; }
    .header-tools { flex-wrap: wrap; justify-content: space-between; gap: 10px 14px; }
    .search-form input { width: 100%; }
}
@media (max-width: 560px) {
    .home-grid { grid-template-columns: 1fr; }
    .htitle { font-size: 30px; }
    .product-detail { grid-template-columns: 1fr; }
}
/* ===== M2: cart / checkout / order ===== */
.empty-box { text-align:center; padding:60px 0; }
.empty-box p { color:#666; font-size:18px; margin-bottom:20px; }
.btn { display:inline-block; padding:12px 28px; border-radius:8px; font-weight:600;
       text-decoration:none; border:none; cursor:pointer; font-size:15px; transition:.2s; }
.btn.primary { background:linear-gradient(200deg, #f0642f, #E64613); color:#fff; }
.btn.primary:hover { background:linear-gradient(200deg, #1d7fc4, #1063A4); }
.btn.ghost { background:#fff; color:var(--blue); border:2px solid var(--blue); }
.btn.ghost:hover { background:var(--blue); color:#fff; }
.btn.big { padding:15px 36px; font-size:16px; }
.flash-error { background:#fdecea; color:#c0392b; border:1px solid #f5b7b1;
               padding:12px 16px; border-radius:8px; margin-bottom:20px; }
.flash-ok { background:#e8f6ef; color:#1e8449; border:1px solid #a9dfbf;
            padding:12px 16px; border-radius:8px; margin-bottom:20px; }
.cart-table { width:100%; border-collapse:collapse; background:#fff; border-radius:12px;
              overflow:hidden; box-shadow:0 2px 10px rgba(16,99,164,.08); }
.cart-table th { background:var(--tint); color:var(--blue); text-align:left;
                 padding:14px 16px; font-family:Poppins, sans-serif; font-size:14px; }
.cart-table td { padding:14px 16px; border-top:1px solid #eef3f8; vertical-align:middle; }
.cart-prod { display:flex; align-items:center; gap:12px; }
.cart-prod img { width:56px; height:56px; object-fit:cover; border-radius:8px; background:#f4f7fa; }
.cart-prod a { color:#222; font-weight:500; text-decoration:none; }
.cart-prod a:hover { color:var(--blue); }
.inline-form { display:flex; align-items:center; gap:8px; }
.qty-input { width:64px; padding:7px 8px; border:1px solid #d5dee8; border-radius:6px; }
.mini-btn { padding:8px 14px; background:var(--blue); color:#fff; border:none;
            border-radius:6px; cursor:pointer; font-size:13px; }
.mini-btn:hover { background:#0d5186; }
.link-btn { background:none; border:none; color:#c0392b; cursor:pointer; font-size:13px; }
.link-btn:hover { text-decoration:underline; }
.strong { font-weight:700; color:var(--blue); }
.cart-summary { max-width:420px; margin:28px 0 0 auto; background:#fff; border-radius:12px;
                padding:22px 24px; box-shadow:0 2px 10px rgba(16,99,164,.08); }
.sum-row { display:flex; justify-content:space-between; padding:8px 0; font-size:15px; }
.sum-row.total { border-top:2px solid #eef3f8; margin-top:8px; padding-top:14px; font-size:17px; }
.sum-actions { display:flex; gap:12px; margin-top:16px; flex-wrap:wrap; }
.checkout-grid { display:grid; grid-template-columns:1.6fr 1fr; gap:32px; align-items:start; }
.checkout-form, .order-summary { background:#fff; border-radius:12px; padding:28px;
                                 box-shadow:0 2px 10px rgba(16,99,164,.08); }
.checkout-form h2, .order-summary h2 { font-family:Poppins, sans-serif; color:var(--blue);
                                       font-size:20px; margin-bottom:20px; }
.field { margin-bottom:16px; }
.field label { display:block; font-size:13px; color:#555; margin-bottom:6px; font-weight:500; }
.field input, .field textarea { width:100%; padding:11px 13px; border:1px solid #d5dee8;
                                border-radius:8px; font-size:14px; font-family:inherit; }
.field input:focus, .field textarea:focus { outline:none; border-color:var(--blue); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.os-line { display:flex; justify-content:space-between; gap:12px; padding:9px 0;
           border-bottom:1px dashed #e4ebf2; font-size:14px; }
.os-line.total { border-bottom:none; border-top:2px solid #eef3f8; margin-top:8px;
                 padding-top:14px; font-size:16px; }
.os-note { color:#8a97a5; font-size:12.5px; margin-top:14px; }
.narrow { max-width:560px; }
.pay-box { background:#fff; border-radius:12px; padding:40px; text-align:center;
           box-shadow:0 2px 14px rgba(16,99,164,.10); }
.pay-order { font-size:15px; color:#555; margin-bottom:8px; }
.pay-amount { font-family:Poppins, sans-serif; font-size:42px; color:var(--blue);
              font-weight:700; margin-bottom:16px; }
.pay-box form { margin:20px 0 12px; }
.order-head { display:flex; justify-content:space-between; align-items:center;
              margin-bottom:24px; flex-wrap:wrap; gap:12px; }
.order-no { font-family:Poppins, sans-serif; font-size:24px; color:var(--blue); font-weight:700; }
.status-badge { padding:7px 18px; border-radius:999px; font-size:13px; font-weight:700;
                background:#eef3f8; color:#555; letter-spacing:.5px; }
.status-badge.PENDING { background:#fff4e5; color:#b9770e; }
.status-badge.PAID { background:#e8f6ef; color:#1e8449; }
.status-badge.PROCESSING { background:#eaf3fb; color:var(--blue); }
.status-badge.SHIPPED { background:#f0eafc; color:#6c3fb5; }
.status-badge.COMPLETED { background:#e8f6ef; color:#1e8449; }
.status-badge.CANCELLED { background:#fdecea; color:#c0392b; }
.status-badge.REFUNDED { background:#f4f4f4; color:#666; }
.info-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; margin-top:28px; }
.info-card { background:#fff; border-radius:12px; padding:22px;
             box-shadow:0 2px 10px rgba(16,99,164,.08); }
.info-card h3 { font-family:Poppins, sans-serif; color:var(--blue); font-size:16px;
                margin-bottom:12px; }
.info-card p { font-size:14px; color:#444; margin:4px 0; }
.add-to-cart.small { padding:9px 16px; font-size:13px; }
@media (max-width: 900px) {
    .checkout-grid, .info-grid { grid-template-columns:1fr; }
    .cart-summary { margin:24px auto 0; }
}
/* ===== M2+ product detail redesign ===== */
.breadcrumb { font-size:13px; color:#8a97a5; padding:14px 24px 0; }
.breadcrumb a { color:#8a97a5; text-decoration:none; }
.breadcrumb a:hover { color:var(--blue); }
.breadcrumb .cur { color:var(--blue); font-weight:500; }
.pd-main { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:48px; padding-top:24px; align-items:start; }
.pd-main .gallery { background:#f8fafc; border:1px solid #e2ecf5; border-radius:10px; padding:24px; display:flex; flex-direction:column; align-items:center; }
.pd-main .gallery img { width:auto; max-width:100%; max-height:440px; object-fit:contain; border-radius:6px; background:#fff; }
.pd-main .gallery .no-img.large { border-radius:8px; }
/* 主图高度固定下限: 切换不同比例的验证图时画廊不跟着上下跳 (外链原图宽高不可控) */
.pd-main .gallery img#pd-main-img { min-height:320px; }
/* 缩略图: 上一行的 .pd-main .gallery img 特异性高于基础规则 .thumbs img,
   会把 72px 固定方块覆盖成 width:auto 的等比缩放图, 一行 nowrap 直接冲出卡片右边界。
   这里用更高特异性把尺寸锁回固定值, 并允许换行, 消除整页横向滚动。 */
.pd-main .gallery .thumbs { flex-wrap:wrap; justify-content:center; max-width:100%; margin-top:14px; }
.pd-main .gallery .thumbs img { width:72px; height:72px; max-width:72px; max-height:72px;
                               object-fit:cover; flex:0 0 auto; border-radius:4px; cursor:pointer; }
.pd-main .summary h1 { font-family:Poppins, sans-serif; font-size:30px; line-height:1.3; color:var(--blue); margin:0 0 14px; }
.pd-cas { font-size:16px; color:var(--ink); margin:0 0 10px; padding:6px 12px; background:var(--tint); border-radius:6px; display:inline-block; }
.pd-cas strong { color:var(--blue); }
.pd-capsid { font-size:14px; color:var(--ink); margin:0 0 10px; padding:5px 12px; background:#eef5fb; border-radius:6px; display:inline-block; }
.pd-capsid strong { color:var(--blue); }
.card-cas, .card-capsid { font-size:12px; color:#5b6b7b; margin:2px 0; line-height:1.4; }
.card-label { font-weight:600; color:#3c4a5a; }
.pd-price { min-height:36px; }
.pd-price .big { font-size:26px; }
.pd-price .dash { color:#8a97a5; }
.pd-stock { font-size:14px; font-weight:600; margin:8px 0 18px; min-height:18px; }
.pd-stock.in { color:#1e8449; }
.pd-stock.out { color:#c0392b; }
.pd-options { display:flex; flex-direction:column; gap:14px; margin-bottom:20px; }
.pd-opt-row { display:flex; align-items:center; gap:14px; }
.pd-opt-row label { min-width:70px; font-weight:600; color:#333; font-size:15px; }
.pd-select { flex:1; max-width:340px; padding:11px 14px; border:1px solid #d5dee8; border-radius:6px; font-size:15px; background:#fff; color:#222; }
.pd-select:focus { outline:none; border-color:var(--blue); }
.pd-buy { display:flex; align-items:center; gap:14px; margin:4px 0 22px; }
.pd-buy .qty-input { width:86px; padding:11px 12px; font-size:15px; }
.pd-buy .add-to-cart { margin:0; padding:13px 40px; font-size:16px; }
.pd-buy .add-to-cart:disabled { opacity:.45; cursor:not-allowed; }
/* --- Distributor-only regions (BE / LU / NL) --- */
.pd-distributor { margin:10px 0 24px; }
.pd-distributor-note { font-size:14px; color:#5b6b7b; line-height:1.6; margin:0 0 14px; max-width:44ch; }
.buy-distributor-btn { display:inline-flex; align-items:center; gap:10px; padding:14px 34px;
    background:linear-gradient(200deg, #2b8fd6, var(--blue)); color:#fff; text-decoration:none;
    border-radius:50px; font-family:'Poppins', sans-serif; font-weight:700; font-size:16px; letter-spacing:.3px;
    box-shadow:0 4px 14px rgba(16,99,164,.28); transition:transform .18s ease, box-shadow .18s ease, background .18s ease; }
.buy-distributor-btn:hover { transform:translateY(-2px); box-shadow:0 8px 22px rgba(16,99,164,.36);
    background:linear-gradient(200deg, #3ea0e6, #1472bd); color:#fff; }
.buy-distributor-btn:active { transform:translateY(0); box-shadow:0 3px 10px rgba(16,99,164,.3); }
.buy-distributor-btn svg { flex:none; transition:transform .18s ease; }
.buy-distributor-btn:hover svg { transform:translateX(3px); }
@media (max-width: 600px) { .buy-distributor-btn { padding:12px 24px; font-size:15px; width:100%; justify-content:center; } }

/* --- Distributor mode (BE/LU/NL): 前端 JS 拉到 distributorOnly=true 后向 <html> 加
       data-distributor-only="true", 下面规则隐藏价格/加购, 引导用户到代理商。
       服务端 HTML 对所有国家一致, 保证非 Enterprise 计划下 CF 边缘缓存不串号。 --- */
html[data-distributor-only="true"] .pd-price,
html[data-distributor-only="true"] .pd-stock,
html[data-distributor-only="true"] .pd-form,
html[data-distributor-only="true"] .product-detail .price,
html[data-distributor-only="true"] .product-card .price,
html[data-distributor-only="true"] .card .price,
html[data-distributor-only="true"] .info .price { display:none !important; }

/* --- 币种切换器显示策略: 服务端 HTML 对所有国家字节一致 (非 Enterprise 计划下 CF
       cache_key 不能按国家分版本), 首屏无法预知访客地区, 因此切换器默认不显示,
       等 /api/header 下发本地区可选币种集合后由 storefront.js 加 data-currency-switcher="on"
       才放行 —— 集合只剩一档 (美国仅 USD) 时保持 off, 美国访客全程不闪现。
       无 JS 时由 layout.html 的 <noscript> 样式恢复显示, 走表单 /currency/switch。 --- */
html[data-currency-switcher="on"] .currency-switcher { display:inline-flex; }
.pd-desc { background:#fff; border:1px solid #e2ecf5; border-radius:10px; padding:28px 32px; margin-top:40px; line-height:1.75; color:#333; }
.pd-desc h2 { font-family:Poppins, sans-serif; color:var(--blue); font-size:22px; margin:0 0 14px; }
.pd-desc img { max-width:100%; }
@media (max-width: 900px) { .pd-main { grid-template-columns:1fr; } }
/* M3 浼樻儬鍒?*/
.flash-ok { background: #e8f7ee; border: 1px solid #bfe8cf; color: #1a7a3d; padding: 10px 14px; border-radius: 8px; margin: 0 0 16px; }
.coupon-box { margin: 14px 0 4px; padding: 12px 0; border-top: 1px dashed #d5dfe9; border-bottom: 1px dashed #d5dfe9; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; padding: 8px 12px; border: 1px solid #c6d3e0; border-radius: 8px; font-size: 14px; }
.coupon-applied { display: flex; align-items: center; justify-content: flex-start; gap: 8px; font-size: 14px; color: #1a7a3d; }
.inline-form { display: inline; margin: 0; }
.link-btn { background: none; border: none; color: #b0352f; text-decoration: underline; cursor: pointer; font-size: 13px; padding: 0; }
.os-line.grand { font-size: 17px; border-top: 2px solid #1f2d3d; margin-top: 6px; padding-top: 10px; }
/* M3 璐︽埛 */
.account-links { display: inline-flex; gap: 12px; font-size: 14px; margin-right: 14px; white-space: nowrap; }
.account-links a { color: #1f2d3d; font-weight: 500; text-decoration: none; }
.account-links a:hover { color: #1f6fd6; }
.auth-card { max-width: 460px; margin: 40px auto 60px; background: #fff; border: 1px solid #e2ecf5; border-radius: 12px; padding: 36px; box-shadow: 0 4px 18px rgba(31,45,61,.06); }
.auth-card h1 { margin: 0 0 20px; font-size: 26px; }
.auth-card form { display: block; }
.auth-alt { margin-top: 18px; font-size: 14px; color: #5b6b7b; }
.auth-alt a { color: #1f6fd6; font-weight: 500; }
.account-head { display: flex; align-items: center; justify-content: flex-start; margin-bottom: 8px; }
.account-sub { margin-top: 26px; font-size: 20px; }
.orders-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.orders-table th, .orders-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e2ecf5; font-size: 14px; }
.orders-table th { color: #5b6b7b; font-weight: 500; background: #f8fafc; }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: #eef2f7; color: #3c4a5a; }
.status-pill.paid, .status-pill.completed { background: #e8f7ee; color: #1a7a3d; }
.status-pill.pending { background: #fff6e5; color: #a06a00; }
.status-pill.cancelled, .status-pill.refunded { background: #fdeceb; color: #b0352f; }
.muted { color: #5b6b7b; }
/* M3 admin */
.admin-body { background: #f2f5f8; }
.admin-top { display: flex; align-items: center; gap: 24px; background: #16222f; color: #ffffff; padding: 12px 24px; }
.admin-brand { font-weight: 700; letter-spacing: 1px; color: #ffffff; }
.admin-nav { display: flex; gap: 18px; }
.admin-nav a { color: #cfe0f2; text-decoration: none; font-size: 14px; }
.admin-nav a:hover { color: #ffffff; }
.admin-user { margin-left: auto; display: inline-flex; gap: 10px; align-items: center; font-size: 14px; color: #cfe0f2; }
.link-btn.light { color: #9fc3ea; }
.admin-main { max-width: 1200px; margin: 24px auto 60px; padding: 0 20px; }
.admin-main h1 { font-size: 24px; margin: 0 0 16px; }
.admin-head { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.admin-filters a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; border-radius: 999px; background: #ffffff; border: 1px solid #dbe4ee; font-size: 13px; color: #3c4a5a; text-decoration: none; }
.admin-filters a.on { background: #1f6fd6; border-color: #1f6fd6; color: #ffffff; }
.admin-table { width: 100%; border-collapse: collapse; background: #ffffff; border: 1px solid #e2ecf5; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eef2f7; font-size: 14px; }
.admin-table th { background: #f8fafc; color: #5b6b7b; font-weight: 500; }
.admin-pager { margin-top: 14px; display: flex; gap: 14px; align-items: center; font-size: 14px; }
.admin-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 16px 0; }
.admin-box { background: #ffffff; border: 1px solid #e2ecf5; border-radius: 10px; padding: 18px; margin-bottom: 18px; }
.admin-box h2 { font-size: 16px; margin: 0 0 10px; }
.admin-sub2 { font-size: 18px; margin: 22px 0 10px; }
.admin-transitions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.btn.small { padding: 7px 14px; font-size: 13px; }
.admin-totals p { margin: 4px 0; font-size: 14px; }
.admin-totals .grand { font-weight: 700; font-size: 16px; border-top: 1px solid #e2ecf5; padding-top: 8px; margin-top: 8px; }
.admin-login-card { max-width: 400px; margin: 80px auto; background: #ffffff; border: 1px solid #e2ecf5; border-radius: 12px; padding: 32px; }
.admin-login-card h1 { font-size: 22px; margin: 0 0 18px; }
.admin-search { display: inline-flex; gap: 8px; }
.admin-search input { padding: 8px 12px; border: 1px solid #dbe4ee; border-radius: 8px; min-width: 260px; }
.status-pill.publish { background: #e8f7ee; color: #1a7a3d; }
.status-pill.draft { background: #fff6e5; color: #a06a00; }
.sku-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sku-card { background: #ffffff; border: 1px solid #e2ecf5; border-radius: 10px; padding: 16px; }
.sku-code { font-weight: 700; margin: 0 0 4px; }
.sku-opt { margin: 0 0 10px; font-size: 13px; }
.sku-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.sku-fields input { width: 100%; padding: 6px 8px; border: 1px solid #dbe4ee; border-radius: 6px; }
.sku-fields label { font-size: 12px; color: #5b6b7b; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 10px; }
.coupon-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.coupon-form-grid .wide { grid-column: span 2; }
.coupon-form-grid input, .coupon-form-grid select { width: 100%; padding: 8px 10px; border: 1px solid #dbe4ee; border-radius: 8px; }
.coupon-form-grid label { font-size: 12px; color: #5b6b7b; }
/* M4 currency + cart badge */
.currency-switcher{display:none;align-items:center;gap:4px;margin-right:10px}
.currency-form{display:inline-flex;margin:0}
.cur-btn{border:2px solid transparent;border-radius:50%;width:30px;height:30px;padding:0;background:none;font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;opacity:.55}
.cur-btn:hover{opacity:.85;transform:scale(1.15)}
.cur-btn.active{opacity:1;border-color:var(--orange);transform:scale(1.15);box-shadow:0 0 6px rgba(255,140,50,.35)}
.cart-link{position:relative;display:inline-flex;align-items:center;gap:6px;text-decoration:none}
.cart-count{position:absolute;top:-6px;right:-12px;background:#c00;color:#fff;font-size:10px;font-weight:700;border-radius:50%;min-width:16px;height:16px;display:flex;align-items:center;justify-content:center;padding:0 3px}

/* M5 pay methods */
.pay-form{margin:16px 0;text-align:left}
.pay-method{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #ddd;border-radius:6px;margin-bottom:8px;cursor:pointer;background:#fafafa}
.pay-method:hover{border-color:#999}
.pay-method input{margin:0}
.pay-method-name{font-weight:600}
.pay-method .muted{margin-left:auto;font-size:12px}
.flash-err{background:#fdecea;color:#b71c1c;padding:10px 14px;border-radius:6px;margin:12px 0}

/* M6 search suggest + results */
.search-form{position:relative}
.search-suggest{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #ddd;border-top:none;border-radius:0 0 6px 6px;box-shadow:0 6px 14px rgba(0,0,0,.10);z-index:200;display:none;max-height:320px;overflow:auto;text-align:left}
.search-suggest a{display:flex;flex-direction:column;padding:8px 12px;text-decoration:none;color:#333;border-bottom:1px solid #f0f0f0}
.search-suggest a:hover{background:#f5f7fa}
.search-suggest .ss-name{font-weight:600;font-size:13px}
.search-suggest .ss-sku{font-size:11px;color:#888}
/* 联想条目徽标: Cat/CAS(强意图直达)与 Popular(高频搜索词) */
.search-suggest .ss-badge{display:inline-block;font-size:10px;font-weight:600;line-height:15px;padding:0 6px;margin-right:6px;border-radius:3px;background:#eef2fa;color:#40507a;vertical-align:1px}
.search-suggest .ss-badge.ss-search{background:#fff3e0;color:#b25e09}
.search-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.search-count{color:#888;font-size:14px}
.search-sort{margin:8px 0 18px}
.search-sort select{padding:6px 8px;border:1px solid #ddd;border-radius:4px;background:#fff;font-size:13px;cursor:pointer}
.search-empty{padding:40px 0;text-align:center}
.search-empty h2{font-size:22px;margin-bottom:10px}
.search-empty .btn{display:inline-block;margin-top:14px;background:#1a5c8a;color:#fff;padding:10px 22px;border-radius:4px;text-decoration:none}
.search-cats{margin-top:16px}
.search-cats a{color:#1a5c8a;text-decoration:underline;margin:0 4px}

/* Admin product edit + import/export */
.admin-toolbar{display:flex;align-items:center;gap:12px;margin:0 0 16px;flex-wrap:wrap}
.import-form{display:inline-flex;align-items:center;gap:8px}
.import-form input[type=file]{font-size:13px;max-width:220px}
.cas-cell{font-family:monospace;font-size:13px;color:#1a5c8a;white-space:nowrap}
.prod-info-form{margin-bottom:10px}
.prod-field{margin-bottom:12px}
.prod-field label{display:block;font-size:13px;font-weight:600;color:#3c4a5a;margin-bottom:4px}
.prod-input{width:100%;padding:8px 10px;border:1px solid #dbe4ee;border-radius:6px;font-size:14px;box-sizing:border-box}
.prod-input:focus{outline:none;border-color:#1f6fd6;box-shadow:0 0 0 2px rgba(31,111,214,.12)}
textarea.prod-input{resize:vertical;font-family:inherit}
.prod-field-row{display:flex;gap:14px;margin-bottom:12px}
.prod-field.half{flex:1}
.prod-field.half label{display:block;font-size:13px;font-weight:600;color:#3c4a5a;margin-bottom:4px}

/* Product request form (search no-results) */
.req-form-box{max-width:560px;margin:40px auto 0;padding:30px;background:#fff;border:1px solid #e2ecf5;border-radius:10px;text-align:left;box-shadow:0 2px 12px rgba(16,49,82,.06)}
.req-form-box h3{font-size:16px;color:#1a5c8a;margin:0 0 20px;font-weight:600;line-height:1.5}
.req-form{display:flex;flex-direction:column;gap:14px}
.req-field{display:flex;flex-direction:column;gap:4px}
.req-field label{font-size:13px;font-weight:600;color:#333}
.req-hint{font-weight:400;color:#c0392b;font-size:11px}
.req-input{width:100%;padding:10px 12px;border:1px solid #d5dee8;border-radius:6px;font-size:14px;box-sizing:border-box;font-family:inherit}
.req-input:focus{outline:none;border-color:#1f6fd6;box-shadow:0 0 0 2px rgba(31,111,214,.12)}
textarea.req-input{resize:vertical}
.req-row{display:flex;gap:14px}
.req-field.half{flex:1}
.req-submit{padding:12px 32px;background:#e67e22;color:#fff;border:none;border-radius:6px;font-size:15px;font-weight:700;cursor:pointer;align-self:flex-start;transition:background .15s}
.req-submit:hover{background:#d35400}
.req-flash{padding:10px 14px;border-radius:6px;margin-bottom:14px;font-size:14px}
.req-flash.ok{background:#e8f7ee;color:#1a7a3d;border:1px solid #bfe8cf}
.req-flash.err{background:#fdecea;color:#b71c1c;border:1px solid #f5c6cb}
/* ===== Partners page ===== */
.partners-page { max-width: 1400px; margin: 0 auto; padding: 40px 24px 64px; }
.partners-hero { text-align: center; margin-bottom: 48px; }
.partners-hero h1 { font-size: 38px; color: var(--blue); margin: 8px 0 12px; }
.partners-hero .lead { color: var(--muted); font-size: 17px; max-width: 720px; margin: 0 auto; line-height: 1.7; }
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.partner-card { background: #fff; border: 1px solid #e2ecf5; border-radius: 12px; padding: 24px; text-align: center; transition: box-shadow .2s, transform .2s; }
.partner-card:hover { box-shadow: 0 8px 24px rgba(16,99,164,.12); transform: translateY(-3px); }
.partner-logo { height: 80px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.partner-logo img { max-width: 100%; max-height: 80px; object-fit: contain; }
.partner-info { display: flex; flex-direction: column; gap: 6px; }
.partner-country { font-size: 13px; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: .5px; }
.partner-email { font-size: 14px; color: var(--blue); font-weight: 500; word-break: break-all; }
.partner-email:hover { text-decoration: underline; }
.partners-cta { text-align: center; margin-top: 56px; padding: 48px 32px; background: var(--tint); border-radius: 16px; }
.partners-cta h2 { color: var(--blue); font-size: 28px; margin: 0 0 12px; }
.partners-cta p { color: var(--muted); max-width: 600px; margin: 0 auto 20px; line-height: 1.7; }
/* Home partners preview */
.partners-preview { background: var(--tint); max-width: none; }
.partner-logos-home { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; max-width: 1400px; margin: 0 auto 24px; }
.plh-item { background: #fff; border: 1px solid #e2ecf5; border-radius: 10px; padding: 16px; display: flex; align-items: center; justify-content: center; height: 70px; }
.plh-item img { max-width: 100%; max-height: 50px; object-fit: contain; }
@media (max-width: 1100px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } .partner-logos-home { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } .partner-logos-home { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .partners-grid { grid-template-columns: 1fr; } .partner-logos-home { grid-template-columns: repeat(2, 1fr); } }

/* ===== Document request buttons (HPLC / COA / NMR) ===== */
.pd-doc-btns { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.doc-req-btn { padding: 10px 24px; border: 2px solid var(--blue); border-radius: 50px; background: #fff; color: var(--blue); font-weight: 700; font-size: 14px; cursor: pointer; transition: all .2s; font-family: 'Poppins', sans-serif; letter-spacing: .5px; }
.doc-req-btn:hover { background: var(--blue); color: #fff; }
.doc-req-btn.doc-hplc { border-color: #1063A4; color: #1063A4; }
.doc-req-btn.doc-hplc:hover { background: #1063A4; color: #fff; }
.doc-req-btn.doc-coa { border-color: #E64613; color: #E64613; }
.doc-req-btn.doc-coa:hover { background: #E64613; color: #fff; }
.doc-req-btn.doc-nmr { border-color: #2DCBEE; color: #0ea5c4; }
.doc-req-btn.doc-nmr:hover { background: #0ea5c4; color: #fff; }

/* ===== Document request modal ===== */
.doc-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; align-items: center; justify-content: center; }
.doc-modal-overlay.open { display: flex; }
.doc-modal { background: #fff; border-radius: 14px; padding: 32px; max-width: 480px; width: 92%; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.doc-modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 28px; color: #999; cursor: pointer; line-height: 1; }
.doc-modal-close:hover { color: #333; }
.doc-modal h3 { font-family: 'Poppins', sans-serif; font-size: 20px; color: var(--blue); margin: 0 0 16px; }
.doc-modal-info { background: var(--tint); border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; }
.doc-modal-info p { margin: 4px 0; font-size: 14px; color: var(--ink); }
.doc-modal-info strong { color: var(--blue); }
.doc-modal-form { display: flex; flex-direction: column; gap: 14px; }
.doc-field { display: flex; flex-direction: column; gap: 4px; }
.doc-field label { font-size: 13px; font-weight: 600; color: #333; }
.req-star { color: #c0392b; }
.doc-field input, .doc-field textarea {  padding: 10px 12px; border: 1px solid #d5dee8; border-radius: 6px; font-size: 14px; box-sizing: border-box; font-family: inherit; }
.doc-field input:focus, .doc-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(16,99,164,.12); }
.doc-field textarea { resize: vertical; }
.doc-submit-btn { padding: 12px 32px; background: linear-gradient(200deg, #f0642f, var(--orange)); color: #fff; border: none; border-radius: 50px; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .2s; align-self: flex-start; }
.doc-submit-btn:hover { background: linear-gradient(200deg, #2DCBEE, var(--blue)); }
.doc-submit-btn:disabled { opacity: .5; cursor: not-allowed; }
.doc-flash { margin-bottom: 8px; }
.doc-flash.ok { background: #e8f7ee; color: #1a7a3d; border: 1px solid #bfe8cf; padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.doc-flash.err { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6cb; padding: 10px 14px; border-radius: 6px; font-size: 14px; }

/* ===== Partners marquee scrolling ===== */
.partner-marquee { overflow: hidden; position: relative; max-width: 1400px; margin: 0 auto; }
.partner-marquee::before, .partner-marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.partner-marquee::before { left: 0; background: linear-gradient(to right, #f7f9fc, transparent); }
.partner-marquee::after { right: 0; background: linear-gradient(to left, #f7f9fc, transparent); }
.marquee-track { display: flex; gap: 16px; animation: marqueeScroll 30s linear infinite; width: max-content; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { flex-shrink: 0; background: #fff; border: 1px solid #e2ecf5; border-radius: 8px; padding: 8px 20px; display: flex; align-items: center; justify-content: center; height: 48px; min-width: 120px; }
.marquee-item img { max-width: 120px; max-height: 36px; object-fit: contain; }
/* Top CTA bar above header */
.top-cta-bar { background: linear-gradient(135deg, var(--blue), #0b4a7d); color: #fff; padding: 14px 0; }
.top-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.top-cta-text { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.top-cta-text strong { font-size: 15px; white-space: nowrap; color: #fff; }
.top-cta-text span { font-size: 13px; color: #c8ddef; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.btn-cta-sm { display: inline-block; padding: 8px 20px; border-radius: 50px; font-weight: 700; font-size: 13px; color: var(--blue); background: #fff; text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: background .2s; }
.btn-cta-sm:hover { background: #e8f2fb; color: var(--blue); }
/* Top partners bar above header */
.top-partners-bar { background: #f7f9fc; padding: 8px 0; border-bottom: 1px solid #e8eff6; }
.top-partners-bar .partner-marquee { max-width: 100%; margin: 0; }
.top-partners-bar .partner-marquee::before { background: linear-gradient(to right, #f7f9fc, transparent); }
.top-partners-bar .partner-marquee::after { background: linear-gradient(to left, #f7f9fc, transparent); }
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* Global toast notification */
.global-toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 10000; padding: 14px 32px; border-radius: 10px; font-size: 15px; font-weight: 600; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,.15); animation: toastSlideIn .3s ease; max-width: 90vw; }
.toast-ok { background: #28a745; color: #fff; }
.toast-err { background: #dc3545; color: #fff; }
@keyframes toastSlideIn { from { opacity: 0; transform: translateX(-50%) translateY(-20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ===== Home partners bar (moved from global layout) ===== */
.home-partners-bar { background: #f7f9fc; padding: 8px 0; border-bottom: 1px solid #e8eff6; }
.home-partners-bar .partner-marquee { max-width: 1400px; margin: 0 auto; }
.home-partners-bar .partner-marquee::before { background: linear-gradient(to right, #f7f9fc, transparent); }
.home-partners-bar .partner-marquee::after { background: linear-gradient(to left, #f7f9fc, transparent); }

/* ===== Custom Synthesis section ===== */
.synth-section { text-align: center; }
.synth-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 960px; margin: 0 auto 32px; text-align: left; }
.synth-feature { background: #fff; border: 1px solid #e2ecf5; border-radius: 12px; padding: 24px; box-shadow: 0 2px 10px rgba(16,49,82,.06); }
.synth-feature h3 { margin: 8px 0 8px; font-size: 17px; color: var(--blue); }
.synth-feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.synth-icon { font-size: 28px; }
.synth-cta-btn { margin-top: 8px; }

/* ===== Chemical structures grid (5+1) ===== */
.struct-section { padding-top: 0; }
.struct-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; max-width: 1100px; margin: 0 auto; }
.struct-card { background: #fff; border: 1px solid #e2ecf5; border-radius: 10px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.struct-card:hover { box-shadow: 0 6px 18px rgba(16,99,164,.12); transform: translateY(-2px); }
.struct-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f8fafc; padding: 8px; }
.struct-info { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.struct-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.struct-cas { font-size: 12px; color: var(--muted); font-family: monospace; }

/* ===== Why Us v2 (new partner-focused cards) ===== */
.why-us-v2 .feature-cards { margin-bottom: 28px; }
.join-us-btn { margin-top: 8px; }

/* ===== Synthesis modal (larger) ===== */
/* 保留 .doc-modal 基础的 max-height:90vh + overflow-y:auto, 小屏幕下弹框内部可滚动 */
.synthesis-modal { max-width: 720px; width: 95%; }
.synth-form-section { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #eef2f7; }
.synth-form-section:last-of-type { border-bottom: none; margin-bottom: 12px; }
.synth-form-section h4 { font-size: 15px; color: var(--blue); margin: 0 0 12px; font-weight: 600; }
.purity-radios { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.radio-label { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); cursor: pointer; width: auto !important; white-space: nowrap; }
.radio-label input[type="radio"] { accent-color: var(--blue); flex-shrink: 0; }
.analytical-checks { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.check-label { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); cursor: pointer; width: auto !important; white-space: nowrap; }
.check-label input[type="checkbox"] { accent-color: var(--blue); flex-shrink: 0; }

/* ===== Cookie consent banner ===== */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: #fff; border-top: 2px solid var(--blue); box-shadow: 0 -4px 20px rgba(0,0,0,.12); padding: 18px 24px; }
.cookie-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: flex-start; gap: 20px; }
.cookie-text { flex: 1; font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }
.cookie-text a { color: var(--blue); text-decoration: underline; }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn { padding: 8px 18px; border-radius: 50px; font-weight: 700; font-size: 13px; cursor: pointer; border: 2px solid transparent; transition: all .2s; }
.cookie-settings { background: #fff; color: var(--blue); border-color: var(--blue); }
.cookie-settings:hover { background: var(--tint); }
.cookie-reject { background: #fff; color: var(--muted); border-color: #ccc; }
.cookie-reject:hover { background: #f5f5f5; }
.cookie-accept { background: linear-gradient(200deg, #f0642f, var(--orange)); color: #fff; border-color: transparent; }
.cookie-accept:hover { background: linear-gradient(200deg, #2DCBEE, var(--blue)); }

/* ===== Responsive adjustments ===== */
@media (max-width: 1100px) {
    .htitle { font-size: 34px; }
    .struct-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .synth-features { grid-template-columns: 1fr; }
    .struct-grid { grid-template-columns: repeat(2, 1fr); }
    .cookie-inner { flex-direction: column; }
}
@media (max-width: 560px) {
    .htitle { font-size: 26px; }
    .struct-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Product category pages (PDF catalog style) ===== */
.product-category-page { max-width: 1100px; margin: 0 auto; padding: 40px 24px 64px; }

/* White card container on colored background */
.pc-card-section { background: #fff; border-radius: 12px; padding: 32px 36px 36px; margin-bottom: 32px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }

/* Section image - constrained size */
.pc-section-img { width: 100%; max-height: 240px; border-radius: 8px; margin-bottom: 24px; object-fit: contain; background: #f4f8fb; display: block; }

/* Product image grid (2x2 etc) */
.pc-prod-img-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.pc-prod-img-grid img { width: 100%; max-height: 180px; object-fit: contain; border-radius: 6px; background: #f4f8fb; }

/* Section title */
.pc-section-title { font-size: 24px; color: var(--blue); margin: 0 0 18px; font-weight: 700; }

/* Feature bullets with checkmarks */
.pc-features { list-style: none; padding: 0; margin: 0 0 24px; }
.pc-features li { position: relative; padding-left: 28px; margin-bottom: 10px; font-size: 14px; line-height: 1.7; color: var(--ink); }
.pc-features li::before { content: '\2713'; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 700; font-size: 16px; }

/* Intro text inside card */
.pc-card-intro { color: #555; margin-bottom: 24px; line-height: 1.8; font-size: 14px; }

/* Product data table - clean style matching PDF */
.pc-table { width: 100%; border-collapse: collapse; margin-bottom: 0; font-size: 13px; }
.pc-table thead th { background: #f0f4f8; color: #333; padding: 8px 12px; text-align: left; font-weight: 600; border-bottom: 2px solid #dce3ea; font-size: 12px; }
.pc-table tbody td { padding: 8px 12px; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
.pc-table tbody tr:hover { background: #f8fafc; }
.pc-table .prod-name { font-weight: 600; color: var(--ink); display: block; font-size: 13px; }
.pc-table .prod-sku { color: var(--orange); font-weight: 700; font-size: 12px; display: block; margin-top: 2px; }
.pc-table .prod-desc { color: #666; font-size: 12px; }
.pc-inquire-btn { display: inline-block; padding: 5px 14px; background: linear-gradient(200deg, #f0642f, var(--orange)); color: #fff; border: none; border-radius: 4px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .2s; text-decoration: none; }
.pc-inquire-btn:hover { background: linear-gradient(200deg, #2DCBEE, var(--blue)); color: #fff; }

/* Left-right split: image on left, content (title + table) on right */
.pc-split { display: flex; gap: 32px; align-items: flex-start; }
.pc-split-img { flex: 0 0 340px; position: sticky; top: 16px; }
.pc-split-img img { width: 100%; border-radius: 8px; background: #f4f8fb; object-fit: contain; display: block; }
.pc-split-img .pc-prod-img-grid { margin-bottom: 0; }
.pc-split-img .pc-prod-img-grid img { max-height: 160px; }
.pc-split-body { flex: 1; min-width: 0; }
.pc-split-body .pc-section-title { margin-top: 0; }

/* Responsive */
@media (max-width: 768px) {
    .pc-card-section { padding: 20px 18px 24px; }
    .pc-table { font-size: 12px; }
    .pc-table thead th, .pc-table tbody td { padding: 6px 8px; }
    .pc-section-title { font-size: 20px; }
    .pc-prod-img-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .pc-split { flex-direction: column; gap: 20px; }
    .pc-split-img { flex: none; width: 100%; max-width: 420px; position: static; }
}


/* Purchase modal */
.pc-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9000; align-items: center; justify-content: center; }
.pc-modal-overlay.active { display: flex; }
.pc-modal { background: #fff; border-radius: 12px; max-width: 520px; width: 90%; max-height: 90vh; overflow-y: auto; padding: 32px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.pc-modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 24px; cursor: pointer; color: #999; }
.pc-modal-close:hover { color: #333; }
.pc-modal h3 { color: var(--blue); margin: 0 0 20px; font-size: 22px; }
.pc-modal .pm-field { margin-bottom: 14px; }
.pc-modal .pm-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: #333; }
.pc-modal .pm-field label em { color: #c0392b; }
.pc-modal .pm-field input, .pc-modal .pm-field textarea, .pc-modal .pm-field select { width: 100%; padding: 10px 12px; border: 1px solid #d5dee8; border-radius: 6px; font-size: 14px; box-sizing: border-box; font-family: inherit; }
.pc-modal .pm-field input:focus, .pc-modal .pm-field textarea:focus { outline: none; border-color: #1f6fd6; box-shadow: 0 0 0 2px rgba(31,111,214,.12); }
.pc-modal .pm-field textarea { resize: vertical; min-height: 60px; }
.pc-modal .pm-submit { padding: 12px 32px; background: linear-gradient(200deg, #f0642f, var(--orange)); color: #fff; border: none; border-radius: 6px; font-size: 15px; font-weight: 700; cursor: pointer; width: 100%; margin-top: 8px; }
.pc-modal .pm-submit:hover { background: linear-gradient(200deg, #2DCBEE, var(--blue)); }
.pc-modal .pm-flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; display: none; }
.pc-modal .pm-flash.ok { display: block; background: #e8f7ee; color: #1a7a3d; border: 1px solid #bfe8cf; }
.pc-modal .pm-flash.err { display: block; background: #fdecea; color: #b71c1c; border: 1px solid #f5c6cb; }
@media (max-width: 700px) {
    .pc-card-section { padding: 16px 14px 20px; }
}

/* ---- Boster Product Extension ---- */
.boster-summary { margin-top: 12px; padding: 10px 14px; background: #f8f9fa; border-radius: 6px; border: 1px solid #e9ecef; }
.boster-summary p { margin: 4px 0; font-size: 14px; color: #333; }
.boster-summary strong { color: #555; min-width: 120px; display: inline-block; }

.pd-boster { margin-top: 24px; }

.boster-accordion { border: 1px solid #dee2e6; border-radius: 8px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.boster-acc-header { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 18px; background: #f8f9fa; border: none; cursor: pointer; font-size: 16px; font-weight: 600; color: #333; transition: background .2s; }
.boster-acc-header:hover { background: #e9ecef; }
.boster-acc-header .acc-icon { transition: transform .25s; flex-shrink: 0; }
.boster-accordion.open .boster-acc-header .acc-icon { transform: rotate(45deg); }
.boster-acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.boster-accordion.open .boster-acc-body { max-height: 5000px; }
.boster-acc-body .pd-tech-table { margin: 0; }
.boster-acc-body .pd-tech-table th { white-space: nowrap; min-width: 160px; color: #555; font-weight: 600; padding: 10px 14px; background: #fafbfc; vertical-align: top; }
.boster-acc-body .pd-tech-table td { padding: 10px 14px; color: #333; line-height: 1.6; }

.boster-images { margin-top: 16px; padding: 0 14px 14px; }
.boster-images h3 { font-size: 15px; color: #555; margin-bottom: 12px; }
.boster-img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.boster-img-item { background: #f8f9fa; border-radius: 6px; overflow: hidden; border: 1px solid #e9ecef; }
.boster-img-item img { width: 100%; height: auto; display: block; }
.boster-img-label { padding: 8px 12px; font-size: 12px; color: #555; line-height: 1.5; margin: 0; }

@media (max-width: 768px) {
    .boster-img-grid { grid-template-columns: 1fr; }
    .boster-acc-header { padding: 12px 14px; font-size: 15px; }
}

/* ===== Compound Libraries (ec_library) ===== */
.libs-hero { padding: 46px 0 6px; }
.libs-hero .hdesc { max-width: 860px; }
.libs-search { display: flex; align-items: center; gap: 16px; margin: 22px 0 10px; flex-wrap: wrap; }
.libs-search input { width: min(420px, 100%); padding: 12px 20px; border: 1px solid #d7e2ec; border-radius: 50px; font-size: 15px; background: var(--tint); color: var(--ink); }
.libs-search input:focus { outline: 2px solid var(--blue-soft); border-color: var(--blue); }
.libs-count { color: var(--muted); font-size: 14px; }
.libs-anchors { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 6px; }
.libs-anchors a { font-size: 14px; font-weight: 600; color: var(--blue); background: var(--tint); border: 1px solid rgba(16,99,164,.15); padding: 7px 16px; border-radius: 50px; text-decoration: none; }
.libs-anchors a:hover { background: var(--blue); color: #fff; }
.libs-group { margin-top: 34px; scroll-margin-top: 30px; }
.libs-group-title { font-size: 26px; color: var(--blue); border-bottom: 2px solid var(--blue-soft); padding-bottom: 10px; margin: 0 0 6px; }
.libs-sub h3 { font-size: 18px; color: var(--ink); margin: 20px 0 12px; }
.libs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; }
.lib-card { display: block; background: #fff; border: 1px solid #dce7f1; border-radius: 12px; padding: 16px 18px; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.lib-card:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(16,99,164,.12); }
.lib-card-name { color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.45; }
.lib-card-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.lib-num { color: var(--muted); font-size: 13px; }
.lib-badge { margin-left: auto; font-size: 12px; font-weight: 700; color: #0d7a3f; background: rgba(13,122,63,.09); border: 1px solid rgba(13,122,63,.2); border-radius: 50px; padding: 3px 10px; }
.libs-page .hide, .libs-sub.hide, .libs-group.hide, .lib-card.hide { display: none !important; }
.libs-empty-msg { margin-top: 30px; color: var(--muted); font-size: 16px; }
.lib-detail { padding: 30px 0 50px; }
.libs-crumb { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.libs-crumb a { color: var(--blue); text-decoration: none; }
.libs-crumb em { font-style: normal; color: var(--ink); }
/* 两列 → 文字环绕: 卡片 float 右上, 正文自动包围并填满卡片下方空白 (flow-root 容纳浮动) */
.libs-detail-grid { display: flow-root; }
.libs-aside { float: right; width: 330px; margin: 0 0 22px 36px; }
.libs-detail-main { max-width: 1250px; }
.libs-title { font-size: 32px; margin: 10px 0 4px; }
.libs-subname { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.libs-lead { font-size: 17px; line-height: 1.75; color: var(--ink); }
.libs-body p { font-size: 15.5px; line-height: 1.8; color: var(--muted); }
.libs-aside-card { background: var(--tint); border: 1px solid #dce7f1; border-radius: 14px; padding: 22px 24px; }
.libs-aside-card h3 { margin: 0 0 14px; color: var(--blue); font-size: 18px; }
.libs-aside-card dl { margin: 0 0 18px; }
.libs-aside-card dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-top: 12px; }
.libs-aside-card dd { margin: 2px 0 0; font-size: 15px; color: var(--ink); font-weight: 600; }
.libs-stock { color: #0d7a3f !important; }
.libs-btn { display: block; width: 100%; text-align: center; border-radius: 50px; padding: 12px 0; font-size: 15px; box-sizing: border-box; }
.libs-btn2 { display: block; text-align: center; margin-top: 12px; font-size: 13.5px; color: var(--blue); }
.libs-related { margin-top: 48px; clear: both; }
.libs-doc-note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.libs-modal-sub { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.libs-btn2-mt { margin-top: 10px; }
.libs-tabs-nav-wrap { position: sticky; top: var(--lib-nav-top, 68px); z-index: 35; background: rgba(255,255,255,.97); border-bottom: 1px solid #e6edf5; }
.libs-tabs-nav-wrap .libs-crumb { margin: 12px 0 2px; }
.libs-tabs-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.libs-tabs-nav::-webkit-scrollbar { display: none; }
.libs-tabs-nav a { white-space: nowrap; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 7px 14px; border-radius: 50px; }
.libs-tabs-nav a:hover { color: var(--blue); background: var(--tint); }
.libs-tabs-nav a.active { color: #fff; background: var(--orange); }
.lib-detail .libs-anchor-sec { scroll-margin-top: var(--lib-sec-offset, 140px); }
.libs-catno { font-size: 14.5px; color: var(--muted); margin: 2px 0 14px; }
.libs-catno em { font-style: normal; color: var(--orange); font-weight: 700; }
.libs-ruo { margin: 18px 0 4px; color: #d0342c; font-weight: 700; font-size: 14.5px; }
.libs-res { margin-top: 22px; }
.libs-res h3 { font-size: 16px; margin: 0 0 12px; color: var(--ink); }
/* 左列内的 Product Description: 块盒会横跨到卡片下方, 故不能用 border-top (分隔线会穿到右侧), 改用固定宽度的短线 */
.libs-detail-main .tab-pane { padding: 24px 0 0; margin-top: 26px; border-top: none; border-bottom: none; }
.libs-detail-main .tab-pane h2 { font-size: 19px; }
.libs-detail-main .tab-pane h2::before { content: ''; display: block; width: 220px; height: 1px; background: #eef2f7; margin: 0 0 22px; }
.libs-detail-main .pd-desc-body p { font-size: 15.5px; line-height: 1.8; color: var(--muted); margin: 0 0 14px; }
/* 全宽区域 (Packaging & Storage 起): clear 避开浮动, 去掉左右 padding 以与上方内容左边缘对齐 */
.libs-tabs { clear: both; }
.libs-tabs > .tab-pane { padding-left: 0; padding-right: 0; }
.libs-tabs > .tab-pane:first-child { padding-top: 6px; }
.libs-aside-card h3 .libs-cat-accent { font-style: normal; color: var(--orange); }
.libs-aside-name { font-weight: 600; color: var(--ink); font-size: 15px; margin: 0 0 14px; }
.libs-aside-img { display: block; width: auto; max-width: 100%; max-height: 180px; object-fit: contain; border-radius: 10px; border: 1px solid #dce7f1; background: #fff; margin: 0 auto 16px; }
.libs-sizes { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.libs-size-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.libs-size-btn { border: 1px solid #d7e2ec; background: #fff; border-radius: 8px; padding: 9px 12px; font-size: 14px; color: var(--ink); text-align: center; }
.libs-custom { background: #14212e; border-radius: 14px; padding: 36px 28px; text-align: center; margin: 34px 0; }
.libs-custom h3 { color: #fff; font-size: 22px; margin: 0 0 8px; }
.libs-custom p { color: rgba(255,255,255,.75); margin: 0 auto 20px; max-width: 620px; }
.libs-custom .btn { display: inline-block; width: auto; }
.libs-info-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.libs-info-table th { text-align: left; width: 220px; color: var(--muted); font-weight: 600; padding: 11px 14px 11px 0; border-bottom: 1px solid #eef2f7; }
.libs-info-table td { padding: 11px 0; border-bottom: 1px solid #eef2f7; color: var(--ink); }
.libs-faq details { border: 1px solid #e3ecf4; border-radius: 10px; padding: 13px 18px; margin-bottom: 10px; background: #fff; }
.libs-faq summary { font-weight: 600; cursor: pointer; color: var(--ink); font-size: 15px; }
.libs-faq details p { color: var(--muted); margin: 10px 0 2px; line-height: 1.7; }
.lib-detail .tab-pane ul { margin: 14px 0 0; padding-left: 20px; }
.lib-detail .tab-pane li { margin: 7px 0; color: var(--muted); line-height: 1.7; }
.libs-related h2 { font-size: 22px; color: var(--blue); margin-bottom: 16px; }
@media (max-width: 900px) { .libs-aside { float: none; width: auto; margin: 0 0 24px; } .libs-detail-main { max-width: none; } }