/* ====== 全局变量定义 ====== */
:root {
    /* 主题颜色系统 */
    --primary-color: #0052CC;    /* 主要品牌色 */
    --secondary-color: #2B3990;  /* 次要品牌色 */
    --accent-color: #00A0E9;     /* 强调色 */
    
    /* 文字颜色系统 */
    --text-dark: #333;           /* 主要文字颜色 */
    --text-light: #666;          /* 次要文字颜色 */
    --text-gray: #999;           /* 灰色文字 */
    
    /* 背景颜色系统 */
    --bg-light: #f8f9fa;         /* 浅色背景 */
    --bg-white: #fff;            /* 白色背景 */
    
    /* 通用效果 */
    --shadow: 0 2px 10px rgba(0,0,0,0.1);  /* 阴影效果 */
}

/* ====== 全局重置样式 ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ====== 基础页面样式 ====== */
body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: auto;
    min-width: 1200px;
}

/* ====== 通用容器样式 ====== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    min-width: 1200px;
}

/* ====== 导航栏样式 ====== */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    min-width: 1200px;
}

.nav {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 100px;
    max-width: 1800px;
    margin: 0 auto;
}

.logo {
    margin-right: 80px;
}

.logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 60px;
}

.nav-item {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.nav-item:hover {
    color: #007bff;
    transform: translateY(-2px);
}

/* 电话图标悬停效果 */
.nav-item:last-child {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    margin-left: 30px;
}

.nav-item:last-child:hover {
    background: #e9ecef;
    transform: scale(1.05);
}

.phone-icon {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.nav-item:hover .phone-icon {
    transform: rotate(15deg);
}

/* 菜单按钮样式 */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .nav-links {
        position: static;
        transform: none;
        display: flex;
        flex-direction: row;
        width: auto;
        height: auto;
        background: none;
        padding: 0;
    }

    .menu-btn {
        display: none;
    }

    .nav {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav {
        height: 88px;
    }

    .logo img {
        height: 60px;
    }
}

/* ====== 轮播图样式 ====== */
.banner {
    position: relative;
    width: auto;
    height: 500px;
    margin-top: 80px;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-item {
    position: relative;
    display: none;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slider-item.active {
    display: block;
}

.banner-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    color: #0344f886;
    text-align: center;
    padding-bottom: 50px;
}

.banner-text {
    margin-bottom: 20px;
}

.banner-button {
    margin-top: 20px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* 轮播图导航点 */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--bg-white);
    transform: scale(1.2);
}

/* 轮播图箭头 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* ====== 响应式样式 ====== */
@media (max-width: 768px) {
    .nav {
        justify-content: space-between;
        padding: 0 15px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        padding: 20px;
        box-shadow: var(--shadow);
        flex-direction: column;
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }
}

/* ====== 关于我们部分样式 ====== */
.about-section {
    padding: 80px 0;
    background: var(--bg-light);
}

/* 内容区域样式 */
.about-content {
    text-align: center;  /* 文字居中 */
    max-width: 800px;    /* 限制内容宽度 */
    margin: 0 auto;      /* 水平居中 */
    margin-bottom: 50px; /* 与下方图片区域保持间距 */
}

.about-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* 数据统计样式 */
.company-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-light);
    font-size: 14px;
}

/* 图片网格样式 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* 4列布局 */
    gap: 20px;
}

.grid-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;  /* 保持正方形比例 */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 82, 204, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 遮罩层样式 */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.grid-overlay h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.grid-overlay p {
    font-size: 14px;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* 悬停效果 */
.grid-item:hover {
    background: rgba(0, 82, 204, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.grid-item:hover .grid-overlay h4 {
    color: var(--primary-color);
}

.grid-item:hover .grid-overlay p {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .grid-overlay h4 {
        font-size: 16px;
    }
    
    .grid-overlay p {
        font-size: 13px;
    }
}

/* ====== 服务项目部分样式 ====== */
.services-section {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ====== 解决方案部分样式 ====== */
.solutions-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 20px;
    margin-top: 40px;
}

/* 解决方案项样式 */
.solution-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 82, 204, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 遮罩层样式 */
.solution-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.solution-overlay h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.solution-overlay p {
    font-size: 14px;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* 悬停效果 */
.solution-item:hover {
    background: rgba(0, 82, 204, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.solution-item:hover .solution-overlay h3 {
    color: var(--primary-color);
}

.solution-item:hover .solution-overlay p {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .solutions-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 200px);
    }
}

@media (max-width: 768px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 180px);
    }
}

@media (max-width: 480px) {
    .solutions-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, 160px);
    }
}

/* ====== 新闻动态部分样式 ====== */
.news-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 新闻块样式 */
.news-block {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* 新闻图片样式 */
.news-image {
    width: 100%;
    height: 100%;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* 新闻内容遮罩层 */
.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3));
    padding: 3px 30px;
    color: white;
    transform: translateY(70%);
    transition: transform 0.3s ease;
}

/* 新闻内容样式 */
.news-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: white;
}

.news-date {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.news-excerpt {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
    display: none;
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 悬停效果 */
.news-block:hover .news-image img {
    transform: scale(1.1);
}

.news-block:hover .news-overlay {
    transform: translateY(0);
}

.news-block:hover .news-excerpt {
    display: block;
}

.news-block:hover .read-more {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-block {
        height: 350px;
    }
}

/* ====== 联系我们部分样式 ====== */
.contact-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
}

.contact-form textarea {
    resize: vertical;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

/* ====== 页脚样式 ====== */
.footer {
    background: #333;
    color: var(--bg-white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links a {
    color: var(--bg-white);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ====== 响应式调整 ====== */
@media (max-width: 1024px) {
    .about-grid,
    .services-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-grid,
    .services-grid,
    .news-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .company-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-logo {
        height: 30px;
    }
}

/* ====== 产品展示区域样式 ====== */
.products-section {
    padding: 80px 0;
    background: var(--bg-light);
}

/* 产品网格布局 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* 水平四等分 */
    gap: 20px;
    margin-top: 40px;
}

/* 产品项样式 */
.product-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
   
}

.product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 悬停效果 */
.product-item:hover img {
    transform: scale(1.1);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);  /* 平板端两列 */
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;  /* 手机端单列 */
    }
}

/* ====== 通用标题样式 ====== */
.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

移除装饰性下划线
/* .section-title::after { */
    /* display: none;  移除下划线 */
/* } */

/* 各部分标题应用相同样式 */
.products-section .section-title,
.about-section .section-title,
.services-section .section-title,
.solutions-section .section-title,
.news-section .section-title {
    /* 继承通用标题样式 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
}

/* 添加平滑滚动效果 */
html {
    scroll-behavior: smooth;  /* 添加平滑滚动 */
}

