body {
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
}

.banner-container {
    width: 100%;
    margin: 0 auto;
    max-width: 1920px;
}

.banner-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    height: 1000px;
}

.banner-carousel {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.banner-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    min-width: 100%;
}

.banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.banner-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.banner-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 80px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.banner-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.banner-indicator {
    padding: 12px;
    width: 48px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 4px;
}

.banner-indicator.active {
    background-color: #e6002d;
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 1920px) {
    .banner-carousel-container {
        height: calc(100vw / 1.92);
        max-height: 1000px;
    }
}

@media (max-width: 1200px) {
    .banner-carousel-container {
        max-height: 800px;
    }
}

@media (max-width: 992px) {
    .banner-carousel-container {
        max-height: 600px;
    }
}

@media (max-width: 768px) {
    .banner-carousel-container {
        max-height: 500px;
    }
}

@media (max-width: 576px) {
    .banner-carousel-container {
        max-height: 400px;
    }
}

@media (max-width: 400px) {
    .banner-carousel-container {
        max-height: 350px;
    }
}

/* 加载动画 */
@keyframes bannerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.banner-slide {
    animation: bannerFadeIn 0.8s ease;
}

/* 通用部分样式 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title a {
    color: #000;
}
.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    transition: all 550ms;
}

.section-title h2:hover {
    color: var(--primary);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* 产品部分 - 每排最多3个，图片450px×450px */
.products {
    background-color: var(--gray-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 每排最多3个产品 */
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 2px solid var(--primary);
    min-height: 400px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.product-img-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    width: 100%;
    /* 或者使用 aspect-ratio 更精准 */
    aspect-ratio: 1 / 1; /* 例如 1:1 正方形 */
    object-fit: cover; /* 保持图片比例并填充容器 */
    transition: var(--transition);
    margin-bottom: 20px;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 0 25px 25px 25px;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    transition: all 550ms;
    white-space: nowrap; /* 强制文本在一行内显示 */
    overflow: hidden;    /* 隐藏超出容器的内容 */
    text-overflow: ellipsis; /* 超出部分显示省略号 */
}
.product-title:hover {
    color: var(--primary);
}

.product-desc {
    color: var(--text-light);
    min-height: 60px;
    white-space: nowrap; /* 强制文本在一行内显示 */
    overflow: hidden;    /* 隐藏超出容器的内容 */
    text-overflow: ellipsis; /* 超出部分显示省略号 */
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-btn {
    flex: 1;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
}

.all-products a {
    background-color: var(--primary);
    color: var(--white);
    width: 200px;
    height: 50px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto 0 auto;
    transition: var(--transition);
}

.all-products a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-details {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-details:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-inquiry {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-inquiry:hover {
    background-color: var(--primary-dark);
}

/* 公司介绍 - 带数据统计，公司图片高度固定为500px */
.company {
    background-image: url("https://i.imgs.ovh/2026/01/28/y9Aen0.webp");
    background-repeat: no-repeat;
    background-position: center;
}
.about {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 500px; /* 固定公司图片高度为500px */
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-content {
    flex: 1;
}

.about-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 显示的行数 */
    overflow: hidden;
}

/* 数据统计 */
.stats {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 15px;
    background-color: var(--gray-light);
    border-radius: 8px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    font-size: 14px;
}

.about-btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 10px;
}

.about-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* 公司证书 - 移动端显示2个证书，大小为188px×250px，无白色背景 */
.certificates {
    background-color: var(--gray-light);
}

.cert-carousel {
    position: relative;
    overflow: hidden;
}

.cert-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.cert-item {
    flex: 0 0 auto;
    width: 20%; /* 桌面端每排显示5个 */
}

.cert-card {
    /* 取消白色背景 */
    overflow: hidden;
    box-shadow: none;
    text-align: center;
    height: 100%;
}
.cert-imgs {
    width: 250px;
    height: 340px;
    overflow: hidden;
}
.cert-img {
    width: 100%;
    object-fit: contain;
    margin: 0 auto 15px;
    transition: transform 0.6s ease;
}

.cert-img:hover {
    transform: scale(1.1);
}

.cert-name {
    font-weight: 600;
}

.cert-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}


.cert-control:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* 新闻部分 - 宽度367px */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 367px); /* 固定宽度367px */
    justify-content: center;
    gap: 30px;
}

.news-card {
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: #fff;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    background-color: var(--primary);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.news-card a {
    color:#fff;
}
.news-img {
    width: 100%;
    height: 275px;
    object-fit: cover;
}

.news-info {
    padding: 20px;
}

.news-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 18px;
    margin-bottom: 10px;
    transition: var(--transition);
    /* 单行显示，超出部分省略 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-desc {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 16px;
    /* 单行显示，超出部分省略 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 合作公司 - 移动端支持手势滑动，PC端自动轮播 */
.partners {
    background-color: var(--gray-light);
    overflow: hidden;
}

.partner-slider {
    overflow: hidden;
    position: relative;
}

.partner-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.partner-item {
    flex: 0 0 auto;
    width: 16.666%; /* 桌面端每排6个 */
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo {
    width: 200px;
    height: 120px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--transition);
}

.partner-item:hover .partner-logo {
    opacity: 1;
    transform: scale(1.1);
}

.partner-controls {
    display: none; /* 默认隐藏，移动端显示 */
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.partner-control, .cert-control {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.partner-control:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* 响应式设计 */
@media (max-width: 1400px) {
    /* 当屏幕不足以显示3个产品时调整为2个 */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .about {
    gap: 40px;
    }

    /* 证书在中等屏幕每排3个 */
    .cert-item {
    width: 33.333%;
    }

    /* 合作伙伴在中等屏幕每排4个 */
    .partner-item {
    width: 25%;
    }
}

@media (max-width: 992px) {
    .about {
    flex-direction: column;
    }

    /* 合作伙伴在平板显示控制按钮 */
    .partner-controls {
    display: flex;
    }
}

@media (max-width: 768px) {
    .section {
    padding: 60px 0;
    }

    .section-title h2 {
    font-size: 28px;
    }

    /*.carousel-indicators {*/
    /*  display: none;*/
    /*}*/

    .company {
        background-image: none!important;
    }

    .feature {
        background-image: none!important;
    }

    .cert-imgs {
        max-width: 150px;
        max-height: 205px;
    }

    .cert-img {
        /* 移动端证书大小为188px×250px */
        width: 100%;
    }
    /* 新闻在平板屏幕每行2个 */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 合作伙伴在平板屏幕每排3个 */
    .partner-item {
    width: 33.333%;
    }

    .stats {
    gap: 15px;
    }
}

@media (max-width: 576px) {
    .section {
    padding: 20px 0;
    }

    .cert-imgs {
        /* 移动端证书大小为188px×250px */
        width: 150px;
        height: 205px;
    }

    .cert-img {
        width: 100%;
    }

    .section-title {
    margin-bottom: 40px;
    }

    .section-title h2 {
    font-size: 24px;
    }

    /* 产品在移动屏幕每行1个 */
    .product-grid {
        grid-template-columns: 1fr;
    }

    .about-content h3 {
    font-size: 24px;
    }

    .about-img {
    width: 100%;
    }

    .about-img img {
    height: 273px;
    }
    /* 证书在移动屏幕每排2个 */
    .cert-item {
    width: 50%;
    }

    /* 新闻在移动屏幕每排1个 */
    .news-grid {
    grid-template-columns: 1fr;
    }

    /* 合作伙伴在移动屏幕每排2个 */
    .partner-item {
    width: 50%;
    }

    .partner-logo {
    padding: 0 30px;
    }

    .stat-item {
    flex: 1 0 40%;
    }
}


/*为什么选择我们*/
.feature {
    background-image: url("https://i.imgs.ovh/2026/01/28/y9A8Vg.webp");
    background-repeat: no-repeat;
    background-position: center;
}
.cards-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 37px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}
/* 卡片样式 */
.feature-card {
  position: relative;
  width: 100%;
  max-width: 362px;
  height: 400px;
  background-color: #ffffff; /* 确保背景足够浅 */
  border-radius: 8px;
  padding: 80px 30px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  color: #212121; /* 加深文字颜色 */
}

/* 图标背景 - 四分之一圆 */
.icon-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  background-color: #e6002d;
  border-radius: 0 0 100% 0;
  z-index: 1;
  transition: all 0.3s ease;
}

/* 字体图标 */
.feature-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  font-size: 50px;
  width: 50px;
  height: 50px;
  z-index: 2;
  transition: all 0.3s ease;
}

/* 序号 */
.card-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 96px;
  font-weight: bold;
  color: #e6002d;
  z-index: 1;
  transition: all 0.3s ease;
}

/* 标题和描述 */
.card-title {
  font-size: 24px;
  color: #e6002d;
  margin-top: 60px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.card-description {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  transition: all 0.3s ease;
}

/* 悬停效果 */
.feature-card:hover {
  transform: translateY(-30px);
  background-color: #e6002d;
  box-shadow: 0 20px 40px rgba(230, 0, 45, 0.2);
}

.feature-card:hover .icon-bg {
  background-color: white;
}

.feature-card:hover .feature-icon {
  color: #e6002d;
}

.feature-card:hover .card-number {
  color: white;
}

.feature-card:hover .card-title {
  color: white;
}

.feature-card:hover .card-description {
  color: white;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .cards-container {
    gap: 20px;
  }

  .feature-card {
    max-width: 300px;
    height: 450px;
  }
}

@media (max-width: 768px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
      padding: 0 20px;
  }

  .feature-card {
    max-width: 100%;
    height: auto;
    padding: 70px 25px 25px;
    margin-bottom: 20px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }


  .card-number {
    font-size: 80px;
  }
}

@media (max-width: 480px) {
  .feature-card {
    padding: 60px 20px 20px;
  }

  .feature-icon {
    top: 30px;
    left: 30px;
    font-size: 48px;
  }

  .card-number {
    font-size: 70px;
  }

  .card-title {
    font-size: 22px;
  }

  .card-description {
    font-size: 15px;
  }
}




/* Cookie 警告容器核心样式 */
.cookie-warning {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1920px; /* 最大宽度要求 */
    height: 160px; /* 固定高度要求 */
    background-color: #dfdfdf;
    border: 1px solid #e6002d; /* 主色调边框 */
    border-radius: 8px;
    padding: 1.5rem;
    display: flex; /* 横向flex，实现文字与按钮并排 */
    justify-content: space-between;
    align-items: flex-start; /* 顶部对齐 */
    gap: 2rem; /* 文字与按钮之间的间距 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999; /* 确保悬浮在最上层 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

/* Cookie 警告显示状态 */
.cookie-warning.active {
    opacity: 1;
    visibility: visible;
}

/* Cookie 内容区域 - 占满剩余宽度 */
.cookie-content {
    flex: 1; /* 让文字区域自适应剩余宽度 */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cookie-content h3 {
    color: #e6002d; /* 主色调标题 */
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.cookie-content p {
    color: #333333;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* 按钮操作区域 - 电脑端上下布局，紧邻文字右侧 */
.cookie-buttons {
    display: flex;
    flex-direction: column; /* 电脑端纵向flex，按钮上下布局 */
    gap: 1rem; /* 电脑端按钮垂直间距 */
    align-items: flex-start; /* 按钮左对齐（紧邻文字右侧） */
    height: 100%;
    justify-content: center; /* 按钮垂直居中 */
}

.cookie-btn {
    width: 100%;
    padding: 10px 10px;
    border: none;
    line-height: 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap; /* 防止按钮文字换行 */
}

/* 同意按钮（主色调） */
.cookie-btn.accept {
    background-color: #e6002d;
    color: #ffffff;
}

.cookie-btn.accept:hover {
    background-color: #c40025; /* 主色调深色调 hover 效果 */
}

/* 拒绝按钮 */
.cookie-btn.reject {
    background-color: #f5f5f5;
    color: #333333;
    border: 1px solid #dddddd;
}

.cookie-btn.reject:hover {
    background-color: #eeeeee;
}

/* 自适应：移动端（768px 以下）调整样式 - 按钮改为左右布局 */
@media (max-width: 768px) {
    .cookie-warning {
        height: auto; /* 移动端取消固定高度，自适应内容 */
        padding: 1.2rem;
        bottom: 1rem;
        flex-direction: column; /* 移动端容器纵向布局，避免拥挤 */
        gap: 1.5rem;
    }

    .cookie-content h3 {
        font-size: 2rem;
    }

    .cookie-content p {
        font-size: 0.85rem;
    }

    .cookie-buttons {
        flex-direction: row; /* 移动端横向flex，按钮左右布局 */
        gap: 1rem; /* 移动端按钮水平间距 */
        align-items: center;
        justify-content: flex-end; /* 移动端按钮右对齐 */
        width: 100%;
        height: auto; /* 移动端取消按钮区域固定高度 */
    }

    .cookie-btn {
        width: 100%;
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* 自适应：平板端（768px - 1200px）微调 - 保持电脑端上下布局 */
@media (min-width: 768px) and (max-width: 1200px) {
    .cookie-warning {
        max-width: 90%; /* 平板端适当缩小最大宽度 */
        padding: 1.3rem;
        gap: 1.5rem;
    }

    .cookie-content h3 {
        font-size: 1.15rem;
    }

    .cookie-content p {
        font-size: 0.9rem;
    }

    .cookie-btn {
        padding: 0.65rem 1.3rem;
        font-size: 0.85rem;
    }

    /* 平板端保持按钮上下布局，仅微调间距 */
    .cookie-buttons {
        gap: 0.8rem;
    }
}