/*
Theme Name: B2B Home Blankets
Theme URI: https://example.com/b2b-home-blankets
Author: xiaofeng
Description: A professional B2B WordPress theme for home textile & blanket industry. Features product showcase, company profile, and inquiry forms.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: b2b-home-blankets
Tags: b2b, wholesale, blankets, home-textile, business
*/

/* === CSS Custom Properties (Brand Parameterization) === */
:root {
    /* Brand Colors (existing) */
    --brand-primary: rgb(2,18,31);
    --brand-hover: rgb(2,18,31);
    --brand-gradient-start: #f5f0e8;
    --brand-gradient-end: #e8dcc8;
    --brand-font: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    /* Typography */
    --heading-weight: 700;
    --body-size: 16px;
    --heading-size-h1: 2.8rem;
    --heading-size-h2: 2rem;
    /* Layout */
    --spacing-section: 70px;
    /**
     * @note 第22次补充：自引用占位符改为真实默认值，避免无style preset时浏览器解析为空
     * deploy.js的regex替换仍然会用preset值覆盖这些默认值
     */
    --spacing-gap: 30px;
    --border-radius: 20px;
    --btn-radius: 20px;
    --btn-padding: 12px 30px;
    /* Shadows */
    --shadow-card: 0 3px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
    /* Text Colors */
    --text-primary: #333;
    --text-secondary: #666;
    /* Backgrounds */
    --bg-light: #f9f7f3;
    --bg-dark: #2c2c2c;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Screen-reader only (visually hidden, accessible to assistive technology) */
.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;
}

/**
 * @note 第157次提交第12次补充：body font-size:0 修复BOM匿名行框
 * 根因: WordPress/PHP输出的HTML中body首个文本节点包含BOM字符(U+FEFF)
 * 该字符不属于CSS白空格，会创建匿名行框(line-height:25.6px≈26px)
 * 修复: body本身font-size/line-height设0，直接子元素恢复正常值
 */
body {
    font-family: var(--brand-font);
    font-size: 0;
    line-height: 0;
    color: var(--text-primary);
    background: #fff;
}
body > * {
    font-size: var(--body-size, 16px);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--brand-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--brand-hover);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/**
 * @note 第157次提交第1次补充：header分首页/非首页两种模式
 * 首页(.site-header--front): fixed透明，品牌区+滚动折叠
 * 非首页: sticky白底，Logo+导航，无品牌区
 */
/* === Unified Header === */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: box-shadow 0.4s ease;
    will-change: transform;
}
/**
 * @note 第157次提交第17次补充：优化滚动过渡
 * 添加background/box-shadow过渡，使透明→白底变化更丝滑
 */
/**
 * @note 第157次提交第19次补充：首页header初始背景 #00000040 半透明遮罩
 * 品牌区(.header-top)和导航栏(.header-main)统一使用 #00000040
 */
/* 首页透明模式 */
.site-header--front {
    position: fixed;
    background: #00000040;
    box-shadow: none;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header--front.scrolled {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.site-header--front.scrolled .header-top {
    max-height: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.35s ease-out,
                opacity 0.25s ease-out,
                visibility 0s 0.4s;
}
/* 首页Logo默认隐藏，滚动后显示（延迟出现，形成层次感） */
.site-header--front .site-logo {
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.35s ease, width 0.3s ease;
}
.site-header--front.scrolled .site-logo {
    opacity: 1;
    width: auto;
    overflow: visible;
    transition: opacity 0.35s ease 0.15s, width 0.3s ease 0.1s;
}
/* Header Top Row — 品牌展示区 */
/**
 * @note 第157次提交：header-top加高，放置Logo+SiteTitle+Tagline
 * 初始透明背景白色文字，滚动后折叠隐藏
 */
.header-top {
    background: transparent;
    color: #fff;
    padding: 14px 0;
    max-height: 140px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s ease-in,
                opacity 0.4s ease-in,
                visibility 0s;
    opacity: 1;
    visibility: visible;
    will-change: max-height, opacity;
}
.header-top-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
/**
 * @note #157-95 品牌区左侧邮箱显示，与社媒图标对称布局
 */
.header-top-email {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
.header-top-email a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.header-top-email a:hover {
    opacity: 1;
    color: #fff;
}
/**
 * @note 第157次提交第8次补充：社媒图标absolute右侧，品牌区居中
 * 社媒图标品牌色同时匹配href和title（兼容无URL的span元素）
 */
.header-top-social {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
/**
 * @note 第157次提交第13次补充：社媒图标加白色背景圆确保在任何背景图上可见
 * 用户反馈"彩色图标效果不行，背景图有影响"
 */
/** @note 第158次提交：全站icon统一改为圆角20px（仅back-to-top保留圆形） */
.header-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s;
}
.header-social-link:hover {
    opacity: 0.8;
    transform: scale(1.1);
}
/* 社媒图标品牌色（匹配href或title） */
.header-social-link[href*="facebook"],
.header-social-link[title="Facebook"] { color: #1877F2; }
.header-social-link[href*="twitter"],
.header-social-link[href*="x.com"],
.header-social-link[title="Twitter"] { color: #1DA1F2; }
.header-social-link[href*="instagram"],
.header-social-link[title="Instagram"] { color: #E4405F; }
.header-social-link[href*="youtube"],
.header-social-link[title="Youtube"] { color: #FF0000; }
.header-social-link[href*="linkedin"],
.header-social-link[title="Linkedin"] { color: #0A66C2; }
.header-social-link[href*="tiktok"],
.header-social-link[title="Tiktok"] { color: #000; }
.header-social-link[href*="pinterest"],
.header-social-link[title="Pinterest"] { color: #BD081C; }
.header-social-link[href*="whatsapp"],
.header-social-link[title="Whatsapp"] { color: #25D366; }
/**
 * @note #155（第42次提交）：Contact Sales改为主题色背景按钮 + 圆角
 * 需求：背景色受主题色控制，边角圆润，内距加大
 * @note 选择器需 .main-nav a.btn-nav-cta 才能覆盖 .main-nav a 的 padding:5px 0
 */
/**
 * @note 第157次提交第14次补充：CTA按钮absolute靠右，不影响导航居中
 * 品牌区(header-top)展示时CTA隐藏，滚动后显示
 */
.main-nav a.btn-nav-cta,
.btn-nav-cta {
    color: #fff !important;
    background: var(--brand-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 28px;
    border-radius: 24px;
    border: none;
    border-bottom: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: absolute;
    right: 20px;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* 首页品牌区展示时隐藏CTA，滚动后显示（延迟出现，与Logo交错） */
.site-header--front .btn-nav-cta {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.site-header--front.scrolled .btn-nav-cta {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.35s ease 0.2s;
}
.main-nav a.btn-nav-cta:hover,
.btn-nav-cta:hover {
    background: var(--brand-primary-hover, var(--brand-primary));
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-1px);
    color: #fff !important;
}
/* Header Main Row — 导航栏 */
/**
 * @note 第157次提交第1次补充：
 * 非首页: 白底+品牌色底线，正常样式
 * 首页: 初始透明，滚动后白底
 */
.header-main {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
    transition: padding 0.4s ease, background 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-bottom 0.4s ease;
    min-height: 60px;
}
/* 首页: 初始透明（遮罩由父元素.site-header--front统一提供#00000040） */
.site-header--front .header-main {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
}
.site-header--front.scrolled .header-main {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 0;
    min-height: 60px;
    border-bottom: 1px solid #e5e5e5;
}
/**
 * @note 第157次提交第14次补充：导航居中布局
 * Logo固定左侧，nav居中，Contact Sales靠右
 */
.header-main-inner {
    display: flex;
    align-items: center;
    position: relative;
}

/* Lang toggle in header-top */
.header-top .lang-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #ccc;
    padding: 3px 10px;
    border-radius: var(--btn-radius);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.header-top .lang-toggle:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

/* @note #155-22: removed scrolled logo/site-name shrink - nav bar stays same height */

/**
 * @note 第157次提交第1次补充：header-main改回space-between（需要Logo+导航两侧对齐）
 */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.6rem;
    font-weight: var(--heading-weight);
    color: var(--brand-primary);
    letter-spacing: 1px;
    flex-shrink: 1;
    min-width: 0;
    max-width: 360px;
}
/* @note 第39次提交（第2次补充）：Logo与站名并排显示 */
.site-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
/**
 * @note 第39次提交（第21次补充）：站名过长时截断显示，避免挤压导航栏
 */
.site-logo-link .site-name {
    font-size: 1.2rem;
    font-weight: var(--heading-weight);
    color: var(--brand-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    display: block;
}
/**
 * @note #155-18: Logo尺寸进一步增大适配透明背景PNG
 * 透明背景的Logo视觉区域小于实际尺寸，增大max-height给予更多空间
 */
/** @note 第158次提交：导航栏Logo高度统一为60px */
.site-logo img.custom-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}
/**
 * @note 第39次提交（第21次补充）：WP自定义logo加载失败时隐藏alt文本避免撑开布局
 */
.site-logo img {
    font-size: 0;
    color: transparent;
}
/* @note 第40次提交：无Logo时主题色占位形状 */
.logo-placeholder {
    display: inline-block;
    width: 52px;
    height: 52px;
    background: var(--brand-primary);
    border-radius: 8px;
}

.site-logo span {
    color: var(--text-primary);
}

/**
 * @note 第157次提交第15次补充：页尾Logo加白色背景圆
 * 深色底上Logo需要白色背景确保可见（与品牌区Logo处理一致）
 */
/**
 * @note 第157次提交第37次补充：改为方形(8px圆角)，透明底Logo不适合圆形裁切
 * @note 第157次提交第41次补充：max-height统一为70px与导航栏Logo一致
 */
/** @note #259 Footer Logo 60px圆角20px */
.footer-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 6px;
}

/* === Navigation === */
/**
 * @note 第157次提交第14次补充：导航flex:1居中链接，CTA绝对右侧
 */
.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-gap);
}

/**
 * @note 第157次提交第1次补充：导航链接颜色分模式
 * 非首页: 深色(#555)
 * 首页: 白色，滚动后深色
 */
.main-nav a {
    color: #555;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
/* 首页: 导航白字 */
.site-header--front .main-nav a {
    color: #fff;
}
.site-header--front.scrolled .main-nav a {
    color: #555;
}

.main-nav a:hover:not(.btn-nav-cta),
.main-nav .current-menu-item a:not(.btn-nav-cta) {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
}

/* === Dropdown Submenu === */
.main-nav li {
    position: relative;
}
.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: var(--btn-radius);
    padding: 8px 0;
    z-index: 1000;
    flex-direction: column;
    gap: 0;
}
.main-nav li:hover > .sub-menu {
    display: flex;
}
.main-nav .sub-menu li {
    position: relative;
}
.main-nav .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: none;
    white-space: nowrap;
    color: #555;
}
.main-nav .sub-menu a:hover {
    background: var(--brand-gradient-start);
    color: var(--brand-primary);
    border-bottom: none;
}
/* Nested sub-menu (level 3+) */
.main-nav .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}
/* Arrow indicator for items with children */
.main-nav > ul > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
}

/* === Hero Section === */
.hero {
    background: linear-gradient(135deg, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);
    padding: 80px 0;
    text-align: center;
}
.hero-enhanced {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
/**
 * @note 第158次提交：背景图遮罩减淡为统一25%（客户反馈原遮罩太暗背景图看不清）
 * 由 135deg 0.5→0.25 渐变改为 90deg 全程 25% 均匀遮罩
 */
.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgb(0 0 0 / 25%) 0%, rgb(0 0 0 / 25%) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-enhanced h1 {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-size: 40px;
    line-height: 1.5em;
}
.hero-enhanced .hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 20px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-lg {
    padding: 16px 45px;
    font-size: 1.1rem;
}
.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}
.btn-full {
    width: 100%;
}
.hero-enhanced .btn-outline {
    border-color: #fff;
    color: #fff;
}
.hero-enhanced .btn-outline:hover {
    background: #fff;
    color: var(--brand-primary);
}

/* === Hero Split Layout (第40次提交) === */
/**
 * @note 第40次提交（第11次补充）：修复背景不全屏的根因
 * .hero的background shorthand会重置background-size/repeat等子属性
 * 使用.hero.hero-split高优先级选择器设置所有background子属性，避免shorthand覆盖
 */
.hero.hero-split {
    padding: 0;
    background-color: #333;
    background-image: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-split {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}
/**
 * @note 第158次提交：分屏Hero遮罩同样减淡为统一25%（客户反馈背景图太暗）
 */
.hero-split .hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgb(0 0 0 / 25%) 0%, rgb(0 0 0 / 25%) 100%);
}
/**
 * @note 第157次提交第23次补充：增大hero顶部内边距
 * 首页header固定定位约140px高，hero内容需在header下方展示
 */
.hero-split-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 200px 20px 80px 20px;
}
.hero-left {
    flex: 1;
    color: var(--hero-text-color, #fff);
    text-align: left;
}
.hero-left h1 {
    font-size: 2.2rem;
    color: var(--hero-text-color, #fff);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}
/**
 * @note 第157次提交第16次补充：简介文本强制白色
 * .hero p规则设置了color:var(--text-secondary)#666，需用更高优先级覆盖
 */
.hero-left .hero-factory-desc {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-left .hero-actions {
    justify-content: flex-start;
}
.hero-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
/** @note 第158次提交：非卡片内图片统一圆角20px */
.hero-factory-img {
    width: 100%;
    max-width: 560px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    object-fit: cover;
}
.hero-factory-placeholder {
    width: 100%;
    max-width: 560px;
    height: 360px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.3);
}

.hero h1 {
    font-size: var(--heading-size-h1);
    color: inherit;
    margin-bottom: 20px;
    font-weight: var(--heading-weight);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--brand-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-hover);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
}

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

/* === Section Styles === */
.section {
    padding: var(--spacing-section) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
/**
 * @note 第157次提交第37次补充：产品页标题居中对齐商品列表（排除左侧分类栏宽度）
 */
.products-archive .section-title {
    padding-left: 250px;
}

.section-title h2 {
    font-size: var(--heading-size-h2);
    color: var(--text-primary);
    margin-bottom: 10px;
}

.section-title p {
    color: #595959;
    font-size: 1.05rem;
}

/* === Product Filter Buttons === */
/* @note 第39次提交（第4次补充）：Products页面左侧分类栏+右侧产品网格双栏布局 */
.products-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    align-items: start;
}
.products-sidebar {
    position: sticky;
    top: 100px;
}
.products-sidebar h3 {
    font-size: 1.1rem;
    font-weight: var(--heading-weight);
    margin-bottom: 15px;
    color: var(--text-primary);
}
/* @note 第39次提交（第13次补充）：sidebar-toggle 桌面端隐藏，移动端显示 */
.sidebar-toggle {
    display: none;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.sidebar-toggle h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}
.toggle-icon {
    transition: transform 0.2s ease;
}
.products-sidebar.open .toggle-icon {
    transform: rotate(90deg);
}
.category-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-nav li {
    margin-bottom: 5px;
}
.category-nav .filter-btn {
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.category-nav .filter-btn:hover {
    background: #f8f8f8;
    border-color: var(--brand-primary);
}
.category-nav .filter-btn.active {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}
/* Subcategory indentation */
/**
 * @note 第157次提交第12次补充：子类目默认折叠，点击父类目或URL匹配时展开
 */
.category-nav-children {
    list-style: none;
    padding: 0 0 0 15px;
    margin: 4px 0 0 0;
    display: none;
}
.category-nav-children.expanded {
    display: block;
}
.category-nav-children li {
    margin-bottom: 3px;
}
.category-nav-children .filter-btn--child {
    width: 100%;
    text-align: left;
    padding: 7px 12px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    background: #fafafa;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
}
.category-nav-children .filter-btn--child:hover {
    background: #f0f0f0;
    border-color: var(--brand-primary);
}
.category-nav-children .filter-btn--child.active {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}
/* @note 第39次提交（第13次补充）：.products-main本身作为grid容器，shortcode直出product-card无.product-grid包裹 */
.products-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-gap);
}
.products-main .product-grid {
    grid-template-columns: repeat(4, 1fr);
}

.product-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 35px;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #555;
}

.filter-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.filter-btn.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.section-alt {
    background: var(--bg-light);
}
/** @note #259 类目区块背景色关联主题艢25%不透明度 */
#categories {
    background: color-mix(in srgb, var(--brand-primary) 25%, #fff);
}

/* === Inquiry Modal === */
.inquiry-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.inquiry-modal-overlay.active {
    display: flex;
}
.inquiry-modal {
    background: #fff;
    border-radius: calc(var(--border-radius) * 1.5);
    padding: 40px;
    max-width: 560px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.inquiry-modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
}
.inquiry-modal-close:hover { color: var(--text-primary); }
.inquiry-modal h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.inquiry-modal > p {
    color: #888;
    margin-bottom: 20px;
}
.inquiry-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
/** @note 第158次提交：询盘表单输入框圆角统一20px */
.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}
.inquiry-form input:focus,
.inquiry-form textarea:focus,
.inquiry-form select:focus {
    border-color: var(--brand-primary);
    outline: none;
}

/**
 * @note 第38次补充（第8次补充）：Floating Label 浮动标签
 * 输入框有内容或聚焦时，label浮到输入框上方显示字段名
 * 使用 :placeholder-shown 伪类检测空/非空状态
 * @note 第38次补充（第11次补充）：float-label自身加margin-bottom保持字段间距
 */
.float-label {
    position: relative;
    margin-bottom: 12px;
}
.float-label label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 30px);
    z-index: 1;
    line-height: 1;
}
/* 对textarea，label定位在顶部 */
.float-label textarea ~ label {
    top: 14px;
    transform: none;
}
/* 隐藏原始placeholder（通过CSS使其透明） */
.float-label input::placeholder,
.float-label textarea::placeholder {
    color: transparent;
}
/* 填充后 / 聚焦时 → label浮上去 */
.float-label input:not(:placeholder-shown) ~ label,
.float-label input:focus ~ label,
.float-label textarea:not(:placeholder-shown) ~ label,
.float-label textarea:focus ~ label {
    top: -8px;
    left: 10px;
    font-size: 0.72rem;
    color: var(--brand-primary);
    background: #fff;
    padding: 0 5px;
    max-width: none;
}
/* select 始终显示label在上方（因为select无:placeholder-shown） */
.float-label select ~ label {
    top: -8px;
    left: 10px;
    font-size: 0.72rem;
    color: var(--brand-primary);
    background: #fff;
    padding: 0 5px;
}
/* float-label内的input/textarea不再需要下边距（外层.float-label控制） */
.float-label input,
.float-label textarea,
.float-label select {
    margin-bottom: 0;
}
/**
 * @note 第12次补充：修复form-row双列grid布局
 * WooCommerce clearfix (::before/::after display:table) 会被CSS Grid
 * 当作匿名grid item占位，导致两列input错位为锯齿形排列。
 * 解决：重置伪元素 + float-label在grid内不需要margin-bottom（由gap控制）
 */
form.inquiry-form .form-row::before,
form.inquiry-form .form-row::after {
    display: none;
    content: none;
}
.inquiry-form .form-row .float-label {
    min-width: 0;
    margin-bottom: 0;
}
/* 校验错误提示 */
.float-label .field-error {
    display: none;
    font-size: 0.75rem;
    color: #e74c3c;
    margin-top: 2px;
    padding-left: 2px;
}
.float-label.has-error input,
.float-label.has-error textarea {
    border-color: #e74c3c;
}
.float-label.has-error .field-error {
    display: block;
}
/* Contact page form also uses float-label */
.contact-form .float-label label {
    background: #fff;
}
/* Contact page form-group 改造为 float-label 时，隐藏原始label显示模式 */
.contact-form .form-group.float-label {
    position: relative;
}
.contact-form .form-group.float-label > label {
    display: block;
    position: absolute;
    margin-bottom: 0;
    font-weight: 400;
}
.contact-form .form-group {
    margin-bottom: 12px;
}

.inquiry-success {
    text-align: center;
    padding: 40px 20px;
    animation: fadeInUp 0.5s ease;
}
.inquiry-success h4 {
    color: var(--brand-primary);
    font-size: 1.4rem;
    margin: 15px 0 8px;
}
.inquiry-success p {
    color: var(--text-muted);
    font-size: 0.95rem;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Category Grid === */
/* @note 第39次提交（第4次补充）：固定4列布局，移动端2列 */
/** @note #157-68 类目卡片固定4列，不超过布局1/4 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.category-card {
    display: block;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
/** @note #157-66 类目图片改为img标签，与商品卡片统一 */
.category-image {
    overflow: hidden;
    position: relative;
    background: #f0ede8;
}
.category-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
    border-radius: 0;
}
.category-card:hover .category-image img {
    transform: scale(1.06);
}
.category-info {
    padding: 18px;
    text-align: center;
}
.category-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.category-count {
    font-size: 0.85rem;
    color: #999;
}

/* === Stats Row === */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
}
.stat-item .number {
    font-size: 2.5rem;
    font-weight: var(--heading-weight);
    color: var(--brand-primary);
}
.stat-item .label {
    font-size: 0.9rem;
    color: #888;
    margin-top: 5px;
}

/* === Capabilities Grid === */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-gap);
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.capability-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s;
}
.capability-card:hover {
    transform: translateY(-3px);
}
.capability-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.capability-card h3 {
    padding: 15px 20px 5px;
    font-size: 1.1rem;
}
.capability-card p {
    padding: 0 20px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
/**
 * @note 第157次提交第11次补充：图片模式4列网格，图片自适应尺寸
 * 用户要求"4个图片才换行"
 */
/** @note 第158次提交：工厂展示板块图片间距统一20px */
.capabilities-grid--images-only {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.capability-card--image-only {
    border-radius: var(--border-radius);
    overflow: hidden;
}
.capability-card--image-only img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

/* === Certificates Grid === */
.cert-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
/* Image mode: grid layout for cert images */
.cert-grid--images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-gap);
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}
.cert-item {
    text-align: center;
    padding: 25px 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    min-width: 130px;
    transition: transform 0.3s;
}
.cert-item:hover {
    transform: translateY(-3px);
}
.cert-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.cert-image {
    margin-bottom: 12px;
}
.cert-image img {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 20px;
}
.cert-item span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}
/**
 * @note 第157次提交：证书图片模式 — 仅展示图片，无文字
 */
.cert-grid--images-only {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}
.cert-item--image-only {
    text-align: center;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: transform 0.3s;
}
.cert-item--image-only:hover {
    transform: translateY(-3px);
}
.cert-item--image-only .cert-image {
    margin-bottom: 0;
}
/** @note 第158次提交：证书图圆角统一20px */
.cert-item--image-only .cert-image img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    border-radius: 20px;
}

/* === Trust Logos === */
.trust-logos {
    display: flex;
    justify-content: center;
    gap: var(--spacing-gap);
    flex-wrap: wrap;
}
.trust-logos--images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-gap);
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.trust-image-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #eee;
    background: #fff;
}
.trust-image-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.trust-placeholder {
    width: 140px;
    height: 70px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    font-size: 0.8rem;
    color: #bbb;
}

/* === Bottom Inquiry Section === */
/** @note #259 Request Quote居中布局（文字上/表单下）+浅色背景轮替+输入框加高圆角 */
.inquiry-section {
    background: var(--bg-light);
    color: var(--text-dark, #333);
}
.inquiry-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    max-width: 700px;
    margin: 0 auto;
}
.inquiry-info h2 {
    font-size: 2rem;
    color: var(--text-dark, #333);
    margin-bottom: 15px;
}
.inquiry-info > p {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 25px;
}
.inquiry-benefits {
    list-style: none;
    margin-bottom: 25px;
}
.inquiry-benefits li {
    padding: 6px 0;
    font-size: 1rem;
    color: #555;
}
.inquiry-form-wrap {
    background: #fff;
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    width: 100%;
}
.inquiry-form-wrap .inquiry-form input,
.inquiry-form-wrap .inquiry-form select,
.inquiry-form-wrap .inquiry-form textarea {
    margin-bottom: 12px;
    min-height: 48px;
    border-radius: var(--border-radius);
}
.inquiry-form-wrap .inquiry-form textarea {
    min-height: 120px;
}
.inquiry-form-wrap .inquiry-form .btn {
    border-radius: var(--border-radius);
}

/* === Product Card Actions === */
.product-card-actions {
    margin-top: 10px;
}
.product-price {
    display: inline-block;
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 1.05rem;
    margin: 5px 0 2px;
}

/* === WC Product Detail (�?5次補�? === */
.product-sku {
    color: #999;
    font-size: 0.85rem;
    margin: 5px 0 15px;
}
.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 15px 0;
}
.product-detail-price .price-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.product-detail-price .price-value {
    color: var(--brand-primary);
    font-size: 1.6rem;
    font-weight: 700;
}
.product-moq-badge {
    display: inline-block;
    background: var(--brand-primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}
/**
 * @note 第157次提交第34次补充：sidebar需要align-self:stretch以填满grid行高
 * 否则sticky子元素(inquiry-sidebar-card)没有滚动空间
 */
.product-detail-sidebar {
    align-self: stretch;
}
.product-specs-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
}
.product-specs-card h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.product-specs-table {
    width: 100%;
    border-collapse: collapse;
}
.product-specs-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e8e4dc;
    font-size: 0.9rem;
}
.product-specs-table .spec-label {
    font-weight: 600;
    color: #555;
    width: 130px;
}
.product-description h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}
/**
 * @note 第157次提交第34次补充：sticky top = 导航栏实际高度(95px) + 10px间距
 */
.inquiry-sidebar-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 25px;
    position: sticky;
    top: 105px;
}
.inquiry-sidebar-card h4 {
    margin-bottom: 8px;
    color: var(--brand-primary);
}
.inquiry-sidebar-card p {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
}
.inquiry-sidebar-card input,
.inquiry-sidebar-card textarea,
.inquiry-sidebar-card select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    box-sizing: border-box;
}
.inquiry-sidebar-card select {
    appearance: auto;
    background: #fff;
}
/* float-label在sidebar中的间距由.float-label控制 */
.inquiry-sidebar-card .float-label input,
.inquiry-sidebar-card .float-label textarea,
.inquiry-sidebar-card .float-label select {
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    .inquiry-sidebar-card {
        position: static;
    }
}

/* === Breadcrumb Navigation === */
.breadcrumb {
    background: #f5f5f5;
    padding: 12px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #eee;
}
.breadcrumb a {
    color: var(--brand-primary);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb .sep {
    margin: 0 8px;
    color: #ccc;
}
.breadcrumb .current {
    color: #888;
}

/* === Product Grid === */
/**
 * @note #155-15: 所有网格默认居中，不足4个时卡片居中排列，满4列正常排列
 * auto-fit + minmax 实现弹性列数，justify-content:center 居中
 * 移动端保持2列（见 @media 断点）
 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* 产品卡片图片区域(�?4次补�?: 悬停缩放 + 懒加载占位背�?*/
.product-card .product-image-wrap {
    overflow: hidden;
    position: relative;
    background: #f0ede8;
}
/** @note 第39次提交：商品主图改为1:1正方形比例(aspect-ratio) */
/** @note #259：图片不单独设圆角，由卡片overflow:hidden+border-radius统一裁剪顶部圆角 */
.product-card img {
    width: 100%;
    aspect-ratio: 600 / 450;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 0;
}
.product-card:hover img {
    transform: scale(1.06);
}

.product-card .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.product-card p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.product-card .moq {
    font-size: 0.85rem;
    color: var(--brand-primary);
    font-weight: 600;
}

/* Products Archive page enhancements (�?6次补�? */
.products-archive .product-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.products-archive .btn-inquire {
    display: inline-block;
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}
.products-archive .btn-inquire:hover {
    color: var(--brand-hover);
    text-decoration: underline;
}
.product-placeholder {
    width: 100%;
    height: 250px;
    background: #f0ede8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* === Features === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-gap);
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-item p {
    color: #777;
    font-size: 0.9rem;
}

/* === About === */
/** @note #155-17: About页布局优化，工厂图靠上对齐+圆角 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    object-fit: cover;
    max-height: 360px;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/**
 * @note 第157次提交第8次补充：ReadMore展开/收起
 * 初始max-height与图片高度持平(约260px)，overflow隐藏多余文字
 * .expanded时展开显示全部，渐变遮罩消失
 */
.about-story-body {
    max-height: 260px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}
.about-story-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.about-story-body.expanded {
    max-height: 2000px;
}
.about-story-body.expanded::after {
    opacity: 0;
}
.btn-expand-story {
    margin-top: 12px;
    cursor: pointer;
    font-size: 0.9rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 2rem;
    font-weight: var(--heading-weight);
    color: var(--brand-primary);
}

.stat-item .label {
    font-size: 0.85rem;
    color: #888;
}

/* === Contact Form === */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: var(--btn-radius);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info .info-icon {
    font-size: 1.3rem;
    color: var(--brand-primary);
}

/* === Blog (�?1次补充增�? === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-gap);
}

.blog-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.blog-card-image img,
.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-card-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-card-placeholder span { font-size: 3rem; opacity: 0.5; }

.blog-card .card-body {
    padding: 20px;
}

.blog-card-category {
    display: inline-block;
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.blog-card .meta {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.blog-card h3 a {
    color: var(--text-primary);
}

.blog-card h3 a:hover {
    color: var(--brand-primary);
}

.blog-read-more {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--brand-primary);
    font-weight: 600;
    margin-left: auto;
}

/** @note 第38次补充：Blog卡片增强 — meta行(日期+阅读时间)+底部(作者头像+Read More) */
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 8px;
}
.meta-sep { color: #ccc; }
.blog-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}
.blog-author-avatar {
    border-radius: 50%;
    width: 24px;
    height: 24px;
}
.blog-author-name {
    font-size: 0.8rem;
    color: #777;
    font-weight: 500;
}

/* Blog Pagination */
.blog-pagination { margin-top: 40px; text-align: center; }
.blog-pagination ul { list-style: none; display: inline-flex; gap: 6px; padding: 0; margin: 0; }
.blog-pagination li { display: inline; }
.blog-pagination a, .blog-pagination span { display: inline-block; padding: 8px 14px; border-radius: 6px; font-size: 0.9rem; text-decoration: none; }
.blog-pagination a { background: #f5f5f5; color: var(--text-primary); transition: all 0.2s; }
.blog-pagination a:hover { background: var(--brand-primary); color: #fff; }
.blog-pagination .current { background: var(--brand-primary); color: #fff; font-weight: 600; }

/* === Footer === */
.site-footer {
    background: var(--bg-dark);
    color: #ccc;
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: var(--spacing-gap);
    margin-bottom: 30px;
}
/**
 * @note #157-102 Footer 动态列数: PHP计算实际列数输出class
 * 2col: 公司信息+联系 (无导航+无社媒+无QR)
 * 3col: 公司信息+导航+联系 或 公司信息+联系+社媒
 * 4col: 公司信息+导航+联系+社媒 (QR隐藏时最常见)
 * 5col: 全部显示(含QR码)
 */
.footer-grid--2col {
    grid-template-columns: 1.5fr 1fr;
}
.footer-grid--3col {
    grid-template-columns: 1.5fr 1fr 1fr;
}
.footer-grid--4col {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
}
.footer-grid--5col {
    grid-template-columns: 1.5fr 1fr 1fr auto auto;
}

/** @note #259 Quick Links去掉border-bottom */
.footer-col h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: none;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    color: #bbb;
    font-size: 0.9rem;
}
/** @note #157-77 Dropshipping无链接时<span>与<a>样式统一 */
.footer-col ul li span {
    color: #bbb;
    font-size: 0.9rem;
}

.footer-col ul a:hover {
    color: var(--brand-primary);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Footer company column */
.footer-col-company .footer-company-name {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 5px;
}
/**
 * @note 第38次补充：footer-tagline改为低调半透明白，与powered-by统一风格
 */
/** @note #259 footer tagline 20px, desc 16px */
.footer-tagline {
    color: rgba(255,255,255,0.55);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}
/**
 * @note 第157次提交：底部Site Title样式
 */
.footer-site-title {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
}
.footer-desc {
    font-size: 16px;
    color: #aaa;
}

/* Footer contact icons */
/**
 * @note #157-102 contact-icon用flexbox对齐
 * align-items:baseline确保emoji图标与文案基线对齐
 */
.contact-icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    margin-right: 6px;
}

/* Footer contact list */
.footer-contact-list {
    list-style: none;
    padding: 0;
}
/** @note #259 Contact Us列表间距加大 */
.footer-contact-list li {
    display: flex;
    align-items: baseline;
    margin-bottom: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.footer-contact-list a {
    color: #bbb;
}
.footer-contact-list a:hover {
    color: var(--brand-primary);
}
/* Footer contact + social fusion */
/** @note #157-100 Follow Us独立组块，移除border-top分隔线 */
.footer-contact-social {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}
/**
 * @note 第158次提交：footer社媒图标改为与header一致（50px白底圆角20px+品牌色图标）
 */
.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s;
}
.footer-social-icon:hover {
    opacity: 0.8;
    transform: scale(1.1);
}
/* footer社媒图标svg尺寸与header一致（28px） */
.footer-social-icon svg {
    width: 28px;
    height: 28px;
}
/* footer社媒图标品牌色（匹配href或title），与header保持一致 */
.footer-social-icon[href*="facebook"],
.footer-social-icon[title="Facebook"] { color: #1877F2; }
.footer-social-icon[href*="twitter"],
.footer-social-icon[href*="x.com"],
.footer-social-icon[title="Twitter"] { color: #1DA1F2; }
.footer-social-icon[href*="instagram"],
.footer-social-icon[title="Instagram"] { color: #E4405F; }
.footer-social-icon[href*="youtube"],
.footer-social-icon[title="Youtube"] { color: #FF0000; }
.footer-social-icon[href*="linkedin"],
.footer-social-icon[title="Linkedin"] { color: #0A66C2; }
.footer-social-icon[href*="tiktok"],
.footer-social-icon[title="Tiktok"] { color: #000; }
.footer-social-icon[href*="pinterest"],
.footer-social-icon[title="Pinterest"] { color: #BD081C; }
.footer-social-icon[href*="whatsapp"],
.footer-social-icon[title="Whatsapp"] { color: #25D366; }

/* Footer QR column (并排) */
.footer-col-qr {
    text-align: center;
}
.footer-col-qr h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.qr-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius);
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}
.qr-image-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 6px;
    padding: 4px;
}
.qr-image-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 4px;
}
.qr-logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    object-fit: contain;
    background: #fff;
    border-radius: 3px;
    padding: 2px;
}
.qr-domain {
    font-size: 0.8rem;
    color: #aaa;
    text-align: center;
}
/* Footer social (legacy - now inline with contact) */

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.85rem;
    color: #aaa;
}
.footer-bottom .powered-by { margin-top: 6px; }
/** @note powered-by链接改为低调半透明白色，避免在深色footer上过于突兀（原#D4A843太亮） */
.footer-bottom .powered-by a { color: rgba(255,255,255,0.5); text-decoration: none; font-weight: 400; font-size: 0.8rem; }
.footer-bottom .powered-by a:hover { text-decoration: underline; color: rgba(255,255,255,0.7); }
/** @note #259 版权栏Privacy Policy / Terms of Use链接 */
.footer-legal-links { margin-top: 6px; font-size: 0.85rem; }
.footer-legal-links a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-legal-links a:hover { text-decoration: underline; color: rgba(255,255,255,0.8); }
.footer-legal-links .separator { margin: 0 8px; color: rgba(255,255,255,0.3); }

/**
 * @note 第38次补充（第2次补充）：空态页美化 - 居中+主题风格+图标
 */
.empty-state {
    text-align: center;
    padding: 20px 20px 40px;
    max-width: 500px;
    margin: 0 auto;
    grid-column: 1 / -1;
}
.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.6;
}
.empty-state-title {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 700;
}
.empty-state-desc {
    font-size: 0.95rem;
    color: var(--text-secondary, #888);
    line-height: 1.6;
    margin-bottom: 20px;
}
.empty-state-search {
    max-width: 360px;
    margin: 0 auto 10px;
}
.empty-state-search .search-form {
    display: flex;
    gap: 8px;
}
.empty-state-search .search-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}
.empty-state-search .search-submit {
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.9rem;
}
.empty-state-search .search-submit:hover {
    opacity: 0.9;
}

/* === Responsive === */
/* === Hamburger Menu Toggle === */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

/**
 * @note 第157次提交第1次补充：汉堡菜单颜色分模式
 */
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.site-header--front .menu-toggle span {
    background: #fff;
}
.site-header--front.scrolled .menu-toggle span {
    background: #333;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    /**
     * @note 第157次提交第10次补充：移动端直接隐藏header-top品牌区+社媒
     * 移动端不需要品牌区过渡下滑动画，直接展示导航栏
     */
    .header-top {
        display: none !important;
    }
    /**
     * @note 第157次提交第10次补充：移动端首页header也用白底，与其他页一致
     * 因为品牌区已隐藏，透明header在深色背景上导航栏不可见
     */
    .site-header--front {
        background: #fff;
        border-bottom: 1px solid #eee;
        position: sticky;
    }
    .site-header--front .header-main-inner {
        color: #333;
    }
    .site-header--front .main-nav a {
        color: #555;
    }
    .site-header--front .menu-toggle span {
        background: #333;
    }
    .site-header--front .btn-nav-cta {
        background: var(--brand-primary);
        color: #fff !important;
    }
    /**
     * @note 第157次提交第13次补充：移动端首页Logo直接显示
     * 品牌区隐藏后需要导航栏Logo可见（class是site-logo不是nav-logo）
     */
    .site-header--front .site-logo {
        opacity: 1 !important;
        width: auto !important;
        visibility: visible !important;
        overflow: visible !important;
    }
    .header-top-social {
        position: static;
        transform: none;
        gap: 6px;
        margin-top: 4px;
    }
    /** @note #157-95 移动端品牌区邮箱隐藏(空间不足) */
    .header-top-email {
        display: none;
    }
    .header-top-inner {
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        padding: 20px;
    }

    .main-nav.nav-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav a {
        display: block;
        padding: 12px 0;
        font-size: 1rem;
        color: #555;
    }

    /* Mobile submenu: inline accordion style */
    .main-nav .sub-menu {
        position: static;
        box-shadow: none;
        min-width: auto;
        padding: 0 0 0 15px;
        border-radius: 0;
        background: #fafafa;
    }
    .main-nav li:hover > .sub-menu {
        display: none;
    }
    .main-nav li.sub-menu-open > .sub-menu {
        display: flex;
    }
    .main-nav .sub-menu a {
        padding: 10px 0;
        font-size: 0.95rem;
    }
    .main-nav .sub-menu .sub-menu {
        left: 0;
    }

    /**
     * @note #157-93 移动端Contact Sales左对齐但保留按钮样式
     * 只改位置（static+左对齐），保留主题色背景、圆角、字重等按钮视觉
     */
    .main-nav a.btn-nav-cta,
    .main-nav .btn-nav-cta {
        display: inline-block;
        position: static;
        margin: 10px 0;
        text-align: center;
        opacity: 1 !important;
        pointer-events: auto !important;
        right: auto;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .btn {
        display: block;
        margin-bottom: 10px;
    }

    /* Hero Split 移动端 */
    .hero.hero-split {
        min-height: auto;
    }
    .hero-split {
        align-items: flex-start;
    }
    .hero-split-inner {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
    }
    .hero-left h1 {
        font-size: 1.8rem;
    }
    .hero-left .hero-actions {
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: column;
    }
    .hero-right {
        width: 100%;
    }
    .hero-factory-img {
        max-width: 100%;
        max-height: 200px;
        object-fit: cover;
        border-radius: 8px;
    }

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    /**
     * @note 第157次提交第15次补充：移动端header恢复space-between
     * 桌面端justify-content:center + CTA absolute不适用移动端
     */
    .header-inner,
    .header-main-inner {
        flex-direction: row;
        justify-content: space-between;
    }
    .menu-toggle {
        order: 2;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .stat-item .number {
        font-size: 1.5rem;
    }

    .footer-grid,
    .footer-grid--2col,
    .footer-grid--3col,
    .footer-grid--4col,
    .footer-grid--5col {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    /* New sections responsive */
    .hero-enhanced {
        padding: 60px 0;
    }
    .hero-enhanced h1 {
        font-size: 2rem;
    }
    .hero-enhanced .hero-subtitle {
        font-size: 1rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .inquiry-modal {
        padding: 25px;
    }
    .inquiry-form .form-row {
        grid-template-columns: 1fr;
    }
    /** @note 第39次提交：移动端类目和商品2列适配 */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .product-card .card-body {
        padding: 12px;
    }
    .product-card h3 {
        font-size: 0.95rem;
    }
    .product-card p {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    /** @note #157-70 移动端View Details按钮不换行，字体自适应缩小，垂直居中 */
    .product-card .product-card-actions .btn {
        white-space: nowrap;
        font-size: clamp(0.65rem, 2.5vw, 0.85rem);
        padding: 6px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
    }
    /* @note 第39次提交（第13次补充）：移动端sidebar折叠为可展开/收起的手风琴 */
    .products-layout {
        grid-template-columns: 1fr;
    }
    .products-archive .section-title {
        padding-left: 0;
    }
    .products-sidebar {
        position: static;
    }
    .sidebar-toggle {
        display: block;
    }
    .products-sidebar .category-nav {
        display: none;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
    }
    .products-sidebar.open .category-nav {
        display: flex;
    }
    .category-nav li {
        margin-bottom: 0;
    }
    .category-nav .filter-btn {
        width: auto;
        padding: 6px 14px;
        font-size: 0.85rem;
    }
    .products-main {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-main .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-row {
        gap: 20px;
    }
    .stats-row .stat-item .number {
        font-size: 1.8rem;
    }
    /** @note 第39次提交（第1次补充）：R&D Capabilities移动端从1列→2列 */
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .capabilities-grid--images-only {
        grid-template-columns: repeat(2, 1fr);
    }
    .capability-card img {
        height: 150px;
    }
    .capability-card h3 {
        padding: 10px 12px 4px;
        font-size: 0.95rem;
    }
    .capability-card p {
        padding: 0 12px 12px;
        font-size: 0.8rem;
    }
    .cert-grid {
        gap: 15px;
    }
    .cert-grid--images {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-logos--images {
        grid-template-columns: repeat(2, 1fr);
    }
    .cert-item {
        min-width: 100px;
        padding: 15px 12px;
    }
    .cert-image img {
        height: 90px;
    }
    .inquiry-wrapper {
        gap: 25px;
    }
    .inquiry-form-wrap {
        padding: 25px;
    }
    /** @note #259 移动端浮动按钮缩小+紧凑间距 */
    .whatsapp-float,
    .inquiry-float,
    .email-float,
    .phone-float {
        right: 15px;
        width: 45px;
        height: 45px;
    }
    .phone-float { bottom: 15px; }
    .email-float { bottom: 70px; }
    .whatsapp-float { bottom: 125px; }
    .inquiry-float { bottom: 180px; }
    .back-to-top {
        bottom: 235px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .cert-grid--images-only {
        grid-template-columns: repeat(2, 1fr);
    }

    /**
     * @note 第157次提交第10次补充：移动端禁用滚动揭示动效和hero箭头弹跳
     * 用户要求"移动端响应时提示动效是不需要的"
     */
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-scroll-down {
        display: none;
    }
}

/* === Scroll Reveal Animations === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Touch-friendly tap targets */
@media (pointer: coarse) {
    .main-nav a,
    .btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
    }
    /**
     * @note 第38次补充（第8次补充）：menu-toggle不加inline-flex
     * 原因：pointer:coarse覆盖display:none导致桌面触屏设备也显示hamburger
     * 且flex-direction:row使3条横线水平排列而非垂直堆叠
     */
    .menu-toggle {
        min-height: 44px;
        min-width: 44px;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        min-height: 44px;
        font-size: 16px; /* Prevent iOS zoom */
    }
}

/* Lazy loading image placeholders */
img[loading="lazy"] {
    background: var(--brand-gradient-start);
}

/* Performance: reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* === WhatsApp Floating Button === */
/** @note #259 浮动按钮顺序调整：toTop(290)/表单(225)/WhatsApp(160)/邮件(95)/电话(30) */
/** @note 第158次提交：浮动icon统一圆角20px（toTop除外） */
.whatsapp-float {
    position: fixed;
    bottom: 160px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: #25D366;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.inquiry-float {
    position: fixed;
    bottom: 225px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--brand-primary);
    border: none;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(139, 105, 20, 0.35);
    z-index: 999;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.inquiry-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 105, 20, 0.5);
}

/* === Back to Top Button === */
.back-to-top {
    position: fixed;
    bottom: 290px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--brand-hover);
}

/* === Email & Phone Floating Buttons === */
.email-float {
    position: fixed;
    bottom: 95px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: #4285F4;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.email-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.5);
}
.phone-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: #34B7F1;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(52, 183, 241, 0.4);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.phone-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 183, 241, 0.5);
}

/* === Form Success Message === */
.form-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: var(--btn-radius);
    margin-bottom: 20px;
}

/* === Language Toggle Button (moved to header-top section above) === */

/* === Product Hero (single.php) === */
.product-hero {
    background: linear-gradient(135deg, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);
    padding: 50px 0;
}

/**
 * @note 第157次提交第33次补充：align-items:start让各列保持自然高度
 * JS syncHeroHeight()负责同步右列maxHeight = gallery真实高度
 */
.product-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/**
 * @note 修复轮播图效果，.product-hero-image img 选择器优先级高于 .gallery-thumb
 *       导致缩略图被撑满宽度。改为仅作用于无gallery时的后备单图
 */
/** @note #157-67 主图区域不超过布局50% */
.product-hero-image {
    min-width: 0;
    overflow: hidden;
}
.product-hero-image > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* === Product Gallery (�?1次补�?+ 轮播修复) === */
.product-gallery { position: relative; }
.gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: #f5f3ef;
    aspect-ratio: 4/3;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: opacity 0.35s ease;
}
.gallery-main img.fade-out { opacity: 0; }
.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--brand-primary); border-radius: 2px; }
.product-gallery .gallery-thumb {
    width: 72px;
    min-width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.25s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.product-gallery .gallery-thumb:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 3px 8px rgba(0,0,0,0.12); }
.product-gallery .gallery-thumb.active { border-color: var(--brand-primary); opacity: 1; box-shadow: 0 0 0 1px var(--brand-primary); }

/* Lightbox */
.gallery-lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.92); z-index: 99999; align-items: center; justify-content: center; }
.gallery-lightbox.active { display: flex; }
.gallery-lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--btn-radius); object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 30px; background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer; z-index: 10; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 2rem; padding: 15px 12px; cursor: pointer; border-radius: var(--btn-radius); transition: background 0.2s; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.product-hero-info .back-link {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--brand-primary);
    margin-bottom: 15px;
}

/**
 * @note 第157次提交第32次补充：product-hero-info使用flex布局
 * min-height:0 让此列不参与grid行高计算，由gallery列决定行高
 * overflow:hidden 防止内容溢出
 */
.product-hero-info {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.product-hero-info h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.product-excerpt {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
.product-excerpt p { margin: 0 0 0.5em; }

.product-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: auto;
}

.product-cta .moq {
    font-size: 0.9rem;
    color: var(--brand-primary);
    font-weight: 600;
}

/* === Product Content Specs Table === */
.product-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.product-content table thead th,
.product-content table th {
    background: var(--brand-primary);
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
}

.product-content table td {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    color: #555;
}

.product-content table tr:nth-child(even) {
    background: #faf8f4;
}

.product-content table tr:hover {
    background: var(--brand-gradient-start);
}

/* === Product Inquiry Bar === */
.product-inquiry-bar {
    margin-top: 40px;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-left: 4px solid var(--brand-primary);
}

.product-inquiry-bar p {
    color: #555;
    font-size: 1rem;
    margin: 0;
}

/* === Small Button Variant === */
.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* === Responsive: Product Hero & Language Toggle === */
@media (max-width: 768px) {
    .product-hero-inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /**
     * @note 第157次提交第37次补充：移动端取消JS设置的maxHeight和overflow限制
     * 桌面端两列布局需要限高同步，移动端单列布局内容应自然流动
     * @note 第157次提交第39次补充：overflow-x:hidden防止长文本水平溢出
     * min-width:0确保grid子项可收缩到小于内容最小宽度
     */
    .product-hero-info {
        max-height: none !important;
        overflow: visible;
        overflow-x: hidden;
        min-width: 0;
        word-break: break-word;
    }
    .product-excerpt {
        overflow-y: visible;
        flex: initial;
        overflow-x: hidden;
        word-break: break-word;
    }
    .product-hero-image {
        min-width: 0;
    }

    .product-hero-info h1 {
        font-size: 1.5rem;
    }

    .product-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-inquiry-bar {
        flex-direction: column;
        text-align: center;
    }

    .header-inner,
    .header-main-inner {
        position: relative;
    }

    /**
     * @note 移动端画廊优化：缩略图缩小至60px，间距调紧；
     *       Lightbox按钮满足44px最小触摸目标；主图改为正方形比例
     */
    .gallery-main { aspect-ratio: 1/1; }
    .gallery-thumbs { gap: 8px; margin-top: 10px; }
    .product-gallery .gallery-thumb { width: 60px; min-width: 60px; height: 60px; }
    .lightbox-close { font-size: 2rem; top: 12px; right: 16px; min-width: 44px; min-height: 44px; }
    .lightbox-prev, .lightbox-next { font-size: 1.5rem; padding: 18px 14px; min-width: 44px; min-height: 44px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .gallery-lightbox img { max-width: 95vw; max-height: 80vh; }
}

/* === Tablet breakpoint for blog grid === */
@media (max-width: 1024px) and (min-width: 769px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === Services Page (�?5次补�? === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-gap);
    margin-top: 20px;
}
.service-card {
    background: #fff;
    border-radius: calc(var(--border-radius) * 1.5);
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid transparent;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--brand-primary);
}
.service-icon { font-size: 2.5rem; margin-bottom: 15px; }
.service-card h3 { font-size: 1.15rem; color: var(--text-primary); margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; }

/**
 * @note 第38次补充：Our Process改为时间线连接风格
 * 步骤之间用虚线+箭头连接，整体更有流程感
 */
.process-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 30px;
    counter-reset: step;
}
.process-step {
    text-align: center;
    flex: 1;
    max-width: 180px;
    position: relative;
    padding: 0 10px;
}
/* Connecting line between steps */
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    right: -15px;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, rgba(0,0,0,0.1), var(--brand-primary));
}
.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    position: relative;
    z-index: 1;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.process-step h4 { font-size: 0.95rem; color: var(--text-primary); margin-bottom: 4px; font-weight: 600; }
.process-step p { font-size: 0.82rem; color: #888; line-height: 1.4; }

/* === FAQs Page (�?5次补�? === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid #e8e5e0;
    margin-bottom: 0;
}
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: color 0.2s;
}
.faq-question:hover { color: var(--brand-primary); }
.faq-icon {
    font-size: 1.5rem;
    color: var(--brand-primary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 15px;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 0;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 0 20px;
}
.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .process-steps { flex-direction: column; align-items: center; gap: 20px; }
    .process-step { max-width: 100%; }
    .process-step:not(:last-child)::after {
        top: auto;
        bottom: -14px;
        right: 50%;
        transform: translateX(50%) rotate(90deg);
        width: 20px;
    }
    .faq-question { font-size: 0.95rem; padding: 16px 0; }
}

/**
 * @note 第157次提交第8次补充：品牌区恢复垂直居中布局
 * Logo在SiteTitle上方，品牌区整体居中
 */
.header-top-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.header-top-brand-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: inherit;
}
/**
 * @note 第157次提交第14次补充：Logo加白色背景
 * 与社媒图标一致，确保在Hero背景图上Logo清晰可见
 * @note 第157次提交第37次补充：改为方形(8px圆角)，透明底Logo不适合圆形裁切
 * @note 第157次提交第40次补充：高度统一为与导航栏Logo一致(max-height:70px)
 */
.header-top-brand .top-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 6px;
}
.header-top-brand .top-logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: rgba(255,255,255,0.3);
}
.header-top-brand .site-title-text {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}
.header-top-brand .site-tagline-text {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.5px;
}
/**
 * @note 第157次提交第9次补充：修复首页顶部25.6px留白
 * 根因: WooCommerce注入的<noscript>标签(display:inline)被周围空白文本节点
 * 撑出一个line-height:25.6px的匿名行框(anonymous line box)，将<main>下推
 * 修复: 隐藏该noscript元素
 */
body > noscript {
    display: none;
}
body {
    padding-top: 0;
}
.hero-split {
    margin-top: 0;
    padding-top: 0;
}

/* === Hero Scroll Down Indicator === */
.hero-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    animation: heroScrollBounce 2s infinite;
}
.hero-scroll-arrow {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 3px solid rgba(255,255,255,0.8);
    border-bottom: 3px solid rgba(255,255,255,0.8);
    transform: rotate(45deg);
}
@keyframes heroScrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(10px); }
    60% { transform: translateX(-50%) translateY(5px); }
}

/* === Task 5: WC商品卡片优化 === */
.product-card p {
    display: none;
}
.product-card .card-body {
    display: flex;
    flex-direction: column;
    min-height: 120px;
    padding: 16px;
}
.product-card h3 {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}
/**
 * @note 第157次提交：View Details按钮贴合卡片内边距底部固定
 * flex + margin-top:auto确保按钮始终在卡片底部
 */
.product-card .product-card-actions,
.product-card .btn-view-detail {
    margin-top: auto;
    padding-top: 12px;
}
/**
 * @note #157-76: 统一使用flex居中，解决移动端文案不居中的源码顺序覆盖问题
 * 原因：此规则在文件中晚于@media(max-width:768px)的flex规则，
 * 同权重下display:block覆盖了display:flex导致移动端justify-content失效
 */
.product-card .product-card-actions .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

/* === Task 7: 分类卡片隐藏产品数量 === */
.category-count {
    display: none;
}

/* === Task 4: 国际化切换隐藏 === */
.lang-toggle {
    display: none !important;
}
