/* 
 * 尧图企业网站定制 - 首页专属样式
 * 折线错位排版布局
 */

/* ========== Hero Banner ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--beige) 0%, #e8e4d9 100%);
}

.hero-bg-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-bg-line svg {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 6px;
    margin-bottom: 25px;
    color: var(--ink-black);
}

.hero-text .subtitle {
    font-size: 20px;
    color: var(--gray-text);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-text .hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

.hero-shape {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    background: var(--accent);
    opacity: 0.1;
    border-radius: 50%;
}

/* ========== 核心优势 ========== */
.advantages {
    padding: 120px 0;
    position: relative;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.advantage-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--line-color);
    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(--accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.advantage-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.advantage-card p {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.8;
}

/* ========== 服务项目 ========== */
.services {
    padding: 120px 0;
    background: var(--white);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--beige);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 60%);
}

.services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.service-item {
    background: var(--beige);
    padding: 50px 35px;
    border-left: 4px solid var(--accent);
    transition: all 0.4s ease;
    cursor: pointer;
}

.service-item:hover {
    background: var(--ink-black);
    color: var(--beige);
}

.service-item:hover p {
    color: var(--light-gray);
}

.service-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.service-item p {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.8;
}

/* ========== 案例展示 ========== */
.cases {
    padding: 120px 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.case-card {
    position: relative;
    overflow: hidden;
    group: ;
}

.case-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.case-card:hover img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.9), transparent);
    color: var(--beige);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.case-card:hover .case-overlay {
    transform: translateY(0);
}

.case-overlay h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.case-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* ========== 客户评价 ========== */
.testimonials {
    padding: 120px 0;
    background: var(--white);
}

.testimonials-slider {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.testimonial-card {
    background: var(--beige);
    padding: 50px;
    text-align: center;
    border: 1px solid var(--line-color);
}

.testimonial-content {
    font-size: 18px;
    line-height: 2;
    color: var(--gray-text);
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.testimonial-author-info p {
    font-size: 14px;
    color: var(--gray-text);
}

/* ========== 资讯列表 ========== */
.news-section {
    padding: 120px 0;
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.news-tab {
    padding: 12px 30px;
    border: 2px solid var(--ink-black);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    letter-spacing: 1px;
}

.news-tab.active,
.news-tab:hover {
    background: var(--ink-black);
    color: var(--beige);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--line-color);
    overflow: hidden;
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card-content {
    padding: 25px;
}

.news-card-title {
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray-text);
}

/* ========== CTA 区域 ========== */
.cta-section {
    padding: 100px 0;
    background: var(--ink-black);
    color: var(--beige);
    text-align: center;
}

.cta-section h2 {
    font-size: 42px;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--light-gray);
}

.cta-btn {
    display: inline-block;
    padding: 16px 50px;
    background: var(--accent);
    color: var(--ink-black);
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: var(--beige);
    transform: scale(1.05);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 42px;
    }
    
    .hero-text .hero-btns {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .advantages-grid,
    .services-list,
    .cases-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 32px;
    }
    
    .advantages-grid,
    .services-list,
    .cases-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
}
