/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.primary-btn {
    background-color: #007bff;
    color: #fff;
}

.primary-btn:hover {
    background-color: #0056b3;
}

.secondary-btn {
    background-color: #6c757d;
    color: #fff;
}

.secondary-btn:hover {
    background-color: #545b62;
}

.small-btn {
    padding: 8px 16px;
    font-size: 14px;
}

/* 标题样式 */
.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    position: relative;
    color: #2c3e50;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #007bff;
    margin: 10px auto 0;
}

.section-desc {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

/* 头部导航 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 20px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links .active a {
    color: #007bff;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    z-index: 999;
}

.mobile-menu ul {
    list-style: none;
    padding: 20px;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

/* 横幅样式 */
.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/banner.jpg') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
}

.banner-content .btn {
    margin: 0 10px;
}

/* 核心优势 */
.features {
    padding: 80px 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* 产品预览 */
.products-preview {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-info p {
    color: #666;
    margin-bottom: 20px;
}

.view-more {
    text-align: center;
}

/* 解决方案预览 */
.solutions-preview {
    padding: 80px 0;
    background-color: #fff;
}

.solutions-list {
    max-width: 800px;
    margin: 0 auto 40px;
}

.solution-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.solution-item:last-child {
    border-bottom: none;
}

.solution-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #007bff;
}

/* 合作伙伴 */
.partners {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.partner-logo {
    width: 150px;
    height: 80px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #666;
    font-weight: 600;
}

/* 页面标题 */
.page-title {
    background-color: #007bff;
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.page-title h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-title p {
    font-size: 18px;
    opacity: 0.9;
}

/* 关于我们 */
.about-content {
    padding: 80px 0;
    background-color: #fff;
}

.about-content .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 发展历程 */
.timeline {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.timeline-items {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-items::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #007bff;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-date {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 1;
}

.timeline-content {
    width: 45%;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

/* 企业愿景 */
.vision {
    padding: 60px 0;
    background-color: #007bff;
    color: #fff;
    text-align: center;
}

.vision p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.8;
}

/* 产品中心 */
.product-categories {
    padding: 30px 0;
    background-color: #fff;
    text-align: center;
}

.categories {
    display: inline-flex;
    gap: 10px;
}

.category-btn {
    padding: 8px 20px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn.active,
.category-btn:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.product-list {
    padding: 40px 0 80px;
    background-color: #f8f9fa;
}

.product-list .products-grid {
    margin-bottom: 0;
}

.product-category {
    display: inline-block;
    padding: 4px 8px;
    background-color: #e9f5ff;
    color: #007bff;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* 定制服务 */
.custom-service {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.custom-service p {
    max-width: 800px;
    margin: 0 auto 30px;
    color: #666;
}

/* 解决方案 */
.solutions-content {
    padding: 80px 0;
    background-color: #fff;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.solution-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.solution-header {
    background-color: #007bff;
    color: #fff;
    padding: 20px;
}

.solution-body {
    padding: 20px;
}

.solution-features {
    list-style: none;
    margin-top: 15px;
}

.solution-features li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.solution-features i {
    position: absolute;
    left: 0;
    color: #28a745;
}

.solution-footer {
    padding: 20px;
    background-color: #fff;
    text-align: center;
}

/* 应用场景 */
.application-scenarios {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.scenario-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.scenario-card:hover {
    transform: translateY(-10px);
}

.scenario-card i {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 20px;
}

.scenario-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* 联系我们 */
.contact-info {
    padding: 80px 0 40px;
    background-color: #fff;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.contact-item i {
    font-size: 30px;
    color: #007bff;
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.contact-form {
    padding: 40px 0 80px;
    background-color: #f8f9fa;
}

.contact-form form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.flash-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

.flash-message.success {
    background-color: #d4edda;
    color: #155724;
}

.flash-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* 地图区域 */
.map {
    padding: 40px 0 80px;
    background-color: #fff;
}

.map-placeholder {
    height: 400px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
}

.map-placeholder i {
    font-size: 40px;
    margin-bottom: 20px;
    color: #007bff;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* 页脚通用样式 */
.footer-section {
    background-color: transparent; /* 继承页脚深色背景，取消白色背景 */
    color: #fff; /* 文字改为白色，适配深色背景 */
    padding: 10px 0;
}

/* 让每个footer-section内部内容顶对齐，高度一致 */
.footer-section {
    display: flex;
    flex-direction: column;
    height: 100%; /* 占满网格单元格的高度 */
}

/* 社交图标区域靠下显示（可选，视觉更平衡） */
.footer-section.contact-form .social-icons {
    margin-top: auto; /* 自动推到容器底部 */
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: #fff; /* 标题文字白色 */
}

.footer-section h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #007bff;
}

.footer-section p {
    margin-bottom: 15px;
    opacity: 0.8;
    line-height: 1.8;
    color: #e0e0e0; /* 浅灰色文字，提升可读性 */
}

.contact span {
    display: block;
    margin-bottom: 10px;
    opacity: 0.8;
    color: #e0e0e0;
}

.contact i {
    margin-right: 10px;
    color: #007bff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
}

.footer-section a:hover {
    opacity: 1;
    color: #007bff;
    text-decoration: none;
}

/* 关注我们 - 社交图标区域优化 */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #34495e; /* 深色背景，匹配页脚 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff; /* 图标白色 */
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: #007bff; /*  hover时变为主题色 */
    color: #fff;
    transform: scale(1.1); /* 轻微放大，提升交互体验 */
}

/* 修复contact-form类名冲突（关键！） */
.footer-section.contact-form {
    background-color: transparent !important; /* 强制取消白色背景 */
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #34495e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 14px;
}

/* 产品详情页面 */
.product-detail {
    padding: 60px 0;
    background-color: #fff;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* 轮播图样式 */
.product-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.carousel-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-controls button:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background-color: rgba(255, 255, 255, 1);
    width: 30px;
    border-radius: 5px;
}

/* 产品信息 */
.product-info-detail h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-info-detail .product-category {
    margin-bottom: 20px;
}

.product-info-detail .product-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-features h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.features-list {
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.feature-item i {
    color: #28a745;
    margin-right: 10px;
    margin-top: 5px;
}

.product-info-detail .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

/* 产品详细介绍 */
.product-detail-section {
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.product-detail-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* 相关产品 */
.related-products {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.related-products h3 {
    font-size: 24px;
    margin-bottom: 40px;
    color: #2c3e50;
    text-align: center;
}

.related-products .products-grid {
    margin-bottom: 0;
}

.related-products .product-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #2c3e50;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .banner-content h1 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .about-content .container {
        grid-template-columns: 1fr;
    }
    
    .timeline-items::before {
        left: 30px;
    }
    
    .timeline-date {
        left: 30px;
    }
    
    .timeline-content {
        width: 80%;
        margin-left: 70px !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .product-detail-content {
        grid-template-columns: 1fr;
    }
    
    .carousel-item img {
        height: 300px;
    }
    
    .product-info-detail .btn {
        display: block;
        width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 60vh;
    }
    
    .banner-content h1 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .features, .products-preview, .solutions-preview, .partners {
        padding: 40px 0;
    }
    
    .contact-form form {
        padding: 20px;
    }
}