/* style.css */
.header {
    position: fixed;
    width: 100%;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border-radius: 50px;
    transition: all 0.3s ease;
    padding: 0 20px;
    max-width: 1200px;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.8);
    top: 10px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo {
    height: 40px;
}

.menu-toggle {
    display: none;
}

.nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-list a {
    text-decoration: none;
    color: white;
    font-size: 16px;
}

.mobile-menu {
    display: none;
}

.product-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin: 0 auto;
    padding: 20px 20px;
}

.product-section.reverse {
    flex-direction: row-reverse;
}

.product-image {
    flex: 1;
    max-width: 300px; /* 限制图片区域宽度 */
    transition: transform 0.3s ease;
}

.product-info {
    flex: 1;
    max-width: 500px; /* 限制文字区域宽度 */
}

.product-info h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 50px 20px;
    background-color: #f5f5f5;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
}

/* Banner样式 */
.banner {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: block;
}

/* 视频容器 */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 比例 */
    overflow: hidden;
}

/* 视频样式 */
#bannerVideo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 如果视频比例不合适，可以尝试以下替代方案 */
#bannerVideo {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover; /* 或者使cover */
}

/* 可以添加一个遮层，使视频不会太突兀（可选） */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0); /* 轻微的暗色遮罩 */
}

/* 如果需要在视频两侧添加黑边 */
.video-container::before,
.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc((100% - 16/9 * 100vh) / 2); /* 适应16:9比例 */
    background-color: #ffffff;
    z-index: 1;
}

.video-container::before {
    left: 0;
}

.video-container::after {
    right: 0;
}

/* Banner文字内容 */
.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 2;
}

.banner-content h1 {
    /* 标题样式 */
    margin: 0;
    padding: 0;
    font-size: 5em;
    color: #43b332;
}

.banner-content p {
    /* 副标题样式 */
    margin: 0;
    padding: 0;
    font-size: 2em;
    color: #43b332;
}

/* 全屏按钮样式 */
.fullscreen-toggle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: none; /* 默认隐藏 */
}

.fullscreen-icon {
    width: 24px;
    height: 24px;
    fill: white;
}

/* 滚动后的头部样式 */
.header.scrolled {
    background-color: rgba(0, 0, 0, 0.8); /* 更深的景色 */
    border-radius: 0 0 30px 30px; /* 底部圆角 */
    margin: 10px 20px; /* 两边留出间距 */
    width: calc(100% - 40px); /* 考虑margin的宽度 */
}

.header.scrolled .header-container {
    padding: 15px 0; /* 减小内边距使头部更紧凑 */
}

/* 过了视频banner后的样式 */
.header.past-banner {
    top: 20px;
    width: 90%;
    max-width: 1200px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    transform: none;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

@supports not (backdrop-filter: blur(10px)) {
    .header.past-banner {
        background-color: rgba(0, 0, 0, 0.95);
    }
}

.header.past-banner .header-container {
    width: 95%;
    padding: 15px 20px;
}

.video-container::before,
.video-container::after {
    display: none;
}

/* 确保下面的内容不会遮挡视频 */
.content-section {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 如果需要微调banner和content之间的间距，可以给content-section添加一个较小的上边距 */
.content-section:first-of-type {
    margin-top: 0px; /* 根据需要调整这个值 */
}

/* 分隔图片样式 */
.divider-section {
    width: 100vw; /* 使用视口宽度 */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 40px;
    margin-bottom: 40px;
    overflow: hidden;
}

.divider-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 解决方案模块样式 */
.solutions-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.solutions-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

/* 修改为长方形布局 */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2布局 */
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.solution-item {
    background: #f3f4f6;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9; /* 长方形比例 */
}

.solution-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.solution-icon svg {
    width: 100%;
    height: 100%;
    color: #333;
    transition: all 0.3s ease;
}

.solution-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.solution-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

/* 悬停效果 */
.solution-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.solution-item:hover .solution-icon svg {
    color: #007bff;
}

/* 确保父容器不会影响分隔图的全宽显示 */
body {
    overflow-x: hidden; /* 防止水平滚动条 */
}

.solution-icon svg {
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
}

/* 悬停效果 */
.solution-item:hover .solution-icon svg path {
    fill: #007bff; /* 鼠标悬停时改变图标颜色 */
}

.features-section {
    padding: 60px 0;
    background: #fff;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.feature-item {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 30px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item:nth-child(1) {
    background-color: #f8f9fa;
}

.feature-item:nth-child(2) {
    background-color: #f3f4f6;
}

.feature-item:nth-child(3) {
    background-color: #f0f2f5;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-item:hover::before {
    transform: translateY(0);
}

.feature-header {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    color: #333;
    transition: all 0.3s ease;
}

.feature-header h3 {
    font-size: 18px;
    margin: 0;
    color: #333;
    line-height: 24px;
}

.feature-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.feature-item:hover .feature-icon svg {
    color: #007bff;
    transform: scale(1.1);
}

.feature-item:hover h3 {
    color: #007bff;
}

/* 底部样式 */
.footer {
    width: 100%;
    background: #333639;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    -webkit-box-align: start; /* iOS Safari 支持 */
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    width: 100%;
    text-align: left;
    -webkit-text-align: left; /* iOS Safari 支持 */
}

.footer-section p,
.footer-section ul li {
    margin-bottom: 10px;
    width: 100%;
    text-align: left;
    -webkit-text-align: left; /* iOS Safari 支持 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        -webkit-text-align: center; /* iOS Safari 支持 */
    }

    .footer-section {
        align-items: center;
        -webkit-box-align: center; /* iOS Safari 支持 */
        min-width: auto;
        width: 100%;
    }

    .footer-section h4,
    .footer-section p,
    .footer-section ul li {
        text-align: center;
        -webkit-text-align: center; /* iOS Safari 支持 */
    }

    .social-links {
        justify-content: center;
        -webkit-box-pack: center; /* iOS Safari 支持 */
    }
}

/* iOS Safari 特定修复 */
@supports (-webkit-touch-callout: none) {
    .footer-section {
        align-items: center;
        -webkit-box-align: center;
    }

    .footer-section h4,
    .footer-section p,
    .footer-section ul li {
        text-align: center;
        -webkit-text-align: center;
    }

    .social-links {
        justify-content: center;
        -webkit-box-pack: center;
    }
}

.footer-section:nth-child(1) {
    align-items: flex-start;
    flex: 0 1 30px; /* 固定宽度 */
}

/* Quick Links - 居中对齐 */
.footer-section:nth-child(2) {
    align-items: center;
    flex: 0 1 30px;
}

.footer-section:nth-child(2) h4 {
    text-align: center;
}

.footer-section:nth-child(2) ul {
    align-items: center;
}

.footer-section:nth-child(2) ul li {
    text-align: center;
}

/* Follow Us - 右对齐 */
.footer-section:nth-child(3) {
    align-items: flex-end;
    flex: 0 1 30px;
}

.footer-section:nth-child(3) h4 {
    text-align: right;
}

.footer-section:nth-child(3) .social-links {
    justify-content: flex-end;
}

/* 通用样式 */
.footer-section {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 0;
}

.footer-section h4 {
    font-size: 15px;
    margin-bottom: 8px;
    color: #9cd86b;
    width: 100%;
}

.footer-section p {
    margin: 3px 0;
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.footer-section ul li {
    margin-bottom: 3px;
    width: 100%;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
    line-height: 1.3;
    display: inline-block;
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 5px;
    width: 100%;
}

.footer-bottom {
    max-width: 1200px;
    margin: 15px auto 0;
    padding: 10px 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 12px;
    margin: 0;
    text-align: center;
}

/* 确保社交图标容器左对齐 */
.social-links {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 5px;
    width: 100%;
}

.fullscreen-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fullscreen-btn i {
    font-size: 20px; /* 调整图标大小 */
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .fullscreen-btn {
        width: 48px;
        height: 48px;
    }
    
    .fullscreen-btn i {
        font-size: 22px;
    }
}

/* 移端优化 */
@media (max-width: 768px) {
    .fullscreen-btn {
        width: 48px;
        height: 48px;
        bottom: 30px;
        right: 30px;
        background: rgba(0, 0, 0, 0.7);
    }
    
    /* 增加点击区域 */
    .fullscreen-btn::before {
        content: '';
        position: absolute;
        top: -10px;
        right: -10px;
        bottom: -10px;
        left: -10px;
    }
}

/* 第一个图片（右上角和左下角圆角） */
.product-section:first-child .product-image {
    flex: 1;
    max-width: 300px;
    border-radius: 0 50px 0 50px; /* 右上和左下圆角 */
}

/* 第二个图片（左上角和右下角圆角） */
.product-section:nth-child(2) .product-image {
    flex: 1;
    max-width: 300px;
    border-radius: 50px 0 50px 0; /* 左上和右下圆角 */
}

/* 添加过渡效果 */
.product-image {
    transition: transform 0.3s ease;
}

/* 可选：添加悬停效果 */
.product-image:hover {
    transform: scale(1.02);
}

/* 添加播放按钮样式 */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

/* 全屏按钮样式优化 */
.fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .fullscreen-btn {
        width: 48px;
        height: 48px;
        bottom: 30px;
        right: 30px;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .video-container {
        height: 100vh;
    }
    
    .fullscreen-video {
        width: 100%;
        height: 100%;
    }
}

body {
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Banner 部分 */
.banner {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 比例 */
    overflow: hidden;
}

.fullscreen-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保视频覆盖整个容器 */
}

/* 产品部分 */
.product-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    gap: 50px;
}

.product-image {
    flex: 1;
    max-width: 500px;
}

.product-info {
    flex: 1;
    max-width: 500px;
}

html {
    scroll-behavior: smooth;
}


html {
    scroll-behavior: smooth;
}
