/* ========================================
   尧图网站开发 - 首页专用样式
   ======================================== */

/* Hero Banner 区域 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FDFBF7 0%, #F5F0E8 50%, #E8F4F8 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: linear-gradient(135deg, rgba(196, 165, 123, 0.1) 0%, rgba(184, 212, 227, 0.15) 100%);
    transform: rotate(-15deg);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 150%;
    background: linear-gradient(135deg, rgba(184, 212, 227, 0.12) 0%, rgba(196, 165, 123, 0.08) 100%);
    transform: rotate(10deg);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(196, 165, 123, 0.15);
    color: var(--deep-brown);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    border-radius: 30px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    color: var(--deep-brown);
    line-height: 1.2;
    margin-bottom: 30px;
}

.hero-title span {
    color: var(--light-brown);
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(184, 212, 227, 0.5);
    z-index: -1;
}

.hero-description {
    font-size: 20px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 600px;
    z-index: 2;
    opacity: 0;
    animation: heroImageFadeIn 1.5s ease forwards 0.5s;
}

@keyframes heroImageFadeIn {
    to {
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .hero {
        height: auto;
        min-height: auto;
        padding: 150px 0 80px;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .hero-image {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-description {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* 硬朗折线分割 */
.diagonal-divider {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.diagonal-divider-up {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0% 100%);
}

.diagonal-divider-down {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cream-white);
    clip-path: polygon(0 0, 100% 30%, 100% 100%, 0% 100%);
}

/* 核心优势板块 */
.advantages {
    background: #fff;
    position: relative;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-card {
    text-align: center;
    padding: 50px 30px;
    background: var(--cream-white);
    border-radius: 8px;
    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(--light-brown), var(--light-blue));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--light-brown), var(--deep-brown));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
}

.advantage-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--deep-brown);
    margin-bottom: 15px;
}

.advantage-text {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

/* 快速入口 */
.quick-access {
    background: linear-gradient(135deg, var(--deep-brown) 0%, #6B5B4A 100%);
    padding: 80px 0;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.quick-access-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.quick-access-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.quick-access-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--light-brown);
}

.quick-access-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

@media (max-width: 992px) {
    .quick-access-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 服务项目 */
.services {
    background: var(--cream-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.service-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(196, 165, 123, 0.8), rgba(107, 142, 159, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-overlay-btn {
    padding: 12px 30px;
    background: #fff;
    color: var(--deep-brown);
    font-weight: 600;
    border-radius: 30px;
    font-size: 14px;
}

.service-content {
    padding: 30px;
}

.service-category {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(196, 165, 123, 0.15);
    color: var(--deep-brown);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 15px;
}

.service-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--deep-brown);
    margin-bottom: 15px;
}

.service-text {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--deep-brown);
    font-weight: 600;
    font-size: 15px;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 15px;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* 资讯中心 */
.news {
    background: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--cream-white);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.news-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.1);
}

.news-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(196, 165, 123, 0.95);
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

.news-date-badge .day {
    display: block;
    font-size: 18px;
    line-height: 1;
    margin-bottom: 3px;
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--deep-brown);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
}

.news-more {
    text-align: center;
    margin-top: 60px;
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA 区块 */
.cta {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--deep-blue) 100%);
    padding: 100px 0;
    text-align: center;
}

.cta-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    background: #fff;
    color: var(--deep-blue);
}

.btn-white:hover {
    background: var(--cream-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline-white:hover {
    background: #fff;
    color: var(--deep-blue);
}

@media (max-width: 576px) {
    .cta-title {
        font-size: 32px;
    }

    .cta-text {
        font-size: 16px;
    }
}
