/* ========================================
   尧图网站建设 - 首页专用样式
   ======================================== */

/* Hero Section - 硬朗折线风格 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-blue-light) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(184, 216, 232, 0.3) 100%);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-brown-dark);
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-content h1 span {
    color: var(--color-blue-dark);
    display: block;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 35px;
    max-width: 550px;
}

@media (max-width: 992px) {
    .hero-content p {
        max-width: 100%;
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
    }
}

.hero-image {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hard);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 折线装饰 */
.diagonal-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: var(--color-white);
    clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
}

/* Services Section */
.services {
    padding: 120px 0;
    background: var(--color-white);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--color-cream);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 60%);
}

.service-card {
    background: var(--color-cream);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.service-card:hover {
    border-color: var(--color-blue);
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--color-blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-blue-dark);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--color-brown-dark);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-blue-light) 100%);
}

.feature-item {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.feature-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-blue-dark);
    opacity: 0.3;
    line-height: 1;
}

.feature-content h4 {
    font-size: 1.2rem;
    color: var(--color-brown-dark);
    margin-bottom: 10px;
}

.feature-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--color-brown-dark);
    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(184, 216, 232, 0.2) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 20px;
}

.cta p {
    color: var(--color-blue);
    font-size: 1.1rem;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* News Section */
.news {
    padding: 120px 0;
    background: var(--color-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-section-title {
    font-size: 1.3rem;
    color: var(--color-brown-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-blue-light);
}

.news-card {
    background: var(--color-cream);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.news-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.news-card-content {
    padding: 20px;
}

.news-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-brown-dark);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: var(--color-blue-light);
}

.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-brown-dark);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--color-text-light);
    font-size: 1rem;
}
