/* ==========================================================================
   目录:
   1. 基础样式
   2. Hero区域
   3. 特性区域
   4. 产品区域
   5. 选择我们
   6. CTA区域
   ========================================================================== */

/* ==========================================================================
   1. 基础样式
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局变量定义 */
:root {
    --section-spacing: 55px; /* 模块间距 */
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
}

/* ==========================================================================
   2. Hero区域 - 轮播图
   ========================================================================== */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    padding-bottom: 20px;
}

/* 轮播容器 */
.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 轮播单个项目 */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

/* 活动轮播项 */
.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 1300px;
    padding: 0 15px;
    z-index: 3;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.hero-content h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.highlight {
    color: var(--accent-orange);
}

/* 轮播导航点 */
.hero-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-dot.active {
    background-color: white;
}

/* 轮播箭头 */
.hero-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 4;
}

.hero-arrow {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s;
}

.hero-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   3. 特性区域
   ========================================================================== */
.features {
    padding-top: var(--section-spacing);
    padding-bottom: 20px;
    background: var(--background-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--background-primary);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* ==========================================================================
   4. 产品区域
   ========================================================================== */
/* 产品区域容器 */
.products-section {
    padding-top: var(--section-spacing);
    padding-bottom: 20px;
    background: var(--background-primary);
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
    font-size: 32px;
}

/* 产品网格布局 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 产品卡片 - 玻璃拟态效果 */
.product-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* 产品卡片内容样式 */
.product-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.4;
    height: 45px;
    overflow: hidden;
}

.product-specs {
    list-style: none;
    margin: 10px 0;
    font-size: 14px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.5);
    padding: 10px;
    border-radius: 4px;
}

/* 产品图片 */
.product-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.02);
}

/* 聊天按钮 */
.chat-now-btn {
    background: rgba(var(--primary-blue-rgb, 69, 140, 255), 0.9);
    color: white;
    text-align: center;
    padding: 8px 20px;
    text-decoration: none;
    margin-top: auto;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    align-self: center;
    font-size: 14px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-now-btn:hover {
    background: rgba(var(--primary-blue-rgb, 69, 140, 255), 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(69, 140, 255, 0.2);
}

/* ==========================================================================
   5. 选择我们
   ========================================================================== */
.why-choose-section {
    padding-top: var(--section-spacing);
    padding-bottom: 20px;
    background: var(--background-primary);
    text-align: center;
}

.section-subtitle {
    color: var(--text-primary);
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 50px;
}

/* 选择理由网格 */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* 选择理由卡片 */
.why-choose-card {
    background: var(--neutral-white);
    padding: 40px 20px;
    text-align: center;
    border: 1px solid var(--neutral-light-gray);
    transition: all 0.3s ease;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 卡片悬停效果 */
.why-choose-card:hover {
    transform: translateY(-5px);
    background: var(--primary-blue);
    color: white;
}

.why-choose-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.why-choose-card:hover h3 {
    color: white;
}

.why-choose-card:hover .icon-wrapper i {
    color: white;
}

/* 图标样式 */
.icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper i {
    font-size: 50px;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

/* 卡片文本样式 */
.why-choose-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.why-choose-card p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
    transition: color 0.3s ease;
    flex-grow: 1;
}

/* ==========================================================================
   6. CTA区域
   ========================================================================== */
.cta-section {
    background: #F6F6F6;
    color: var(--text-dark);
    padding-top: var(--section-spacing);
    padding-bottom: 20px;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-blue);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background: var(--primary-dark-blue);
}

/* ==========================================================================
   Featured Applications 部分
   ========================================================================== */
.featured-applications {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.featured-applications .section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    color: var(--text-dark);
}

/* 应用卡片网格 */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* 应用卡片 */
.application-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 应用图片 */
.application-image {
    height: 250px;
    overflow: hidden;
}

.application-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.application-card:hover .application-image img {
    transform: scale(1.05);
}

/* 应用内容 */
.application-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

.application-content h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.application-content p {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

/* 了解更多链接 */
.learn-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
    margin-top: auto;
}

.learn-more:hover {
    color: var(--primary-dark-blue);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .applications-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   响应式设计 - 平板设备 (例如：768px 到 1023px)
   ========================================================================== */
@media (max-width: 1023px) {

    /* --- 2. Hero区域 - 轮播图 --- */
    .hero {
        height: 500px; /* 减小轮播图高度 */
    }
    .hero-content h1 {
        font-size: 2.8em; /* 减小标题字号 */
    }
    .hero-content h2 {
        font-size: 1.6em; /* 减小副标题字号 */
    }
    .hero-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    /* --- 3. 特性区域 --- */
    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* 平板上改为两列 */
        gap: 20px;
    }
    .feature-card {
        padding: 25px;
    }

    /* --- 4. 产品区域 --- */
    .section-title {
        font-size: 28px; /* 调整模块标题字号 */
        margin-bottom: 30px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* 平板上产品改为两列 */
        gap: 15px;
    }
    .product-card h3 {
        font-size: 15px;
        height: auto; /* 允许标题高度自适应，或设置一个适合两行的高度 */
        min-height: 40px; /* 保证至少两行的高度感 */
    }
    .product-card img {
        height: 180px; /* 调整产品图片高度 */
    }

    /* --- 5. 选择我们 --- */
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr); /* 平板上改为两列 */
        gap: 20px;
    }
    .why-choose-card {
        padding: 30px 15px;
        min-height: auto; /* 高度自适应 */
    }
    .icon-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    .icon-wrapper i {
        font-size: 40px;
    }
    .why-choose-card h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    /* --- 6. CTA区域 --- */
    .cta-button {
        padding: 12px 30px;
        font-size: 15px;
    }

    /* --- Featured Applications 部分 --- */
    .featured-applications .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    .applications-grid {
        /* 在你的CSS中已经有针对768px的调整，这里可以细化或保持 */
        /* grid-template-columns: 1fr; */ /* 如果希望平板也是单列，取消注释 */
        gap: 20px;
    }
    .application-image {
        height: 220px;
    }
    .application-content h3 {
        font-size: 17px;
    }
}


/* ==========================================================================
   响应式设计 - 手机设备 (例如：小于 768px)
   ========================================================================== */
@media (max-width: 767px) {

    /* --- 1. 基础样式 --- */
    :root {
        --section-spacing: 35px; /* 减小手机上的模块间距 */
    }

    /* --- 2. Hero区域 - 轮播图 --- */
    .hero {
        height: 400px; /* 进一步减小轮播图高度 */
    }
    .hero-content {
        padding: 0 10px;
    }
    .hero-content h1 {
        font-size: 2em; /* 显著减小标题字号 */
        margin-bottom: 15px;
    }
    .hero-content h2 {
        font-size: 1.2em; /* 显著减小副标题字号 */
        margin-bottom: 20px;
    }
    .hero-nav {
        bottom: 15px; /* 调整导航点位置 */
    }
    .hero-dot {
        width: 10px;
        height: 10px;
    }
    .hero-arrows {
        padding: 0 10px; /* 减小箭头内边距 */
    }
    .hero-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
        /* 手机上可以考虑隐藏箭头，如果导航点足够用 */
        /* display: none; */
    }


    /* --- 3. 特性区域 --- */
    .features-grid {
        grid-template-columns: 1fr; /* 手机上特性卡片改为单列 */
        gap: 15px;
    }
    .feature-card {
        padding: 20px;
        text-align: center; /* 卡片内容居中可能效果更好 */
    }

    /* --- 4. 产品区域 --- */
    .section-title {
        font-size: 24px; /* 进一步调整模块标题字号 */
        margin-bottom: 20px;
    }
    .products-grid {
        grid-template-columns: 1fr; /* 手机上产品卡片改为单列 */
        gap: 15px;
    }
    .product-card {
        /* 你在截图中希望每行显示一个，这里设置为100%宽度 */
        /* 如果之前产品卡片有左右 margin/padding 导致无法撑满，需要在这里重置或调整 */
        margin-left: auto;  /* 如果父容器是flex且希望居中单列 */
        margin-right: auto; /* 如果父容器是flex且希望居中单列 */
        /* 如果父容器是 grid, 1fr 已经处理了宽度 */
    }
    .product-card h3 {
        font-size: 16px; /* 确保标题清晰 */
        height: auto; /* 标题高度自适应 */
        min-height: 0; /* 移除平板的最小高度限制 */
        text-align: center; /* 标题居中 */
    }
    .product-card img {
        height: 160px; /* 调整产品图片高度 */
        padding: 5px;
    }
    .product-specs {
        font-size: 13px;
        padding: 8px;
        text-align: left; /* 规格列表左对齐 */
    }
    .chat-now-btn {
        padding: 10px 25px; /* 增大按钮点击区域 */
        font-size: 15px;
    }


    /* --- 5. 选择我们 --- */
    .section-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .why-choose-grid {
        grid-template-columns: 1fr; /* 手机上改为单列 */
        gap: 15px;
    }
    .why-choose-card {
        padding: 25px 15px;
    }
    .icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    .icon-wrapper i {
        font-size: 35px;
    }
    .why-choose-card h3 {
        font-size: 17px;
    }
    .why-choose-card p {
        font-size: 13px;
    }


    /* --- 6. CTA区域 --- */
    .cta-button {
        padding: 12px 30px;
        font-size: 16px; /* 确保按钮文字清晰 */
        width: 80%; /* 让按钮更宽，易于点击 */
        max-width: 300px;
    }

    /* --- Featured Applications 部分 --- */
    .featured-applications {
        padding: 40px 0;
    }
    .featured-applications .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    /* .applications-grid is already 1fr from your existing CSS for 768px, should be fine */
    .application-image {
        height: 200px;
    }
    .application-content {
        padding: 15px;
    }
    .application-content h3 {
        font-size: 16px;
    }
    .application-content p {
        font-size: 13px;
    }
    .learn-more {
        font-size: 13px;
    }
}



