/* 现代统一样式表 - 天图智能科技 */

/* 全局CSS变量定义 */
:root {
    --primary-color: #007bff;      /* 主要颜色：蓝色 */
    --secondary-color: #07218bfb;  /* 次要颜色：深蓝色 */
    --accent-color: #ff6b35;       /* 强调色：橙色 */
    --text-dark: #333333;          /* 深色文本 */
    --text-light: #666666;         /* 浅色文本 */
    --bg-light: #f8f9fa;           /* 浅色背景 */
    --bg-white: #ffffff;           /* 白色背景 */
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);    /* 浅阴影 */
    --shadow-medium: 0 5px 15px rgba(0,0,0,0.15);  /* 中等阴影 */
    --border-radius: 8px;          /* 圆角半径 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* 统一过渡动画 */
}



/* 全局重置和基础样式 */

/* 全局重置 */
* {
    margin: 0;              /* 清除所有元素默认外边距 */
    padding: 0;             /* 清除所有元素默认内边距 */
    box-sizing: border-box; /* 使用边框盒模型，便于控制元素大小 */
}

/* 基础body样式 */
body {
    font-family: "Microsoft Yahei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; /* 设置字体，优先使用微软雅黑 */
    line-height: 1.6;       /* 行高1.6倍，提高可读性 */
    color: var(--text-dark);/* 使用深色文本变量 */
    padding-top: 80px;      /* 顶部内边距，为固定导航栏留出空间 */
    scroll-behavior: smooth; /* 平滑滚动 */
}

/* 现代化按钮样式 */
.btn-modern {
    display: inline-block;           /* 使元素表现像行内块元素，可设置宽高 */
    padding: 12px 30px;             /* 内边距：上下12px，左右30px */
    background: linear-gradient(135deg, var(--primary-color), #0056b3); /* 渐变背景 */
    color: white;                   /* 文字颜色：白色 */
    text-decoration: none;          /* 去除链接默认下划线 */
    border-radius: var(--border-radius); /* 圆角，使用CSS变量 */
    border: none;                   /* 去除边框 */
    font-weight: 500;               /* 字体粗细：中等 */
    transition: var(--transition);  /* 应用统一过渡动画 */
    box-shadow: var(--shadow-light);/* 轻微阴影效果 */
    position: relative;             /* 相对定位，为伪元素提供定位基准 */
    overflow: hidden;               /* 隐藏溢出内容 */
}

/* 按钮左侧光效 */
.btn-modern::before {
    content: '';                    /* 空内容，用于创建光效 */
    position: absolute;             /* 绝对定位，覆盖整个按钮 */
    top: 0;
    left: -100%;                    /* 初始位置在按钮左侧外部 */
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); /* 光效 */
    transition: left 0.5s;          /* 过渡动画持续0.5秒 */
}

/* 悬停时光效移动到右侧 */
.btn-modern:hover::before {
    left: 100%;                     /* 悬停时光效移动到右侧 */
}

/* 按钮悬停效果 */
.btn-modern:hover {
    transform: translateY(-2px);    /* 悬停时向上移动2px */
    box-shadow: var(--shadow-medium);/* 增强阴影 */
    color: white;                   /* 保持白色文字 */
    text-decoration: none;          /* 保持无下划线 */
}

/* 现代化卡片样式 */
.card-modern {
    background: var(--bg-white);         /* 白色背景 */
    border-radius: var(--border-radius); /* 圆角 */
    box-shadow: var(--shadow-light);     /* 轻微阴影 */
    transition: var(--transition);       /* 统一过渡效果 */
    overflow: hidden;                    /* 隐藏溢出内容 */
    border: 1px solid #e9ecef;           /* 淡灰色边框 */
}

/* 卡片悬停效果 */
.card-modern:hover {
    transform: translateY(-5px);         /* 悬停时向上移动5px */
    box-shadow: var(--shadow-medium);    /* 增强阴影 */
}

/* 图片容器样式 */
.image-container-modern {
    margin: 30px 0;                      /* 上下外边距30px */
    display: grid;                       /* 使用网格布局 */
    gap: 30px;                           /* 网格项间距30px */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 自适应网格列 */
}

/* 图片样式 */
.image-container-modern img {
    width: 100%;                          /* 图片宽度100% */
    height: 250px;                       /* 固定高度250px */
    object-fit: contain;                 /* 完整显示图片，可能有空白区域 */
    background: #f5f5f5;                 /* 背景色，防止空白区域过于刺眼 */
    border-radius: var(--border-radius); /* 圆角 */
    transition: var(--transition);       /* 统一过渡效果 */
    box-shadow: var(--shadow-light);     /* 轻微阴影 */
}

/* 图片悬停效果 */
.image-container-modern img:hover {
    transform: scale(1.05);               /* 悬停时放大1.05倍 */
    box-shadow: var(--shadow-medium);    /* 增强阴影 */
}

/* 减少顶部内边距的解决方案区域 */
.features-section.solution-section {
    padding-top: 2px;                 /* 顶部内边距：20px */
    padding-bottom: 20px;              /* 底部内边距：保持80px */
    background: var(--bg-white);       /* 白色背景 */
}

/* 解决方案图片容器样式 */
.solution-image-container {
    margin: 30px 0;                    /* 上下外边距30px */
    display: grid;                     /* 使用网格布局 */
    gap: 30px;                         /* 网格项间距30px */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 自适应网格列 */
}

/* 解决方案图片样式 */
.solution-image-container img {
    width: 100%;                       /* 图片宽度100% */
    height: auto;                      /* 自动高度，保持原始宽高比 */
    object-fit: contain;               /* 完整显示图片，可能有空白区域 */
    background: #f5f5f5;               /* 背景色，防止空白区域过于刺眼 */
    border-radius: var(--border-radius); /* 圆角 */
    transition: var(--transition);     /* 统一过渡效果 */
    box-shadow: var(--shadow-light);   /* 轻微阴影 */
}

/* 解决方案图片悬停效果 */
.solution-image-container img:hover {
    transform: scale(1.02);            /* 悬停时轻微放大 */
    box-shadow: var(--shadow-medium);  /* 增强阴影 */
}

/* 文本居中样式 */
.text-center {
    text-align: center;                /* 文本居中对齐 */
}

/* 底部外边距 */
.mb-5 {
    margin-bottom: 1rem;               /* 底部外边距：1rem */
}

/* 英雄区域增强 */
.hero-section-modern {
     /* 1. 背景：135°角的蓝紫渐变 */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white; /* 2. 文字颜色：白色（适配渐变背景，保证可读性） */
    padding: 28px 0;  /* 3. 上下内边距：37px，左右无内边距 */
    text-align: center;/* 4. 文本居中对齐（标题/按钮等内容居中） */
    position: relative; /* 5. 定位上下文：为伪元素::before提供定位基准 */
    overflow: hidden;  /* 6. 溢出隐藏：防止伪元素/SVG超出容器范围 */
}

.hero-section-modern::before {
    content: ''; /* 伪元素必须的空内容，否则不显示 */
    position: absolute;/* 绝对定位，覆盖整个父元素 */
    top: 0;/* 拉伸伪元素至父元素100%宽高 */
    left: 0;
    right: 0;
    bottom: 0;/* 内联SVG背景：白色三角形，透明度0.1 */
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="0,0 1000,0 1000,100"/></svg>');
    background-size: 100% 100px;
}

/* 英雄区域标题样式 */
.hero-title-modern {
    font-size: 3rem;                    /* 字体大小：3.5rem */
    font-weight: 700;                     /* 字体粗细：700（粗体） */
    margin-bottom: 20px;                  /* 底部外边距：20px */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3); /* 文字阴影：增强可读性 */
    animation: fadeInUp 1s ease-out;      /* 向上淡入动画 */
}

/* 英雄区域副标题样式 */
.hero-subtitle-modern {
    font-size: 1.3rem;                    /* 字体大小：1.3rem */
    max-width: 800px;                     /* 最大宽度：800px */
    margin: 0 auto 40px;                  /* 居中，上下边距0，左右自动，下边距40px */
    opacity: 0.95;                        /* 透明度：95% */
    animation: fadeInUp 1s ease-out 0.2s both; /* 延迟0.2秒的向上淡入动画 */
}

/* 功能特性区域 */
.features-section {
    padding-top: 50px;                /* 上内边距：50px */
    padding-bottom: 80px;             /* 下内边距：80px */
    background: var(--bg-light);     /* 浅色背景 */
}

.features-grid {
    display: grid;                   /* 使用网格布局 */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 自适应网格列 */
    gap: 40px;                       /* 网格项间距：40px */
    margin-top: 50px;                /* 顶部外边距：50px */
}

/* 特性项样式 */
.feature-item {
    text-align: center;              /* 文本居中对齐 */
    padding: 40px 30px;             /* 内边距：上下40px，左右30px */
    background: var(--bg-white);     /* 白色背景 */
    border-radius: var(--border-radius); /* 圆角 */
    box-shadow: var(--shadow-light); /* 轻微阴影 */
    transition: var(--transition);   /* 统一过渡效果 */
}

/* 特性项悬停效果 */
.feature-item:hover {
    transform: translateY(-5px);     /* 悬停时向上移动5px */
    box-shadow: var(--shadow-medium);/* 增强阴影 */
}

/* 特性图标样式 */
.feature-icon {
    width: 80px;                     /* 宽度：80px */
    height: 80px;                    /* 高度：80px */
    margin: 0 auto 20px;             /* 居中，底部外边距20px */
    background: linear-gradient(135deg, var(--primary-color), #0056b3); /* 渐变背景 */
    border-radius: 50%;              /* 圆形边框 */
    display: flex;                   /* 使用flex布局 */
    align-items: center;             /* 垂直居中 */
    justify-content: center;         /* 水平居中 */
    font-size: 2rem;                 /* 字体大小：2rem */
    color: white;                    /* 白色文字 */
}

/* 特性标题样式 */
.feature-title {
    font-size: 1.5rem;               /* 字体大小：1.5rem */
    font-weight: 600;                /* 字体粗细：600 */
    margin-bottom: 15px;             /* 底部外边距：15px */
    color: var(--text-dark);         /* 深色文字 */
}

/* 特性描述样式 */
.feature-description {
    color: var(--text-light);        /* 浅色文字 */
    line-height: 1.6;                /* 行高：1.6倍 */
}

/* 产品展示区域 */
.product-showcase {
    padding: 30px 0;                  /* 上下内边距：80px */
    background: var(--bg-white);      /* 白色背景 */
}

.product-grid {
    display: grid;                     /* 使用网格布局 */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* 自适应网格列 */
    gap: 40px;                         /* 网格项间距：40px */
    margin-top: 50px;                  /* 顶部外边距：50px */
}

/* 产品卡片样式 */
.product-card {
    background: var(--bg-white);       /* 白色背景 */
    border-radius: var(--border-radius); /* 圆角 */
    overflow: hidden;                  /* 隐藏溢出内容 */
    box-shadow: var(--shadow-light);   /* 轻微阴影 */
    transition: var(--transition);     /* 统一过渡效果 */
}

/* 产品卡片悬停效果 */
.product-card:hover {
    transform: translateY(-5px);       /* 悬停时向上移动5px */
    box-shadow: var(--shadow-medium);  /* 增强阴影 */
}

/* 产品图片样式 */
.product-image {
    width: 100%;                       /* 宽度100% */
    height: 200px;                     /* 高度200px，调整为更小值以便完整显示 */
    object-fit: cover;                 /* 保持图片比例，裁剪多余部分 */
    transition: var(--transition);     /* 统一过渡效果 */
}

/* 产品卡片悬停时图片放大 */
.product-card:hover .product-image {
    transform: scale(1.1);             /* 悬停时放大1.1倍 */
}

/* 产品内容样式 */
.product-content {
    padding: 30px;                     /* 内边距：30px */
}

/* 产品标题样式 */
.product-title {
    font-size: 1.5rem;                 /* 字体大小：1.5rem */
    font-weight: 600;                  /* 字体粗细：600 */
    margin-bottom: 15px;               /* 底部外边距：15px */
    color: var(--text-dark);           /* 深色文字 */
}

/* 产品描述样式 */
.product-description {
    color: var(--text-light);          /* 浅色文字 */
    margin-bottom: 20px;               /* 底部外边距：20px */
    line-height: 1.6;                  /* 行高：1.6倍 */
}

/* 现代化网站地图 */
.site-map-modern {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); /* 深蓝灰色渐变背景 */
    padding-top: 30px;                  /* 上内边距：30px */
    padding-bottom: 10px;               /* 下内边距：10px，减小底部内边距 */
    padding-left:  6px;                 /* 左内边距：10px */
    padding-right: 6px;                /* 右内边距：10px */
    color: white;                   /* 白色文字 */
}

.site-map-grid {
    display: grid;                   /* 使用网格布局 */
    grid-template-columns: repeat(5, 1fr); /* 固定5列网格布局 */
    gap: 40px;                       /* 网格项间距：40px */
}

/* 响应式设计 - 平板设备 */
@media (max-width: 992px) {
    .site-map-grid {
        grid-template-columns: repeat(3, 1fr); /* 平板设备显示3列 */
    }
}

/* 响应式设计 - 移动设备 */
@media (max-width: 768px) {
    .site-map-grid {
        grid-template-columns: repeat(2, 1fr); /* 移动设备显示2列 */
    }
}

/* 响应式设计 - 小屏移动设备 */
@media (max-width: 576px) {
    .site-map-grid {
        grid-template-columns: 1fr; /* 小屏设备显示1列 */
    }
}

/* 网站地图区域标题样式 */
.site-map-section h3 {
    color: white;                    /* 白色文字 */
    margin-bottom: 20px;             /* 底部外边距：20px */
    font-size: 1.3rem;               /* 字体大小：1.3rem */
    font-weight: 600;                /* 字体粗细：600 */
    position: relative;              /* 相对定位，为伪元素提供定位基准 */
    padding-bottom: 10px;            /* 底部内边距：10px */
}

/* 网站地图区域标题下划线 */
.site-map-section h3::after {
    content: '';                     /* 空内容，用于创建下划线 */
    position: absolute;              /* 绝对定位 */
    bottom: 0;                       /* 定位到底部 */
    left: 0;                         /* 左对齐 */
    width: 30px;                     /* 宽度：30px */
    height: 3px;                     /* 高度：3px */
    background: var(--accent-color); /* 强调色背景 */
    border-radius: 2px;              /* 圆角：2px */
}

/* 网站地图列表样式 */
.site-map-section ul {
    list-style: none;                /* 去除列表默认样式 */
    padding-left: 0;                 /* 去除左内边距，确保对齐 */
    margin-left: 0;                  /* 去除左外边距，确保对齐 */
}

.site-map-section li {
    margin-bottom: 10px;             /* 底部外边距：10px */
}

/* 网站地图链接样式 */
.site-map-section a {
    color: #ecf0f1;                  /* 浅灰色文字 */
    text-decoration: none;           /* 去除链接默认下划线 */
    transition: var(--transition);   /* 统一过渡效果 */
    display: block;                  /* 使链接占据整个容器 */
    padding: 5px 0;                  /* 上下内边距：5px */
}

/* 网站地图链接悬停效果 */
.site-map-section a:hover {
    color: var(--accent-color);      /* 悬停时文字颜色变为强调色 */
    padding-left: 10px;              /* 悬停时左侧内边距增加，形成缩进效果 */
}

/* 网站地图区块样式 */
.site-map-section {
    margin: 0;
    padding: 0;
    text-align: left;
}

/* 微信公众号悬停效果 */
.weixin-container {
    position: relative;              /* 相对定位，作为二维码图片的定位基准 */
    display: block;                  /* 使容器与其他列表项保持一致 */
}

.weixin-text {
    color: #ecf0f1;                  /* 浅灰色文字 */
    cursor: pointer;                 /* 鼠标悬停时显示指针 */
    transition: var(--transition);   /* 统一过渡效果 */
}

.weixin-text:hover {
    color: var(--accent-color);      /* 悬停时文字颜色变为强调色 */
}

.weixin-qr {
    position: absolute;              /* 绝对定位 */
    top: 100%;                       /* 将二维码定位在文字下方 */
    left: 50%;                       /* 水平居中 */
    transform: translateX(-50%);     /* 水平居中 */
    margin-top: 10px;                /* 添加上边距，使二维码与文字之间有间距 */
    display: none;                   /* 默认隐藏二维码 */
    background-color: white;         /* 白色背景 */
    padding: 10px;                   /* 内边距 */
    border-radius: var(--border-radius); /* 圆角 */
    box-shadow: var(--shadow-medium);    /* 阴影效果 */
    z-index: 10;                     /* 确保显示在其他元素之上 */
}

.weixin-container:hover .weixin-qr {
    display: block;                  /* 悬停时显示二维码 */
}

.weixin-qr img {
    max-width: 150px;                /* 最大宽度 */
    height: auto;                    /* 保持宽高比 */
    display: block;                  /* 去除图片底部空隙 */
}

/* 现代化页脚 */
.footer-modern {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); /* 与网站地图相同的深蓝灰色渐变背景 */
    color: white;                    /* 白色文字 */
    text-align: center;              /* 文本居中对齐 */
    padding: 5px 5px;             /* 内边距：上下40px，左右20px */
    font-size: 0.9rem;               /* 字体大小：0.9rem */
}

/* 页脚段落样式 */
.footer-modern p {
    margin-bottom: 5px;             /* 底部外边距：10px */
    line-height: 1.6;                /* 行高：1.6倍 */
}

/* 页脚链接样式 */
.footer-modern a {
    color: white;                    /* 白色文字 */
    text-decoration: none;           /* 去除链接默认下划线 */
    transition: var(--transition);   /* 统一过渡效果 */
}

/* 页脚链接悬停效果 */
.footer-modern a:hover {
    color: var(--accent-color);                  /* 悬停时文字颜色变为浅灰色 */
    text-decoration: none;           /* 保持无下划线 */
}

/* 动画定义 */

/* 向上淡入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;                    /* 初始透明度为0 */
        transform: translateY(30px);   /* 初始位置向下偏移30px */
    }
    to {
        opacity: 1;                    /* 最终透明度为1 */
        transform: translateY(0);      /* 最终位置为原始位置 */
    }
}

/* 向左淡入动画 */
@keyframes fadeInLeft {
    from {
        opacity: 0;                    /* 初始透明度为0 */
        transform: translateX(-30px);  /* 初始位置向左偏移30px */
    }
    to {
        opacity: 1;                    /* 最终透明度为1 */
        transform: translateX(0);      /* 最终位置为原始位置 */
    }
}

/* 向右淡入动画 */
@keyframes fadeInRight {
    from {
        opacity: 0;                    /* 初始透明度为0 */
        transform: translateX(30px);   /* 初始位置向右偏移30px */
    }
    to {
        opacity: 1;                    /* 最终透明度为1 */
        transform: translateX(0);      /* 最终位置为原始位置 */
    }
}

/* 响应式设计 */

/* 平板设备样式（最大宽度768px） */
@media (max-width: 768px) {
    .hero-title-modern {
        font-size: 2.5rem;              /* 减小标题字体大小 */
    }
    
    .hero-subtitle-modern {
        font-size: 1.1rem;              /* 减小副标题字体大小 */
    }
    
    .features-grid {
        grid-template-columns: 1fr;     /* 特性网格变为单列 */
        gap: 30px;                      /* 减小网格间距 */
    }
    
    .product-grid {
        grid-template-columns: 1fr;     /* 产品网格变为单列 */
        gap: 30px;                      /* 减小网格间距 */
    }
    
    .image-container-modern {
        grid-template-columns: 1fr;     /* 图片容器变为单列 */
        gap: 20px;                      /* 减小网格间距 */
    }
}

/* 移动设备样式（最大宽度480px） */
@media (max-width: 480px) {
    .hero-title-modern {
        font-size: 2rem;                /* 进一步减小标题字体大小 */
    }
}