/* ============================================
   3H Construction Hardware - 主样式表
   品牌VI: 主色 #1A7A3A (绿) / 辅助 #8A9A9E (银灰)
   设计: H5响应式，桌面/平板/手机全适配
   ============================================ */

/* ---------- CSS变量 ---------- */
:root {
    --primary: #1A7A3A;
    --primary-dark: #145f2d;
    --primary-light: #23994a;
    --secondary: #8A9A9E;
    --secondary-light: #b8c2c6;
    --text-dark: #1a1a1a;
    --text-body: #333;
    --text-light: #666;
    --bg-white: #ffffff;
    --bg-gray: #f5f6f7;
    --bg-dark: #2c3e35;
    --border: #e0e4e7;
    --radius: 4px;
    --shadow: 0 2px 8px rgba(0,0,0,.08);
    --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
    color: var(--text-body);
    line-height: 1.6;
    background: var(--bg-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { color: var(--text-dark); font-weight: 700; line-height: 1.3; }

/* ---------- 容器 ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 顶部信息条 ==================== */
.top-bar {
    background: var(--bg-dark);
    color: #ccc;
    font-size: 13px;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
}
.top-bar a { color: #ccc; }
.top-bar a:hover { color: #fff; }

/* ==================== 主导航 ==================== */
.site-header {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}
.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}
.logo-sub {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--secondary);
    letter-spacing: 0;
}
.logo-img {
    height: 25px;           /* logo 默认高度 */
    max-height: 56px;       /* 最大高度，防止图片过大撑破导航 */
    max-width: 200px;       /* 最大宽度，避免宽图占用过多空间 */
    width: auto;
    display: block;
    object-fit: contain;    /* 等比缩放，完整显示 */
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}
.main-nav > a, .main-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}
.main-nav > a:hover, .main-nav .nav-link:hover {
    color: var(--primary);
}
.main-nav > a::after, .main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width .25s;
}
.main-nav > a:hover::after, .main-nav .nav-link:hover::after { width: 100%; }

/* 产品下拉 */
.nav-dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; left: -20px;
    background: #fff;
    box-shadow: var(--shadow);
    min-width: 260px;
    padding: 12px 0;
    border-top: 2px solid var(--primary);
    animation: fadeDown .2s;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-body);
    font-size: 14px;
}
.dropdown-menu a:hover {
    background: var(--bg-gray);
    color: var(--primary);
}

/* 产品 Mega Menu：多列式一级+二级分类 */
.dropdown-mega {
    display: none;
    position: absolute;
    top: 100%;
    left: -80px;
    background: #fff;
    box-shadow: var(--shadow);
    min-width: 600px;
    padding: 20px;
    border-top: 2px solid var(--primary);
    animation: fadeDown .2s;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.nav-dropdown:hover .dropdown-mega {
    display: grid;
}
.mega-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mega-parent {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-title);
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 4px;
}
.mega-parent:hover {
    color: var(--primary);
}
.mega-children {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mega-children li {
    margin-bottom: 4px;
}
.mega-children li a {
    display: block;
    padding: 4px 0;
    font-size: 13px;
    color: var(--text-body);
    transition: color .2s, padding-left .2s;
}
.mega-children li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 汉堡按钮 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger span {
    width: 26px; height: 2px;
    background: var(--text-dark);
    transition: .3s;
}
/* 移动端汉堡菜单 - display + max-height 过渡动画 */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 16px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s;
}
/* 激活时：先显示再撑开高度，形成下拉动画 */
.mobile-nav.active {
    display: flex;
    max-height: 800px;
}
.mobile-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-body);
    font-size: 15px;
}
.mobile-sub-title {
    padding: 16px 0 8px;
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
    letter-spacing: 1px;
}
.mobile-nav-parent {
    font-weight: 600;
    color: var(--text-title) !important;
}
.mobile-nav-child {
    padding-left: 20px !important;
    font-size: 14px !important;
    color: var(--text-body) !important;
}

/* ==================== Hero Banner ==================== */
.hero {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, #1a5f2d 0%, #145f2d 50%, #2c3e35 100%);
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,.08) 0, transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,.05) 0, transparent 30%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}
.hero h1 {
    font-size: 48px;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 800;
    line-height: 1.2;
}
.hero p {
    font-size: 18px;
    color: rgba(255,255,255,.85);
    margin-bottom: 28px;
}

/* ---------- Hero Slider (首页轮播) ---------- */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    color: #fff;
}
.slider-wrapper {
    position: relative;
    height: 100%;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}
.slide.active {
    opacity: 1;
    z-index: 1;
}
.slide-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a5f2d 0%, #145f2d 50%, #2c3e35 100%);
    background-size: cover;
    background-position: center;
}
.slide-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}
.slide-bg-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,.12) 0, transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,.08) 0, transparent 30%);
}
.slide-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}
.slide-content h1 {
    font-size: 48px;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 800;
    line-height: 1.2;
    animation: slideInUp 0.8s ease both;
}
.slide.active .slide-content h1 { animation-delay: 0.2s; }
.slide-content p {
    font-size: 18px;
    color: rgba(255,255,255,.85);
    margin-bottom: 28px;
    animation: slideInUp 0.8s ease both;
}
.slide.active .slide-content p { animation-delay: 0.4s; }
.slide-content .btn { animation: slideInUp 0.8s ease both; }
.slide.active .slide-content .btn { animation-delay: 0.6s; }

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: background 0.3s;
}
.slider-btn:hover { background: rgba(26, 122, 58, 0.8); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}
.dot.active {
    background: #fff;
    width: 30px;
    border-radius: 5px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all .25s;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26,122,58,.3);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.7);
    margin-left: 12px;
}
.btn-outline:hover {
    background: #fff;
    color: var(--primary);
}

/* ==================== 通用区块 ==================== */
.section { padding: 72px 0; }
.section-title {
    text-align: center;
    margin-bottom: 48px;
}
.section-title h2 {
    font-size: 32px;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 16px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 3px;
    background: var(--primary);
}
.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* 分类区标题+箭头 布局 */
.section-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    margin-bottom: 32px;
}
.section-header .section-title {
    text-align: center;
    margin-bottom: 0;
    grid-column: 2;
}
.section-header .section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}
.carousel-nav {
    display: flex;
    gap: 10px;
    grid-column: 3;
    justify-self: end;
}
.carousel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .25s;
}
.carousel-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.carousel-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    background: #fff;
    color: var(--text-body);
    border-color: var(--border);
}

/* 分类横向轮播容器 */
.category-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}
.category-carousel::-webkit-scrollbar {
    display: none;
}
.category-carousel .category-card {
    flex-shrink: 0;
    width: calc((100% - 40px) / 3);
    scroll-snap-align: start;
}

/* 产品横向轮播：一行 4 个 */
.product-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}
.product-carousel::-webkit-scrollbar {
    display: none;
}
.product-carousel .product-card {
    flex-shrink: 0;
    width: calc((100% - 60px) / 4);
    scroll-snap-align: start;
}

/* ==================== 企业实力 ==================== */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.feature-item {
    padding: 28px 16px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    transition: .3s;
}
.feature-item:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-4px);
}
.feature-item h3 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 8px;
}
.feature-item:hover h3 { color: #fff; }

/* ==================== 产品分类卡片 ==================== */
.bg-gray { background: var(--bg-gray); }

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.category-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .3s;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
}
.category-card .thumb {
    height: 180px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 40px;
}
/* 图片缩略图：img 标签模式，等比填充 */
.category-card .thumb.thumb-img {
    padding: 0;
    overflow: hidden;
}
.category-card .thumb.thumb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* 缩略图链接：铺满整个缩略图区域，无下划线 */
.category-card .thumb-link,
.product-card .thumb-link {
    display: block;
    text-decoration: none;
}
.category-card .thumb-link:hover .thumb,
.product-card .thumb-link:hover .thumb {
    opacity: 0.9;
}
.category-card .info { padding: 20px; }
.category-card h3 {
    font-size: 17px;
    margin-bottom: 6px;
    color: var(--text-dark);
}
.category-card h3 a { color: inherit; }
.category-card h3 a:hover { color: var(--primary); }
.category-card p {
    font-size: 13px;
    color: var(--text-light);
}

/* ==================== 新闻卡片 ==================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .3s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.news-card .thumb {
    height: 180px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
}
/* 新闻卡片缩略图有图模式：背景图填充 */
.news-card .thumb.thumb-img {
    background-size: cover;
    background-position: center;
}
.news-card .info { padding: 20px; }
.news-card .date {
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
}
.news-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}
.news-card h3 a { color: var(--text-dark); }
.news-card h3 a:hover { color: var(--primary); }
.news-card p {
    font-size: 13px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 页脚 ==================== */
.site-footer {
    background: var(--bg-dark);
    color: #ccc;
    padding-top: 60px;
    margin-top: 60px;
}
/* footer 内容居中，宽度受限，间距缩小 */
.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
    gap: 24px;
    padding-bottom: 40px;
    justify-content: center;
}
.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.footer-col p { font-size: 14px; margin-bottom: 8px; }
.footer-col a { color: #ccc; }
.footer-col a:hover { color: #fff; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 18px 0;
    font-size: 13px;
    text-align: center;
    color: #999;
}

/* ==================== 内部页面 Hero ==================== */
.page-hero {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    color: #fff;
    margin-bottom: 40px;
}
.page-hero h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
}

/* 产品列表页专属 Banner 背景图 */
.page-hero-product {
    position: relative;
    background: url('../images/Products-banner.webp') center center / cover no-repeat;
}
.page-hero-product::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 30, 60, 0.55);
}
.page-hero-product .container {
    position: relative;
    z-index: 1;
}
.breadcrumb {
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; color: var(--secondary); }

/* ==================== 产品列表页 ==================== */
.page-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    padding: 20px 0 60px;
}
.sidebar {
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 24px;
    height: fit-content;
}
.sidebar h3 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}
.sidebar a {
    display: block;
    padding: 10px 0;
    color: var(--text-body);
    font-size: 14px;
}
.sidebar a:hover, .sidebar a.active {
    color: var(--primary);
    font-weight: 600;
}

/* ============ 侧边栏分类树（可展开收起的1-2级） ============ */
/* 深色标题栏，参考参考图风格 */
.sidebar h3 {
    background: #2b2b2b;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: -24px -24px 0;
    padding: 18px 20px 16px;
    border-bottom: 3px solid var(--primary);
    border-radius: var(--radius) var(--radius) 0 0;
}
.cat-tree {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}
.cat-tree .cat-node {
    border-bottom: 1px solid #e8e8e8;
}
.cat-tree .cat-node:last-child { border-bottom: none; }

/* 一级分类行 */
.cat-node-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.cat-node-head:hover {
    background: #f6f9fc;
}
.cat-node-head.active .cat-link {
    color: var(--primary);
    font-weight: 600;
}
.cat-node-head .cat-link {
    flex: 1;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.cat-node-head .cat-link:hover { color: var(--primary); }

/* 展开收起箭头 */
.cat-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #999;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 8px;
}
.cat-node-head[data-open="1"] .cat-toggle {
    transform: rotate(180deg);
    color: var(--primary);
}

/* 二级分类列表 */
.cat-children {
    list-style: none;
    margin: 0;
    padding: 2px 0 10px 6px;
    overflow: hidden;
}
.cat-child-item {
    padding: 0;
}
.cat-child-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 6px;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    border-radius: 3px;
    transition: color 0.2s, padding-left 0.2s;
}
.cat-child-link:hover {
    color: var(--primary);
    padding-left: 12px;
}
.cat-child-link.active {
    color: var(--primary);
    font-weight: 600;
    background: #f0f7ff;
    padding-left: 12px;
}
.cat-dot {
    flex-shrink: 0;
    color: #bbb;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}
.cat-child-link:hover .cat-dot,
.cat-child-link.active .cat-dot {
    color: var(--primary);
}

.main-content h1 {
    font-size: 26px;
    margin-bottom: 8px;
}
.main-content .desc {
    color: var(--text-light);
    margin-bottom: 28px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.product-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* 卡片顶部对比复选框 */
/* 产品缩略图区 */
.product-card .thumb {
    aspect-ratio: 4/3;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    color: #ccc;
    font-size: 36px;
    font-weight: 500;
    position: relative;
}
/* 产品卡片图片缩略图：img 标签模式，等比适配 */
.product-card .thumb.thumb-img {
    padding: 16px;
    overflow: hidden;
}
.product-card .thumb.thumb-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s;
}
.product-card:hover .thumb.thumb-img img {
    transform: scale(1.03);
}

/* 产品信息区 */
.product-card .info {
    padding: 12px 16px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #333;
}
.product-card h3 a { color: #333; text-decoration: none; }
.product-card h3 a:hover { color: var(--primary); }

/* Inquire 按钮 */
.product-card .inquire-btn {
    margin: 0 -16px -1px;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    margin-top: auto;
}
.product-card .inquire-btn:hover {
    background: var(--primary-dark);
}
.product-card .inquire-btn svg {
    width: 16px;
    height: 16px;
}

/* ==================== 产品详情 ==================== */
.product-detail { padding: 20px 0 60px; }
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.detail-gallery .main-image {
    aspect-ratio: 1;
    background: var(--bg-gray);
    border-radius: var(--radius);
    margin-bottom: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--secondary); font-size: 60px;
}
.detail-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.detail-thumbs .thumb-item {
    aspect-ratio: 1;
    background: var(--bg-gray);
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}
.detail-thumbs .thumb-item.active { border-color: var(--primary); }

.detail-info h1 { font-size: 28px; margin-bottom: 12px; }
.detail-info .intro {
    color: var(--text-body);
    margin-bottom: 24px;
    line-height: 1.8;
}

/* 技术参数表格 */
.params-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}
.params-table th {
    background: var(--primary);
    color: #fff;
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
}
.params-table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.params-table tr:last-child td { border-bottom: none; }
.params-table tr:nth-child(even) { background: var(--bg-gray); }

/* 富文本详情 */
.detail-content {
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 32px;
    line-height: 1.9;
}
.detail-content h2 { font-size: 22px; margin: 24px 0 12px; }
.detail-content p { margin-bottom: 16px; }
.detail-content img { margin: 16px 0; }

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 10px;
    font-size: 14px;
}
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { color: #bbb; cursor: not-allowed; }
/* 分页：上下页按钮 */
.pagination .page-nav {
    font-size: 18px;
    font-weight: bold;
    padding: 0 8px;
    min-width: 38px;
}
/* 分页：省略号 */
.pagination .page-ellipsis {
    border: none;
    min-width: 24px;
    padding: 0;
    color: var(--text-light);
}

/* ==================== 联系表单 ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 20px 0 60px;
}
.contact-form {
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 32px;
}
.contact-form h2 { margin-bottom: 20px; font-size: 22px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}
.form-group label .required { color: #e74c3c; }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,122,58,.1);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.contact-info {
    background: var(--bg-gray);
    border-radius: var(--radius);
    padding: 32px;
}
.contact-info h2 { margin-bottom: 20px; font-size: 22px; }
.contact-info .info-item {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.8;
}
.contact-info .info-item strong { color: var(--primary); }

.form-tip {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-top: 14px;
    font-size: 14px;
    display: none;
}
.form-tip.success { background: #e8f7ec; color: var(--primary-dark); border: 1px solid var(--primary); }
.form-tip.error   { background: #fdecea; color: #c0392b; border: 1px solid #e74c3c; }

/* ==================== 关于我们 ==================== */
.about-content { padding: 20px 0 60px; }
.about-content .rich-text {
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 40px;
    line-height: 1.9;
}
.about-content .rich-text h2 {
    font-size: 24px;
    color: var(--primary);
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.about-content .rich-text h1 { font-size: 30px; margin-bottom: 20px; }
.about-content .rich-text p  { margin-bottom: 16px; }
.about-content .rich-text img { margin: 20px 0; border-radius: var(--radius); }

/* ==================== 404页面 ==================== */
.error-page {
    text-align: center;
    padding: 100px 20px;
}
.error-page .code {
    font-size: 140px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.error-page h2 { font-size: 28px; margin: 16px 0 12px; }
.error-page p  { color: var(--text-light); margin-bottom: 28px; }

/* ==================== 懒加载占位 ==================== */
img.lazy {
    background: var(--bg-gray);
    min-height: 80px;
}
img.lazy.loaded { background: transparent; }

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .detail-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .page-layout { grid-template-columns: 1fr; }
    .sidebar { order: -1; }
}

@media (max-width: 768px) {
    /* 1. 移动端隐藏顶部信息条 */
    .top-bar { display: none; }

    .main-nav { display: none; }
    .hamburger { display: flex; }

    .hero { height: 380px; }
    .hero h1 { font-size: 32px; }
    .hero p  { font-size: 15px; }
    .hero-slider { height: 380px; }
    .slide-content h1 { font-size: 32px; }
    .slide-content p { font-size: 15px; }
    .slider-btn { width: 36px; height: 36px; font-size: 16px; }
    .slider-prev { left: 10px; }
    .slider-next { right: 10px; }

    .section { padding: 48px 0; }
    .section-title h2 { font-size: 24px; }
    .section-title { margin-bottom: 32px; }

    /* section-header 移动端：单列布局，标题居中，轮播按钮放下面居中 */
    .section-header {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }
    .section-header .section-title {
        grid-column: 1;
        text-align: center;
        margin-bottom: 0;
    }
    .section-header .section-title h2 { font-size: 22px; }
    .carousel-nav {
        grid-column: 1;
        justify-self: center;
    }

    /* 2. 企业实力：移动端保持1行2个 */
    .features { grid-template-columns: 1fr 1fr; gap: 14px; }
    .feature-item h3 { font-size: 28px; }
    .feature-item { padding: 20px 10px; }

    /* 3. 首页分类/产品轮播：移动端卡片宽度调大，一屏约 1.5 个，提示可滑动 */
    .category-carousel { gap: 14px; }
    .category-carousel .category-card {
        width: 75%;
    }
    .product-carousel { gap: 14px; }
    .product-carousel .product-card {
        width: 70%;
    }

    /* 4. 列表页：分类横向滑动，新闻/产品列表网格布局 */
    .category-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 14px;
        padding-bottom: 8px;
    }
    .category-grid::-webkit-scrollbar {
        display: none;
    }
    .category-grid .category-card {
        flex-shrink: 0;
        width: 70%;
        scroll-snap-align: start;
    }
    /* 首页新闻：移动端保持横向滑动 */
    .section .news-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 14px;
        padding-bottom: 8px;
    }
    .section .news-grid::-webkit-scrollbar {
        display: none;
    }
    .section .news-grid .news-card {
        flex-shrink: 0;
        width: 70%;
        scroll-snap-align: start;
    }
    /* 新闻列表页：移动端一行一个，单列纵向 */
    .news-list .news-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 0 12px;
    }
    .news-list .news-grid .news-card {
        width: auto;
    }
    /* 产品列表：移动端1行2个网格布局 */
    .product-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .product-grid .product-card {
        width: auto;
    }
    /* 主内容区左右留边，避免卡片贴屏幕边缘 */
    .main-content { padding: 0 12px; }
    /* 产品详情页：移动端左右留边，相关产品卡片不贴边 */
    .product-detail { padding: 0 12px; }

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

    /* 移动端隐藏左侧分类菜单，只展示产品列表 */
    .page-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }

    .page-hero { height: 140px; }
    .page-hero h1 { font-size: 24px; }

    .detail-content, .contact-form, .contact-info, .sidebar { padding: 20px; }

    .top-bar-inner { justify-content: center; gap: 10px; font-size: 12px; }
}

@media (max-width: 480px) {
    /* 480px 以下也保持横向滑动和2列features，不改成1列 */
    .features { grid-template-columns: 1fr 1fr; }
    .feature-item { padding: 16px 8px; }
    .feature-item h3 { font-size: 24px; }
    .feature-item p { font-size: 13px; }

    /* 首页轮播卡片在小屏再宽一点 */
    .category-carousel .category-card { width: 80%; }
    .product-carousel .product-card { width: 78%; }

    .category-grid .category-card {
        width: 80%;
    }
    /* 首页新闻：小屏卡片宽度 */
    .section .news-grid .news-card {
        width: 80%;
    }
    /* 新闻列表：小屏也保持单列 */
    .news-list .news-grid {
        grid-template-columns: 1fr;
    }
    /* 产品列表：小屏也保持2列 */
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-title h2 { font-size: 20px; }
}
