/* ========================================
   迈普兰德建站 - 首页样式
   ======================================== */

/* Hero 区域 - 全屏 Banner */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: linear-gradient(135deg, var(--light-purple) 0%, transparent 70%);
    transform: rotate(-15deg);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 150%;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 102, 178, 0.1) 100%);
    transform: rotate(10deg);
    z-index: 0;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInLeft 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--deep-pink), var(--bright-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    animation: slideInRight 1s ease;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-purple);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

/* 核心优势板块 - 左右对撞布局 */
.features {
    background: var(--pure-white);
    position: relative;
}

.features-wave-top {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 50'%3E%3Cpath fill='%23ffffff' d='M0,25 C360,50 720,0 1080,25 C1260,37 1380,25 1440,25 L1440,50 L0,50 Z'/%3E%3C/svg%3E");
    background-size: cover;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.feature-card {
    background: linear-gradient(135deg, var(--light-purple), var(--pure-white));
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card:nth-child(odd) {
    transform: translateX(-30px);
}

.feature-card:nth-child(even) {
    transform: translateX(30px);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bright-pink), var(--deep-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.feature-title {
    font-size: 1.6rem;
    color: var(--deep-pink);
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--text-gray);
    line-height: 1.8;
}

/* 服务展示 - 波浪线分割 */
.services {
    position: relative;
    background: linear-gradient(180deg, var(--pure-white) 0%, var(--light-purple) 100%);
}

.services-wave-bottom {
    position: absolute;
    bottom: -80px;
    left: 0;
    width: 100%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23f5e6ff' d='M0,40 C360,10 720,70 1080,40 C1260,25 1380,40 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E");
    background-size: cover;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--pure-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-image {
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 2rem;
}

.service-title {
    font-size: 1.4rem;
    color: var(--deep-pink);
    margin-bottom: 0.8rem;
}

.service-desc {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-link {
    color: var(--bright-pink);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    gap: 1rem;
}

/* 案例展示 - 对称灵动布局 */
.cases {
    background: var(--pure-white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.case-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.case-card:nth-child(2) {
    transform: translateY(30px);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.case-image {
    height: 280px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(217, 70, 166, 0.9));
    color: var(--pure-white);
}

.case-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.case-category {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 资讯列表 */
.news-section {
    background: linear-gradient(180deg, var(--light-purple) 0%, var(--pure-white) 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: var(--pure-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--primary-purple);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.news-excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA 区域 */
.cta {
    background: linear-gradient(135deg, var(--deep-pink), var(--bright-pink));
    color: var(--pure-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta .btn-secondary {
    background: var(--pure-white);
    color: var(--deep-pink);
    border-color: var(--pure-white);
}

.cta .btn-secondary:hover {
    background: transparent;
    color: var(--pure-white);
}

/* 动画关键帧 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式调整 */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        height: 400px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card:nth-child(odd),
    .feature-card:nth-child(even) {
        transform: translateX(0);
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .case-card:nth-child(2) {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-desc {
        font-size: 1rem;
    }
}
