/* ==========================================================================
   合润鼎门窗官网 · 前台样式
   自建，不依赖 WordPress 主题，不引入外部 CDN（国内访问稳定）
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
    /* 主色：防火行业的沉稳红，用于强调与转化按钮 */
    --c-primary: #b8232f;
    --c-primary-dark: #8f1a24;
    --c-primary-light: #fdeeef;

    /* 中性色：深灰蓝承载专业工业感 */
    --c-ink: #1c2530;
    --c-ink-2: #3d4a58;
    --c-muted: #6b7785;
    --c-border: #e4e8ec;
    --c-bg: #ffffff;
    --c-bg-soft: #f6f7f9;

    /* 辅助 */
    --c-accent: #d99a2b;
    --c-success: #1f9254;
    --c-danger: #c0392b;

    /* 尺寸 */
    --w-container: 1240px;
    --radius: 8px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-md: 0 6px 20px rgba(16, 24, 40, .08);
    --shadow-lg: 0 18px 44px rgba(16, 24, 40, .14);

    --header-h: 76px;
    --transition: .22s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: var(--c-ink);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-weight: 700; line-height: 1.35; color: var(--c-ink); }
h1 { font-size: clamp(26px, 3.6vw, 40px); }
h2 { font-size: clamp(22px, 2.8vw, 32px); }
h3 { font-size: clamp(17px, 2vw, 21px); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-primary-dark); }

img { max-width: 100%; height: auto; display: block; border: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }

table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; }
th, td { border: 1px solid var(--c-border); padding: 10px 12px; text-align: left; vertical-align: middle; }
th { background: var(--c-bg-soft); font-weight: 600; }
tbody tr:nth-child(even) { background: #fafbfc; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

/* 无障碍：仅供屏幕阅读器 */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--c-primary); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 布局 ---------- */
.container {
    width: 100%;
    max-width: var(--w-container);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 64px 0; }
.section--soft { background: var(--c-bg-soft); }
.section--tight { padding: 40px 0; }

.section-head { margin-bottom: 34px; }
.section-head__title { position: relative; padding-bottom: 14px; margin-bottom: 10px; }
.section-head__title::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 46px; height: 3px; background: var(--c-primary); border-radius: 2px;
}
.section-head--center { text-align: center; }
.section-head--center .section-head__title::after { left: 50%; transform: translateX(-50%); }
.section-head__sub { color: var(--c-muted); font-size: 15px; max-width: 720px; }
.section-head--center .section-head__sub { margin: 0 auto; }
.section-head__row {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 26px; border-radius: var(--radius); border: 1px solid transparent;
    font-size: 15px; font-weight: 600; line-height: 1.4; cursor: pointer;
    transition: all var(--transition); text-align: center; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn--dark { background: var(--c-ink); color: #fff; }
.btn--dark:hover { background: #2c3846; color: #fff; }

.btn--outline { background: transparent; border-color: var(--c-primary); color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: #fff; }

.btn--ghost { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--c-ink); }

.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--lg { padding: 15px 34px; font-size: 16px; }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- 顶部信息条 ---------- */
.topbar {
    background: var(--c-ink); color: #cdd5de; font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 40px; }
.topbar__left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar__item a { color: #cdd5de; }
.topbar__item a:hover { color: #fff; }
.topbar__slogan { color: #94a3b2; overflow: hidden; text-overflow: ellipsis; }
.topbar__right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* 语言切换 */
.lang-switch { display: inline-flex; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; overflow: hidden; }
.lang-switch__item { padding: 3px 12px; font-size: 12px; color: #cdd5de; line-height: 1.5; }
.lang-switch__item:hover { color: #fff; }
.lang-switch__item.is-active { background: var(--c-primary); color: #fff; }

/* ---------- 主导航 ---------- */
.header {
    position: sticky; top: 0; z-index: 100;
    background: #fff; border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
}
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo__mark {
    width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 17px; letter-spacing: -.5px;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.logo__name { font-size: 19px; font-weight: 800; color: var(--c-ink); letter-spacing: .5px; white-space: nowrap; }
.logo__slogan { font-size: 11px; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo:hover .logo__name { color: var(--c-primary); }
.logo img { max-height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__item { position: relative; }
.nav__link {
    display: block; padding: 10px 15px; font-size: 15px; font-weight: 500;
    color: var(--c-ink-2); border-radius: var(--radius); transition: all var(--transition);
    white-space: nowrap;
}
.nav__link:hover { color: var(--c-primary); background: var(--c-primary-light); }
.nav__item.is-active > .nav__link { color: var(--c-primary); font-weight: 700; }
.nav__item.is-active > .nav__link::after {
    content: ''; display: block; height: 2px; margin-top: 4px;
    background: var(--c-primary); border-radius: 1px;
}

/* 下拉菜单 */
.nav__sub {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
    min-width: 220px; padding: 8px; background: #fff;
    border: 1px solid var(--c-border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden;
    transition: all var(--transition); list-style: none; margin: 0; z-index: 10;
}
.nav__sub::before {
    content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__sub li { margin: 0; }
.nav__sub a {
    display: block; padding: 9px 12px; font-size: 14px; color: var(--c-ink-2);
    border-radius: 6px; white-space: nowrap;
}
.nav__sub a:hover { background: var(--c-primary-light); color: var(--c-primary); }
.nav__sub a small { display: block; color: var(--c-muted); font-size: 12px; line-height: 1.5; white-space: normal; }

.header__cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header__phone { display: flex; flex-direction: column; line-height: 1.3; }
.header__phone-label { font-size: 11px; color: var(--c-muted); }
.header__phone-value { font-size: 17px; font-weight: 800; color: var(--c-primary); letter-spacing: .3px; }

/* 移动端菜单按钮 */
.nav-toggle {
    display: none; width: 42px; height: 42px; padding: 0; margin-left: auto;
    background: transparent; border: 1px solid var(--c-border); border-radius: var(--radius);
    cursor: pointer; position: relative;
}
.nav-toggle__bar { display: block; width: 18px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: all var(--transition); }
.nav-toggle__bar + .nav-toggle__bar { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--c-ink); color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img, .hero__bg video { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.hero__bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(20, 26, 34, .94) 0%, rgba(20, 26, 34, .78) 45%, rgba(184, 35, 47, .38) 100%);
}
.hero__inner { position: relative; z-index: 1; padding: 78px 0 84px; }
.hero__badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px; margin-bottom: 20px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px; font-size: 13px; color: #e8edf2; backdrop-filter: blur(6px);
}
.hero__title { color: #fff; font-size: clamp(28px, 4.4vw, 48px); line-height: 1.25; margin-bottom: 18px; max-width: 20em; }
.hero__title em { font-style: normal; color: #ffb3ba; }
.hero__sub { font-size: clamp(14px, 1.5vw, 17px); color: #c6cfd9; max-width: 62ch; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__points { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 38px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .16); }
.hero__point { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #dbe2e9; }
.hero__point svg { flex-shrink: 0; color: #7ee0a3; }

/* ---------- 统计条 ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--c-border); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--c-border); }
.stat {
    background: #fff; padding: 26px 18px; text-align: center;
    transition: background var(--transition);
}
.stat:hover { background: var(--c-bg-soft); }
.stat__value { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--c-primary); line-height: 1.2; }
.stat__label { font-size: 13px; color: var(--c-muted); margin-top: 6px; }

/* ---------- 分类卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
    position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--c-ink); aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-card__img { position: absolute; inset: 0; }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; opacity: .62; }
.cat-card:hover .cat-card__img img { transform: scale(1.07); opacity: .5; }
.cat-card__body {
    position: absolute; inset: auto 0 0 0; padding: 18px;
    background: linear-gradient(to top, rgba(12, 16, 21, .92), transparent);
    color: #fff;
}
.cat-card__title { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.cat-card__desc { font-size: 13px; color: #c9d2dc; line-height: 1.6; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-card__more { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; font-size: 13px; color: #ffb3ba; font-weight: 600; }

/* ---------- 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }

.p-card {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden;
    transition: all var(--transition); height: 100%;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d9dee4; }
.p-card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--c-bg-soft); overflow: hidden; }
.p-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.p-card:hover .p-card__media img { transform: scale(1.06); }
.p-card__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.badge {
    padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
    color: #fff; background: var(--c-primary); letter-spacing: .3px;
}
.badge--new { background: var(--c-success); }
.badge--cat { background: rgba(28, 37, 48, .82); backdrop-filter: blur(4px); font-weight: 500; }

.p-card__body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; }
.p-card__title {
    font-size: 15px; font-weight: 600; line-height: 1.5; margin-bottom: 7px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.9em;
}
.p-card__title a { color: var(--c-ink); }
.p-card:hover .p-card__title a { color: var(--c-primary); }
.p-card__specs { font-size: 12.5px; color: var(--c-muted); margin-bottom: 13px; line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-card__cat { font-size: 12px; color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 案例卡片 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 11; background: var(--c-ink); box-shadow: var(--shadow-sm); transition: all var(--transition); }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-card img { width: 100%; height: 100%; object-fit: cover; opacity: .74; transition: all .45s ease; }
.case-card:hover img { opacity: .55; transform: scale(1.06); }
.case-card__body { position: absolute; inset: auto 0 0 0; padding: 18px; background: linear-gradient(to top, rgba(10, 14, 19, .93), transparent); }
.case-card__title { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.case-card__meta { font-size: 12.5px; color: #bcc6d1; }

/* ---------- 新闻列表 ---------- */
.news-list { display: flex; flex-direction: column; gap: 18px; }
.news-item {
    display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center;
    padding: 16px; background: #fff; border: 1px solid var(--c-border);
    border-radius: var(--radius-lg); transition: all var(--transition);
}
.news-item:hover { box-shadow: var(--shadow-md); border-color: #d9dee4; transform: translateX(3px); }
.news-item__media { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--c-bg-soft); }
.news-item__media img { width: 100%; height: 100%; object-fit: cover; }
.news-item__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.45; }
.news-item__title a { color: var(--c-ink); }
.news-item:hover .news-item__title a { color: var(--c-primary); }
.news-item__excerpt { font-size: 14px; color: var(--c-muted); line-height: 1.7; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--c-muted); }
.news-item__meta time { display: inline-flex; align-items: center; gap: 5px; }

.tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--c-primary-light); color: var(--c-primary); font-size: 12px; font-weight: 600; }
.tag--muted { background: var(--c-bg-soft); color: var(--c-muted); font-weight: 500; }

/* 首页紧凑新闻 */
.news-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.news-mini__item { display: flex; gap: 14px; padding: 13px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); transition: all var(--transition); }
.news-mini__item:hover { box-shadow: var(--shadow-sm); border-color: #d9dee4; }
.news-mini__thumb { width: 88px; height: 66px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--c-bg-soft); }
.news-mini__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-mini__body { min-width: 0; flex: 1; }
.news-mini__title { font-size: 14px; font-weight: 600; line-height: 1.55; margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-mini__title a { color: var(--c-ink); }
.news-mini__item:hover .news-mini__title a { color: var(--c-primary); }
.news-mini__date { font-size: 12px; color: var(--c-muted); }

/* ---------- 面包屑 & 页头 ---------- */
.page-head { background: linear-gradient(115deg, var(--c-ink) 0%, #2c3a4a 100%); color: #fff; padding: 44px 0 0; position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(184, 35, 47, .2); }
.page-head__inner { position: relative; z-index: 1; }
.page-head__title { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.page-head__sub { color: #b9c3cf; font-size: 14.5px; max-width: 70ch; margin-bottom: 22px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: #9fabb8; padding-bottom: 18px; }
.breadcrumb a { color: #c6cfd9; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb__sep { opacity: .5; }
.breadcrumb__current { color: #eef2f6; }

/* ---------- 筛选栏 ---------- */
.filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); margin-bottom: 26px; }
.filter-bar__label { font-size: 13px; color: var(--c-muted); font-weight: 600; flex-shrink: 0; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; padding: 6px 15px; border-radius: 999px; border: 1px solid var(--c-border); background: #fff; font-size: 13.5px; color: var(--c-ink-2); transition: all var(--transition); cursor: pointer; }
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.chip.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 600; }
.filter-bar__spacer { flex: 1; }
.filter-bar__count { font-size: 13px; color: var(--c-muted); }

/* 搜索框 */
.search-form { display: flex; gap: 0; }
.search-form__input {
    padding: 9px 14px; border: 1px solid var(--c-border); border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius); font-size: 13.5px; min-width: 170px; background: #fff;
}
.search-form__input:focus { outline: none; border-color: var(--c-primary); }
.search-form__btn { padding: 9px 18px; border: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--c-primary); color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background var(--transition); }
.search-form__btn:hover { background: var(--c-primary-dark); }

/* 排序下拉 */
.select { padding: 8px 12px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; font-size: 13.5px; cursor: pointer; }
.select:focus { outline: none; border-color: var(--c-primary); }

/* ---------- 产品详情页 ---------- */
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 42px; align-items: start; }

.gallery { position: sticky; top: calc(var(--header-h) + 22px); }
.gallery__main {
    position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--c-bg-soft); border: 1px solid var(--c-border); margin-bottom: 12px;
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gallery__nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
    border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--c-ink);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); transition: all var(--transition); z-index: 2;
}
.gallery__nav:hover { background: var(--c-primary); color: #fff; }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__count { position: absolute; right: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; z-index: 2; }

.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; }
.gallery__thumb {
    aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; border: 2px solid transparent;
    background: var(--c-bg-soft); cursor: pointer; padding: 0; transition: all var(--transition);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { border-color: #cbd3db; }
.gallery__thumb.is-active { border-color: var(--c-primary); }

.p-info__title { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 12px; line-height: 1.35; }
.p-info__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; font-size: 13px; color: var(--c-muted); }
.p-info__summary { font-size: 15px; color: var(--c-ink-2); line-height: 1.8; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--c-border); }

/* 规格参数表 */
.spec-box { border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.spec-box__head { padding: 12px 18px; background: var(--c-bg-soft); border-bottom: 1px solid var(--c-border); font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.spec-box__head::before { content: ''; width: 3px; height: 15px; background: var(--c-primary); border-radius: 2px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; }
.spec-table tr { border-bottom: 1px solid var(--c-border); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th { width: 30%; padding: 11px 18px; background: #fafbfc; color: var(--c-muted); font-weight: 600; text-align: left; border: 0; border-right: 1px solid var(--c-border); white-space: nowrap; }
.spec-table td { padding: 11px 18px; border: 0; color: var(--c-ink-2); }
.spec-table tbody tr:nth-child(even) { background: transparent; }
.spec-table tbody tr:hover { background: var(--c-primary-light); }

/* 咨询卡片 */
.inquiry-card { padding: 22px; background: linear-gradient(135deg, var(--c-primary-light), #fff); border: 1px solid #f0d5d7; border-radius: var(--radius-lg); }
.inquiry-card__title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.inquiry-card__desc { font-size: 13.5px; color: var(--c-muted); margin-bottom: 16px; }
.inquiry-card__phone { display: flex; align-items: baseline; gap: 9px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed #e6c8ca; }
.inquiry-card__phone-label { font-size: 13px; color: var(--c-muted); }
.inquiry-card__phone-value { font-size: 25px; font-weight: 800; color: var(--c-primary); letter-spacing: .5px; }
.inquiry-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.inquiry-card__note { font-size: 12.5px; color: var(--c-muted); margin-top: 12px; }

/* 详情正文 */
.rich-content { font-size: 15px; line-height: 1.9; color: var(--c-ink-2); }
.rich-content h3 { font-size: 19px; margin: 1.7em 0 .7em; padding-left: 12px; border-left: 4px solid var(--c-primary); color: var(--c-ink); }
.rich-content p { margin-bottom: 1.1em; }
.rich-content img { border-radius: var(--radius); margin: 18px auto; box-shadow: var(--shadow-sm); }
.rich-content ul, .rich-content ol { margin-bottom: 1.1em; }
.rich-content strong { color: var(--c-ink); font-weight: 700; }
.rich-content blockquote { margin: 1.4em 0; padding: 14px 18px; background: var(--c-bg-soft); border-left: 3px solid var(--c-primary); border-radius: 0 var(--radius) var(--radius) 0; color: var(--c-ink-2); }
.rich-content table { font-size: 13.5px; }
.rich-content a { text-decoration: underline; text-underline-offset: 2px; }
.rich-content > *:first-child { margin-top: 0; }

/* 上下篇导航 */
.pager-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--c-border); }
.pager-nav__item { display: block; padding: 14px 17px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); transition: all var(--transition); }
.pager-nav__item:hover { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.pager-nav__label { font-size: 12px; color: var(--c-muted); margin-bottom: 5px; }
.pager-nav__title { font-size: 14px; font-weight: 600; color: var(--c-ink); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pager-nav__item:hover .pager-nav__title { color: var(--c-primary); }
.pager-nav__item--next { text-align: right; }

/* ---------- 文章页 ---------- */
.article { max-width: 860px; margin: 0 auto; }
.article__head { text-align: center; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--c-border); }
.article__title { font-size: clamp(22px, 3vw, 32px); line-height: 1.4; margin-bottom: 14px; }
.article__meta { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--c-muted); }
.article__meta span { display: inline-flex; align-items: center; gap: 5px; }
.article__cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 26px; box-shadow: var(--shadow-sm); }

/* ---------- 表单 ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field__label { font-size: 14px; font-weight: 600; color: var(--c-ink); }
.field__label .req { color: var(--c-danger); margin-left: 2px; }
.field__hint { font-size: 12.5px; color: var(--c-muted); }
.field__control, .field input[type="text"], .field input[type="tel"],
.field input[type="email"], .field select, .field textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--c-border); border-radius: var(--radius);
    background: #fff; font-size: 14.5px; transition: all var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(184, 35, 47, .1);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.field--error input, .field--error textarea, .field--error select { border-color: var(--c-danger); }
.field__error { font-size: 12.5px; color: var(--c-danger); }

/* 蜜罐字段：视觉上完全隐藏，仅机器人会填写 */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.alert { padding: 13px 17px; border-radius: var(--radius); font-size: 14px; line-height: 1.65; border: 1px solid transparent; }
.alert--success { background: #eaf7ef; border-color: #bfe4cd; color: #1a6b40; }
.alert--error { background: #fdeeee; border-color: #f2c9c9; color: #a02c2c; }
.alert--info { background: #eef4fb; border-color: #c8dcf2; color: #2c5c8f; }

/* ---------- 分页 ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 42px; }
.pagination__item { min-width: 38px; height: 38px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; font-size: 14px; color: var(--c-ink-2); transition: all var(--transition); }
.pagination__item:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pagination__item.is-current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 700; pointer-events: none; }
.pagination__item.is-disabled { opacity: .45; pointer-events: none; }
.pagination__gap { padding: 0 5px; color: var(--c-muted); }

/* ---------- 空状态 ---------- */
.empty { padding: 66px 24px; text-align: center; background: #fff; border: 1px dashed var(--c-border); border-radius: var(--radius-lg); }
.empty__icon { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; background: var(--c-bg-soft); display: flex; align-items: center; justify-content: center; color: var(--c-muted); }
.empty__text { font-size: 15px; color: var(--c-muted); margin-bottom: 18px; }

/* ---------- 侧栏（文章页）---------- */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 22px); display: flex; flex-direction: column; gap: 20px; }
.side-box { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; }
.side-box__head { padding: 13px 17px; background: var(--c-bg-soft); border-bottom: 1px solid var(--c-border); font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.side-box__head::before { content: ''; width: 3px; height: 14px; background: var(--c-primary); border-radius: 2px; }
.side-box__body { padding: 12px 17px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { margin: 0; border-bottom: 1px solid var(--c-border); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { display: block; padding: 10px 0; font-size: 14px; color: var(--c-ink-2); line-height: 1.55; }
.side-list a:hover { color: var(--c-primary); }
.side-contact { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.side-contact__row { display: flex; gap: 9px; align-items: flex-start; }
.side-contact__label { color: var(--c-muted); flex-shrink: 0; min-width: 4em; }
.side-contact__value { color: var(--c-ink); word-break: break-all; }
.side-contact__value.is-phone { font-size: 18px; font-weight: 800; color: var(--c-primary); }

/* ---------- CTA 横幅 ---------- */
.cta-banner { position: relative; background: linear-gradient(115deg, var(--c-primary-dark), var(--c-primary) 60%, #d13b45); color: #fff; padding: 52px 0; overflow: hidden; }
.cta-banner::after { content: ''; position: absolute; right: -80px; bottom: -100px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.cta-banner__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-banner__title { color: #fff; font-size: clamp(20px, 2.5vw, 28px); margin-bottom: 7px; }
.cta-banner__desc { color: rgba(255, 255, 255, .88); font-size: 14.5px; margin: 0; }
.cta-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-banner__phone { font-size: clamp(21px, 2.6vw, 30px); font-weight: 800; color: #fff; letter-spacing: .6px; }

/* ---------- 悬浮联系组件 ---------- */
.float-contact { position: fixed; right: 18px; bottom: 96px; z-index: 90; display: flex; flex-direction: column; gap: 9px; }
.float-contact__item {
    position: relative; width: 48px; height: 48px; border-radius: 50%;
    background: #fff; border: 1px solid var(--c-border); color: var(--c-ink-2);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); cursor: pointer; transition: all var(--transition);
}
.float-contact__item:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; transform: translateY(-2px); }
.float-contact__item a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: inherit; }
.float-contact__pop {
    position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(8px);
    padding: 13px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all var(--transition);
    white-space: nowrap; text-align: center;
}
.float-contact__item:hover .float-contact__pop { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.float-contact__pop img { width: 132px; height: 132px; object-fit: contain; margin-bottom: 7px; }
.float-contact__pop-text { font-size: 12.5px; color: var(--c-muted); }
.float-contact__pop-phone { font-size: 17px; font-weight: 800; color: var(--c-primary); }

.to-top {
    position: fixed; right: 18px; bottom: 30px; z-index: 90; width: 48px; height: 48px;
    border-radius: 50%; border: 1px solid var(--c-border); background: #fff; color: var(--c-ink-2);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transition: all var(--transition);
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ---------- 页脚 ---------- */
.footer { background: #161d26; color: #a3aeb9; font-size: 14px; }
.footer__main { padding: 52px 0 34px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 38px; }
.footer__title { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 18px; padding-bottom: 11px; border-bottom: 1px solid rgba(255, 255, 255, .11); }
.footer__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.footer__brand-mark { width: 40px; height: 40px; border-radius: 9px; background: var(--c-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; flex-shrink: 0; }
.footer__brand-name { color: #fff; font-size: 18px; font-weight: 700; line-height: 1.3; }
.footer__desc { line-height: 1.8; color: #93a0ac; margin-bottom: 15px; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: 9px; }
.footer__links a { color: #a3aeb9; font-size: 14px; transition: color var(--transition); }
.footer__links a:hover { color: #fff; }
.footer__contact { list-style: none; margin: 0; padding: 0; }
.footer__contact li { display: flex; gap: 10px; margin-bottom: 13px; line-height: 1.65; }
.footer__contact svg { flex-shrink: 0; margin-top: 3px; color: var(--c-primary); }
.footer__contact strong { color: #fff; font-weight: 700; }
.footer__qr { display: flex; gap: 14px; margin-top: 16px; }
.footer__qr-item { text-align: center; }
.footer__qr-item img { width: 96px; height: 96px; border-radius: 7px; background: #fff; padding: 5px; }
.footer__qr-item span { display: block; margin-top: 6px; font-size: 12px; color: #93a0ac; }
.footer__bottom { padding: 17px 0; border-top: 1px solid rgba(255, 255, 255, .11); font-size: 13px; color: #7d8994; }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__bottom a { color: #8d99a5; }
.footer__bottom a:hover { color: #fff; }
.footer__records { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 工具类 ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--c-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* 淡入动画
   必须限定在 .js 下：若 JS 未加载（禁用、加载失败、爬虫），
   [data-reveal] 会永远停在 opacity:0，导致整页内容不可见，
   既影响无障碍也影响搜索引擎收录。html.js 由 site.js 立即注入。 */
@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
    .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
    .product-grid, .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .layout-sidebar { grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; }
}

@media (max-width: 940px) {
    :root { --header-h: 64px; }
    .section { padding: 48px 0; }
    .topbar__slogan, .header__phone { display: none; }
    .product-detail { grid-template-columns: 1fr; gap: 30px; }
    .gallery { position: static; }
    .layout-sidebar { grid-template-columns: 1fr; }
    .sidebar { position: static; }

    /* 移动端导航 */
    .nav-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; }
    .nav {
        position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
        flex-direction: column; align-items: stretch; gap: 0;
        max-height: calc(100vh - var(--header-h)); overflow-y: auto;
        background: #fff; border-bottom: 1px solid var(--c-border);
        box-shadow: var(--shadow-lg); padding: 10px 16px 22px; margin: 0;
        transform: translateY(-12px); opacity: 0; visibility: hidden;
        transition: all var(--transition);
    }
    .nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .nav__item { border-bottom: 1px solid var(--c-border); }
    .nav__item:last-child { border-bottom: 0; }
    .nav__link { padding: 13px 4px; font-size: 15.5px; border-radius: 0; }
    .nav__item.is-active > .nav__link::after { display: none; }
    .nav__sub {
        position: static; transform: none; opacity: 1; visibility: visible;
        min-width: 0; padding: 0 0 10px; border: 0; box-shadow: none; background: transparent;
    }
    .nav__sub::before { display: none; }
    .nav__sub a { padding: 8px 4px 8px 14px; font-size: 14px; }
    .header__cta .btn { display: none; }
}

@media (max-width: 720px) {
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid, .cat-grid, .case-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .news-mini { grid-template-columns: 1fr; }
    .news-item { grid-template-columns: 1fr; gap: 13px; padding: 13px; }
    .news-item__media { aspect-ratio: 16 / 9; }
    .form__row { grid-template-columns: 1fr; gap: 16px; }
    .pager-nav { grid-template-columns: 1fr; }
    .pager-nav__item--next { text-align: left; }
    .hero__inner { padding: 52px 0 58px; }
    .hero__points { gap: 16px; }
    .footer__grid { grid-template-columns: 1fr; gap: 26px; }
    .float-contact { right: 12px; bottom: 84px; }
    .to-top { right: 12px; bottom: 24px; }
    .float-contact__item, .to-top { width: 44px; height: 44px; }
    .spec-table th { width: 34%; padding: 9px 12px; }
    .spec-table td { padding: 9px 12px; }
    .filter-bar { padding: 13px; }
    .cta-banner__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
    .product-grid, .cat-grid, .case-grid { grid-template-columns: 1fr; }
    .container { padding: 0 15px; }
    .logo__slogan { display: none; }
    .topbar__left .topbar__item:not(:first-child) { display: none; }
}

/* ---------- 打印 ---------- */
@media print {
    .header, .topbar, .footer, .float-contact, .to-top, .cta-banner, .gallery__nav, .pager-nav, .breadcrumb { display: none !important; }
    body { font-size: 12pt; color: #000; }
    .section { padding: 12px 0; }
    .rich-content img { max-width: 60%; }
    a::after { content: ''; }
}
