/* ========================================
   首页专用样式
   ======================================== */

/* Hero Banner - 阶梯式向上布局 */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #f5f3f0 0%, #e8e4df 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: linear-gradient(135deg, rgba(201, 168, 124, 0.1) 0%, rgba(184, 149, 106, 0.05) 100%);
    transform: rotate(-15deg);
    z-index: 1;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    padding-top: 80px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-wood);
    color: var(--white);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 700;
}

.hero h1 span {
    color: var(--primary-wood);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 30px 60px var(--shadow-medium);
}

.hero-shape {
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: var(--primary-wood);
    opacity: 0.1;
    border-radius: 50%;
}

/* 核心优势板块 - 阶梯式卡片 */
.advantages {
    background: var(--white);
    position: relative;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.advantage-card {
    background: var(--light-beige);
    padding: 50px 40px;
    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: var(--primary-wood);
    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 40px var(--shadow-medium);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon img {
    width: 60px;
    height: 60px;
}

.advantage-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 0.95rem;
}

/* 服务板块 - 不对称布局 */
.services {
    background: linear-gradient(180deg, #f5f3f0 0%, #ffffff 100%);
}

.services-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
}

.services-intro {
    position: sticky;
    top: 120px;
}

.services-intro h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.services-intro p {
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 30px;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-item {
    background: var(--white);
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.service-item:hover {
    border-color: var(--primary-wood);
    box-shadow: 0 15px 40px var(--shadow-light);
    transform: translateY(-5px);
}

.service-number {
    font-size: 3rem;
    color: var(--primary-wood);
    font-weight: 700;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.service-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* 案例板块 - 错落式网格 */
.cases {
    background: var(--white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    position: relative;
    overflow: hidden;
    background: var(--light-beige);
    transition: all 0.4s ease;
}

.case-card:nth-child(1) {
    grid-column: span 2;
}

.case-card:nth-child(4) {
    grid-column: span 2;
}

.case-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-info {
    padding: 30px;
}

.case-category {
    font-size: 0.85rem;
    color: var(--primary-wood);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.case-info h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.case-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-wood);
    font-weight: 500;
    margin-top: 15px;
    transition: gap 0.3s ease;
}

.case-link:hover {
    gap: 15px;
}

/* 资讯板块 */
.news-section {
    background: var(--light-beige);
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 10px 25px;
    cursor: pointer;
    border: 2px solid var(--border-color);
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-tab.active,
.news-tab:hover {
    border-color: var(--primary-wood);
    color: var(--primary-wood);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--white);
    overflow: hidden;
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--primary-wood);
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.5;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA 板块 */
.cta-section {
    background: linear-gradient(135deg, var(--primary-wood) 0%, var(--secondary-wood) 100%);
    padding: 100px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 600;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn-white {
    background: var(--white);
    color: var(--primary-wood);
}

.cta-btn-white:hover {
    background: var(--light-beige);
}

/* 响应式 */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-content {
        padding-top: 40px;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        height: 400px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .services-wrapper {
        grid-template-columns: 1fr;
    }

    .services-intro {
        position: static;
        margin-bottom: 40px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .case-card:nth-child(1),
    .case-card:nth-child(4) {
        grid-column: span 1;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .hero-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}
