/* ========================================
   恒美微站 - 首页专属样式
======================================== */

/* Hero Banner */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f6fc 0%, #e8f2ff 50%, #ffffff 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 136, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(30px, -30px) rotate(10deg);
    }
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    padding: 60px 0;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 102, 204, 0.1);
    color: #0066cc;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-title span {
    color: #0066cc;
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(0, 102, 204, 0.2);
    border-radius: 8px;
    z-index: -1;
}

.hero-description {
    font-size: 18px;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 102, 204, 0.2);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #0066cc 0%, #0088ff 100%);
    border-radius: 30px;
    z-index: -1;
    opacity: 0.15;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 102, 204, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #0066cc;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #888888;
    margin-top: 4px;
}

@media (max-width: 1200px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-content {
        padding: 40px 0;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-items: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 核心优势 - 错位卡片布局 */
.features-section {
    position: relative;
    padding: 120px 0;
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.feature-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.5s ease;
    border: 1px solid #e8ecf1;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0066cc 0%, #0088ff 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0, 102, 204, 0.15);
}

.feature-card:nth-child(2) {
    transform: translateY(30px);
}

.feature-card:nth-child(2):hover {
    transform: translateY(15px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #0066cc 0%, #0088ff 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

.feature-icon img {
    width: 40px;
    height: 40px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 16px;
}

.feature-card p {
    color: #666666;
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card:nth-child(2) {
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* 服务展示 - 波浪分割 */
.services-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f0f6fc 0%, #ffffff 100%);
    position: relative;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.service-row.reverse {
    direction: rtl;
}

.service-row.reverse .service-content {
    direction: ltr;
}

.service-row:last-child {
    margin-bottom: 0;
}

.service-image {
    position: relative;
}

.service-image img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 102, 204, 0.15);
}

.service-content {
    padding: 40px;
}

.service-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 102, 204, 0.1);
    color: #0066cc;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
}

.service-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 20px;
}

.service-content p {
    color: #666666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.service-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #444444;
    font-size: 14px;
}

.service-feature-item::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #0066cc;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
}

@media (max-width: 992px) {
    .service-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-row.reverse {
        direction: ltr;
    }
}

/* CTA 区块 */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0066cc 0%, #0088ff 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-white {
    background: #ffffff;
    color: #0066cc;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.btn-outline-white {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: #ffffff;
    color: #0066cc;
}

@media (max-width: 768px) {
    .cta-content h2 {
        font-size: 32px;
    }

    .cta-content p {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
