/* ========================================
   尧图网站建设 - 首页样式
   ======================================== */

/* Hero Banner */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1) 0%, rgba(152, 216, 170, 0.15) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(135, 206, 235, 0.2) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, 30px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 52px;
    line-height: 1.2;
    color: var(--deep-blue);
    margin-bottom: 25px;
}

.hero-text .highlight {
    background: linear-gradient(135deg, var(--sky-blue), var(--soft-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 2;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-shapes {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--soft-green), var(--pale-green));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

/* 核心优势板块 - 不对称布局 */
.advantages {
    padding: 100px 0;
    background: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-card {
    background: var(--cream-white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--sky-blue), var(--soft-green));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--sky-blue), var(--soft-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.advantage-card h3 {
    font-size: 20px;
    color: var(--deep-blue);
    margin-bottom: 12px;
}

.advantage-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

/* 服务项目 - 左右穿插布局 */
.services {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--cream-white) 0%, var(--white) 100%);
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

.service-row:last-child {
    margin-bottom: 0;
}

.service-row.reverse {
    direction: rtl;
}

.service-row.reverse .service-content {
    direction: ltr;
}

.service-row.reverse .service-image {
    direction: ltr;
}

.service-image {
    position: relative;
}

.service-image img {
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    font-size: 32px;
    color: var(--deep-blue);
    margin-bottom: 20px;
}

.service-content p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 2;
    margin-bottom: 25px;
}

.service-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-size: 14px;
}

.service-feature::before {
    content: '✓';
    color: var(--soft-green);
    font-weight: bold;
    font-size: 18px;
}

/* 快速入口 */
.quick-access {
    padding: 80px 0;
    background: var(--deep-blue);
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.access-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    color: var(--white);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.access-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.access-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.access-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.access-item p {
    font-size: 13px;
    opacity: 0.85;
}

/* 资讯列表 */
.news-section {
    padding: 100px 0;
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 13px;
    color: var(--sky-blue);
    margin-bottom: 10px;
}

.news-content h4 {
    font-size: 18px;
    color: var(--deep-blue);
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 响应式 */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-row.reverse {
        direction: ltr;
    }

    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .service-features {
        grid-template-columns: 1fr;
    }

    .quick-access-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}
