/* 全局样式 */
/* 重置默认样式，确保跨浏览器一致性 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础字体和背景设置 */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 容器样式，用于居中内容并设置最大宽度 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* 导航栏 */
/* 导航栏容器样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 导航栏内部布局 */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/*  logo样式 */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
}

.logo-image-wrapper {
    display: flex;
    flex-direction: column;

}

.logo img {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin: 4px;
    white-space: nowrap;
}

/* 导航链接样式 */
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0066cc;
}

/* 下拉菜单容器 */
.dropdown {
    position: relative;
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    min-width: 180px;
    display: none;
    z-index: 1001;
}

/* 下拉菜单项 */
.dropdown-menu li {
    margin: 0;
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #0066cc;
}

/* 鼠标悬停时显示下拉菜单 */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* 英雄区域 */
/* 英雄区域容器样式 */
.hero {
    position: relative;
    color: #fff;
    margin: auto;
    aspect-ratio: 16/5;
    text-align: center;
    overflow: hidden;
}

/* 轮播图容器 */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;

}

/* 轮播图轨道 */
.slider-track {
    position: relative;
    width: 100%;
    height: 100%;

}

/* 轮播图图片 */
.slider-track img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;

}

/* 激活的轮播图 */
.slider-track img.active {
    opacity: 1;
}

/* 轮播图指示器容器 */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
    pointer-events: auto;
}

/* 轮播图指示器 */
.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
    z-index: 101;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background-color: #0066cc;
    transform: scale(1.2);
}

/* 英雄区域遮罩层 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* 英雄区域标题 */
.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

/* 英雄区域描述 */
.hero p {
    font-size: 24px;
    margin-bottom: 30px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background-color: #fff;
    color: #333;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* 优势区域 */
/* 优势区域容器 */
.advantages {
    padding: 80px 0;
    background-color: #fff;
}

/* 优势区域标题 */
.advantages h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

/* 优势卡片网格布局 */
.advantage-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* 卡片样式 */
.card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
}

/* 卡片图标样式 */
.card .icon {
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.card .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 卡片背景图片 */
.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.15;
    border-radius: 10px;
}

/* 图标覆盖层 */
.icon-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 卡片标题 */
.card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #222;
}

/* 卡片描述 */
.card p {
    color: #0541c2;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 2px;
    font-weight: bold;

}

/* 产品区域 */
/* 产品区域容器 */
.products {
    padding: 80px 0;
    background-color: #f5f5f5;
}

/* 产品区域标题 */
.products h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

/* 产品卡片网格布局 */
.product-grid {
    /* 设置为Grid布局 */
    display: grid;
    /* 定义网格列：自动适应容器宽度，每列最小300px，最大占满剩余空间 */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* 设置网格项之间的间距为30px */
    gap: 30px;
}

/* 产品卡片样式 */
.product-card {
    /* 设置背景颜色为白色 */
    background-color: #fff;
    /* 设置圆角为10px */
    border-radius: 10px;
    /* 隐藏溢出部分，确保图片不会超出卡片 */
    overflow: hidden;
    /* 添加阴影效果，增强立体感 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* 添加transform过渡效果，使悬停时的动画更平滑 */
    transition: transform 0.3s ease;
    /* 文字居中显示 */
    text-align: center;
    /* 相对定位，作为按钮绝对定位的参照 */
    position: relative;
    /* 设置最小高度，确保按钮有足够空间 */
    min-height: 350px;
    /* 内边距，确保内容不与边缘重叠 */
    padding: 20px;
}

/* 鼠标悬停时的效果 */
.product-card:hover {
    /* 向上移动5px，产生悬浮效果 */
    transform: translateY(-5px);
}

/* 产品卡片图片 */
.product-card img {
    width: 100%;
    height: 200px;
    /* 保持图片比例并覆盖整个容器，裁剪超出部分 */
    object-fit: cover;
    /* 移除默认margin */
    margin: 0 0 15px 0;
    border-radius: 8px;
}

/* 产品卡片标题 */
.product-card h3 {
    font-size: 20px;
    margin: 0 0 15px 0;
    color: #333;
}

/* 产品卡片描述 */
.product-card p {
    margin: 0 0 60px 0;
    color: #666;
    line-height: 1.6;
}

/* 小按钮样式 */
.btn-sm {
    display: inline-block;
    background-color: #0066cc;
    color: #fff;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
    /* 绝对定位，固定在卡片底部 */
    position: absolute;
    bottom: 20px;
    /* 水平居中 */
    left: 50%;
    transform: translateX(-50%);
    /* 移除左右margin，因为已经居中 */
    margin: 0;
}

.btn-sm:hover {
    background-color: #0052a3;
}

/* 案例区域 */
/* 案例区域容器 */
.cases {
    padding: 80px 0;
    background-color: #fff;
}

/* 案例区域标题 */
.cases h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

/* 案例卡片网格布局 */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 案例卡片样式 */
.case-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* 相对定位，作为按钮绝对定位的参照 */
    position: relative;
    /* 设置最小高度，确保按钮有足够空间 */
    min-height: 380px;
}

/* 案例卡片图片 */
.case-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* 案例卡片标题 */
.case-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

/* 案例卡片描述 */
.case-card p {
    color: #666;
    /* 增加底部margin，确保按钮不会与内容重叠 */
    margin-bottom: 60px;
}

/* 案例卡片中的按钮 */
.case-card .btn-sm {
    /* 绝对定位，固定在卡片底部 */
    position: absolute;
    bottom: 20px;
    /* 水平居中 */
    left: 50%;
    transform: translateX(-50%);
}

/* 联系区域 */
/* 联系区域容器 */
.contact {
    padding: 80px 0;
    background-color: #f5f5f5;
}

/* 联系区域标题 */
.contact h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

/* 联系信息网格布局 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* 联系信息项 */
.info-item {
    display: flex;
    align-items: flex-start;
}

.info-item svg {
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 5px;
}

.info-item p {
    display: inline-block;
    margin-right: 10px;
}

/* 分割线 */
.divider {
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    margin: 40px 0;
}

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /*  margin-bottom: 40px;*/
}

.page-header h2 {
    text-align: center;
    margin: 0;
}

.page-header .breadcrumb {
    position: relative;
    right: 0;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    position: absolute;
    right: 0;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #0052a3;
}

.breadcrumb span {
    color: #666;
    margin-left: 5px;
}

.breadcrumb>* {
    margin-right: 10px;
}

/* 页脚 */
/* 页脚容器 */
footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0 30px;
}

/* 页脚内容布局 */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* 页脚logo */
.footer-logo {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 100px;
    height: 100px;
    margin-right: 10px;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo-text span {
    font-size: 18px;
    font-weight: bold;
}

/* 页脚链接 */
.footer-links h4 {
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

/* 快速链接 */
.quick-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-links h4 {
    margin-right: 20px;
    font-size: 16px;
    margin-bottom: 10px;
}

.quick-links ul {
    list-style: none;
    display: flex;
    margin-bottom: 10px;
    padding: 0;
}

.quick-links li {
    margin-right: 20px;
    margin-bottom: 0;
}

.quick-links a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: #fff;
}

/* 页脚联系信息 */
.footer-contact h4 {
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #ccc;
}

/* 联系信息区域 */
.contact-info {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.contact-info h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

/* 联系详情网格布局 */
.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 联系项 */
.contact-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.contact-item p {
    font-size: 16px;
    color: #666;
}

/* 页脚底部 */
.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 30px;
    text-align: center;
    color: #ccc;
}

.footer-bottom a {
    color: #ccc;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
/* 平板设备响应式设计 */
@media (max-width: 768px) {

    /* 导航栏调整 */
    .navbar .container {
        flex-direction: column;
        padding: 10px 20px;
    }

    .nav-links {
        margin-top: 15px;
    }

    .nav-links li {
        margin-left: 15px;
        margin-right: 15px;
    }

    /* 英雄区域调整 */
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    /* 标题调整 */
    .advantages h2,
    .products h2,
    .cases h2,
    .contact h2 {
        font-size: 28px;
    }
}

/* 移动设备响应式设计 */
@media (max-width: 480px) {

    /* 英雄区域调整 */
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    /* 按钮调整 */
    .btn {
        padding: 10px 20px;
    }

    /* 标题调整 */
    .advantages h2,
    .products h2,
    .cases h2,
    .contact h2 {
        font-size: 24px;
    }
}