/* ============================================================
   pxxhd.cc 前台官网样式
   风格：明亮童趣（橙黄主色 + 蓝绿点缀），国际站常见的干净排版
   - 无构建依赖，纯 CSS
   - 移动端优先，断点 640 / 900 / 1200
   - RTL（阿拉伯语）：全部使用逻辑属性（inline-start/end），
     配合 html[dir=rtl] 即可整站镜像，无需单独样式表
   ============================================================ */

:root {
    --brand: #ff7a1a;
    --brand-dark: #f2600a;
    --brand-soft: #fff2e4;
    --yellow: #ffc93c;
    --blue: #2b7fff;
    --blue-soft: #eaf2ff;
    --mint: #16c47f;
    --mint-soft: #e6faf1;
    --pink: #ff5d8f;
    --ink: #16213a;
    --ink-2: #334155;
    --muted: #6b7a90;
    --line: #e8ecf3;
    --soft: #f7f9fc;
    --white: #fff;
    --radius-s: 10px;
    --radius: 16px;
    --radius-l: 26px;
    --shadow-s: 0 2px 10px rgba(22, 33, 58, .06);
    --shadow: 0 12px 30px rgba(22, 33, 58, .10);
    --shadow-l: 0 24px 60px rgba(22, 33, 58, .16);
    --container: 1200px;
    --header-h: 68px;
    --ease: cubic-bezier(.22, .68, .32, 1);
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

/* 阿拉伯语：字号略大、行高更松，读起来更舒服 */
html[dir="rtl"] body {
    font-family: "Segoe UI", "Tahoma", "Traditional Arabic", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.85;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
    font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 22px rgba(255, 122, 26, .32); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 14px 28px rgba(255, 122, 26, .4); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 10px 22px rgba(43, 127, 255, .28); }
.btn-blue:hover { background: #1a6ef0; color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------------- 顶部信息条 ---------------- */
.topbar {
    background: var(--ink); color: rgba(255, 255, 255, .88);
    font-size: 13.5px; padding: 7px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-list { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-list li { display: flex; align-items: center; gap: 7px; }
.topbar-list svg { width: 15px; height: 15px; opacity: .85; flex: none; }
.topbar a:hover { color: var(--yellow); }

/* ---------------- 语言切换 ---------------- */
.lang { position: relative; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    background: rgba(255, 255, 255, .12); border: 0; color: #fff;
    font-size: 13.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
    font-family: inherit;
}
.lang-btn svg { width: 15px; height: 15px; }
.lang-menu {
    position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60;
    background: #fff; border-radius: 14px; box-shadow: var(--shadow-l);
    padding: 8px; min-width: 170px; display: none;
}
.lang.open .lang-menu { display: block; animation: pop .16s var(--ease); }
.lang-menu a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--ink-2); font-weight: 600;
}
.lang-menu a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.lang-menu a.active { background: var(--ink); color: #fff; }
.lang-menu .code { font-size: 12px; opacity: .6; text-transform: uppercase; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------------- 头部导航 ---------------- */
.header {
    position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-s); }
.header .container { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; flex: none; }
.logo img { max-height: 40px; width: auto; }
.logo-mark {
    width: 40px; height: 40px; border-radius: 13px; flex: none;
    background: linear-gradient(135deg, var(--brand), var(--yellow));
    color: #fff; display: grid; place-items: center; font-size: 19px; font-weight: 900;
    box-shadow: 0 8px 18px rgba(255, 122, 26, .3);
}
.logo-text small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav > li > a {
    display: block; padding: 10px 14px; border-radius: 999px;
    font-weight: 700; font-size: 15px; color: var(--ink-2);
}
.nav > li > a:hover, .nav > li > a.active { background: var(--brand-soft); color: var(--brand-dark); }
.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }

.burger {
    display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
    background: #fff; cursor: pointer; align-items: center; justify-content: center; flex: none;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.burger span::before, .burger span::after {
    content: ''; position: absolute; inset-inline-start: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* 移动端抽屉 */
.drawer-mask {
    position: fixed; inset: 0; background: rgba(14, 20, 35, .5); z-index: 90;
    opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), visibility .22s;
}
.drawer-mask.open { opacity: 1; visibility: visible; }
.drawer {
    position: fixed; inset-block: 0; inset-inline-end: 0; width: min(84vw, 340px); z-index: 100;
    background: #fff; padding: 20px; overflow-y: auto;
    transform: translateX(100%); transition: transform .26s var(--ease);
    display: flex; flex-direction: column; gap: 18px;
}
html[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.open, html[dir="rtl"] .drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-close {
    width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
    font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink);
}
.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a {
    padding: 13px 14px; border-radius: 12px; font-weight: 700; color: var(--ink-2); background: var(--soft);
}
.drawer-nav a.active, .drawer-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.drawer-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-langs a {
    padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--ink-2);
}
.drawer-langs a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.drawer-contact { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.drawer-contact b { color: var(--ink); }

/* ---------------- 首屏 Hero ---------------- */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, #fff7ec 0%, #fffdf8 42%, #eef5ff 100%);
    padding: 64px 0 72px;
}
.hero::before, .hero::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; z-index: 0;
}
.hero::before { width: 420px; height: 420px; background: radial-gradient(circle at 30% 30%, rgba(255, 201, 60, .55), transparent 68%); inset-block-start: -140px; inset-inline-end: -120px; }
.hero::after { width: 360px; height: 360px; background: radial-gradient(circle at 60% 40%, rgba(43, 127, 255, .3), transparent 66%); inset-block-end: -160px; inset-inline-start: -100px; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--brand-dark);
    font-size: 13.5px; font-weight: 800; padding: 8px 16px; border-radius: 999px;
    box-shadow: var(--shadow-s); margin-bottom: 18px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(22, 196, 127, .18); }
.hero h1 { font-size: clamp(30px, 6vw, 52px); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; }
.hero-sub { font-size: 17px; color: var(--ink-2); max-width: 620px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--muted); }
.hero-tags span { display: inline-flex; align-items: center; gap: 6px; }
.hero-tags svg { width: 16px; height: 16px; color: var(--mint); }

.hero-visual { position: relative; }
.hero-visual .main-img {
    border-radius: var(--radius-l); overflow: hidden; background: #fff; box-shadow: var(--shadow-l);
    aspect-ratio: 4 / 3; display: grid; place-items: center;
}
.hero-visual .main-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .float-card {
    position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 12px 16px; font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 10px;
}
.hero-visual .float-card i {
    width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-style: normal; font-size: 17px;
}
.hero-visual .fc-1 { inset-block-end: 18px; inset-inline-start: -14px; }
.hero-visual .fc-1 i { background: var(--mint-soft); }
.hero-visual .fc-2 { inset-block-start: 18px; inset-inline-end: -14px; }
.hero-visual .fc-2 i { background: var(--blue-soft); }
.hero-visual .fc-3 { inset-block-start: 45%; inset-inline-end: -18px; }
.hero-visual .fc-3 i { background: var(--brand-soft); }

/* ---------------- 数据指标 ---------------- */
.stats { background: var(--ink); color: #fff; padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
.stat { text-align: center; }
.stat b { display: block; font-size: clamp(26px, 5vw, 38px); font-weight: 900; color: var(--yellow); line-height: 1.15; }
.stat span { font-size: 13.5px; color: rgba(255, 255, 255, .72); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 64px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(24px, 4.2vw, 36px); }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow {
    display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: var(--brand); margin-bottom: 10px;
}
.section-head.left { margin-inline: 0; text-align: start; }
.section-foot { margin-top: 34px; text-align: center; }

/* ---------------- 分类卡 ---------------- */
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.cat-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #ffd9b8; }
.cat-card .thumb { aspect-ratio: 16 / 10; background: var(--brand-soft); display: grid; place-items: center; overflow: hidden; }
.cat-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.cat-card:hover .thumb img { transform: scale(1.05); }
.cat-card .thumb .ph { font-size: 40px; }
.cat-card .body { padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cat-card h3 { font-size: 17px; margin: 0; }
.cat-card .count { font-size: 13px; color: var(--muted); }
.cat-card .arrow { color: var(--brand); font-weight: 900; }

/* ---------------- 产品卡 ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.product-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #ffd9b8; }
.product-card .thumb { position: relative; aspect-ratio: 1 / 1; background: var(--soft); overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .ph { width: 100%; height: 100%; display: grid; place-items: center; color: #c9d2e2; font-weight: 800; font-size: 13px; text-align: center; padding: 10px; }
.badge-new {
    position: absolute; inset-block-start: 10px; inset-inline-start: 10px;
    background: var(--pink); color: #fff; font-size: 11px; font-weight: 900;
    padding: 4px 10px; border-radius: 999px; letter-spacing: .06em;
}
.product-card .body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .code { font-size: 12.5px; font-weight: 800; color: var(--blue); letter-spacing: .04em; }
.product-card h3 { font-size: 15px; margin: 0; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted); }
.product-card .meta span { background: var(--soft); padding: 3px 9px; border-radius: 999px; }
.product-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.product-card .price { font-weight: 900; color: var(--brand-dark); font-size: 16px; }
.product-card .price small { font-size: 11px; font-weight: 600; color: var(--muted); }
.product-card .link { font-size: 13px; font-weight: 800; color: var(--ink); }
.product-card:hover .link { color: var(--brand); }

/* ---------------- 为什么选择我们 ---------------- */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.why-card {
    background: #fff; border-radius: var(--radius-l); padding: 26px; border: 1px solid var(--line);
    position: relative; overflow: hidden;
}
.why-card::after {
    content: ''; position: absolute; inset-block-start: -30px; inset-inline-end: -30px;
    width: 110px; height: 110px; border-radius: 50%; background: var(--brand-soft); opacity: .75;
}
.why-card .ico {
    width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
    font-size: 24px; margin-bottom: 14px; position: relative; z-index: 1;
}
.why-card .ico-1 { background: var(--brand-soft); }
.why-card .ico-2 { background: var(--blue-soft); }
.why-card .ico-3 { background: var(--mint-soft); }
.why-card .ico-4 { background: #fff5d9; }
.why-card h3 { font-size: 17px; position: relative; z-index: 1; }
.why-card p { color: var(--muted); font-size: 14.5px; margin: 0; position: relative; z-index: 1; }

/* ---------------- 工厂介绍 ---------------- */
.factory { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
.factory-visual { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.factory-visual img { width: 100%; display: block; }
.factory-copy h2 { font-size: clamp(23px, 4vw, 32px); }
.factory-copy .rich { color: var(--ink-2); }
.factory-points { display: grid; gap: 12px; margin-top: 20px; }
.factory-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.factory-points svg { width: 20px; height: 20px; color: var(--mint); flex: none; margin-top: 2px; }

/* 富文本正文样式（后台 TinyMCE 录入的内容） */
.rich { font-size: 15.5px; color: var(--ink-2); }
.rich h1, .rich h2, .rich h3 { margin-top: 1.3em; }
.rich p { margin: 0 0 1em; }
.rich ul { list-style: disc; padding-inline-start: 1.4em; margin-bottom: 1em; }
.rich ol { padding-inline-start: 1.4em; margin-bottom: 1em; }
.rich img { border-radius: var(--radius); margin: 1em 0; }
.rich table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.rich table td, .rich table th { border: 1px solid var(--line); padding: 8px 10px; }

/* ---------------- 证书墙 ---------------- */
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cert-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
    text-align: center; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.cert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cert-card .img {
    aspect-ratio: 3 / 4; border-radius: var(--radius-s); overflow: hidden; background: var(--soft);
    display: grid; place-items: center; margin-bottom: 10px;
}
.cert-card .img img { width: 100%; height: 100%; object-fit: cover; }
.cert-card .img .ph { font-size: 30px; }
.cert-card b { display: block; font-size: 14px; }
.cert-card span { font-size: 12.5px; color: var(--muted); }

/* ---------------- 新闻卡 ---------------- */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.news-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card .thumb { aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; position: relative; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .thumb .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 32px; color: #c9d2e2; }
.news-card .top-flag {
    position: absolute; inset-block-start: 10px; inset-inline-start: 10px; background: var(--yellow);
    color: var(--ink); font-size: 11px; font-weight: 900; padding: 4px 10px; border-radius: 999px;
}
.news-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card .date { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.news-card h3 { font-size: 17px; margin: 0; }
.news-card p { color: var(--muted); font-size: 14px; margin: 0; }
.news-card .more { margin-top: auto; font-size: 13.5px; font-weight: 800; color: var(--brand); }

/* ---------------- 面包屑 / 页头 ---------------- */
.page-hero {
    background: linear-gradient(140deg, #fff4e6 0%, #fffdfa 55%, #eaf2ff 100%);
    padding: 46px 0 40px;
}
.page-hero h1 { font-size: clamp(24px, 4.6vw, 38px); margin-bottom: 8px; }
.page-hero p { color: var(--ink-2); margin: 0; max-width: 760px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: .5; }

/* ---------------- 产品筛选 ---------------- */
.filter-bar {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
    padding: 16px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-s);
}
.search-box { display: flex; gap: 8px; }
.search-box input {
    flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line);
    font-size: 15px; font-family: inherit; color: var(--ink); background: var(--soft);
}
.search-box input:focus { outline: none; border-color: var(--brand); background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
    font-size: 14px; font-weight: 700; color: var(--ink-2);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.result-line { font-size: 14px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------------- 分页 ---------------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 42px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14.5px; background: #fff;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .disabled { opacity: .45; }

/* ---------------- 产品详情：图片轮播 ---------------- */
.product-detail { display: grid; grid-template-columns: 1fr; gap: 34px; }
.gallery { min-width: 0; }
.gal-stage {
    position: relative; border: 1px solid var(--line); border-radius: var(--radius-l);
    overflow: hidden; background: #fff; aspect-ratio: 1 / 1;
}
.gal-track { display: flex; height: 100%; transition: transform .48s var(--ease); will-change: transform; }
.gallery.is-dragging .gal-track { transition: none; }
.gal-slide { flex: 0 0 100%; width: 100%; height: 100%; }
.gal-slide img {
    width: 100%; height: 100%; object-fit: cover;
    user-select: none; -webkit-user-drag: none;
}
.gal-nav {
    position: absolute; inset-block-start: 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);
    display: grid; place-items: center; cursor: pointer;
    box-shadow: var(--shadow-s); opacity: 0; transition: opacity .2s var(--ease), background .2s var(--ease);
}
.gal-nav svg { width: 20px; height: 20px; }
.gal-nav.prev { inset-inline-start: 14px; }
.gal-nav.next { inset-inline-end: 14px; }
.gal-stage:hover .gal-nav, .gal-nav:focus-visible { opacity: 1; }
.gal-nav:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
/* RTL：上/下一张的方向要镜像 */
html[dir="rtl"] .gal-nav.prev svg, html[dir="rtl"] .lb-nav.prev svg { transform: scaleX(-1); }

.gal-counter {
    position: absolute; inset-block-end: 14px; inset-inline-start: 14px;
    background: rgba(22, 33, 58, .74); color: #fff; font-size: 12.5px; font-weight: 700;
    padding: 5px 13px; border-radius: 999px; backdrop-filter: blur(4px);
}
.gal-counter b { font-weight: 900; }
.gal-zoom {
    position: absolute; inset-block-start: 14px; inset-inline-end: 14px;
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
    background: rgba(255, 255, 255, .94); color: var(--ink);
    display: grid; place-items: center; cursor: pointer;
    box-shadow: var(--shadow-s); transition: .2s var(--ease);
}
.gal-zoom svg { width: 18px; height: 18px; }
.gal-zoom:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.gal-new {
    position: absolute; inset-block-start: 14px; inset-inline-start: 14px;
    background: var(--pink); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .06em;
    padding: 5px 12px; border-radius: 999px; box-shadow: 0 8px 18px rgba(255, 93, 143, .35);
}
.gal-empty { height: 100%; display: grid; place-content: center; gap: 6px; text-align: center; }
.gal-empty .ph { font-size: 26px; font-weight: 900; color: #c9d2e2; letter-spacing: .04em; }
.gal-empty em { font-style: normal; font-size: 13px; color: var(--muted); }

.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button {
    width: 74px; height: 74px; border-radius: 14px; overflow: hidden; border: 2px solid var(--line);
    background: #fff; padding: 0; cursor: pointer; flex: none; transition: .2s var(--ease);
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------------- 产品详情：大图灯箱 ---------------- */
.lightbox {
    position: fixed; inset: 0; z-index: 90; background: rgba(12, 18, 32, .93);
    display: grid; place-items: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
body.lb-open { overflow: hidden; }
.lightbox img {
    max-width: min(1100px, 92vw); max-height: 86vh; width: auto; height: auto;
    object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow-l);
}
.lb-close {
    position: absolute; inset-block-start: 18px; inset-inline-end: 18px;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .12); color: #fff;
    display: grid; place-items: center; cursor: pointer; transition: .2s var(--ease);
}
.lb-nav {
    position: absolute; inset-block-start: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .12); color: #fff;
    display: grid; place-items: center; cursor: pointer; transition: .2s var(--ease);
}
.lb-nav.prev { inset-inline-start: 18px; }
.lb-nav.next { inset-inline-end: 18px; }
.lb-nav svg, .lb-close svg { width: 22px; height: 22px; }
.lb-nav:hover, .lb-close:hover { background: var(--brand); border-color: var(--brand); }
.lb-counter {
    position: absolute; inset-block-end: 22px; inset-inline-start: 50%; transform: translateX(-50%);
    color: rgba(255, 255, 255, .88); font-size: 13px; font-weight: 700;
}

/* ---------------- 产品详情：配置选择器 ---------------- */
.cfg {
    border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff;
    padding: 20px; margin: 4px 0 20px;
}
.cfg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cfg-head h2 { font-size: 19px; margin: 0; }
.cfg-reset {
    border: 1px solid var(--line); background: var(--soft); color: var(--muted);
    font-size: 12.5px; font-weight: 700; padding: 6px 13px; border-radius: 999px;
    cursor: pointer; transition: .2s var(--ease); font-family: inherit;
}
.cfg-reset:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.cfg-sub { font-size: 13.5px; color: var(--muted); margin: 6px 0 16px; }
.cfg-row { padding: 14px 0; border-top: 1px dashed var(--line); }
.cfg-row:first-of-type { border-top: 0; padding-top: 0; }
.cfg-label {
    font-size: 13px; font-weight: 800; color: var(--ink-2);
    margin-bottom: 9px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.cfg-hint {
    font-size: 12px; font-weight: 700; color: var(--muted);
    background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px;
}
.tag-list.std li { background: var(--soft); font-size: 13px; }

.cfg-opts { display: grid; grid-template-columns: 1fr; gap: 8px; }
.opt { display: block; cursor: pointer; position: relative; }
.opt input, .spec input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt-box {
    display: flex; align-items: center; gap: 10px;
    border: 1.5px solid var(--line); border-radius: var(--radius-s);
    padding: 10px 13px; font-size: 14px; background: #fff; transition: .18s var(--ease);
}
.opt-box:before {
    content: ''; flex: none; width: 17px; height: 17px; border-radius: 5px;
    border: 1.5px solid #c9d2e2; transition: .18s var(--ease);
}
.opt-name { flex: 1; font-weight: 600; }
.opt-price {
    flex: none; font-size: 12.5px; font-weight: 800; color: var(--brand-dark);
    background: var(--brand-soft); border: 1px solid #ffd0a3; border-radius: 999px; padding: 2px 10px;
}
.opt:hover .opt-box { border-color: #ffc493; }
.opt input:checked + .opt-box { border-color: var(--brand); background: var(--brand-soft); }
.opt input:checked + .opt-box:before {
    background: var(--brand); border-color: var(--brand); box-shadow: inset 0 0 0 3px #fff;
}
.opt input:focus-visible + .opt-box, .spec input:focus-visible + .spec-box {
    outline: 2px solid var(--blue); outline-offset: 2px;
}

.cfg-specs { display: flex; flex-wrap: wrap; gap: 8px; }
.spec { display: inline-block; cursor: pointer; position: relative; }
.spec-box {
    display: inline-flex; align-items: center;
    border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px;
    font-size: 13.5px; font-weight: 700; color: var(--ink-2); background: #fff;
    transition: .18s var(--ease);
}
.spec:hover .spec-box { border-color: #ffc493; }
.spec input:checked + .spec-box {
    border-color: var(--brand); background: var(--brand); color: #fff;
    box-shadow: 0 8px 16px rgba(255, 122, 26, .28);
}

.qty {
    display: inline-flex; align-items: center; overflow: hidden;
    border: 1.5px solid var(--line); border-radius: var(--radius-s); background: #fff;
}
.qty-btn {
    width: 42px; height: 42px; border: 0; background: var(--soft); color: var(--ink);
    font-size: 18px; font-weight: 800; cursor: pointer; transition: .18s var(--ease); font-family: inherit;
}
.qty-btn:hover { background: var(--brand-soft); color: var(--brand-dark); }
.qty input {
    width: 92px; height: 42px; border: 0; text-align: center;
    font-size: 15px; font-weight: 800; color: var(--ink); font-family: inherit; background: #fff;
}
.qty input:focus { outline: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input[type=number] { -moz-appearance: textfield; }
.qty-unit { font-size: 13px; font-weight: 700; color: var(--muted); padding-inline-end: 14px; }

.cfg-price { margin-top: 14px; border: 1px dashed #ffd0a3; background: var(--brand-soft); border-radius: var(--radius); padding: 14px 16px; }
.cfg-price.is-loading { opacity: .6; }
.price-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); padding: 3px 0; }
.price-line span i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); margin-inline-start: 4px; }
.price-line b { font-size: 16px; font-weight: 900; color: var(--brand-dark); }
.price-line .tier-text { font-size: 13.5px; font-weight: 800; color: #0b7a4d; }
.price-total {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    border-top: 1px solid #ffd9b5; margin-top: 8px; padding-top: 10px;
    font-size: 14px; font-weight: 800; color: var(--ink);
}
.price-total b { font-size: 22px; font-weight: 900; color: var(--brand-dark); }
.cfg-ask { margin: 0; font-size: 13.5px; color: var(--ink-2); }

.cfg-summary { margin-top: 14px; }
.cfg-summary-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.cfg-summary-list li { display: flex; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.cfg-summary-list li b { flex: none; font-weight: 700; color: var(--muted); }
.cfg-summary-list li.empty { color: var(--muted); font-style: italic; }
.cfg-actions { display: flex; gap: 10px; margin-top: 16px; }
.cfg-actions .cfg-cta { flex: 1 1 0; margin-top: 0; justify-content: center; }
.cfg-actions .btn { padding-inline: 14px; }
.btn-wa {
    background: #25d366; color: #fff; border-color: #25d366; font-weight: 800;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-wa:hover { background: #1ebe5d; border-color: #1ebe5d; color: #fff; }
.btn-wa svg { width: 18px; height: 18px; flex: none; }
.cfg-wa span { white-space: nowrap; }
@media (max-width: 420px) {
    .cfg-actions { flex-direction: column; }
    .cfg-actions .cfg-cta { width: 100%; }
}

.detail-info .code-tag {
    display: inline-flex; align-items: center; gap: 8px; background: var(--blue-soft); color: var(--blue);
    font-size: 13px; font-weight: 800; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.detail-info h1 { font-size: clamp(23px, 4.4vw, 34px); }
.detail-info .sub { color: var(--muted); font-size: 15.5px; }
.quick-specs { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 16px 0 20px; }
.quick-specs li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.quick-specs b { color: var(--ink); min-width: 8.5em; font-weight: 700; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; text-align: start; }
.spec-table th { background: var(--soft); font-weight: 800; width: 40%; color: var(--ink); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.tile-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px; }
.card-block > h2, .card-block > h3 { font-size: 19px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
    background: var(--soft); border: 1px solid var(--line); border-radius: 999px;
    padding: 7px 14px; font-size: 13.5px; color: var(--ink-2);
}
.tag-list.option li { background: var(--mint-soft); border-color: #bdf0da; color: #0b7a4d; font-weight: 700; }
.tag-list.option li em { font-style: normal; color: var(--brand-dark); margin-inline-start: 6px; }
.tier-table { width: 100%; border-collapse: collapse; }
.tier-table th, .tier-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; font-size: 14.5px; }
.tier-table th { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tier-table td b { color: var(--brand-dark); }
.tier-table tr.mine { background: var(--brand-soft); }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------------- 询盘表单 ---------------- */
.inquiry-wrap { background: linear-gradient(150deg, #fff5e9 0%, #fff 60%, #eef5ff 100%); }
.form-card { background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow); padding: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 6px; color: var(--ink-2); }
.field label .req { color: var(--pink); }
.field input, .field textarea, .field select {
    width: 100%; padding: 12px 14px; border-radius: var(--radius-s); border: 1px solid var(--line);
    font-size: 15px; font-family: inherit; color: var(--ink); background: var(--soft); transition: border-color .16s var(--ease), background .16s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.form-msg { display: none; margin-top: 14px; padding: 13px 16px; border-radius: var(--radius-s); font-size: 14.5px; font-weight: 700; }
.form-msg.ok { display: block; background: var(--mint-soft); color: #0b7a4d; }
.form-msg.err { display: block; background: #ffecef; color: #c0244a; }
.honey { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.contact-item .ico {
    width: 42px; height: 42px; border-radius: 13px; background: var(--brand-soft); display: grid; place-items: center;
    font-size: 19px; flex: none;
}
.contact-item .k { font-size: 12.5px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.contact-item .v { font-size: 15.5px; font-weight: 700; word-break: break-word; }
.map-embed { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------------- CTA 横条 ---------------- */
.cta-band { background: linear-gradient(120deg, var(--brand) 0%, #ff9d3d 48%, var(--yellow) 100%); color: #fff; padding: 48px 0; }
.cta-band .container { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.cta-band h2 { font-size: clamp(22px, 4vw, 32px); margin: 0; }
.cta-band p { margin: 0; opacity: .95; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------------- 页脚 ---------------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .74); padding: 52px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; padding-bottom: 34px; }
.footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 14px; }
.footer a { color: rgba(255, 255, 255, .74); }
.footer a:hover { color: var(--yellow); }
.footer-links li { margin-bottom: 9px; }
.footer .brand-line { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer .brand-line .logo-mark { box-shadow: none; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: var(--yellow); flex: none; margin-top: 3px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; font-size: 13px;
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
}
.socials { display: flex; gap: 10px; }
.socials a {
    width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .1);
    display: grid; place-items: center; font-size: 13px; font-weight: 800;
}
.socials a:hover { background: var(--brand); color: #fff; }

/* 移动端吸底联系条 */
.mobile-bar {
    position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 80;
    background: #fff; border-top: 1px solid var(--line); padding: 8px 10px;
    display: flex; gap: 8px; box-shadow: 0 -6px 20px rgba(22, 33, 58, .07);
}
.mobile-bar a {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 8px; border-radius: 12px; font-size: 14px; font-weight: 800;
}
.mobile-bar .mb-main { background: var(--brand); color: #fff; }
.mobile-bar .mb-alt { background: var(--soft); color: var(--ink); }

/* 回到顶部 */
.to-top {
    position: fixed; inset-block-end: 84px; inset-inline-end: 16px; z-index: 70;
    width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer;
    background: var(--ink); color: #fff; font-size: 18px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), visibility .2s;
}
.to-top.show { opacity: 1; visibility: visible; }

/* ---------------- 分页/其它工具类 ---------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hide { display: none !important; }
.fade-up { animation: fadeUp .5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ============================================================
   响应式：>=640px 平板，>=900px 桌面，>=1200px 大屏
   ============================================================ */
@media (min-width: 640px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-grid { grid-template-columns: repeat(3, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .form-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid .full { grid-column: 1 / -1; }
    .quick-specs { grid-template-columns: repeat(2, 1fr); }
    .cfg-opts { grid-template-columns: repeat(2, 1fr); }
    .tile-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .form-card { padding: 32px; }
}

@media (min-width: 900px) {
    .section { padding: 84px 0; }
    .hero { padding: 84px 0 92px; }
    .hero .container { grid-template-columns: 1.06fr .94fr; gap: 56px; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .why-grid { grid-template-columns: repeat(4, 1fr); }
    .cert-grid { grid-template-columns: repeat(4, 1fr); }
    .news-grid { grid-template-columns: repeat(3, 1fr); }
    .factory { grid-template-columns: 1fr 1fr; }
    .product-detail { grid-template-columns: 1.02fr .98fr; gap: 44px; }
    .contact-grid { grid-template-columns: 1.1fr .9fr; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
    .cta-band .container { flex-direction: row; justify-content: space-between; text-align: start; }
    .mobile-bar { display: none; }
    .to-top { inset-block-end: 24px; }
    .cat-card .thumb { aspect-ratio: 4 / 3; }
}

@media (min-width: 1200px) {
    .product-grid { gap: 20px; }
    .hero h1 { font-size: 54px; }
}

/* 触屏设备：没有 hover，轮播箭头常显；灯箱箭头缩小一点 */
@media (hover: none) {
    .gal-nav { opacity: 1; }
}
@media (max-width: 639px) {
    .gal-nav { width: 36px; height: 36px; }
    .gal-nav.prev { inset-inline-start: 8px; }
    .gal-nav.next { inset-inline-end: 8px; }
    .lb-nav { width: 40px; height: 40px; }
    .lb-nav.prev { inset-inline-start: 8px; }
    .lb-nav.next { inset-inline-end: 8px; }
    .qty input { width: 74px; }
    .price-total b { font-size: 19px; }
}

/* 小屏（手机）：导航收起为抽屉 */
@media (max-width: 899px) {
    .nav, .header-cta .btn { display: none; }
    .burger { display: inline-flex; }
    .header-cta { margin-inline-start: auto; }
    body { padding-bottom: 62px; }   /* 给吸底联系条留位 */
    .logo { font-size: 17px; }
    .logo-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 17px; }
    .hero-visual .float-card { font-size: 13px; padding: 9px 12px; }
    .topbar-list li:nth-child(n+2) { display: none; }
}

/* 打印：隐藏交互元素 */
@media print {
    .header, .footer, .mobile-bar, .to-top, .drawer, .drawer-mask, .topbar { display: none !important; }
    body { padding: 0; }
}
