/* ============================================================
   Amaze Auto Parts - 前台样式（原新三星 skr 体系，品牌化改造）
   体系：单文件 skr.css；品牌红 #C2131C + 深黑 #1a1a1a
   响应式断点：1024 / 900 / 768 / 560 / 480 / 360
   版本：v2.6 (?v=51) —— 分类页内容区改为 1160px（对齐设计稿 1920 基准的三列大卡）
   ============================================================ */

:root {
    --brand-red: #C2131C;
    --brand-red-dark: #a01017;
    --brand-dark: #1a1a1a;
    --text-dark: #222;
    --text-gray: #8a8a8a;
    --bg-light: #f5f5f5;
    --bg-white: #fff;
    --font-heading: 'Teko', sans-serif;
    --font-body: 'Inter', 'Poppins', 'Microsoft YaHei', sans-serif;
    --max-width: 1920px;
    --primary: var(--brand-red);
    --primary-dark: var(--brand-red-dark);
    --bg: var(--bg-light);
    --text: var(--text-dark);
    --gray: var(--text-gray);
    --transition: .3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

html { scroll-behavior: smooth; font-size: 16px; }

/* ========== 通用容器 ========== */
/* 内页统一容器：与分类页 /categories 完全同宽
   ① ≤1800：左右留白固定 182px（对齐顶部导航第二个菜单「Categories」文字左边缘 182.4px）；
   ② >1800：留白按 9.48vw 等比放大（1920 时正好 182px），内容宽恒为视口 81%；
   ③ 断点：≤1200→85px、≤1024→30px（导航变汉堡）、≤768→20px。
   原来这里是 width:1200px + max-width:96%，宽屏下内容只占 45%~62%，与首页/分类页不协调 */
.wrap {
    width: auto;
    max-width: 1920px;
    margin: 0 auto !important;
    padding-left: 182px;
    padding-right: 182px;
}
@media (max-width: 1200px) {
    .wrap { padding-left: 85px; padding-right: 85px; }
}
@media (max-width: 1024px) {
    .wrap { padding-left: 30px; padding-right: 30px; }
}
@media (max-width: 768px) {
    .wrap { padding-left: 20px; padding-right: 20px; }
}
@media (min-width: 1801px) {
    .wrap {
        max-width: none;
        padding-left: max(182px, 9.48vw);
        padding-right: max(182px, 9.48vw);
    }
}
.container { max-width: 1920px; margin: 0 auto; padding: 0 60px; }

/* 旧 topbar（新模板已移除，保留类定义防止老页面残留） */
.topbar { background: var(--brand-dark); color: #fff; font-size: 13px; display: none; }

/* ========== Header（静态站 Figma 视觉：红色顶栏 + Logo + 搜索） ========== */
.header {
    background: var(--brand-red);
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 22px 81px;
    max-width: var(--max-width);
    margin: 0 auto;
}
/* 搜索框 */
.header-search {
    flex: 1;
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    height: 44px;
}
/* Logo：设计稿 PNG 图片 */
.header-logo {
    flex-shrink: 0;
    transition: opacity var(--transition);
}
.header-logo:hover { opacity: 0.9; }
.header-logo img {
    display: block;
    height: 67px;
    width: auto;
}
.header-search .search-input {
    flex: 1;
    height: 100%;
    padding: 0 18px;
    background: transparent;
    border: none;
    outline: none;
    color: #000000;
    font-size: 15px;
    font-family: var(--font-body);
    font-weight: 400;
}
.header-search .search-input::placeholder {
    color: #999999;
    font-size: 15px;
    font-weight: 400;
}
.header-search .search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 24px;
    height: calc(100% - 0px);
    margin: 0 0 0 0;
    background: var(--brand-red);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-body);
    transition: background var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 10px;
    border: 2px solid #ffffff;
}
.header-search .search-btn:hover { background: var(--brand-red-dark); }
.header-search .search-btn svg { width: 16px; height: 16px; }
/* 右侧动作区 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    width: auto;
    justify-content: flex-end;
}
.header-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: opacity var(--transition);
}
.header-icon:hover { opacity: 0.8; }
.header-icon svg { width: 22px; height: 22px; }

/* ========== 语言切换器已按客户要求移除（站点仅保留全英文版本，不再提供中英文切换入口） ========== */

/* 汉堡按钮 */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== Navigation（白色吸顶 + 红描边菜单） ========== */
.nav {
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 999;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 76px;
    height: 54px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 68px;
}
.nav-menu li a {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: color var(--transition);
    position: relative;
}
.nav-menu li a:hover,
.nav-menu li a.active { color: var(--brand-red); }
.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-red);
    transition: width var(--transition);
}
.nav-menu li a:hover::after,
.nav-menu li a.active::after { width: 100%; }
/* 有子分类的导航项：小三角 */
.nav-menu > li { position: relative; }
.nav-menu > li > a.has-child::after {
    content: '';
    margin-left: 5px;
    border: 4px solid transparent;
    border-top-color: currentColor;
    display: inline-block;
    vertical-align: middle;
}
/* 下拉子导航 */
.nav-menu > li .sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border-top: 2px solid var(--brand-red);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s ease;
    z-index: 1000;
}
.nav-menu > li:hover .sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-menu > li .sub a {
    display: block;
    padding: 10px 18px;
    font-family: var(--font-body);
    font-size: 14px;
    color: #222;
    text-transform: none;
    letter-spacing: 0;
    transition: all .2s;
}
.nav-menu > li .sub a::after { display: none; }
.nav-menu > li .sub a:hover { color: var(--brand-red); background: #fafafa; }
/* 邮箱联系方式 */
.nav-contact {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 400;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.nav-contact svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}

/* ========== 移动端抽屉 ========== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition);
}
.mobile-nav-overlay.active { display: block; opacity: 1; }
.mobile-nav {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: #ffffff;
    z-index: 999;
    overflow-y: auto;
    transition: left var(--transition);
    padding: 20px;
}
.mobile-nav.active { left: 0; }
.mobile-nav .mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.mobile-nav .mobile-nav-header img { height: 36px; }
.mobile-nav .mobile-nav-close {
    font-size: 28px;
    cursor: pointer;
    color: #333;
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-nav-menu li { border-bottom: 1px solid #f0f0f0; }
.mobile-nav-menu li a {
    display: block;
    padding: 14px 0;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition);
}
.mobile-nav-menu li a:hover,
.mobile-nav-menu li a.active { color: var(--brand-red); }
.mobile-lang {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
.mobile-lang-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--brand-red);
    color: var(--brand-red);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: none;
}
.mobile-lang-link:hover { background: var(--brand-red); color: #ffffff; }

/* ========== 内页头图 ========== */
.page-banner {
    background:
        linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.35) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.45)),
        url('/static/web/img/page/banner_bg.jpg') center/cover no-repeat;
    background-color: #1a1a1a;
    color: #fff;
    padding: 90px 0 70px;
    text-align: left;
}
.page-banner .wrap { display: flex; flex-direction: column; gap: 8px; }
.page-banner h1 {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 1px;
}
.page-banner p {
    color: rgba(255,255,255,.55);
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.page-banner .crumb-light { color: rgba(255,255,255,.55); font-size: 13px; }
.page-banner .crumb-light a:hover { color: #fff; }
.page-banner .crumb-light a::after { content: ' / '; color: rgba(255,255,0,0); }

/* ========== 产品分类页网格（按设计稿：三列方形主图 + 居中标题） ========== */
.categories-section { padding: 56px 0 80px; background: #ffffff; }
/* 内容左右边界对齐顶部导航第二个菜单「Categories」的文字左边缘：
   >1200 时 nav-inner 左内边距 76 + Home 宽 106.4 = 182.4px；
   1200~1101 时 nav 内边距 30 → Categories 在 85px；
   ≤1024 导航收起为汉堡菜单，恢复常规内边距。banner 同步，保证标题与卡片左对齐 */
.categories-section .container,
.page-banner .container { padding-left: 182px; padding-right: 182px; }
@media (max-width: 1200px) {
    .categories-section .container,
    .page-banner .container { padding-left: 85px; padding-right: 85px; }
}
@media (max-width: 1024px) {
    .categories-section .container,
    .page-banner .container { padding-left: 30px; padding-right: 30px; }
}
@media (max-width: 768px) {
    .categories-section .container,
    .page-banner .container { padding-left: 20px; padding-right: 20px; }
}
/* >1800 超宽屏：左右留白按 9.48vw 等比放大（≈ 内容宽恒为视口 81%），
   避免固定 182px 时占比随屏幕变宽一路升到 86%，视觉上又会「贴边」；
   9.48vw 在 1920 视口正好 = 182px，因此 1920 及以下与收窄版完全一致 */
@media (min-width: 1801px) {
    .categories-section .container,
    .page-banner .container {
        max-width: none;
        padding-left: max(182px, 9.48vw);
        padding-right: max(182px, 9.48vw);
    }
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    /* 宽度跟随 .container（1920 上限 + 60px 内边距），与首页 Products Series 同基准；
       不再写死 max-width，宽屏下卡片随视口等比放大。
       间距随视口收紧：≥1900 时列距 84px / 行距 56px，窄屏逐步收到 40/40 */
    gap: clamp(40px, 2.9vw, 56px) clamp(40px, 4.4vw, 84px);
    width: 100%;
    margin: 0 auto;
}
.categories-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    /* 设计稿实测：白卡 #fff + 1px #eeeeee 描边（238,238,238）+ 圆角 12px@2x = 6px；
       卡片外无投影（边界外像素即为纯白 255），故不设静置阴影，仅保留 hover 阴影 */
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    /* 设计稿实测（以卡片宽度为基准）：左右内边距 5.63%、上内边距 8.04%；
       border-box 下扣掉 1px 描边 → 5.32% / 7.75%，从而保证图片宽 = 卡宽 88.74% */
    padding: 7.75% 5.32% 23px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.categories-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.categories-card-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    /* 主图四周小圆角：设计师口径 4~10px 均可，取中值 8px
       （微信群图反推 ≈10~11px，如需更圆改此值即可） */
    border-radius: 8px;
    /* 与白卡同色：圆角裁切处不露灰角 */
    background: #ffffff;
}
.categories-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.categories-card:hover .categories-card-media img { transform: scale(1.04); }
.categories-card-title {
    /* 设计稿：图片底→标题字顶 6.84% 卡宽，实测字高 4.02% 卡宽 → 330px 卡宽下 18px；
       卡片随视口放大后字号小幅跟随（17~20px），与首页 .ps-card-title 的 clamp 手法一致 */
    margin-top: 17px;
    font-family: var(--font-body);
    font-size: clamp(17px, 1.05vw, 20px);
    font-weight: 600;
    line-height: 1.3;
    /* 设计稿标题为纯黑 #000 */
    color: #000000;
    text-align: center;
    letter-spacing: 0.01em;
}
/* 分类卡副标题：子分类数量（无子类时模板不输出） */
.categories-card-count {
    /* 设计稿：标题→副标 5.50% 卡宽，副标字高 3.49% 卡宽 → 12px（比标题约小 1/3） */
    margin-top: 8px;
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.4;
    /* 设计稿副标为 #999999 */
    color: #999999;
    text-align: center;
    letter-spacing: 0.01em;
}
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 40px;
    }
}
@media (max-width: 600px) {
    .categories-section { padding: 36px 0 56px; }
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 360px;
    }
    /* 内边距保持百分比，与设计稿同比例（横向 5.63% / 顶部 8.04%），不要写死 px */
    .categories-card { padding-bottom: 18px; }
    .categories-card-title { margin-top: 14px; font-size: 16px; }
}

/* ========== FAQ 手风琴 ========== */
.faq-list {
    max-width: 920px;
    margin: 0 auto;
    padding: 56px 0 80px;
}
.faq-item {
    border-bottom: 1px solid #eeeeee;
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
    background: transparent;
    border: none;
    color: #000000;
    font-family: var(--font-body);
    font-size: clamp(16px, 1.2vw, 20px);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}
.faq-question:hover { color: var(--brand-red); }
.faq-question span { line-height: 1.4; }
.faq-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #000000;
    transition: transform 0.3s ease, color 0.2s ease;
}
.faq-question:hover .faq-icon { color: var(--brand-red); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer-inner {
    padding-bottom: 24px;
    color: #555555;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.7;
}
.faq-answer-inner p { margin-bottom: 12px; }
.faq-answer-inner p:last-child { margin-bottom: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-answer {
    max-height: 500px;
}
@media (max-width: 768px) {
    .faq-list { padding: 40px 0 60px; }
    .faq-question { padding: 18px 0; gap: 16px; }
    .faq-icon { width: 20px; height: 20px; }
}

/* ========== New Arrivals 列表 ========== */
.newarrival-list { padding-top: 40px; }

/* ========== 面包屑（内页用，浅色底） ========== */
.crumb { padding: 14px 0; color: var(--text-gray); font-size: 13px; }
.crumb a:hover { color: var(--primary); }

/* ========== 通用区块 ========== */
.section { padding: 46px 0; }
.section h2 {
    font-size: 26px;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.section .sub { color: var(--gray); margin-bottom: 28px; font-size: 14px; }

/* ========== 卡片网格 ========== */
.grid { display: grid; gap: 22px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.card img { width: 100%; height: 180px; object-fit: cover; background: #f2f2f2; }
/* 产品图（零配件）需完整显示，对齐首页 .ps-card / .ref-card 的 contain */
.card.card--product img {
    height: 220px;
    padding: 16px;
    object-fit: contain;
    background: #f7f7f7;
}
.card .body { padding: 14px 16px; }
.card .body h3 { font-size: 16px; margin-bottom: 6px; }
.card .body p { color: var(--gray); font-size: 13px; }
.card .price { color: var(--brand-red); font-weight: 700; margin-top: 6px; }

/* ========== 列表项 ========== */
.list-item {
    display: flex;
    gap: 16px;
    background: #fff;
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,.04);
    transition: var(--transition);
}
.list-item:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.list-item .date { color: var(--gray); font-size: 13px; white-space: nowrap; }
.list-item h3 { font-size: 17px; margin-bottom: 4px; }
.list-item p { color: var(--gray); font-size: 14px; }

/* ========== 详情页 ========== */
.detail {
    background: #fff;
    border-radius: 8px;
    padding: 34px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.detail h1 { font-size: 26px; margin-bottom: 12px; }
.detail .meta {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}
.detail .content { font-size: 15px; line-height: 1.9; }
.detail .content img { max-width: 100%; }
.detail .content h2, .detail .content h3 { margin: 1.2em 0 .6em; }
.detail .content p { margin-bottom: 1em; }

.search-list { list-style: none; margin: 0; padding: 0; }
.search-list li { padding: 14px 0; border-bottom: 1px solid #f0f0f0; font-size: 15px; }
.search-list li a { color: var(--primary-dark); font-weight: 600; }
.search-list li a:hover { color: var(--primary); text-decoration: underline; }
.search-list li .price { color: var(--brand-red); font-weight: 700; margin-left: 10px; font-size: 13px; }

/* ========== 表单 ========== */
.form, .message-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 560px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.form label, .message-form .form-item label { display: block; margin: 14px 0 6px; font-size: 14px; }
.form input, .form textarea, .form select,
.message-form input, .message-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--transition);
}
.form input:focus, .form textarea:focus,
.message-form input:focus, .message-form textarea:focus { border-color: var(--brand-red); outline: none; }
.form textarea, .message-form textarea { min-height: 120px; resize: vertical; }
.form button, .message-form button {
    margin-top: 20px;
    background: var(--brand-red);
    color: #fff;
    border: 0;
    padding: 12px 34px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.form button:hover, .message-form button:hover { background: var(--brand-red-dark); transform: translateY(-2px); }

/* ========== 页脚（静态站 Figma 视觉：黑底 + 红色飘卡浮起） ========== */
.footer {
    position: relative;
    z-index: 1;
    background: #121212;
    color: #ffffff;
    padding: 120px clamp(24px, 5vw, 96px) 36px;
    font-family: var(--font-body);
    margin-top: 80px;
}
.footer-wrapper {
    position: relative;
    max-width: 1728px;
    margin: 0 auto;
}
.footer-main {
    display: grid;
    grid-template-columns: 1fr clamp(320px, 40vw, 690px);
    gap: clamp(24px, 3vw, 40px);
    position: relative;
    margin-bottom: 30px;
}
.footer-left {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.footer-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 42px;
    flex-wrap: wrap;
}
.footer-logo img {
    height: clamp(36px, 3vw, 48px);
    width: auto;
    display: block;
}
.footer-separator {
    width: 1px;
    height: clamp(36px, 3vw, 48px);
    background: #3d3d3d;
    flex-shrink: 0;
}
.footer-brand {
    font-family: var(--font-heading);
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #ffffff;
    text-transform: uppercase;
}
.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.footer-title {
    font-family: var(--font-heading);
    font-size: clamp(16px, 1.4vw, 18px);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 22px;
    line-height: 1;
}
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.footer-contact .footer-icon {
    flex-shrink: 0;
    width: clamp(32px, 3vw, 38px);
    height: clamp(32px, 3vw, 38px);
    border-radius: 50%;
    background: var(--brand-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.footer-contact .footer-icon svg {
    width: 16px;
    height: 16px;
    color: #ffffff;
    display: block;
    flex-shrink: 0;
}
.footer-contact small {
    display: block;
    font-size: 11px;
    color: #aaaaaa;
    text-transform: capitalize;
    line-height: 1.3;
    margin-bottom: 2px;
}
.footer-contact strong,
.footer-contact span {
    display: block;
    font-size: clamp(12px, 1vw, 13px);
    font-weight: 500;
    color: #ffffff;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
    transition: color var(--transition);
}
.footer-contact li:hover strong,
.footer-contact li:hover span {
    color: var(--brand-red);
}
.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px clamp(16px, 2vw, 32px);
}
.footer-links a {
    font-size: clamp(12px, 1vw, 13px);
    color: #cccccc;
    transition: color var(--transition);
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.footer-links a:hover { color: var(--brand-red); }

/* 红色飘卡（MAIN PRODUCTS 标签云 + 留言表单） */
.footer-col-red {
    position: relative;
    z-index: 2;
    margin-top: -200px;
    width: 100%;
    min-height: 560px;
    background: #C2141A;
    padding: clamp(28px, 3vw, 48px) clamp(24px, 3vw, 46px) clamp(32px, 3vw, 50px);
    display: flex;
    flex-direction: column;
}
.footer-col-red .footer-title {
    color: #ffffff;
    margin-bottom: 16px;
}
.footer-tags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 28px;
}
.footer-tags a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.18);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 3px;
    transition: background var(--transition);
    word-break: break-word;
    overflow-wrap: anywhere;
}
.footer-tags a::before {
    content: '>';
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}
.footer-tags a:hover { background: rgba(255,255,255,0.3); }
.footer-form-note {
    font-size: 11px;
    line-height: 1.55;
    color: rgba(255,255,255,0.85);
    margin-bottom: 14px;
}
.footer-col-red textarea,
.footer-col-red input {
    width: 100%;
    border: none;
    border-radius: 3px;
    padding: 11px 14px;
    font-family: var(--font-body);
    font-size: 12px;
    color: #333333;
    background: #ffffff;
    outline: none;
    resize: none;
}
.footer-col-red textarea::placeholder,
.footer-col-red input::placeholder { color: #666666; }
.footer-col-red textarea {
    height: 151px;
    margin-bottom: 10px;
}
.footer-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.footer-col-red input { height: 51px; }
.footer-submit {
    width: 100%;
    height: 51px;
    background: #000000;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    border-radius: 3px;
    transition: background var(--transition);
}
.footer-submit:hover { background: #222222; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    /* 为 fixed 定位的「返回顶部」按钮（right:28px + 44px 宽）预留安全带，
       避免窄视口下压住右侧社交图标。视口足够宽、wrapper 已居中留白时自动归零。 */
    padding-right: max(0px, 108px - max(clamp(24px, 5vw, 96px), (100vw - 1728px) / 2));
}
.footer-bottom p {
    font-size: 12px;
    color: #888888;
    word-break: break-word;
}
/* 底部技术支持（2026-11-10）：与版权同排，换行时整体不拆开。
   三轮：拆成「标签（纯文本，不可点）+ 只包 SVG 的链接（可点）」；
   标签改用英文半角冒号「:」来缩小与「浙兴网络」的视觉间隔。
   四轮：「浙兴网络」默认就亮（#cccccc，与版权 #888888 明显区分），
   hover 再提亮到纯白并加白色辉光，两级都清晰可辨；标签始终灰色、始终不可点。
   SVG 表现属性 fill / font-size 优先级低于 CSS，故统一在此覆盖。
   SVG 容器高 12px，用 overflow:visible 避免中文顶部被裁。 */
.footer-tech-wrap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 12px;
    color: #888888;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}
.footer-tech-label {
    color: #888888;
    font-size: 12px;
    cursor: default;
}
.footer-tech {
    display: inline-flex;
    align-items: center;
    color: #888888;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
}
.footer-tech svg {
    display: block;
    width: 56px;
    height: 14px;
    overflow: visible;
    transition: filter var(--transition);
}
.footer-tech svg text,
.footer-tech svg tspan {
    font-size: 12px;
    fill: #cccccc;
    transition: fill var(--transition);
}
.footer-tech:hover svg { filter: drop-shadow(0 0 4px rgba(255, 255, 255, .75)); }
.footer-tech:hover svg text,
.footer-tech:hover svg tspan { fill: #ffffff; }
.footer-social {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: opacity var(--transition);
}
.footer-social a:hover { opacity: 0.75; }
.footer-social img {
    height: 17px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ========== 轮播（CMS flash，首页 hero 用） ========== */
.banner { position: relative; height: 420px; overflow: hidden; background: #ddd; }
.banner img { width: 100%; height: 420px; object-fit: cover; display: none; }
.banner img:first-child { display: block; }
.banner .cap {
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    background: rgba(0,0,0,.45);
    color: #fff;
    padding: 16px 22px;
    font-size: 18px;
    z-index: 2;
}

/* ========== 通用 CTA 按钮（品牌红底白字 + hover 上浮） ========== */
.btn--accent {
    display: inline-block;
    background: var(--brand-red);
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
    padding: 13px 40px;
    border-radius: 4px;
    border: 2px solid var(--brand-red);
    transition: var(--transition);
    cursor: pointer;
}
.btn--accent:hover {
    background: var(--brand-red-dark);
    border-color: var(--brand-red-dark);
    color: #fff !important;
    transform: translateY(-2px);
}
/* 描边版（白底红字，hover 反色） */
.btn--outline {
    display: inline-block;
    background: transparent;
    color: var(--brand-red) !important;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
    padding: 11px 38px;
    border-radius: 4px;
    border: 2px solid var(--brand-red);
    transition: var(--transition);
    cursor: pointer;
}
.btn--outline:hover {
    background: var(--brand-red);
    color: #fff !important;
    transform: translateY(-2px);
}
/* 标题层级：金色短分隔线（区块小标题范式） */
.section-label {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-red);
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    position: relative;
}
.section-label::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 44px; height: 2px;
    background: var(--brand-red);
}
/* 内页详情标题层级：h2 衬线 + 金线 */
.detail .content h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.4em 0 .6em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-red);
    display: inline-block;
}
.detail .content h3 { font-size: 20px; color: var(--text-dark); font-weight: 600; }

/* ========== 内页双栏布局 ========== */
.layout {
    display: flex;
    gap: 40px;
    margin: 34px 0;
    flex-wrap: nowrap;
    align-items: flex-start;
}
.layout > main { flex: 1; min-width: 0; }
.side {
    width: 280px;
    flex: none;
    position: sticky;
    top: 80px;
}
/* 留言页等较宽侧栏变体 */
.side--wide { width: 320px; }
/* 双栏内容块：默认可收缩，窄屏归零避免溢出 */
.col-main { flex: 1; min-width: 0; }
.col-side-fixed { flex: 1; min-width: 280px; }
/* 新闻缩略图：窄屏自适应 */
.news-thumb { width: 160px; height: 110px; object-fit: cover; border-radius: 6px; flex: none; }

/* ========== 联系页布局 ========== */
.contact-grid {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.contact-info-col,
.contact-form-col {
    flex: 1;
    min-width: 280px;
}

/* ========== Contact 卡片 + 表单（参考 xinsanhe 风格） ========== */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: var(--transition);
}
.contact-card:hover {
    border-color: var(--brand-red);
    box-shadow: 0 6px 18px rgba(194,19,28,.08);
}
.contact-card-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fdecee;
    color: var(--brand-red);
}
.contact-card-icon svg { width: 22px; height: 22px; fill: currentColor; }
.contact-card-label {
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 3px;
}
.contact-card-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    word-break: break-word;
}
.contact-card-value a { color: var(--text-dark); transition: var(--transition); }
.contact-card-value a:hover { color: var(--brand-red); }

.contact-form-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 32px 30px;
    box-shadow: 0 2px 14px rgba(0,0,0,.04);
}
.contact-form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.contact-form-sub {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 22px;
}
.contact-form .form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}
.contact-form .form-row input { flex: 1; min-width: 0; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text-dark);
    background: #fafafa;
    outline: none;
    transition: var(--transition);
    box-sizing: border-box;
    margin-bottom: 14px;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--brand-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(194,19,28,.08);
}
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 13px 28px;
    border: none;
    border-radius: 8px;
    background: var(--brand-red);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
}
.btn-submit svg { width: 18px; height: 18px; fill: currentColor; }
.btn-submit:hover { background: #a30f17; transform: translateX(2px); }

/* ========== 侧边菜单（内页） ========== */
.side-menu {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.side-menu .side-title {
    padding: 14px 16px;
    background: var(--brand-red);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}
.side-menu a {
    display: block;
    padding: 13px 16px;
    color: var(--text-dark);
    border-bottom: 1px solid #f2f2f2;
    font-size: 14px;
    transition: var(--transition);
}
.side-menu a:last-child { border-bottom: 0; }
.side-menu a:hover { background: var(--brand-red); color: #fff; }
.side-menu a.on {
    background: #fdecee;
    color: var(--brand-red);
    font-weight: 600;
}
/* 二级分类（产品小类）：缩进 + 小字号 */
.side-menu .side-sub a {
    padding: 11px 16px 11px 32px;
    font-size: 13px;
    color: var(--text-gray);
    background: #fafafa;
}
.side-menu .side-sub a:hover { background: var(--brand-red); color: #fff; }
.side-menu .side-sub a.on {
    background: #fdecee;
    color: var(--brand-red);
    font-weight: 600;
}

/* ========== 提示条/留言项/联系信息 ========== */
.notice { border-radius: 6px; font-size: 13px; }
.msg-item { font-size: 14px; }
.contact-info { font-size: 15px; }

/* ========== 返回顶部 ========== */
.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 30px;
    width: 44px;
    height: 44px;
    background: var(--brand-red);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 99;
    box-shadow: 0 4px 14px rgba(194,19,28,.4);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #a01016; transform: translateY(-2px); }
.back-to-top svg path { stroke: #fff; }

/* ========== 入场动画（首屏 banner + 滚动版块统一 keyframe 方案） ========== */
@keyframes bannerTextIn {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: none; }
}
@keyframes bannerTextInLeft {
    from { opacity: 0; transform: translateX(-44px); }
    to   { opacity: 1; transform: none; }
}
@keyframes bannerTextInRight {
    from { opacity: 0; transform: translateX(44px); }
    to   { opacity: 1; transform: none; }
}
/* 首屏 hero：加载即播 */
.hero-eyebrow,
.hero-title,
.hero-discover {
    opacity: 1 !important;
    animation: 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both bannerTextIn;
}
.hero-title    { animation-delay: 0.12s; }
.hero-discover { animation-delay: 0.22s; }
/* 滚动版块：初始隐藏，进入视口加 .revealed 后播 keyframe 动画
   （用 animation 而非 transition：不受 home.css 中 .ps-card 等的 transition 覆盖影响） */
[data-reveal] { opacity: 0; will-change: opacity, transform; }
[data-reveal].revealed {
    animation: 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both bannerTextIn;
    animation-delay: var(--reveal-delay, 0ms);
}
[data-reveal="left"].revealed  { animation-name: bannerTextInLeft; }
[data-reveal="right"].revealed { animation-name: bannerTextInRight; }
[data-reveal-stagger] > [data-reveal] { --reveal-delay: calc(var(--reveal-i, 0) * 90ms); }

/* ========== 分页 ========== */
.pagination, .page { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pagination li, .page li { display: inline-block; }
.pagination a, .page a,
.pagination span, .page span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: var(--text-dark);
    font-size: 14px;
    background: #fff;
    transition: var(--transition);
}
.pagination a:hover { border-color: var(--brand-red); color: var(--brand-red); }
.pagination .active span, .page .active span {
    background: var(--brand-red);
    color: #fff;
    border-color: var(--border-red, var(--brand-red));
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .container { padding: 0 30px; }
    .header-inner { padding: 18px 30px; gap: 30px; }
    .nav-inner { padding: 0 30px; }
    .nav-menu { gap: 22px; }
    .nav-menu li a { font-size: 17px; }
    .nav-contact { font-size: 17px; }
    .header-logo img { height: 58px; }
    .header-search { max-width: 560px; height: 42px; }
    .footer { padding: 100px clamp(24px, 4vw, 60px) 36px; margin-top: 60px; }
    .footer-main { grid-template-columns: 1fr clamp(300px, 46vw, 560px); gap: 30px; }
    .footer-col-red { margin-top: -160px; height: auto; min-height: 520px; }
    .footer-columns { gap: 30px; }
}
@media (max-width: 1024px) {
    .nav-menu { gap: 16px; }
    .nav-menu li a { font-size: 16px; }
    .nav-contact { font-size: 16px; }
    .header-logo img { height: 48px; }
    .header-search { max-width: 480px; }
    .nav { display: none; }
    .footer { padding: 80px 40px 32px; margin-top: 0; }
    .footer-main { grid-template-columns: 1fr clamp(280px, 46vw, 480px); gap: 24px; }
    .footer-col-red { margin-top: -120px; height: auto; min-height: 480px; }
    .footer-columns { gap: 24px; }
}
@media (max-width: 900px) {
    .layout { flex-direction: column; }
    .layout, .side { width: 100%; }
    .side { position: static; }
    .grid.c4 { grid-template-columns: repeat(2, 1fr); }
    .grid.c3 { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { flex-direction: column; gap: 24px; }
    .contact-info-col,
    .contact-form-col { min-width: 0; width: 100%; }
    .page-banner { padding: 64px 0 48px; }
    .page-banner h1 { font-size: 40px; }
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo actions"
            "search search";
        gap: 10px 16px;
        padding: 12px 20px 14px;
        align-items: center;
    }
    .header-logo { grid-area: logo; }
    .header-logo img { height: 36px; }
    .header-actions { grid-area: actions; width: auto; }
    .header-search {
        grid-area: search;
        display: flex;
        max-width: none;
        margin: 0;
        height: 40px;
    }
    .header-search .search-input { font-size: 14px; padding: 0 14px; }
    .header-search .search-input::placeholder { font-size: 13px; }
    .header-search .search-btn { padding: 0 16px; font-size: 14px; }
    .nav-menu,
    .nav-contact { display: none; }
    .mobile-toggle { display: flex; }
    .nav-inner { justify-content: flex-end; padding: 0 20px; height: 48px; }
    .footer-main { grid-template-columns: 1fr; gap: 36px; }
    .footer-col-red { margin-top: 0; width: 100%; min-height: 0; height: auto; }
}
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .header-logo img { height: 30px; }
    .footer { padding: 60px 24px 28px; }
    .footer-main { margin-bottom: 24px; }
    .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; padding-right: 0; }
}
@media (max-width: 560px) {
    .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
    .list-item { flex-direction: column; }
    .page-banner h1 { font-size: 34px; }
    /* 双栏布局在窄屏彻底垂直化，避免 220/320px 侧栏 + min-width 叠加溢出 */
    .layout { flex-direction: column; gap: 20px; }
    .side, .side--wide { width: 100%; position: static; }
    .col-main, .col-side-fixed { min-width: 0; }
    .news-thumb { width: 110px; height: 80px; }
    .contact-info-col,
    .contact-form-col { width: 100%; min-width: 0; }
    .contact-grid { gap: 20px; }
}
@media (max-width: 600px) {
    .footer { padding: 50px 20px 24px; }
    .footer-columns { grid-template-columns: 1fr; gap: 28px; }
    .footer-header { gap: 12px; margin-bottom: 28px; }
    .footer-col-red { padding: 28px 22px 32px; }
    .footer-tags { grid-template-columns: 1fr; }
    .footer-form-row { grid-template-columns: 1fr; }
    /* 纵向排列时社交图标居中，不会被右下角按钮压住：去掉横向预留，改为底部留白兜底 */
    .footer-bottom { align-items: center; text-align: center; padding-right: 0; padding-bottom: 56px; }
    .footer-bottom p { width: 100%; }
    .footer-social { justify-content: center; width: 100%; }
}
@media (max-width: 480px) {
    .header-logo img { height: 24px; }
    .header-search .search-btn { padding: 0 14px; font-size: 0; gap: 0; }
    .header-search .search-btn svg { width: 16px; height: 16px; }
    .message-form, .form { max-width: none; }
    .form-row { flex-direction: column; }
    .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
}

/* ===== 分页条（列表页通用） ===== */
.pager {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.pager a.pager-item,
.pager span.pager-item,
.pager a.pager-prev,
.pager a.pager-next,
.pager span.pager-prev,
.pager span.pager-next,
.pager span.pager-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    background: #fff;
    text-decoration: none;
    transition: all .2s ease;
}
.pager a:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}
.pager .pager-item.current {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
    font-weight: 600;
}
.pager .disabled {
    color: #bbb;
    cursor: not-allowed;
    background: #f6f6f6;
}
.pager .pager-ellipsis {
    border: none;
    background: transparent;
    min-width: 20px;
    padding: 0;
}
.search-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 4px;
    background: #f2f2f2;
    color: #888;
    font-size: 12px;
    vertical-align: middle;
}


/* ========== 图片验证码（1.9.6 前台表单防刷） ========== */
/* 出图原生尺寸 144×36（content-box + 1px 边框 = 总高 38px），
   刻意 1:1 不缩放（GD 位图缩放会发糊）。
   三个表单各自的输入框高度不同，这里把验证码行的输入框统一压到 38px，
   使输入框与图片中心线对齐。 */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.captcha-row input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 38px;
}
.captcha-img {
    box-sizing: content-box;
    width: 144px;
    height: 36px;
    flex: none;
    display: block;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f4f5f7;
    transition: border-color .2s ease;
}
.captcha-img:hover { border-color: var(--brand-red); }
.captcha-tip { margin-top: 6px; font-size: 12px; color: var(--gray); }
.captcha-tip a { color: var(--brand-red); }
.captcha-tip a:hover { text-decoration: underline; }

/* —— 留言页（.message-form）—— */
.message-form .captcha-row { margin-top: 4px; }
.message-form .captcha-row input[type="text"] { margin-bottom: 0; }

/* —— 联系页（.contact-form，输入框原高约 48px，这里压到 38px）—— */
.contact-form .captcha-row { margin-top: 2px; }
.contact-form .captcha-row input[type="text"] {
    height: 38px;
    padding: 0 14px;
    margin-bottom: 0;
}
.contact-form .captcha-tip { margin-bottom: 4px; }

/* —— 页脚（.footer-col-red，输入框原高 51px，这里压到 38px）—— */
.footer-col-red .captcha-row { margin-top: 10px; }
.footer-col-red .captcha-row input[type="text"] {
    height: 38px;
    padding: 0 12px;
}
.captcha-tip--footer {
    color: rgba(255,255,255,.85);
    margin: 8px 0 12px;
}
.captcha-tip--footer a { color: #ffffff; text-decoration: underline; }
.footer-col-red .captcha-img { border-color: rgba(255,255,255,.55); }

/* 窄屏：验证码换到下一行，图片在上、输入框在下 */
@media (max-width: 480px) {
    .captcha-row { flex-wrap: wrap; }
    .captcha-row input[type="text"] { flex-basis: 100%; order: 2; }
    .captcha-img { order: 1; }
}

/* ================================================================
   全站移动端优化（2026-10-21）
   基于 390×844 真机视口逐页诊断（15 个页面）后的定向修复：
   ① 内页侧栏 790px 竖排分类 → 横滑胶囊条
   ② 页脚 1925px 高 → 压缩（标签云 1 列 → 2 列、表单控件收敛）
   ③ 触控目标 <44px（汉堡按钮 34×26、Logo 300×24）→ ≥44px
   ④ 正文辅助字号 10~11px → 12px；表单控件 16px 防 iOS 聚焦自动放大
   ⑤ 内页头图 / 内容区上下留白收敛
   本块刻意放在文件末尾，用于覆盖前面各断点的旧值。
   ================================================================ */

/* ---------- ① 内页侧栏：竖排列表 → 横滑分类条 ----------
   诊断：/product 侧栏 350×790（16 项全展开），用户要滑近 800px 才见产品；
   /news 249px、/market、/jobs、/company 同样横在列表之前。
   ≤900 断点起布局已转单列，这里把分类改为可横滑的胶囊标签条。 */
@media (max-width: 900px) {
    .side .side-menu {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 0 0 12px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        scroll-snap-type: x proximity;
    }
    .side .side-menu::-webkit-scrollbar { display: none; height: 0; }
    /* 标题在横滑条内无意义 */
    .side .side-menu .side-title { display: none; }
    /* 子类容器「无盒化」，让 9 个子类直接参与横向排列 */
    .side .side-menu .side-sub { display: contents; }
    .side .side-menu a {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        padding: 8px 16px;
        border: 1px solid #e6e6e6;
        border-radius: 999px;
        background: #fff;
        font-size: 13px;
        line-height: 1.2;
        white-space: nowrap;
        scroll-snap-align: start;
    }
    .side .side-menu a:last-child { border-bottom: 1px solid #e6e6e6; }
    /* 二级分类：浅灰底 + 略小字号，保留层级感 */
    .side .side-menu .side-sub a {
        padding: 8px 14px;
        background: #f4f4f6;
        border-color: #ececee;
        font-size: 12.5px;
        color: var(--text-gray);
    }
    /* 选中态在白色横滑条上改用实心红，辨识度高于原来的浅粉底 */
    .side .side-menu a.on,
    .side .side-menu .side-sub a.on {
        background: var(--brand-red);
        border-color: var(--brand-red);
        color: #fff;
        font-weight: 600;
    }
    /* 双栏间距在手机上过松（原 gap 40 / margin 34） */
    .layout { gap: 22px; margin: 22px 0; }
}

/* ---------- ③ 触控目标 ≥44px ---------- */
@media (max-width: 900px) {
    .mobile-toggle {
        width: 44px;
        height: 44px;
        padding: 0;
        align-items: center;
        justify-content: center;
    }
    .header-logo {
        display: inline-flex;
        align-items: center;
        /* 点击区从 290×24 提升到 ≥44 高；不额外加 padding，避免把 header 撑高 */
        min-height: 44px;
    }
    /* 抽屉关闭按钮 36×36 → 44×44（关闭状态也需要够大） */
    .mobile-nav .mobile-nav-close { width: 44px; height: 44px; }
}

/* ---------- ⑤ 内页头图 / 内容区留白收敛 ---------- */
@media (max-width: 768px) {
    .page-banner { padding: 44px 0 32px; }
    .page-banner .wrap { gap: 6px; }
    .categories-section { padding: 36px 0 56px; }
    .detail .content { line-height: 1.75; }
}

/* ---------- ② + ④ 页脚压缩、辅助字号、表单防缩放 ---------- */
@media (max-width: 600px) {
    .footer { padding: 40px 20px 20px; }
    .footer-wrapper { width: 100%; }
    .footer-main { margin-bottom: 20px; }
    .footer-header { margin-bottom: 20px; }
    .footer-columns { gap: 22px; }
    .footer-col-red { padding: 24px 20px 24px; }
    .footer-col-red .footer-title { margin-bottom: 12px; }
    /* 9 个分类标签原为单列堆叠（实测 433px 高），改 2 列后约 216px */
    .footer-tags {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 22px;
    }
    .footer-tags a { padding: 9px 10px; font-size: 12px; }
    /* 辅助说明 11px → 12px（上屏可读下限） */
    .footer-form-note { font-size: 12px; margin-bottom: 12px; }
    .footer-contact small { font-size: 12px; }
    /* 表单控件高度收敛（textarea 151→104、input 51→46） */
    .footer-col-red textarea { height: 104px; padding: 10px 12px; }
    .footer-col-red input { height: 46px; padding: 10px 12px; }
    .footer-submit { height: 46px; }
    /* 底部：原 padding-bottom 56 为返回顶部预留，按钮 44×44 收到 44 即可 */
    .footer-bottom { padding-top: 16px; padding-bottom: 44px; gap: 12px; }
    .footer-social img { height: 22px; }
    /* 窄屏让整组技术支持独占第二行居中：删掉 Powered by CMS 后若仍用行内，
       会与版权文字挤成「Parts技术支持:」且贴边，视觉黏连。
       注意规则挂在 wrap 上而非链接上，否则链接会占满整行变成「整行可点」 */
    .footer-tech-wrap {
        display: flex;
        width: 100%;
        justify-content: center;
        margin: 8px 0 0;
    }
}

/* iOS Safari：输入框字体 <16px 会在聚焦时自动放大整页。
   正文表单统一提到 16px（placeholder 仍保留小字号，不影响视觉密度）。 */
@media (max-width: 768px) {
    .message-form input,
    .message-form textarea,
    .message-form select,
    .contact-form input,
    .contact-form textarea,
    .contact-form select,
    .form input,
    .form textarea,
    .form select,
    .footer-col-red input,
    .footer-col-red textarea,
    .header-search .search-input {
        font-size: 16px;
    }
}
