/* ===== 全局修复版CSS ===== */
:root {
  --primary: #0067b8;
  --primary-hover: #005aa3;
  --secondary: #00a0e9;
  --dark: #333333;
  --gray: #666666;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --border: #e0e0e0;
  --footer-bg: #1a1a1a;
  --header-height: 70px;
}

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

body {
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", STHeiti, "Microsoft YaHei", sans-serif;
  color: var(--dark);
  line-height: 1.5;
  font-size: 15px;
  background: var(--white);
  padding-top: var(--header-height); /* 补偿固定头部空间 */
  overflow-x: hidden; /* 隐藏X轴滚动条 */
  width: 100%;       /* 确保宽度不溢出 */
}

/* ===== 头部导航修复 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar {
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  height: 40px;
}

.nav-logo img {
  height: 100%;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  color: var(--dark);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding: 5px 0;
}

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

.nav-menu a.current {
  color: var(--primary);
}

.nav-menu a.current::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

/* ===== Banner区域修复 ===== */
.banner {
  height: calc(100vh - var(--header-height));
  min-height: 500px;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
              url('../images/banner.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
}

.banner-content {
  max-width: 600px;
  padding: 0 15px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--white);
}

.banner h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ===== 主内容区 ===== */
.main-content {
  min-height: calc(100vh - var(--header-height) - 300px); /* 补偿页脚高度 */
  padding: 50px 0;
}

/* ===== 底部全面修复 ===== */
.footer {
  background-color: var(--footer-bg);
  color: #aaa;
  padding-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #aaa;
  font-size: 14px;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  color: var(--secondary);
  margin-right: 10px;
  font-size: 16px;
  margin-top: 4px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: #aaa;
  font-size: 20px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}

/* ===== 响应式修复 ===== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    gap: 15px;
  }
  
  .banner h1 {
    font-size: 2rem;
  }
  
  .banner p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .nav-menu {
    display: none; /* 移动端需要响应式菜单 */
  }
  
  .mobile-menu-btn {
    display: block !important; /* 需要添加移动端菜单按钮 */
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .banner {
    min-height: 400px;
  }
}


        body {
            font-family: 'Noto Sans SC', sans-serif;
            padding-top: 56px;
        }
        
        .gradient-bg {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(59, 130, 246, 0.6));
        }
        
        .hero-bg {
            background-position: center;
            background-size: cover;
            background-repeat: no-repeat;
            position: relative;
            overflow: hidden;
        }
        
        .nav-link {
            white-space: nowrap;
        }
        

        
        .product-card, .news-card {
            transition: transform 0.3s ease;
        }
        
        .product-card:hover {
            transform: scale(1.03);
        }
        
        .news-card:hover {
            transform: translateY(-5px);
        }
        
        .product-image {
            transition: transform 0.3s ease;
        }
        
        .product-card:hover .product-image {
            transform: scale(1.05);
        }
        
        .text-primary-custom {
            color: #10b981;
        }
        
        .bg-primary-custom {
            background: linear-gradient(90deg, #10b981, #3b82f6); /* 精准色值 */
            color: white;
        }
        
        .bg-secondary-custom {
            background-color: #3b82f6;
        }
        
        .gradient-text {
            background: linear-gradient(135deg, #10b981, #3b82f6);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
        }
            
    /* ===== 渐变按钮样式 ===== */
    .btn-gradient {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(90deg, #00c853, #0077b6); /* 绿到蓝渐变 */
    color: white;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px; /* 小圆角 */
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    }

    .btn-bgcolor {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(90deg, #00c853, #0077b6); /* 绿到蓝渐变 */
    color: white;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px; /* 小圆角 */
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    }

    .btn-bgcolor:hover{    background: linear-gradient(90deg, #00e676, #0091ea); /* 更亮的渐变 */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
    }

    .btn-gradient:hover {
    background: linear-gradient(90deg, #00e676, #0091ea); /* 更亮的渐变 */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
    }

    .btn-gradient:active {
    transform: translateY(0);
    }

        
        .btn-outline-primary-custom {
            color: #10b981;
            border-color: #10b981;
        }
        
        .btn-outline-primary-custom:hover {
            background-color: #10b981;
            color: white;
        }
        
        .dropdown-menu {
            min-width: 200px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            border-radius: 8px;
            overflow: hidden;
            border: none;
        }
        
        .siti-logo {
            width: 110px;
            height: auto;
        }
        
        #tab-color {
            color: #10b981;
        }
        
        /* 视频背景样式 */
        .video-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -1;
        }
        
        .section-heading {
            position: relative;
            padding-bottom: 10px;
            margin-bottom: 10px;
        }
        
        .section-heading:after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 2px;
            background: linear-gradient(to right, #10b981, #3b82f6);
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .hero-bg h1 {
                font-size: 1.8rem !important;
                line-height: 2.2rem !important;
            }
            
            .hero-bg h2 {
                font-size: 1.3rem !important;
                line-height: 1.6rem !important;
            }
            
            .hero-bg p {
                font-size: 0.9rem !important;
                line-height: 1.4rem !important;
            }
            
            .section-heading h2 {
                font-size: 1.5rem !important;
            }
            
            .about-section h3 {
                font-size: 1.3rem !important;
            }
            
            .about-section p, .product-card p, .advantage-item p, .news-card p {
                font-size: 0.9rem !important;
                line-height: 1.4rem !important;
            }
            
            .product-card h3, .news-card h3 {
                font-size: 1rem !important;
            }
            
            .advantage-item h3 {
                font-size: 1.1rem !important;
            }
            
            footer .text-sm {
                font-size: 0.8rem !important;
            }
            
            .btn {
                font-size: 0.9rem !important;
                padding: 0.5rem 0.75rem !important;
            }
            
            .nav-link {
                font-size: 0.9rem !important;
            }
        }

.foot-dark{--tw-bg-opacity: 1;background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));}
.foot-muted{--tw-text-opacity: 1;color: rgb(156 163 175 / var(--tw-text-opacity, 1));}
.index-light{background: rgb(220 252 231 / var(--tw-bg-opacity, 1));}
.text-mb4{color: rgb(75 85 99 / var(--tw-text-opacity, 1));font-size: 15px;}
.bg-gray{background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));}

/* ===== 统一所有.btn为直角圆角渐变按钮 ===== */

.btn-simple-green {
  display: inline-block;
  padding: 0.75rem 1.5rem;      /* 上下 0.75rem */
  background: transparent;      /* 透明背景 */
  color: #10b981;               /* 绿色文字（与边框同色） */
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #10b981;    /* 绿色边框 */
  border-radius: 6px;           /* 圆角 */
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
}

/* 可选：悬停时加深颜色 */
.btn-simple-green:hover {
  color: #fff;
  background-color: #0e9d6e;

}

.btn-simple-green2 {
  display: inline-block;
  padding: 0.75rem 1.5rem;      /* 上下 0.75rem */
  background: transparent;      /* 透明背景 */
  color: #fff;               /* 绿色文字（与边框同色） */
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #10b981;    /* 绿色边框 */
  border-radius: 6px;           /* 圆角 */
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
    color: #fff;
  background-color: #0e9d6e;
}

/* 可选：悬停时加深颜色 */
.btn-simple-green2:hover {
  color: #fff;
  background-color: #0e9d6e;

}

.text-primary-custom2 {
    color: #fff;
}

/* Hero Section 样式 */
.hero-section {
    min-height: 100vh;
    padding-top: 70px; /* 给导航栏留出空间 */
}

.video-container {
    top: 0;
    left: 0;
    z-index: 1;
}

.video-background {
    object-fit: cover;
}

.video-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 2rem;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .hero-content {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: auto;
        padding-bottom: 3rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    h1.display-4 {
        font-size: 2.5rem;
    }
    
    h2.display-5 {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-content {
        text-align: center;
    }
    
    .d-flex.flex-column.flex-sm-row {
        justify-content: center;
    }
}
/* 修改gradient-text-white类，不影响文字颜色 */
/* 文字渐变核心样式 */
.gradient-text {
  background: linear-gradient(90deg, #00c853, #0077b6); ;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent; /* 关键：必须设为透明 */
  display: inline-block;
  padding: 0.1em 0; /* 解决梯度截断问题 */
}

/* 覆盖视频背景下的视觉优化 */
.hero-bg .gradient-text {
  text-shadow: 0 2px 4px rgba(255,255,255,0.2); /* 增强可读性 */
}

.gr-c{color: #000;}

#backToTop{bottom: 20px; right: 20px; display: none;background: #10b981;color:#fff;}

/* 移动端适配 */
@media (max-width: 768px) {
  .gradient-text {
    color: #fff;
  }
  .gap-2{margin-bottom: 2rem;}
  .bt-2r{margin-bottom: 2rem;}
  .mr-b{margin-bottom: 3rem;}
  #backToTop{bottom: 100px; right: 20px; display: none;background: #10b981;color:#fff;}
}

body {
  overflow-x: hidden; /* 隐藏水平滚动条 */

}

/* 防止长文本/邮箱地址换行导致的溢出 */
footer .col-lg-5 span {
  word-break: break-all; /* 强制换行长文本 */
  display: inline-block;
  max-width: 100%;
}

