﻿/* Index.css - 完整版 */

:root {
    --primary-color: #2b2bad;
    --primary-light: #7c5fe6;
    --primary-dark: #1e1e7a;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(81, 43, 211, 0.1);
    --transition: all 0.3s ease;
}

/* 全局 */
body {
    font-family: "Microsoft YaHei", sans-serif;
    margin: 0;
    padding: 0;
    background: white;
    color: #333;
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

/* ============================================================
   第一部分：英雄区域
   ============================================================ */
.solutions-hero {
    position: relative;
    height: 76vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

/* 内容容器 */
.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    padding: 2rem 4rem;
    position: relative;
    z-index: 2;
    gap: 4rem;
}

/* 左侧文字区域 - 垂直居中，整体稍微下移对齐视觉中心 */
.hero-left {
    flex: 1;
    text-align: left;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    margin-top: 80px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 1.0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 1.0);
}

/* 软件信息小字 */
.hero-info {
    margin: 1.5rem 0 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-weight: 300;
}

    .hero-info span {
        display: inline-block;
        margin-right: 2rem;
    }

/* 右侧图片区域 - 垂直居中 */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    overflow: hidden;
    align-self: center;
}


    .hero-right img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
        border-radius: 8px;
        border: none !important;
        outline: none;
        box-shadow: none;
        background: transparent;
        display: block;
        transform: perspective(1000px) rotateY(-10deg);
        transform-origin: right center;
    }

/* CTA 按钮组 */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    opacity: 1;
    transform: translateY(0);
}

    .cta-button:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(81, 43, 211, 0.3);
        color: var(--white);
        text-decoration: none;
    }

/* 了解更多按钮 */
.cta-button-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

    .cta-button-outline:hover {
        background: var(--primary-color);
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(81, 43, 211, 0.3);
        color: var(--white);
    }

/* ============================================================
   第二部分：功能方块
   ============================================================ */
.features-section {
    padding: 100px 50px;
    background: var(--white);
    position: relative;
    width: 100%;
}

.features-grid {
    display: grid;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: repeat(2, 1fr);
}

.features-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.feature-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    opacity: 1;
    transform: none;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

.feature-image {
    height: 200px;
    overflow: hidden;
}

    .feature-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }

.feature-card:hover .feature-image img {
    transform: scale(1.1);
}

.feature-content {
    padding: 30px;
    background: var(--white);
    position: relative;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

    .feature-header h3 {
        margin: 0;
        font-size: 1.4rem;
        color: var(--text-dark);
        font-weight: 600;
    }

.feature-icon {
    flex: 0 0 auto;
}

    .feature-icon img {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }

.feature-description {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

    .feature-description::before {
        content: "• ";
        color: var(--primary-color);
        font-weight: bold;
        margin-right: 5px;
    }

/* ============================================================
   第三部分：功能详情区
   ============================================================ */
.solutions-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.solution-section {
    display: flex;
    align-items: center;
    margin-bottom: 8rem;
    gap: 4rem;
    opacity: 1;
    transform: none;
    transition: var(--transition);
}

    .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);
        color: var(--white);
        border-color: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(81, 43, 211, 0.2);
    }

/* ============================================================
   动画
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-left {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-right {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* ============================================================
   响应式 - 移动端要留出标题栏空间，同时保持居中
   ============================================================ */
@media (max-width: 1100px) {
    .solutions-hero {
        width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        padding: 0;
    }

    .hero-content-wrapper {
        padding: 2rem;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .features-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .solution-section {
        flex-direction: column !important;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .solutions-hero {
        height: auto;
        min-height: 500px;
        padding: 80px 0 0; /* 顶部留出标题栏空间 */
    }

    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .hero-left {
        text-align: center;
        max-width: 100%;
        transform: none; /* 移动端不需要偏移 */
        padding: 0;
    }

    .hero-right {
        max-width: 100%;
        transform: none;
    }

        .hero-right img {
            max-height: 300px;
            border-radius: 6px;
        }

    .hero-buttons {
        justify-content: center;
    }

    .hero-info span {
        margin-right: 1rem;
        margin-left: 1rem;
    }

    .solution-title {
        font-size: 2rem;
    }

    .features-section {
        padding: 60px 30px;
    }
}

@media (max-width: 768px) {
    .solutions-hero {
        height: auto;
        min-height: 400px;
        background-attachment: scroll;
        padding: 70px 0 0; /* 移动端标题栏留出空间 */
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-info {
        font-size: 0.8rem;
    }

        .hero-info span {
            display: block;
            margin: 0.2rem 0;
        }

    .solutions-container {
        padding: 2rem 1rem 3rem;
    }

    .solution-image img {
        height: 300px;
    }

    .features-section {
        padding: 40px 20px;
    }

    .features-grid-4 {
        grid-template-columns: 1fr;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .hero-right img {
        max-height: 250px;
        border-radius: 4px;
    }

    .hero-content-wrapper {
        padding: 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .solution-image img {
        height: 220px;
    }

    .solution-title {
        font-size: 1.6rem;
    }

    .solution-subtitle {
        font-size: 1rem;
    }

    .solution-description {
        font-size: 0.95rem;
    }

    .solution-features li {
        font-size: 0.95rem;
    }

    .feature-header h3 {
        font-size: 1.1rem;
    }

    .feature-content {
        padding: 20px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .solutions-hero {
        min-height: 350px;
        padding: 60px 0 0; /* 小屏手机标题栏留出空间 */
    }

    .hero-right img {
        max-height: 200px;
        border-radius: 4px;
    }
}
