/* ========================================
   Tech4Mods 网站建设 - 首页专属样式
   阶梯式错落叠加布局
======================================== */

/* Hero Banner */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #faf9fc 0%, #fff0f5 50%, #f0f8f0 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--color-secondary);
    bottom: 100px;
    left: -150px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 64px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--color-text);
}

.hero-text h1 span {
    color: var(--color-primary);
    font-weight: 600;
}

.hero-text p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-medium);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition-smooth);
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Section - Staggered Layout */
.services {
    padding: 150px 0;
    background: var(--color-white);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.service-card {
    background: var(--color-bg);
    padding: 50px 40px;
    border-radius: 25px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:nth-child(2) {
    transform: translateY(40px);
}

.service-card:nth-child(3) {
    transform: translateY(80px);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:nth-child(2):hover {
    transform: translateY(30px);
}

.service-card:nth-child(3):hover {
    transform: translateY(70px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--color-text);
}

.service-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* Features Section */
.features {
    padding: 150px 0;
    background: linear-gradient(135deg, #f0f8f0 0%, #faf9fc 100%);
}

.features-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.features-image {
    border-radius: 30px;
    box-shadow: var(--shadow-medium);
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 25px 0;
    border-bottom: 1px solid rgba(212, 165, 212, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.features-list li:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--color-white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: var(--shadow-soft);
}

.feature-text h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.feature-text p {
    font-size: 14px;
    color: #666;
}

/* News Section */
.news {
    padding: 150px 0;
    background: var(--color-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.news-card {
    background: var(--color-bg);
    border-radius: 25px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-content {
    padding: 30px;
}

.news-date {
    font-size: 13px;
    color: var(--color-primary);
    margin-bottom: 12px;
    display: block;
}

.news-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--color-text);
    line-height: 1.5;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.news-link {
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-link::after {
    content: '→';
    transition: var(--transition-smooth);
}

.news-link:hover::after {
    transform: translateX(5px);
}

/* CTA Section */
.cta {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    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 h2 {
    font-size: 48px;
    color: var(--color-white);
    margin-bottom: 20px;
    font-weight: 300;
}

.cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta .btn {
    background: var(--color-white);
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 48px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card:nth-child(2),
    .service-card:nth-child(3) {
        transform: translateY(0);
    }

    .features-wrapper {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 36px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .cta h2 {
        font-size: 32px;
    }
}
