﻿/* Solutions页面专用样式 */
:root {
    --primary-color: #512bd3;
    --primary-light: #7c5fe6;
    --primary-dark: #3a1fa0;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(81, 43, 211, 0.1);
    --transition: all 0.3s ease;
}

/* 第一部分：英雄区域 - 调整后 */
.solutions-hero {
    position: relative;
    height: 33vh; /* 改为页面高度1/3 */
    min-height: 400px; /* 降低最小高度 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* 添加视差效果 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
    width: 100vw; /* 确保占满整个宽度 */
    margin-left: calc(-50vw + 50%); /* 解决页面边距问题 */
    margin-right: calc(-50vw + 50%);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3rem; /* 稍微减小字号 */
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.3rem; /* 减小副标题字号 */
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    /* 扩大点击区域的关键修改 */
    padding: 20px; /* 增加内边距扩大点击区域 */
    margin: -20px; /* 负外边距保持位置不变 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100; /* 确保在最上层 */
}

    .hero-scroll-indicator i {
        font-size: 1.8rem;
        color: var(--white);
        opacity: 0.8;
        transition: var(--transition);
        /* 关键：防止图标拦截点击 */
        pointer-events: none;
    }

    .hero-scroll-indicator:hover i {
        opacity: 1;
        transform: translateY(5px);
    }


/* 第二部分：解决方案展示区域 */
.solutions-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem; /* 顶部padding减小 */
}

.solution-section {
    display: flex;
    align-items: center;
    margin-bottom: 8rem;
    gap: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

    .solution-section.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .solution-section:nth-child(even) {
        flex-direction: row-reverse;
    }

.solution-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.solution-section:nth-child(even) .solution-image {
    transform: perspective(1000px) rotateY(5deg);
}

.solution-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.solution-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.solution-image:hover img {
    transform: scale(1.05);
}

.solution-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.solution-content {
    flex: 1;
}

.solution-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

    .solution-title::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -10px;
        width: 60px;
        height: 4px;
        background: var(--primary-color);
        border-radius: 2px;
    }

.solution-subtitle {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.solution-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.solution-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

    .solution-features li {
        padding: 0.5rem 0;
        padding-left: 2rem;
        position: relative;
        font-size: 1.1rem;
        color: var(--text-dark);
    }

        .solution-features li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--primary-color);
            font-weight: bold;
            font-size: 1.2rem;
        }

.solution-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

    .solution-cta:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(81, 43, 211, 0.2);
    }

/* 响应式设计 */
@media (max-width: 992px) {
    .solution-section {
        flex-direction: column !important;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .solutions-hero {
        height: 40vh; /* 移动端适当增加高度 */
        min-height: 350px;
    }

    .solution-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .solutions-hero {
        height: 35vh;
        min-height: 300px;
        background-attachment: scroll; /* 移动端取消固定背景 */
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .solutions-container {
        padding: 2rem 1rem 3rem;
    }

    .solution-image img {
        height: 300px;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}
