/* 生产环境区块 */
.factory-section { padding: 80px 0; background: #f8f9fa; }

/* 修复刷新时页面偶发整体左移
   1) 为纵向滚动条预留稳定占位，避免出现/消失导致的布局抖动
   2) 覆盖来自第三方样式的 body { min-width: 1200px }，恢复响应式
   3) 兜底保证容器居中 */
html { scrollbar-gutter: stable; }
html, body { overflow-y: auto; }
body { min-width: 0 !important; }
.container { margin-left: auto; margin-right: auto; }
.factory-content p { color: #55657b; line-height: 1.8; }
.factory-points { margin: 12px 0 0; padding-left: 18px; }
.factory-points li { margin: 6px 0; list-style: disc; color: #445469; }

/* 咨询表单输入样式（仅作用于咨询区块） */
.consult-section .form-group { margin-bottom: 14px; }
.consult-section .form-group label { color: #e9eef6; margin-bottom: 6px; display: inline-block; }
.consult-section .form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.98);
    color: #2b3a55;
    font-size: 16px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.consult-section .form-control::placeholder { color: #9aa3af; }
.consult-section .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,102,204,0.15);
    background: #fff;
}

.factory-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 12px; position: relative; }
.factory-grid .grid-item { position: relative; background: #f1f3f5; border-radius: 10px; overflow: hidden; min-height: 160px; }
.factory-grid .grid-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.factory-grid .grid-cta {
  display: flex;
  flex-direction: column;
  align-items: center;   /* 水平居中 */
  justify-content: center; /* 垂直居中 */
  text-align: center;
  background: transparent; /* 去掉蓝色底 */
  padding: 16px;
}
.factory-grid .grid-cta .btn { box-shadow: none; align-self: center; }
.factory-cta-desc { color: #445469; line-height: 1.7; margin: 0 0 10px; }
.factory-grid .grid-span-2 { grid-column: 1 / -1; }

/* 底部浮层：覆盖在图片底部 */
.factory-grid .grid-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, rgba(30,46,74,0) 0%, rgba(30,46,74,0.55) 25%, rgba(30,46,74,0.85) 100%);
}
.factory-grid .grid-overlay .factory-points {
  margin: 0; padding: 14px 18px 16px 30px;
}
.factory-grid .grid-overlay .factory-points li { color: #fff; }

/* 单图覆盖版：每个图片都显示底部要点 */
.factory-grid .factory-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(30,46,74,0) 0%, rgba(30,46,74,0.55) 25%, rgba(30,46,74,0.85) 100%);
}
.factory-grid .factory-overlay .factory-points { margin: 0; padding: 12px 14px 14px 26px; }
.factory-grid .factory-overlay .factory-points li { color: #fff; font-size: 14px; line-height: 1.6; }

@media (max-width: 575.98px) {
  /* 极小屏：隐藏公司名文字，仅保留LOGO，避免遮挡按钮 */
  .navbar .brand-name { display: none; }
  .factory-grid .factory-overlay .factory-points li { font-size: 13px; }
}

@media (max-width: 991.98px) {
  .factory-section { padding: 60px 0; }
  .factory-grid .grid-item { min-height: 140px; }
}
@media (max-width: 575.98px) {
  .factory-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .factory-grid .grid-item { min-height: 120px; }
}
/* 全局样式 */
:root {
    --primary-color: #0066cc;
    --secondary-color: #004d99;
    --accent-color: #ff6b00;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ===================== 产品展示（双列风格） ===================== */
.product-showcase { position: relative; }
.product-showcase .prod-head { margin-bottom: 16px; }
.product-showcase .prod-title {
    font-size: 28px;
    color: #283a53;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0;
}
.product-showcase .prod-sub {
    margin-top: 6px;
    color: #6b7b91;
    font-size: 14px;
    letter-spacing: 0.06em;
}

.product-showcase .prod-item {
    gap: 28px;
    padding: 10px 0 0;
}

.product-showcase .prod-media {
    flex: 0 0 48%;
    max-width: 48%;
}
.product-showcase .prod-media img {
    width: 100%;
    height: auto;
    display: block;
}

.product-showcase .prod-info { flex: 1; }
.product-showcase .prod-name {
    font-size: 20px;
    color: #1f2d3d;
    margin: 0 0 6px;
}
.product-showcase .prod-link {
    color: #2a5fbf;
    text-decoration: none;
    border-bottom: 1px solid #2a5fbf;
    padding-bottom: 2px;
    display: inline-block;
    margin-bottom: 12px;
}
.product-showcase .prod-link:hover { color: #0d6efd; border-bottom-color: #0d6efd; }

.product-showcase .prod-features { margin: 8px 0 16px; padding-left: 0; list-style: none; }
.product-showcase .prod-features li {
    position: relative;
    padding-left: 18px;
    margin: 6px 0;
    color: #445469;
}
.product-showcase .prod-features li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 6px; height: 6px; border-radius: 50%;
    background: #2a5fbf;
}

.btn.btn-arrow {
    position: relative;
    padding-right: 42px;
}
.btn.btn-arrow::after {
    content: '';
    position: absolute;
    right: 16px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none'%3E%3Cpath d='M42 24H6' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M30 12L42 24L30 36' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
    background: #fff;
}
.btn.btn-dark.btn-arrow::after { background: #fff; }
.btn.btn-outline-primary.btn-arrow::after { background: var(--primary-color); }

/* 响应式：在小屏上下堆叠，媒体图居中 */
@media (max-width: 991.98px) {
    .product-showcase .prod-item { flex-direction: column; align-items: flex-start !important; }
    .product-showcase .prod-media { max-width: 100%; flex-basis: 100%; }
}

@media (max-width: 575.98px) {
    .product-showcase .prod-title { font-size: 24px; }
    .product-showcase .prod-name { font-size: 18px; }
    .product-showcase .prod-item { gap: 18px; }
}

/* 移动端折叠导航与切换按钮 */
.navbar-toggler {
    border: 1px solid #ced4da;
    background: #fff;
    padding: 6px 10px;
    border-radius: 4px;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    position: relative;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--dark);
}
.navbar-toggler-icon::before { top: -6px; }
.navbar-toggler-icon::after { top: 6px; }

/* 保证折叠区域在桌面端右对齐 */
.navbar .navbar-collapse {
    justify-content: flex-end;
}

/* Bootstrap 工具类兼容 */
.ms-auto { margin-left: auto !important; }

@media (max-width: 991.98px) {
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .navbar-nav .nav-link { width: 100%; }
    .navbar-nav .btn-consult { margin-left: 0; margin-top: 8px; }
}

/* 移动端折叠导航修复：下拉层与不换行文字 */
@media (max-width: 991.98px) {
  .header .navbar { position: relative; }
  .header .navbar .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    border-top: 1px solid #eef2f5;
    padding: 10px 12px;
    z-index: 1001;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .header .navbar .navbar-collapse:not(.show) { display: none; }
  .header .navbar .navbar-collapse.show { display: block; }

  /* 菜单项：整行点击，避免中文断行 */
  .navbar-nav .nav-link {
    padding: 12px 6px;
    border-bottom: 1px solid #f1f3f5;
    white-space: nowrap;
  }
  .navbar-nav .nav-item:last-child .nav-link { border-bottom: none; }

  /* 移动端品牌与logo尺寸微调，避免与按钮拥挤 */
  .navbar-brand .logo { height: 44px; }
  .navbar .brand-name { max-width: calc(100% - 120px); overflow: hidden; text-overflow: ellipsis; }

  /* 关键：品牌区域允许收缩并省略，按钮不被遮挡 */
  .navbar .navbar-brand { flex: 1 1 auto; min-width: 0; overflow: hidden; }
  .navbar .navbar-toggler { flex: 0 0 auto; margin-left: 8px; position: relative; z-index: 1002; }
}

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

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 18px;
}

/* 全局文字大小设置 */
p, span, div, li, a, label, input, textarea, button {
    font-size: 18px;
}

/* 小号文字 */
.small, small {
    font-size: 14px;
}

/* 大号文字 */
.lead {
    font-size: 20px;
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar {
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand .logo {
    height: 50px;
    width: auto;
}

/* 导航品牌名称样式 */
.navbar .navbar-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; }
.navbar .brand-name { display: inline-flex; align-items: center; justify-content: center; height: 50px; /* 与logo同高以便垂直居中 */
    font-size: 20px; color: var(--dark); font-weight: 700; white-space: nowrap; }
@media (max-width: 767.98px) {
  .navbar .brand-name { font-size: 18px; height: 44px; }
}

/* 修复导航列表样式与布局 */
.navbar ul { list-style: none; margin: 0; padding: 0; }
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-nav .nav-item {
    list-style: none;
}

.navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 10px 15px;
    margin: 0 5px;
    position: relative;
    text-decoration: none;
    display: block;
    font-size: 16px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .btn-consult {
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    padding: 8px 20px;
    margin-left: 10px;
    font-size: 16px;
}
/* 修复 hover 对比度：避免被 .nav-link:hover 覆盖为主色文字 */
.navbar-nav .btn-consult:hover,
.navbar-nav .btn-consult:focus {
    background: var(--secondary-color);
    color: #fff !important;
}

/* 轮播图 */
.hero {
    margin-top: 80px;
    position: relative;
    height: 800px; /* 桌面端视觉高度 */
    background: none; /* 背景交给各 slide */
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

/* 轮播容器与滑块尺寸控制 */
.hero .swiper,
.hero .hero-swiper,
.hero .swiper-wrapper { height: 100%; }

.hero .swiper-slide {
    /* 使用裁切覆盖，获得更干净的视觉 */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* 移除模糊铺底，保留纯遮罩 */
.hero .swiper-slide::before { content: none; }

/* 暗色遮罩，保证文案可读 */
.hero .swiper-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero .hero-content { position: relative; z-index: 2; text-align: center; }
.hero .hero-content h1 { text-shadow: 0 4px 12px rgba(0,0,0,.3); line-height: 1.2; margin-bottom: 16px; }
.hero .hero-content p { text-shadow: 0 3px 8px rgba(0,0,0,.25); line-height: 1.6; margin-top: 4px; margin-bottom: 20px; letter-spacing: .02em; }

.hero .swiper-pagination .swiper-pagination-bullet { background: rgba(255,255,255,.6); }
.hero .swiper-pagination .swiper-pagination-bullet-active { background: #fff; }

/* 轮播图：左右翻页按钮 */
.hero-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.35);
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
    cursor: pointer;
    z-index: 3;
}
.hero-button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.hero-button:hover { background: rgba(0,0,0,0.5); }
.hero-button::before {
    content: '';
    position: absolute;
    left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 18px; height: 18px;
    background: #fff;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none'%3E%3Cpath d='M30 36L18 24L30 12' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
}
.hero-button-next::before {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none'%3E%3Cpath d='M18 12L30 24L18 36' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
}
.hero-button-prev { left: 16px; }
.hero-button-next { right: 16px; }

@media (max-width: 767.98px) {
  .hero-button { width: 36px; height: 36px; }
  .hero-button-prev { left: 8px; }
  .hero-button-next { right: 8px; }
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
}

/* 优势部分 */
.advantage-section {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    padding: 100px 0;
}

.bg-text-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-text {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    color: rgba(0, 0, 0, 0.03);
    font-weight: 900;
    font-size: 8vw;
    line-height: 1;
    white-space: nowrap;
    font-family: 'Arial Black', sans-serif;
    text-transform: uppercase;
    z-index: 0;
}

.typing-text {
    margin: 0;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid transparent;
    display: inline-block;
    position: relative;
}

.typing-text-1 {
    animation: typing 3.5s steps(40, end) forwards;
}

.typing-text-2 {
    animation: typing 2.5s steps(30, end) 1s forwards;
    opacity: 0;
    animation-delay: 1s;
}

@keyframes typing {
    from { width: 0; opacity: 0; }
    to { width: 100%; opacity: 1; }
}

.tech-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tech-video {
    position: relative;
    padding-top: 100%;
    background: #f5f7fa;
    overflow: hidden;
}

.tech-video video,
.tech-video img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-content {
    padding: 20px 15px;
    text-align: center;
}

/* 参考区块视觉：16:9 媒体容器与标题样式 */
.tech-media {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background: #f1f3f5;
    overflow: hidden;
}

.tech-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 卡片边框与悬停效果增强，贴近参考图 */
.tech-card {
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.tech-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.tech-title {
    font-size: 20px;
    line-height: 1.4;
    color: #283a53;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin: 14px 0 6px;
}

/* CTA 区域间距微调 */
.advantage-section .btn {
    margin-top: 10px;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .bg-text {
        font-size: 10vw;
    }
    
    .tech-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 767.98px) {
    .advantage-section {
        padding: 60px 0;
    }
    
    .bg-text {
        font-size: 12vw;
        right: 0;
        transform: none;
        top: 40px;
    }
    
    .tech-card {
        margin-bottom: 15px;
    }
}

.advantage-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.advantage-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 2;
}

.advantage-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 102, 204, 0.1);
}

.advantage-card:hover:before {
    transform: scaleX(1);
}

.advantage-card .icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    display: inline-block;
    transition: all 0.5s ease;
    transform: translateY(0);
    filter: drop-shadow(0 5px 10px rgba(0, 102, 204, 0.2));
}

.advantage-card:hover .icon {
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(0 8px 15px rgba(0, 102, 204, 0.3));
}

.advantage-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.advantage-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    transition: transform 0.5s ease;
}

.advantage-card:hover h3:after {
    transform: translateX(-50%) scaleX(1);
}

.advantage-card p {
    color: var(--gray);
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    transition: all 0.3s ease;
}

.advantage-card:hover p {
    color: #555;
}

.advantage-card:nth-child(1) { animation-delay: 0.1s; }
.advantage-card:nth-child(2) { animation-delay: 0.3s; }
.advantage-card:nth-child(3) { animation-delay: 0.5s; }

/* 添加动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 产品部分 */
.product-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

/* 新版产品中心卡片布局 */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.prod-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    transition: transform .3s ease, box-shadow .3s ease;
}
.prod-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0,0,0,.10);
}

.prod-thumb { position: relative; background: #fff; }
/* 16:12 近似产品图高宽比，容器保留空间 */
.prod-thumb::before { content: ''; display: block; padding-top: 66%; }
.prod-thumb img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center;
    transition: transform .35s ease;
}
.prod-card:hover .prod-thumb img { transform: scale(1.03); }

.prod-overlay {
    position: absolute; inset: 0; background: rgba(40,58,83,.86);
    color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 18px; text-align: center; opacity: 0; transition: opacity .3s ease;
}
.prod-overlay p { color: #e9eef6; line-height: 1.7; margin-bottom: 14px; }
.prod-card:hover .prod-overlay { opacity: 1; }

.prod-meta { padding: 16px 14px 18px; text-align: center; }
.prod-title { margin: 0 0 6px; }
.prod-sub { color: #6c757d; font-size: 16px; margin: 0; }

/* 小按钮尺寸（若Bootstrap未提供） */
.btn.btn-sm { padding: .5rem 1rem; font-size: 16px; border-radius: .25rem; }

/* 分类工具条 */
.product-cats { display: flex; gap: 12px; justify-content: flex-end; align-items: center;margin-bottom: 20px; }
.product-cats .cat-btn {
  padding: 6px 14px; border: 1px solid #dee2e6; background: #fff; color: #445469;
  border-radius: 20px; cursor: pointer; transition: all .2s ease; font-size: 16px;
}
.product-cats .cat-btn:hover { color: var(--primary-color); border-color: var(--primary-color); }
.product-cats .cat-btn.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* 筛选隐藏 */
.prod-card.is-hidden { display: none; }

/* 案例展示 */
.case-section { background: #f8f9fa; padding: 80px 0; }
.case-cats { display: flex; gap: 12px; align-items: center; }
.case-btn { padding: 6px 14px; border: 1px solid #dee2e6; background: #fff; color: #445469; border-radius: 20px; cursor: pointer; transition: all .2s ease; font-size: 16px; }
.case-btn:hover { color: var(--primary-color); border-color: var(--primary-color); }
.case-btn.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

.case-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.06); transition: transform .3s ease, box-shadow .3s ease; }
.case-card:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(0,0,0,.1); }
.case-thumb { position: relative; background: #f8f9fa; }
.case-thumb::before { content: ''; display: block; padding-top: 50%; }
.case-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-overlay { position: absolute; inset: 0; background: rgba(40,58,83,.86); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px; opacity: 0; transition: opacity .3s ease; }
.case-overlay p { color: #e9eef6; line-height: 1.7; margin-bottom: 14px; }
.case-card:hover .case-overlay { opacity: 1; }
.case-meta { padding: 16px 14px 18px; text-align: center; }
.case-title { font-size: 1.2rem; margin: 0 0 6px; color: #283a53; }
.case-sub { color: #6c757d; font-size: 16px; margin: 0; }
.case-card.is-hidden { display: none; }

/* 案例自动滚动（右向左） */
.case-gallery.auto-scroll {
  display: flex;
  flex-wrap: nowrap; /* 不换行，保证横向溢出 */
  gap: 24px;
  overflow-x: auto; /* 允许横向滚动，供 JS 驱动 scrollLeft */
  overflow-y: hidden;
  scroll-behavior: auto;
}
.case-gallery.auto-scroll .case-card {
  flex: 0 0 calc((100% - 48px) / 3);
}
.case-gallery.auto-scroll { scrollbar-width: none; }
.case-gallery.auto-scroll::-webkit-scrollbar { display: none; }

/* 走马灯轨道样式（CSS动画版） */
.case-gallery.auto-scroll.marquee { overflow: hidden; }
.case-gallery.auto-scroll .case-track { display: inline-flex; gap: 24px; will-change: transform; }
.case-gallery.auto-scroll.marquee .case-track { animation-name: case-marquee; animation-timing-function: linear; animation-iteration-count: infinite; animation-play-state: running; }
.case-gallery.auto-scroll.marquee:hover .case-track { animation-play-state: paused; }

@keyframes case-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 991.98px) {
  .case-gallery { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .case-gallery.auto-scroll { gap: 20px; }
  .case-gallery.auto-scroll .case-card { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 575.98px) {
  .case-gallery { grid-template-columns: 1fr; gap: 16px; }
  .case-gallery.auto-scroll { gap: 16px; }
  .case-gallery.auto-scroll .case-card { flex-basis: 100%; }
}

/* 响应式：平板二列，手机一列 */
@media (max-width: 991.98px) {
  .product-gallery { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 575.98px) {
  .product-gallery { grid-template-columns: 1fr; gap: 16px; }
}

/* 轻量栅格补充：保证产品区三列布局生效 */
.row { display: flex; flex-wrap: wrap; margin-left: -0.5rem; margin-right: -0.5rem; }
[class^="col-"], [class*=" col-"] { padding-left: 0.5rem; padding-right: 0.5rem; box-sizing: border-box; }
.col-12 { width: 100%; }
@media (min-width: 576px) { .col-sm-6 { width: 50%; } }
@media (min-width: 768px) { .col-md-4 { width: 33.3333%; } }

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* 产品卡片图片尺寸控制：目标 400x200 显示区域 */
.product-card .product-img {
    height: 200px; /* 显示高度固定为 200px */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.product-card .product-img img {
    width: 400px;
    height: 200px;
    object-fit: contain; /* 保持比例不拉伸 */
    max-width: 100%;
    max-height: 100%;
}

/* 文案区：保证等高布局与充足的上下间距 */
.product-card .product-content {
    display: flex;
    flex-direction: column;
    padding: 20px 18px 22px;
    flex: 1 1 auto;
}
.product-card .product-content h3 {
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 10px;
    min-height: calc(1.3em * 2); /* 预留两行高度 */
}
.product-card .product-content p {
    color: #55657b;
    line-height: 1.6;
    margin: 0 0 12px;
    min-height: calc(1.6em * 2); /* 预留两行高度 */
}
.product-card .product-content ul {
    margin: 6px 0 16px;
    padding-left: 0;
    list-style: none;
    min-height: calc(1.6em * 3 + 8px); /* 预留三行要点空间 */
}
.product-card .product-content ul li {
    position: relative;
    padding-left: 18px;
    margin: 6px 0;
}
.product-card .product-content ul li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--primary-color);
}
.product-card .product-content .btn { margin-top: auto; }

/* 小屏兼容：如果屏幕过窄，图片宽度不超过容器 */
@media (max-width: 575.98px) {
    .product-card .product-img img {
        width: 100%;
        height: auto;
    }
}

/* 咨询表单 */
.consult-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
}

/* 咨询区块：标题与段落强制白色 */
.consult-section h2,
.consult-section p {
    color: #fff !important;
}

.consult-form {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* 右侧：背景图片 + 从左到右渐变显影 */
.consult-visual {
    position: relative;
    width: 100%;
    min-height: 380px;
    border-radius: 12px;
    overflow: hidden;
    background-image: url('img/banner2.jpg'); /* 可替换为更合适的生产/应用图 */
    background-size: cover;
    background-position: center;
}
.consult-visual::before { display: none; }

/* 联系我们卡片 */
.contact-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    padding: 24px;
}
.contact-card-title { margin: 0 0 12px; color: #283a53; font-size: 1.25rem; }
.contact-card-body { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; }
.contact-card .qr-wrap { text-align: center; }
.contact-card .qr-wrap img { width: 140px; height: 140px; object-fit: contain; border-radius: 8px; background: #f6f8fa; padding: 6px; }
.contact-card .qr-caption { font-size: 14px; color: #6c757d; margin-top: 6px; }
.contact-card .contact-info { list-style: none; margin: 0; padding: 0; }
.contact-card .contact-info li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed #e9ecef; }
.contact-card .contact-info li:last-child { border-bottom: none; }
.contact-card .contact-info .label { color: #6c757d; min-width: 72px; }
.contact-card .contact-info .value { color: #283a53; text-decoration: none; }
.contact-card .btn { margin-top: 4px; }
.contact-card .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 600;
    transition: all .2s ease;
}
.contact-card .btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,102,204,.25);
}
.contact-card .btn-outline-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,102,204,.2);
}

/* 全站按钮取消下划线（含所有状态） */
a.btn, .btn,
a.btn:hover, .btn:hover,
a.btn:focus, .btn:focus,
a.btn:active, .btn:active { text-decoration: none !important; }

/* 联系方式链接取消下划线（电话等） */
.contact-info a.value { text-decoration: none; }

@media (max-width: 991.98px) {
  .contact-card-body { grid-template-columns: 120px 1fr; }
  .contact-card .qr-wrap img { width: 120px; height: 120px; }
}
@media (max-width: 575.98px) {
  .contact-card-body { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
  .consult-visual { min-height: 300px; margin-top: 24px; }
}
@media (max-width: 575.98px) {
  .consult-visual { min-height: 220px; }
}

/* 咨询区块：强制全屏左右并排与等高 */
.consult-section .row { display: flex; align-items: stretch; flex-wrap: wrap; }
.consult-section .row > [class*="col-"] { display: flex; flex-direction: column; }
.consult-section .row > [class*="col-"] > *:last-child { margin-top: auto; }
.consult-section .col-md-6 { width: 50%; flex: 0 0 50%; max-width: 50%; }

/* 移动端上下布局（≤767.98px） */
@media (max-width: 767.98px) {
  .consult-section .col-md-6 { width: 100%; flex: 0 0 100%; max-width: 100%; }
  .consult-section .contact-card { margin-top: 16px; }
}

/* 页脚 */
.footer {
    background-color: #1a1a1a;
    color: #aaa;
    padding: 60px 0 0;
}

/* 页脚布局优化（不改变颜色） */
.footer .row { row-gap: 24px; }
.footer h4 { color: #fff; margin-bottom: 14px; }
.footer .contact-info li, .footer .footer-links li { margin: 6px 0; }
.footer .footer-links a { color: #ccc; text-decoration: none; }
.footer .footer-links a:hover { color: #fff; text-decoration: underline; }

/* 居中简洁信息块 */
.footer-minimal { text-align: center; padding: 28px 0 6px; }
.footer-minimal .fm-brand { color: #ddd; margin: 0 0 10px; font-weight: 600; }
.footer-minimal .fm-inline { list-style: none; margin: 0; padding: 0; }
.footer-minimal .fm-inline li { display: inline-block; color: #aaa; margin: 0 10px; }
.footer-minimal .fm-sep { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 20px auto 0; max-width: 960px; }

/* 版权行 */
.footer-bottom { text-align: center; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom a { color: #aaa; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* 右侧悬浮咨询面板（中部抽屉风格） */
.float-sidebar.drawer {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}
.float-sidebar .fs-panel{
  width: 240px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
  border: 1px solid #e9ecef;
  overflow: hidden;
}
.float-sidebar .fs-header{
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
}
.float-sidebar .fs-online{
  display: block;
  margin: 12px 14px 8px;
  text-align: center;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  border-radius: 6px;
  padding: 10px 0;
  text-decoration: none;
  font-weight: 600;
}
.float-sidebar .fs-sep{ height: 1px; background: #f0f2f5; margin: 6px 14px; }
.float-sidebar .fs-caption{ color:#6c757d; font-size: 14px; padding: 0 14px; }
.float-sidebar .fs-phone{ display:block; padding: 6px 14px 10px; font-size: 22px; color: var(--primary-color); font-weight: 800; text-decoration: none; }
.float-sidebar .fs-qr{ padding: 10px 14px 14px; text-align: center; }
.float-sidebar .fs-qr img{ width: 180px; height: 180px; object-fit: contain; background: #f6f8fa; border-radius: 6px; }
.float-sidebar .fs-qr-tip{ font-size: 12px; color: #6c757d; margin-top: 6px; }

@media (max-width: 991.98px) {
  .float-sidebar { display: none; }
}
/* 新闻资讯区块 */
.news-section { background: #fff; padding: 80px 0; }
.news-more { color: var(--primary-color); text-decoration: none; }
.news-more:hover { text-decoration: underline; }
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid #e9ecef; border-radius: 12px; padding: 18px; box-shadow: 0 6px 16px rgba(0,0,0,.05); transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
.news-title { font-size: 18px; color: #283a53; margin: 0 0 8px; line-height: 1.4; }
.news-meta { font-size: 14px; color: #6c757d; margin-bottom: 10px; }
.news-brief { color: #55657b; line-height: 1.7; margin-bottom: 10px; }
.news-link { color: var(--primary-color); text-decoration: none; font-weight: 600; }
.news-link:hover { text-decoration: underline; }

@media (max-width: 991.98px) { .news-list { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 575.98px) { .news-list { grid-template-columns: 1fr; gap: 16px; } }

/* 平板响应式（≤991.98px） */
@media (max-width: 991.98px) {
    .container { max-width: 720px; }
    .section { padding: 60px 0; }
    .hero { height: 560px; margin-top: 70px; }
    .hero .swiper,
    .hero .hero-swiper,
    .hero .swiper-wrapper,
    .hero .swiper-slide { height: 100%; width: 100%; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1.05rem; }
}

/* 手机响应式（≤767.98px） */
@media (max-width: 767.98px) {
    .container { max-width: 540px; }
    .section { padding: 50px 0; }
    .hero { height: 420px; margin-top: 64px; }
    .hero .swiper,
    .hero .hero-swiper,
    .hero .swiper-wrapper,
    .hero .swiper-slide { height: 100%; width: 100%; }
    .hero-content h1 { font-size: 1.6rem; }
    .hero-content p { font-size: 0.95rem; }
}

/* Hero Swiper Styles */
.hero-swiper {
    height: 100%; /* 跟随 .hero 高度 */
    position: relative;
}

/* Removed stray duplicated rules and extra brace */

/* 定位：第二、三张 Banner 文案靠左对齐并放大 */
.hero .swiper-slide .container { height: 100%; display: flex; align-items: center; justify-content: center; }
.hero .swiper-wrapper .swiper-slide:nth-child(2) .container,
.hero .swiper-wrapper .swiper-slide:nth-child(3) .container { justify-content: flex-start; }

.hero .swiper-wrapper .swiper-slide:nth-child(2) .hero-content,
.hero .swiper-wrapper .swiper-slide:nth-child(3) .hero-content {
    text-align: left;
    max-width: 720px;
}

.hero .swiper-wrapper .swiper-slide:nth-child(2) .hero-content h2,
.hero .swiper-wrapper .swiper-slide:nth-child(3) .hero-content h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 18px;
}

.hero .swiper-wrapper .swiper-slide:nth-child(2) .hero-content p,
.hero .swiper-wrapper .swiper-slide:nth-child(3) .hero-content p {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 22px;
}

@media (max-width: 991.98px) {
    .hero .swiper-wrapper .swiper-slide:nth-child(2) .hero-content,
    .hero .swiper-wrapper .swiper-slide:nth-child(3) .hero-content { max-width: 600px; }
    .hero .swiper-wrapper .swiper-slide:nth-child(2) .hero-content h2,
    .hero .swiper-wrapper .swiper-slide:nth-child(3) .hero-content h2 { font-size: 2.2rem; }
    .hero .swiper-wrapper .swiper-slide:nth-child(2) .hero-content p,
    .hero .swiper-wrapper .swiper-slide:nth-child(3) .hero-content p { font-size: 1.1rem; }
}

@media (max-width: 767.98px) {
    .hero .swiper-wrapper .swiper-slide:nth-child(2) .hero-content,
    .hero .swiper-wrapper .swiper-slide:nth-child(3) .hero-content { max-width: 90%; }
    .hero .swiper-wrapper .swiper-slide:nth-child(2) .hero-content h2,
    .hero .swiper-wrapper .swiper-slide:nth-child(3) .hero-content h2 { font-size: 1.8rem; }
    .hero .swiper-wrapper .swiper-slide:nth-child(2) .hero-content p,
    .hero .swiper-wrapper .swiper-slide:nth-child(3) .hero-content p { font-size: 1rem; }
}

/* 关于我们区块样式 */
.about-section {
    background-color: var(--light-bg);
    padding: 100px 0;
}

.about-section .container {
    max-width: 1600px;
}

.about-section .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 40px;
}

.about-section .col-lg-6 {
    flex: 0 0 48% !important;
    max-width: 48% !important;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.play-button {
    cursor: pointer;
    z-index: 2;
}

.play-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.play-icon:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.play-icon i {
    font-size: 28px;
    color: var(--primary-color);
    margin-left: 4px;
}

.about-content .section-header h2 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

.about-content .section-header p {
    color: #8a9ba8;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 0;
}

.about-text p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-stats {
    background: transparent;
    border-radius: 0;
    padding: 20px 0;
    box-shadow: none;
    margin: 25px 0;
}

.stat-item {
    padding: 15px 10px;
    text-align: left;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.tracking-wide {
    letter-spacing: 2px;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .about-section {
        padding: 80px 0;
    }
    
    .about-section .row {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        gap: 20px;
    }
    
    .about-section .col-lg-6 {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
    
    .about-content {
        padding-left: 0 !important;
        margin-top: 30px;
    }
    
    .about-image img {
        height: 250px;
    }
    
    .about-stats {
        margin: 25px 0;
        padding: 20px 10px;
    }
    
    .stat-number {
        font-size: 28px;
    }
}

@media (max-width: 767.98px) {
    .about-section {
        padding: 60px 0;
    }
    
    .play-icon {
        width: 60px;
        height: 60px;
    }
    
    .play-icon i {
        font-size: 20px;
    }
    
    .about-content .section-header h2 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

/* 统一H标签样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* H1 - 主标题 */
h1 {
    font-size: 2.5rem;
    color: var(--white);
    font-weight: 700;
}

/* H2 - 区块标题 */
h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: left !important; /* 全局左对齐，覆盖 text-center 等 */
}

/* 保证任何容器里的 H2 都左对齐 */
.section-header h2 { text-align: left !important; }

/* H3 - 子标题 */
h3 {
    font-size: 1.4rem;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* H4 - 小标题 */
h4 {
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

/* 轮播图中的H2标题保持白色 */
.hero-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    text-shadow: 0 4px 12px rgba(0,0,0,.3);
}

/* 响应式H标签调整 */
@media (max-width: 991.98px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.1rem; }
    .hero-content h2 { font-size: 2rem; }
}

@media (max-width: 767.98px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }
    .hero-content h2 { font-size: 1.6rem; }
}

/* 移除空规则，避免 lint 警告 */

/* 由 .hero .swiper-slide::after 统一提供暗色遮罩，这里关闭旧的覆盖层 */
.hero-swiper .swiper-slide::before { content: none; }

.hero-swiper .swiper-slide .container {
    position: relative;
    z-index: 2;
}

/* Responsive Adjustments */
@media (max-width: 768px) { /* 高度由 .hero 控制，这里无需覆盖 */ }
