:root {
    --primary-color: rgb(45, 219, 161);
    --primary-rgb: 45, 219, 161;
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --light-text: #666;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, rgb(45, 219, 161), rgb(41, 196, 144));
    --gradient-secondary: linear-gradient(135deg, rgb(41, 196, 144), rgb(37, 173, 127));
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 8px 24px rgba(45, 219, 161, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
    padding-top: 72px;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2%;
    height: 85px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

/* 右侧导航项容器 */
.nav-links {
    display: flex;
    gap: 2rem;
    margin-left: auto;
    /* 将导航链接推到右侧 */
    align-items: center;
    /* 垂直居中对齐 */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
    transform: translateY(-2px);
}

/* 将按钮容器合并到导航链接中 */
.nav-buttons {
    display: flex;
    gap: 1rem;
    margin-left: 2rem;
    /* 与导航链接保持间距 */
}

.nav-buttons .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* 通用section样式 */
.section {
    padding: 5rem 5%;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

/* 偶数section使用浅色背景 */
.section:nth-child(even) {
    background-color: rgba(var(--primary-rgb), 0.03);
}

/* 奇数section使用白色背景 */
.section:nth-child(odd) {
    background-color: var(--white);
}

/* 移除原有的装饰圆形 */
.section::before {
    display: none;
}

/* 为每个section添加过渡效果 */
.section {
    transition: background-color 0.3s ease;
}

/* 调整section间距 */
.section {
    margin-top: 0;
    /* 移除顶部间距 */
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.05);
    /* 添加微妙的分隔线 */
}

.section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* 行业痛点卡片样式 */
.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.pain-point-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    transition: all 0.4s ease;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    position: relative;
    overflow: hidden;
}

/* 注释掉渐变色顶部边框
.pain-point-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
*/

.pain-point-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

/* 注释掉相关的 hover 效果
.pain-point-card:hover::before {
    transform: scaleX(1);
}
*/

.pain-point-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* 系统价值样式 */
.value-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.stat-card h3 {
    font-size: 3.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    transition: transform 0.3s;
}

.stat-card:hover h3 {
    transform: scale(1.1);
}

.stat-card img {
    width: 100%;
    max-width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    object-fit: contain;
}

/* 特性滑块样式 */
.features-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3列布局 */
    grid-template-rows: repeat(2, auto);
    /* 2行布局 */
    gap: 1.5rem;
    padding: 1rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.features-slider .feature-card img {
    width: auto;
    height: 175px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.feature-card:hover img {
    transform: scale(1.05);
}

.feature-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* 系统功能样式 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 20px;
}

.feature-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    position: relative;
    overflow: hidden;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.feature-box h3 {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 1.2rem;
}

.feature-box p {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.6;
}

/* 客户案例样式 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.case-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    position: relative;
    overflow: hidden;
}

.case-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.case-card:hover .case-image {
    transform: scale(1.05);
}

/* 页脚样式 */
footer {
    background: var(--primary-color);
    padding: 0.5rem 5%;
    text-align: center;
}

.cta-buttons {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 25px;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    margin: 0 1rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn.primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn.secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.25);
}

.footer-info {
    color: var(--white);
    font-size: 0.9rem;
    line-height: 1.2;
}

.footer-info a {
    color: var(--white);
    text-decoration: none;
    margin-left: 0.5rem;
    transition: all 0.3s;
}

.footer-info a:hover {
    color: var(--white);
    text-decoration: underline;
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        height: auto;
        flex-wrap: wrap;
    }

    .nav-links {
        margin: 1rem 0;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-buttons {
        margin-left: 0;
        margin-top: 1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .value-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 100%;
        margin-bottom: 1rem;
    }

    .btn {
        margin: 0.5rem;
        width: 80%;
        max-width: 300px;
    }

    .section h2 {
        font-size: 2rem;
    }

    .banner {
        margin-bottom: 60px;
    }

    .feature-images {
        gap: 0.5rem;
    }

    .case-image {
        height: 150px;
    }

    .features-slider {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card img {
        max-width: 120px;
    }

    body {
        padding-top: 120px;
    }
}

/* 添加动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.8s ease-out;
}

.pain-point-card,
.feature-card,
.feature-box,
.case-card {
    animation: fadeInUp 0.8s ease-out;
}

.logo img {
    height: 32px;
    width: auto;
    display: block;
}

/* 添加模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 16px;
    position: relative;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: fadeInUp 0.3s ease-out;
}

.close-btn {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
}

.close-btn:hover {
    color: var(--text-color);
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 1rem auto;
    display: block;
}

.modal-content p {
    color: var(--text-color);
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* 修改 feature-card 中的图片样式 */
.feature-card img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 1rem auto;
    display: block;
    object-fit: contain;
}

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

@media (max-width: 768px) {
    .features-slider {
        grid-template-columns: 1fr;
        /* 手机设备显示1列 */
    }
}

/* 响应式调整 */
@media (max-width: 992px) {
    .nav-buttons .btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        height: auto;
        flex-wrap: wrap;
    }

    .nav-buttons {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}

/* banner样式 */
.banner {
    width: 100%;
    height: auto;
    overflow: hidden;
    padding: 0 5%;
    display: flex;
    justify-content: center;
    background-color: var(--white);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.05);
}

.banner img {
    width: 66.666%;
    height: auto;
    display: block;
    object-fit: cover;
    padding: 2rem 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .banner {
        padding: 0 1rem;
    }

    .banner img {
        width: 100%;
        /* 在移动端使用全宽 */
    }
}

/* 系统功能卡片样式 */
.system-features .feature-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.system-features .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 产品介绍样式 */
.product-intro-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.product-intro-content p {
    color: var(--light-text);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.product-intro-image {
    width: 100%;
    margin: 0 auto;
}

.product-intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Logo 轮播样式 */
.logo-slider-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    margin-top: 2rem;
}

.partner-title {
    text-align: center;
    color: var(--text-color);
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.logo-slider {
    display: flex;
    animation: scroll 30s linear infinite;
    width: fit-content; /* 确保容器宽度适应内容 */
}

.logo-slide {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 0 1.5rem;
}

.logo-slide img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* 移动一组 logo 的距离 */
    }
}

/* 暂停动画（当需要时可以添加）
.logo-slider:hover {
    animation-play-state: paused;
}
*/

/* 在小屏幕上调整动画速度 */
@media (max-width: 768px) {
    .logo-slider {
        animation-duration: 20s;
    }
}