/* ========================================
   芒果软件建站 - 首页专用样式
   ======================================== */

/* Hero Banner */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(135deg, var(--army-green) 0%, var(--charcoal) 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(196, 181, 154, 0.2);
    border: 1px solid var(--khaki);
    color: var(--khaki);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 64px;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-title span {
    color: var(--khaki);
}

.hero-description {
    font-size: 18px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: var(--white);
    border-radius: 3px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(15px);
    }
}

/* 特色板块 */
.features-section {
    background: var(--white);
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    text-align: center;
    padding: 50px 35px;
    background: var(--cream);
    border-radius: 12px;
    transition: all 0.4s ease;
}

.feature-card:hover {
    background: var(--army-green);
    transform: translateY(-15px);
}

.feature-card:hover .feature-icon {
    background: var(--white);
}

.feature-card:hover .feature-title,
.feature-card:hover .feature-text,
.feature-card:hover .feature-link {
    color: var(--white);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.feature-icon img {
    width: 40px;
    height: 40px;
}

.feature-title {
    font-size: 22px;
    color: var(--charcoal);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-text {
    color: #636e72;
    line-height: 1.9;
    margin-bottom: 25px;
}

.feature-link {
    color: var(--army-green);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 服务展示 */
.services-section {
    background: var(--sand);
    padding: 120px 0;
}

.services-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .services-wrapper {
        grid-template-columns: 1fr;
    }
}

.services-image {
    position: relative;
}

.services-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.services-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--army-green);
    border-radius: 12px;
    z-index: -1;
}

.services-content {
    padding: 30px 0;
}

.services-content .section-title {
    text-align: left;
    margin-bottom: 25px;
}

.services-content .section-subtitle {
    margin: 0 0 40px;
}

.service-list {
    margin-bottom: 40px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.service-number {
    width: 45px;
    height: 45px;
    background: var(--army-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.service-info h4 {
    font-size: 18px;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.service-info p {
    color: #636e72;
    font-size: 14px;
    line-height: 1.7;
}

/* 案例展示 */
.cases-section {
    background: var(--white);
    padding: 120px 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

@media (max-width: 992px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

.case-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.case-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-image {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(45, 52, 54, 0.95));
    color: var(--white);
}

.case-category {
    font-size: 12px;
    color: var(--khaki);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.case-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.case-link {
    font-size: 14px;
    color: var(--khaki);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 资讯列表 */
.news-section {
    background: var(--cream);
    padding: 120px 0;
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 12px 30px;
    background: var(--white);
    color: var(--charcoal);
    border: 2px solid transparent;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-tab:hover,
.news-tab.active {
    background: var(--army-green);
    color: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA 板块 */
.cta-section {
    background: linear-gradient(135deg, var(--army-green) 0%, var(--army-green-dark) 100%);
    padding: 100px 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 42px;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .section {
        padding: 70px 0;
    }
}
