/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    /* 配色参考 lumorasafety.com：深林绿 + 鼠尾草绿 + 米白
       #08431E 深林绿（主色：按钮 / 链接 / 深色区块）
       #436F52 雾绿（次级文字）
       #A1CC84 鼠尾草绿（浅色强调 / 悬停底色 / 品牌图形）
       #F3F1ED 米白（区块底色） */
    --color-primary: #08431e;
    --color-primary-hover: #0b5a28;
    --color-primary-light: #a1cc84;
    --color-primary-dark: #063315;

    --color-dark: #08431e;
    --color-dark-light: #0f5a2a;
    --color-dark-lighter: #2f6b44;

    --color-bg: #ffffff;
    --color-bg-gray: #f3f1ed;
    --color-bg-dark: #08431e;

    --color-text: #14311f;
    --color-text-secondary: #436f52;
    --color-text-light: #7c8f82;
    --color-text-white: #ffffff;

    --color-border: #e3ded3;
    --color-border-light: #f0ece4;

    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* 头部：顶部信息条 + 主区（参考 lumorasafety 的 SITE_HEADER） */
    --topbar-height: 37px;
    --header-main-height: 156px;
    --header-height: 193px;
    --container-width: 1280px;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 20px 0;
}

.section.bg-gray {
    background-color: var(--color-bg-gray);
}

.section-header {
    text-align: left;
    margin-bottom: 48px;
}

.section-header.center {
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.section-footer {
    text-align: center;
    margin-top: 48px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 67, 30, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-dark);
    border-color: var(--color-dark);
}

.btn-outline:hover {
    background-color: var(--color-dark);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline-light {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background-color: #ffffff;
    color: var(--color-dark);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25d366;
    color: #ffffff;
    border-color: #25d366;
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
    border-color: #1ebe5d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

/* ========================================
   Header / Navigation
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-bg-gray);
    /* 实测参考站：隐藏时位移 0→-193px 用时约 185ms，且是「越走越快」的
       ease-in 曲线（逐帧位移 2,7,9,12,14,17,18,20,21,23,24,26），收尾直接停住。
       曲线沿用参考站，时长按需求放慢到 0.35s。 */
    transition: box-shadow var(--transition-normal),
                transform 0.35s cubic-bezier(0.4, 0, 1, 1);
}

/* 向下滚动时整条头部上移隐藏；向上滚动时由 JS 移回 */
.site-header.is-hidden {
    transform: translateY(-100%);
}

.site-header.scrolled {
    box-shadow: 0 6px 24px rgba(8, 67, 30, 0.12);
}

/* 顶部信息条：深林绿细条 */
.top-bar {
    height: var(--topbar-height);
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.82);
    font-size: 12.5px;
    letter-spacing: 0.4px;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 20px;
}

.top-bar-tagline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-shrink: 0;
}

.top-bar-contact a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    transition: color var(--transition-fast);
}

.top-bar-contact a:hover {
    color: var(--color-primary-light);
}

/* 主区：米白底 */
.header-main {
    height: var(--header-main-height);
    background-color: var(--color-bg-gray);
    border-bottom: 1px solid var(--color-border);
}

.header-main-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
}

/* 左侧标志 */
.logo-mark {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-mark svg {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    transition: transform var(--transition-fast);
}

.logo-mark:hover svg {
    transform: scale(1.04);
}

/* 中间：导航在上、大字标在下 */
.header-center {
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

/* 大号衬线字标（Lumora 用的是 fraunces 类衬线） */
.header-wordmark {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -1.6px;
    color: var(--color-primary);
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.header-wordmark:hover {
    color: var(--color-dark-light);
}

/* 右侧动作区 */
.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Main Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    position: relative;
}

/* 导航在米白底上：深绿文字，与 Lumora 的 17px / 0.85px 字距一致 */
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.85px;
    color: var(--color-primary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--color-primary-light);
    transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-secondary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 24px;
}

.dropdown-arrow {
    transition: transform var(--transition-fast);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 320px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    padding: 12px;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-item.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* 下拉项容器：二级菜单以它为定位基准 */
.dropdown-row {
    position: relative;
}

/* 二级菜单：鼠标移到上级分类时从右侧展开 */
.dropdown-submenu {
    position: absolute;
    left: 100%;
    top: -8px;
    min-width: 210px;
    padding: 8px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateX(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 5;
}

/* 桥接上下级之间的空隙：鼠标从上级横移到二级菜单时不会闪断 */
.dropdown-submenu::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    bottom: 0;
    width: 12px;
}

.dropdown-row.has-submenu:hover > .dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-subitem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--color-text);
    white-space: nowrap;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

/* 子分类左侧的小图标：有图片就用图片，没有则用通用立方体 */
.dropdown-subicon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(161, 204, 132, 0.18), rgba(161, 204, 132, 0.09));
    color: var(--color-primary);
    overflow: hidden;
}

.dropdown-subicon svg {
    width: 14px;
    height: 14px;
}

.dropdown-subicon.has-image {
    background: none;
}

.dropdown-subicon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dropdown-subitem-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-subitem:hover {
    background-color: var(--color-bg-gray);
    color: var(--color-primary);
}

/* 有下级分类时的右侧箭头 */
.dropdown-chevron {
    flex-shrink: 0;
    color: var(--color-text-light);
}

/* 每项现在只有一行分类名，收紧内边距，避免菜单过高、行间留白 */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background-color var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--color-bg-gray);
}

.dropdown-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(161, 204, 132, 0.18), rgba(161, 204, 132, 0.09));
    border-radius: 10px;
    color: var(--color-primary);
}

.dropdown-icon svg {
    width: 18px;
    height: 18px;
}

/* 有分类图片时：去掉橙色渐变底，让图片自己占满整个圆角方块 */
.dropdown-icon.has-image {
    background: none;
    overflow: hidden;
}

.dropdown-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.dropdown-item-text {
    flex: 1;
    min-width: 0;
}

.dropdown-item-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    /* 头部主区换成米白底后，白色汉堡线看不见了，改用深绿 */
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-dark);
    z-index: 999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-list {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-submenu {
    display: none;
    background-color: rgba(255, 255, 255, 0.03);
}

.mobile-submenu.active {
    display: block;
}

/* 移动端二级分类：再往右缩进一档，与上级区分 */
.mobile-submenu .mobile-subsubmenu .mobile-submenu-link {
    padding-left: 68px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.mobile-submenu-link {
    display: block;
    padding: 14px 24px 14px 48px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mobile-nav-cta {
    padding: 24px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    margin-top: var(--header-height);
}

.hero-slider {
    position: relative;
    height: 640px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* 背景图压暗遮罩：做成独立层而不是写在内联 background-image 里，
 * 这样能按屏幕尺寸调整强度（手机上文字更容易和图片内容打架）。 */
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 67, 30, 0.72), rgba(8, 67, 30, 0.42));
    z-index: 0;
}

.hero-slide > .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 680px;
    color: #ffffff;
}

.hero-subtitle {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--color-primary-light);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border-radius: 50%;
    transition: all var(--transition-normal);
    z-index: 10;
}

.slider-btn:hover {
    background-color: var(--color-primary);
}

.slider-btn svg {
    width: 24px;
    height: 24px;
}

.slider-prev {
    left: 32px;
}

.slider-next {
    right: 32px;
}

.slider-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.slider-dot.active {
    width: 32px;
    border-radius: 5px;
    background-color: var(--color-primary-light);
}

/* ========================================
   Categories Section
   ======================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    display: block;
}

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

.category-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(8, 67, 30, 0.7), transparent 50%);
}

.category-content {
    padding: 24px;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.category-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.category-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.category-more svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.category-card:hover .category-more svg {
    transform: translateX(4px);
}

/* ========================================
   Products Grid
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

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

.product-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: var(--color-bg-gray);
}

/* 图片外层链接要撑满容器，否则图片的 100% 高度没有参照 */
.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--color-primary);
    border-radius: 4px;
    z-index: 2;
}

.product-badge.badge-hot {
    background-color: var(--color-error);
}

.product-content {
    padding: 20px;
}

.product-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.4;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a:hover {
    color: var(--color-primary);
}

.product-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.product-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.product-link:hover svg {
    transform: translateX(4px);
}


/* ========================================
   News Section
   ======================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-image img {
    transform: scale(1.08);
}

.news-date-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.news-date-day {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}

.news-date-month {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    margin-top: 2px;
}

.news-content {
    padding: 24px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.news-category {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-primary);
    background-color: rgba(161, 204, 132, 0.18);
    border-radius: 4px;
}

.news-date {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-title a:hover {
    color: var(--color-primary);
}

.news-excerpt {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.news-more svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.news-more:hover svg {
    transform: translateX(4px);
}

/* ========================================
   CTA Section
   ======================================== */
/* 深色区块里的主按钮改用鼠尾草绿 + 深绿文字：
   深绿按钮压在深绿背景上几乎看不出边界（首屏与底部 CTA 都受影响） */
.cta-section .btn-primary,
.hero-section .btn-primary {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.cta-section .btn-primary:hover,
.hero-section .btn-primary:hover {
    background-color: #8fbe71;
    border-color: #8fbe71;
    color: var(--color-primary-dark);
}

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-light) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(161, 204, 132, 0.18) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.cta-text {
    flex: 1;
}

.cta-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.cta-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

/* ========================================
   Page Banner
   ======================================== */
.page-banner {
    margin-top: var(--header-height);
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-light) 100%);
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(161, 204, 132, 0.27) 0%, transparent 70%);
    border-radius: 50%;
}

.page-banner-sm {
    padding: 60px 0;
}

.page-banner-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--color-primary-light);
}

.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-current {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   Products Page Layout
   ======================================== */
.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Sidebar */
.products-sidebar {
    flex-shrink: 0;
}

.sidebar-widget {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

/* 分类侧边栏：树状结构
   原来 .category-item 是 flex + space-between，导致子分类 <ul> 被当成
   第二个 flex 项挤到右侧一列（看起来像并排两列文字）。
   这里改成块级：父项一行，子项缩进挂在下方，并用竖线 + 小横线画出层级。 */
.category-list {
    border: none;
    padding: 0;
    list-style: none;
}

.category-item {
    /* 保留 flex：产品列表页/新闻页的侧边栏用同一个 class 展示右侧的计数徽标，
       不能改成块级，否则计数会掉到下一行。
       用 flex-wrap 让「子分类列表」换行独占一行，从而形成树状层级。 */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.category-item:last-child {
    border-bottom: none;
}

.category-item > a {
    font-size: 15px;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.category-item > a:hover,
.category-item.active > a,
.category-item.is-ancestor > a {
    color: var(--color-primary);
}

/* 子分类：缩进 + 左侧竖线，形成树枝 */
.sub-category-list {
    /* 独占一行（flex 基准 100%），从而落在父项下方而不是右侧 */
    flex: 1 1 100%;
    list-style: none;
    margin: 8px 0 2px 6px;
    padding-left: 14px;
    border-left: 1px solid var(--color-border);
}

/* 子项也用 flex，让计数徽标靠右 */
.sub-category-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

.sub-category-item > a {
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

/* 每个子项左侧的小横线，与竖线组成 ├─ 形状 */
.sub-category-item::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    width: 10px;
    height: 1px;
    background-color: var(--color-border);
}

.sub-category-item > a:hover,
.sub-category-item.active > a {
    color: var(--color-primary);
}

/* 子项的计数徽标比父项更小，避免喧宾夺主 */
.sub-category-item .category-count {
    font-size: 12px;
    padding: 1px 7px;
}

.category-count {
    font-size: 13px;
    color: var(--color-text-light);
    background-color: var(--color-bg-gray);
    padding: 2px 8px;
    border-radius: 10px;
}

.sub-category-list {
    width: 100%;
    margin-top: 8px;
    padding-left: 16px;
    border-left: 2px solid var(--color-border-light);
}

.sub-category-list li {
    padding: 6px 0;
}

.sub-category-list a {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.hot-products {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hot-product-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: background-color var(--transition-fast);
}

.hot-product-item:hover {
    background-color: var(--color-bg-gray);
}

.hot-product-img {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--color-bg-gray);
}

.hot-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-product-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-product-info span {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-light) 100%);
    color: #ffffff;
    text-align: center;
}

.sidebar-cta h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.sidebar-cta p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Products Main */
.products-main {
    min-width: 0;
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border-light);
}

.products-count {
    font-size: 15px;
    color: var(--color-text-secondary);
}

.products-count strong {
    color: var(--color-text);
    font-weight: 600;
}

.sort-select {
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--color-text);
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.sort-select:focus {
    border-color: var(--color-primary);
}

.products-grid-page {
    margin-bottom: 40px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.page-link:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.page-link.active {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.page-link svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   Product Detail
   ======================================== */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: calc(var(--header-height) + 30px);
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--color-bg-gray);
    margin-bottom: 16px;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.thumbnail-item {
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    background-color: var(--color-bg-gray);
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--color-primary);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info-header {
    margin-bottom: 24px;
}

.product-category-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-primary);
    background-color: rgba(161, 204, 132, 0.18);
    border-radius: 4px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-info-model {
    font-size: 15px;
    color: var(--color-text-secondary);
}

.product-info-desc {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--color-border-light);
}

/* 标题下方的规格参数：一行一个规格 + 对应数值的表格。
 * 样式参考：左侧标签列灰底，只保留横向分隔线，不画竖向网格与外框。
 * 标签底色取 --color-border（#e2e8f0）——比页面浅灰背景再深一档，
 * 既能把「名称 / 数值」两列分开，又不会抢正文的注意力。 */
.product-specs-table {
    width: 100%;
    margin: 20px 0 0;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
    border-top: 1px solid var(--color-border-light, #e2e8f0);
}

.product-specs-table th,
.product-specs-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
    word-break: break-word;
    border: none;
    border-bottom: 1px solid var(--color-border-light, #e2e8f0);
}

.product-specs-table th {
    width: 30%;
    font-weight: 400;
    /* 底色加深后要把标签文字也压深一点，否则浅灰字在灰底上对比不足 */
    color: var(--color-text-secondary, #64748b);
    background-color: var(--color-border, #e2e8f0);
}

.product-specs-table td {
    color: var(--color-text, #14311f);
    font-weight: 600;
}

/* 最后一行不画分隔线，避免与下方内容之间出现双线 */
.product-specs-table tbody tr:last-child th,
.product-specs-table tbody tr:last-child td {
    border-bottom: none;
}

.product-specs-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background-color: var(--color-bg-gray);
    border-radius: 10px;
}

.spec-label {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.spec-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.product-features {
    margin-bottom: 32px;
}

.product-features h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--color-text);
}

.feature-list svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-success);
}

.product-cta-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.product-share {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border-light);
}

.product-share > span {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.share-links {
    display: flex;
    gap: 10px;
}

.share-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-gray);
    color: var(--color-text-secondary);
    border-radius: 8px;
    /* 「复制链接」用的是 <button>，需要抹平浏览器默认样式 */
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.share-link svg {
    width: 18px;
    height: 18px;
}

/* 复制成功后的轻提示，2 秒后由 JS 隐藏 */
.share-copied {
    font-size: 13px;
    color: var(--color-success, #10b981);
}

.share-link:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.share-link svg {
    width: 16px;
    height: 16px;
}

/* Product Tabs */
.product-tabs {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 60px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--color-border-light);
    overflow-x: auto;
}

.tab-btn {
    flex-shrink: 0;
    padding: 20px 32px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-secondary);
    border-bottom: 3px solid transparent;
    transition: all var(--transition-fast);
    position: relative;
}

.tab-btn:hover {
    color: var(--color-primary);
}

.tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-content-inner {
    padding: 40px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}

.spec-table th {
    width: 30%;
    font-weight: 600;
    color: var(--color-text);
    background-color: var(--color-bg-gray);
}

.spec-table td {
    color: var(--color-text-secondary);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.application-item {
    padding: 24px;
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition-fast);
}

.application-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.application-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(161, 204, 132, 0.18), rgba(161, 204, 132, 0.09));
    color: var(--color-primary);
    border-radius: 14px;
}

.application-icon svg {
    width: 28px;
    height: 28px;
}

.application-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.application-item p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--color-primary);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: var(--color-bg-gray);
}

.faq-question h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.faq-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: transform var(--transition-fast);
}

.faq-toggle svg {
    width: 18px;
    height: 18px;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Related Products */
.related-products .section-header {
    margin-bottom: 32px;
}

/* ========================================
   Category Page
   ======================================== */
/* ========================================
   News Page
   ======================================== */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.featured-news {
    margin-bottom: 40px;
}

.featured-news-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.featured-news-link:hover {
    box-shadow: var(--shadow-xl);
}

.featured-news-image {
    position: relative;
    height: 360px;
    overflow: hidden;
}

.featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.featured-news-link:hover .featured-news-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--color-primary);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-news-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-news-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.4;
}

.featured-news-excerpt {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* News List Horizontal */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.news-item-horizontal {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.news-item-horizontal:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-lg);
}

.news-item-image {
    position: relative;
    height: 100%;
    min-height: 200px;
    overflow: hidden;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-item-horizontal:hover .news-item-image img {
    transform: scale(1.08);
}

.news-item-content {
    padding: 24px 24px 24px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-item-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-item-title a:hover {
    color: var(--color-primary);
}

.news-item-excerpt {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--color-text-light);
}

.news-views svg {
    width: 14px;
    height: 14px;
}

/* News Sidebar */
.news-sidebar {
    flex-shrink: 0;
}

.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color var(--transition-fast);
}

.search-input:focus {
    border-color: var(--color-primary);
}

.search-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.search-btn:hover {
    color: var(--color-primary);
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

.popular-news {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popular-news-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border-light);
}

.popular-news-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.popular-news-rank {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.popular-news-item:nth-child(2) .popular-news-rank {
    background-color: var(--color-warning);
}

.popular-news-item:nth-child(3) .popular-news-rank {
    background-color: var(--color-text-light);
}

.popular-news-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-news-date {
    font-size: 12px;
    color: var(--color-text-light);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--color-text-secondary);
    background-color: var(--color-bg-gray);
    border-radius: 20px;
    transition: all var(--transition-fast);
}

.tag:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscribe-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   News Detail
   ======================================== */
.news-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.news-article {
    min-width: 0;
}

.article-header {
    margin-bottom: 32px;
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-text);
    margin: 16px 0 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.article-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.article-meta svg {
    width: 16px;
    height: 16px;
}

.article-featured-image {
    width: 100%;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 关于我们：正文由后台富文本编辑器维护，限制阅读宽度更易读 */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content-section .empty-hint {
    text-align: center;
    color: var(--color-text-light);
    padding: 40px 0;
}

.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--color-text);
    margin-bottom: 40px;
}

.article-content p {
    margin-bottom: 20px;
}

/* 全局把 ul/ol 的默认符号重置掉了，富文本正文里要恢复，
   否则编辑器里排的列表在页面上只剩一行行文字 */
.article-content ul,
.article-content ol,
.rte-content ul,
.rte-content ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.article-content ul,
.rte-content ul { list-style: disc; }
.article-content ol,
.rte-content ol { list-style: decimal; }

.article-content li,
.rte-content li { margin-bottom: 8px; }

.article-content h2,
.article-content h3 {
    margin: 32px 0 16px;
    font-weight: 600;
}

.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 24px 0;
}

.article-footer {
    padding-top: 32px;
    border-top: 1px solid var(--color-border-light);
    margin-bottom: 40px;
}

.article-tags {
    margin-bottom: 24px;
}

.tags-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin-right: 12px;
}

.tag-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 16px;
}

.share-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

/* Article Navigation */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 60px;
    padding: 24px;
    background-color: var(--color-bg-gray);
    border-radius: 12px;
}

.article-nav-prev,
.article-nav-next {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: #ffffff;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.article-nav-prev:hover,
.article-nav-next:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-gray);
    color: var(--color-text-secondary);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.article-nav-prev:hover .nav-arrow,
.article-nav-next:hover .nav-arrow {
    background-color: var(--color-primary);
    color: #ffffff;
}

.nav-arrow svg {
    width: 18px;
    height: 18px;
}

.nav-text {
    min-width: 0;
    overflow: hidden;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.nav-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-nav-next {
    text-align: right;
    justify-content: flex-end;
}

.article-nav-empty {
    visibility: hidden;
}

/* Related News */
.related-news {
    margin-bottom: 40px;
}

.related-news-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 24px;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-news-item {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.related-news-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.related-news-image {
    display: block;
    height: 160px;
    overflow: hidden;
}

.related-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.related-news-item:hover .related-news-image img {
    transform: scale(1.08);
}

.related-news-content {
    padding: 16px;
}

.related-news-content .news-date {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 8px;
    display: block;
}

.related-news-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-news-content h4 a:hover {
    color: var(--color-primary);
}

/* ========================================
   About Page
   ======================================== */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-intro-images {
    position: relative;
}

.about-img-main {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.about-img-sm {
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
}

.about-img-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-intro-text {
    margin: 24px 0 32px;
}

.about-intro-text p {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.about-stat-item {
    text-align: center;
    padding: 20px 12px;
    background: linear-gradient(135deg, rgba(161, 204, 132, 0.09), rgba(161, 204, 132, 0.04));
    border-radius: 12px;
    border: 1px solid rgba(161, 204, 132, 0.18);
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* Features Grid 4 */
.features-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 40px 32px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-normal);
}

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

.feature-card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(161, 204, 132, 0.18), rgba(161, 204, 132, 0.09));
    color: var(--color-primary);
    border-radius: 20px;
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-card-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #ffffff;
    transform: scale(1.1);
}

.feature-card-icon svg {
    width: 36px;
    height: 36px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Mission Section */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mission-card {
    padding: 48px 36px;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-light) 100%);
    border-radius: 16px;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.mission-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(161, 204, 132, 0.27) 0%, transparent 70%);
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.mission-card:hover {
    transform: translateY(-8px);
}

.mission-card:hover::before {
    transform: scale(2);
}

.mission-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: #ffffff;
    border-radius: 50%;
    z-index: 1;
}

.mission-icon svg {
    width: 40px;
    height: 40px;
}

.mission-card h3 {
    position: relative;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    z-index: 1;
}

.mission-card p {
    position: relative;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    z-index: 1;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 240px 240px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item-lg {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    background: linear-gradient(to top, rgba(8, 67, 30, 0.8), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.cert-item {
    padding: 32px 20px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.cert-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.cert-logo {
    margin-bottom: 16px;
}

.cert-badge {
    display: inline-block;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    background: linear-gradient(135deg, rgba(161, 204, 132, 0.18), rgba(161, 204, 132, 0.09));
    border-radius: 10px;
}

.cert-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

/* ========================================
   Contact Page
   ======================================== */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-info-card {
    padding: 32px 24px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.contact-info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.contact-info-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(161, 204, 132, 0.18), rgba(161, 204, 132, 0.09));
    color: var(--color-primary);
    border-radius: 16px;
}

.contact-info-icon svg {
    width: 30px;
    height: 30px;
}

.contact-info-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.contact-info-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* 联系方式取值：后台可能填多行地址，保留换行 */
.contact-info-value {
    white-space: pre-line;
}

.contact-info-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.contact-info-value a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Contact Form */
.contact-form-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

/* ===== 询盘弹窗（产品详情页 Get Quote） ===== */
.quote-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.quote-modal[hidden] {
    display: none;
}

.quote-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(8, 67, 30, 0.6);
    backdrop-filter: blur(2px);
}

.quote-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 30px 80px rgba(8, 67, 30, 0.35);
}

.quote-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: var(--color-text-light);
    cursor: pointer;
    border-radius: 8px;
}

.quote-modal-close:hover {
    background-color: var(--color-bg-gray);
    color: var(--color-text);
}

.quote-modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.quote-modal-product {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.quote-modal-product strong {
    color: var(--color-text);
}

.quote-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quote-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

/* 弹窗打开时锁住背景滚动 */
body.no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    .quote-modal {
        padding: 12px;
    }

    .quote-modal-dialog {
        padding: 24px 20px;
        max-height: calc(100vh - 24px);
    }
}

/* ===== 可搜索下拉框（联系页 Country/Region、Product of Interest） ===== */
.searchable-select {
    position: relative;
}

/* 原生 select 保留在 DOM 里负责提交，视觉上隐藏 */
.searchable-select-native {
    /* 原生 select 只负责提交值，视觉上隐藏。
       注意：.form-group select 的 width:100% 选择器权重更高，
       会把这里撑回 100% —— 看着是隐藏了，实际仍占 375px 宽，
       在手机上把页面顶出横向滚动条（实测 scrollWidth 414 > 375）。
       所以宽高必须加 !important，并显式限制 max-width。 */
    position: absolute !important;
    left: 0;
    top: 0;
    width: 1px !important;
    height: 1px !important;
    max-width: 1px !important;
    padding: 0 !important;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    pointer-events: none;
}

.searchable-select-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 15px;
    color: var(--color-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.searchable-select-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(8, 67, 30, 0.15);
}

.searchable-select-list {
    position: absolute;
    z-index: 60;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(8, 67, 30, 0.12);
}

.searchable-select-option {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--color-text);
    cursor: pointer;
}

.searchable-select-option small {
    color: var(--color-text-light);
    font-size: 12px;
    white-space: nowrap;
}

.searchable-select-option.is-active,
.searchable-select-option:hover {
    background-color: rgba(161, 204, 132, 0.18);
}

.searchable-select-option.is-selected {
    font-weight: 600;
}

.searchable-select-empty {
    padding: 12px 14px;
    font-size: 14px;
    color: var(--color-text-light);
}

/* 询盘提交结果提示 */
.form-notice {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.form-notice.is-success {
    background-color: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-notice.is-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 询盘表单独占一行（左侧信息栏已移除） */
.contact-form-layout--single {
    display: block;
    max-width: 860px;
    margin: 0 auto;
}

.contact-form-desc {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin: 20px 0 32px;
}

.contact-working-hours {
    margin-bottom: 32px;
}

.contact-working-hours h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
}

.contact-working-hours ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-working-hours li {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 14px;
    color: var(--color-text-secondary);
}

.contact-working-hours li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-social h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
}

.contact-form-wrapper {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 顶部 Get Quote 用 /contact#name 直接定位到 Name 输入框；
   页面顶部是固定导航，不留出偏移的话输入框会被挡住。
   注意要加在「锚点目标本身」上：锚到 #name 时生效的是 input 自己的
   scroll-margin-top，写在外层 .form-group 上不会起作用。
   这里统一覆盖表单内所有带 id 的元素，方便以后锚到任意字段。 */
#inquiryForm [id],
.inquiry-form .form-group {
    scroll-margin-top: 110px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.required {
    color: var(--color-error);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--color-text);
    background-color: #ffffff;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(8, 67, 30, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text-secondary);
    user-select: none;
}

.checkbox-label input {
    display: none;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    transition: all var(--transition-fast);
    position: relative;
}

.checkbox-label input:checked + .checkbox-custom {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 6px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: translate(-50%, -60%) rotate(-45deg);
}

/* ========================================
   Sitemap 页面
   ======================================== */
.sitemap-block {
    margin-bottom: 40px;
}

.sitemap-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-light);
}

.sitemap-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-link-list a {
    color: var(--color-text-secondary);
    transition: color 0.15s;
}

.sitemap-link-list a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.sitemap-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.sitemap-category {
    background-color: var(--color-bg-gray);
    border-radius: 12px;
    padding: 20px 22px;
}

.sitemap-category-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
}

.sitemap-category-name a {
    color: var(--color-text);
}

.sitemap-category-name a:hover {
    color: var(--color-primary);
}

.sitemap-subcategories {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sitemap-subcategory-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sitemap-subcategory-name a {
    color: var(--color-text);
}

.sitemap-subcategory-name a:hover {
    color: var(--color-primary);
}

.sitemap-empty {
    font-size: 14px;
    color: var(--color-text-light);
}

.sitemap-footer {
    margin-top: 8px;
    font-size: 14px;
    color: var(--color-text-light);
}

.sitemap-footer a {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .sitemap-categories {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background-color: var(--color-dark);
    color: #ffffff;
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-about {
    padding-right: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo svg {
    width: 40px;
    height: 40px;
}

.footer-logo span {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-color: var(--color-primary-light);
    color: #ffffff;
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary-light);
    padding-left: 6px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer-contact svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--color-primary-light);
    margin-top: 2px;
}

.footer-bottom {
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a:hover {
    color: var(--color-primary-light);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid-4,
    .contact-info-grid,
    .cert-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cert-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .section {
        padding: 20px 0;
    }

    .section-title {
        font-size: 30px;
    }

    .hero-slider {
        height: 500px;
    }

    .hero-title {
        font-size: 42px;
    }

    .categories-grid,
    .products-grid,
    .news-grid,
    .related-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-intro-grid,
    .product-detail-layout,
    .contact-form-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* 单列布局下必须取消 sticky：
       桌面端用 sticky 让图库跟随右侧图文，但在手机上图文变成上下排列，
       再 sticky 就会让轮播图钉在视口顶部不动 —— 表现为"向上滑动时
       图片没有跟着一起上移"。 */
    .product-gallery {
        position: static;
        top: auto;
    }

    .about-img-sub {
        right: 20px;
    }

    .products-layout {
        grid-template-columns: 1fr;
    }

    .products-sidebar {
        order: 2;
    }

    .news-layout,
    .news-detail-layout {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        order: 2;
    }

    .features-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cert-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .gallery-item-lg {
        grid-column: span 1;
    }

    .gallery-item {
        height: 200px;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-actions {
        justify-content: center;
    }

    /* Navigation：≤992 起改用抽屉，头部同时收成紧凑版 */
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .header-actions .btn {
        display: none;
    }

    /* 紧凑头部：隐藏顶部信息条，高度 64px，大字标缩小 */
    :root {
        --header-height: 64px;
    }

    .top-bar {
        display: none;
    }

    .header-main {
        height: var(--header-height);
    }

    .header-main-inner {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
    }

    .logo-mark svg {
        width: 38px;
        height: 38px;
        border-radius: 9px;
    }

    .header-center {
        align-items: flex-start;
        gap: 0;
    }

    .header-wordmark {
        font-size: 22px;
        letter-spacing: -0.6px;
        font-weight: 700;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 20px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .hero-slider {
        height: 440px;
    }

    /* 手机上左右箭头会压住正文，改用圆点与滑动切换 */
    .slider-btn {
        display: none;
    }

    /* 给底部圆点留出空间，避免内容与圆点、斜纹带挤在一起 */
    .hero-slide > .container {
        padding-bottom: 52px;
    }

    .slider-dots {
        bottom: 18px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* 手机上背景图与前景文字更容易互相干扰，遮罩加深一档 */
    .hero-slide::before {
        background: linear-gradient(135deg, rgba(8, 67, 30, 0.86), rgba(8, 67, 30, 0.66));
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-prev {
        left: 12px;
    }

    .slider-next {
        right: 12px;
    }

    .page-banner {
        padding: 70px 0;
    }

    /* 产品详情的 banner 现在只有面包屑（标题已移除），
     * 沿用 70px 会留下一大片空白，这里单独收紧。
     * 用 .page-banner.page-banner-sm 提高优先级，避免被上面的规则覆盖。 */
    .page-banner.page-banner-sm {
        padding: 26px 0;
    }

    /* 面包屑可能很长（分类名 + 产品名），允许折行并缩小字号 */
    .breadcrumb {
        flex-wrap: wrap;
        font-size: 12.5px;
        gap: 6px 8px;
        line-height: 1.5;
    }

    .page-title {
        font-size: 32px;
    }

    .categories-grid,
    .products-grid,
    .news-grid,
    .related-news-grid,
    .applications-grid {
        grid-template-columns: 1fr;
    }

    .about-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-img-main {
        height: 320px;
    }

    .about-img-sub {
        display: none;
    }

    .features-grid-4,
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-news-link {
        grid-template-columns: 1fr;
    }

    .featured-news-image {
        height: 240px;
    }

    .featured-news-content {
        padding: 24px;
    }

    .news-item-horizontal {
        grid-template-columns: 1fr;
    }

    .news-item-image {
        min-height: 200px;
    }

    .news-item-content {
        padding: 20px;
    }

    .product-info-title {
        font-size: 26px;
    }

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

    .product-cta-buttons {
        flex-direction: column;
    }

    .thumbnail-list {
        grid-template-columns: repeat(4, 1fr);
    }

    /* 主图原来固定 500px 高，手机上被裁掉一大半（产品图多为正方形）。
     * 改成按宽度自适应 + 1:1 比例，窄屏也能看到完整图片。 */
    .main-image-wrapper {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .thumbnail-item {
        height: 68px;
    }

    .product-specs-table {
        font-size: 13px;
    }

    .product-specs-table th {
        width: 36%;
    }

    .product-specs-table th,
    .product-specs-table td {
        padding: 10px 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .article-title {
        font-size: 28px;
    }

    .article-featured-image {
        height: 280px;
    }

    .article-nav {
        grid-template-columns: 1fr;
    }

    .related-news-grid {
        grid-template-columns: 1fr;
    }

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

    .gallery-item {
        height: 220px;
    }


    .products-toolbar {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .tab-content-inner {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 20px 0;
    }

    .section-title {
        font-size: 22px;
    }

    .hero-slider {
        height: 430px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 12px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 15px;
    }

    .page-banner {
        padding: 60px 0;
    }

    .page-title {
        font-size: 26px;
    }


    .about-stats-row {
        grid-template-columns: 1fr 1fr;
    }

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

    .thumbnail-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-text h2 {
        font-size: 26px;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
    }
}

/* ========================================
   WhatsApp Float Button
   ======================================== */
/* 右下角悬浮按钮组：Get Quote 在上、WhatsApp 在下，两者间隔 20px。
   容器负责定位，按钮本身只负责外观，这样关掉 WhatsApp 时
   Get Quote 会自动补到底部，不会悬在半空。 */
.float-actions {
    position: fixed;
    /* 显隐过渡：产品详情页滚过 CTA 按钮后才浮现 */
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    right: 30px;
    bottom: 130px;
    display: flex;
    flex-direction: column;
    /* stretch 让两个按钮等宽：容器宽度取较宽的那个（WhatsApp Us），
       窄的那个被拉伸到相同长度，右侧仍然对齐，视觉上更像一组 */
    align-items: stretch;
    gap: 20px;
    z-index: 999;
}


/* 详情页首屏隐藏：避免与信息区里的大按钮重复 */
.float-actions.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
}

/* 与询价按钮同样是胶囊形，右侧对齐、高度一致 */
.whatsapp-float {
    /* 与右下角「回到顶部」按钮保持一致：48×48、图标 22px */
    height: 48px;
    padding: 0 24px 0 20px;
    gap: 10px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

/* 两个图标的视觉大小要对齐，不能只看画布尺寸：
 *   WhatsApp 图形占满 viewBox（23.9/24），22px 画布几乎就等于 22px 视觉大小；
 *   询价是描边图标，图形只占 18/24，同样的 22px 画布实际只画出约 18px。
 * 所以询价图标给到 27px 画布（(18+1.8)/24*27 ≈ 22.3px），两者视觉一致。 */
.whatsapp-float svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.whatsapp-float-text {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 询价悬浮按钮：胶囊形，直接显示文字，用品牌橙区分 */
.quote-float {
    height: 60px;
    padding: 0 24px 0 20px;
    gap: 10px;
    background-color: var(--color-primary);
    color: #ffffff;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(8, 67, 30, 0.4);
    transition: all 0.3s ease;
}

.quote-float svg {
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
}

.quote-float-text {
    /* 文字过长时不撑破布局 */
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quote-float:hover {
    background-color: var(--color-primary-hover);
    box-shadow: 0 6px 20px rgba(8, 67, 30, 0.5);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    /* 不再 scale(1.1)：hover 时放大到 53px 就和「回到顶部」按钮(48px)
       不一致了。宽度展开 + 阴影变化已经足够表示可点。 */
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ========================================
   悬浮按钮（PC 端，所有页面通用）
   - 不显示 Get Quote
   - WhatsApp 收起为圆形图标，hover 时展开显示文案
   移动端（≤768px）不受影响，两个按钮都是圆形图标
   ======================================== */
@media (min-width: 769px) {
    .float-actions {
        /* 只剩一个按钮时不要被 stretch 拉宽 */
        align-items: flex-end;
    }

    .quote-float {
        display: none;
    }

    /* 收起时靠 min-width 撑成 48px 圆形（与回到顶部按钮同尺寸）；
       hover 时文字撑开、宽度随之变大。
       只设 max-width 的话，图标只有 22px，按钮会缩成一条窄条。 */
    .whatsapp-float {
        min-width: 48px;
        max-width: 48px;
        padding: 0;
        gap: 0;
        justify-content: center;
        overflow: hidden;
        transition: max-width 0.3s ease, padding 0.3s ease, gap 0.3s ease;
    }

    .whatsapp-float-text {
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-width 0.3s ease, opacity 0.18s ease;
    }

    /* hover 展开：max-width 从 60px 过渡到足以容纳文案 */
    .whatsapp-float:hover {
        max-width: 260px;
        padding: 0 24px 0 20px;
        gap: 10px;
    }

    .whatsapp-float:hover .whatsapp-float-text {
        max-width: 200px;
        opacity: 1;
    }
}

/* 回到顶部按钮（由 main.js 动态创建）
   尺寸/定位放在这里而不是内联，才能跟随媒体查询调整边距 */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(8, 67, 30, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease,
                box-shadow 0.3s ease, background-color 0.3s ease;
    z-index: 999;
    cursor: pointer;
    border: none;
}

#backToTop svg {
    width: 22px;
    height: 22px;
}

/* 联系页本身就是询盘表单，右下角不再显示浮动按钮 */
.is-contact .float-actions {
    display: none;
}

@media (max-width: 768px) {
    .float-actions {
        right: 20px;
        bottom: 120px;
        gap: 20px;
    }

    /* 与浮动按钮同一条竖线 */
    #backToTop {
        right: 20px;
        bottom: 20px;
    }

    /* 手机端只显示图标：胶囊文字在窄屏会压住正文。
       收成 48px 圆形，与「回到顶部」按钮同尺寸；
       两个浮动按钮一起改，避免一高一矮。 */
    .whatsapp-float,
    .quote-float {
        width: 48px;
        height: 48px;
        padding: 0;
        gap: 0;
        border-radius: 50%;
        font-size: 14px;
    }

    .whatsapp-float-text,
    .quote-float-text {
        display: none;
    }

    .whatsapp-float svg {
        width: 22px;
        height: 22px;
    }

    .quote-float svg {
        width: 27px;
        height: 27px;
    }
}


/* ===== 富文本内容（产品描述）===== */
.rte-content > *:first-child { margin-top: 0; }
.rte-content > *:last-child { margin-bottom: 0; }
.rte-content p { margin: 0 0 12px; line-height: 1.75; }
.rte-content ul,
.rte-content ol { margin: 0 0 12px; padding-left: 22px; }
.rte-content li { margin: 4px 0; line-height: 1.7; }
.rte-content h2 { font-size: 20px; margin: 18px 0 10px; }
.rte-content h3 { font-size: 17px; margin: 16px 0 8px; }
.rte-content h4 { font-size: 15px; margin: 14px 0 8px; }
.rte-content blockquote {
    margin: 12px 0;
    padding: 8px 14px;
    border-left: 3px solid var(--color-primary);
    background: rgba(161, 204, 132, 0.11);
    color: #475569;
}
.rte-content a { color: var(--color-primary); text-decoration: underline; }
.rte-content code {
    background: #f1f5f9;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.92em;
}

/* 富文本内的图片：不超出容器，避免大图撑破布局 */
.rte-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px 0;
    border-radius: 8px;
}

/* 对齐（后台选定的排版方式，class 由服务端白名单校验） */
.rte-content img.rte-img--left { margin-left: 0; margin-right: auto; }
.rte-content img.rte-img--center { margin-left: auto; margin-right: auto; }
.rte-content img.rte-img--right { margin-left: auto; margin-right: 0; }

/* 尺寸 */
.rte-content img.rte-img--25 { width: 25%; }
.rte-content img.rte-img--50 { width: 50%; }
.rte-content img.rte-img--75 { width: 75%; }
.rte-content img.rte-img--100 { width: 100%; }
