/* 
 * 优益达建站 - 首页专属样式
 */

/* ========== Hero Banner ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.9) 0%, rgba(45, 80, 22, 0.85) 100%);
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--color-cream);
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(201, 169, 89, 0.2);
    border: 1px solid var(--color-gold);
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--color-gold);
    color: var(--color-wine-dark);
}

.btn-hero-primary:hover {
    background: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 169, 89, 0.4);
}

.btn-hero-secondary {
    background: transparent;
    border: 2px solid var(--color-cream);
    color: var(--color-cream);
}

.btn-hero-secondary:hover {
    background: var(--color-cream);
    color: var(--color-wine);
}

/* ========== 核心优势板块 ========== */
.advantages {
    padding: 100px 0;
    background: var(--color-cream-light);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    background: var(--color-wine);
    color: var(--color-cream);
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-wine);
    margin-bottom: 15px;
}

.section-desc {
    font-size: 16px;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.advantage-card {
    background: var(--color-white);
    padding: 40px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(114, 47, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-wine), var(--color-gold));
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--color-wine) 0%, var(--color-green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--color-cream);
}

.advantage-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-wine);
    margin-bottom: 12px;
}

.advantage-text {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ========== 快速入口 ========== */
.quick-access {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-cream-light) 0%, var(--color-white) 100%);
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.access-item {
    position: relative;
    height: 350px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.access-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.access-item:hover .access-image {
    transform: scale(1.1);
}

.access-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(114, 47, 55, 0.95));
    color: var(--color-cream);
}

.access-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.access-desc {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.access-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.access-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.access-item:hover .access-link::after {
    transform: translateX(5px);
}

/* ========== 资讯列表 ========== */
.news-section {
    padding: 100px 0;
    background: var(--color-white);
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 10px 25px;
    border: 2px solid var(--color-wine);
    border-radius: 30px;
    font-weight: 600;
    color: var(--color-wine);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.news-tab.active,
.news-tab:hover {
    background: var(--color-wine);
    color: var(--color-cream);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 13px;
    color: var(--color-gold);
    margin-bottom: 10px;
    display: block;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== CTA 板块 ========== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-wine) 0%, var(--color-green) 100%);
    text-align: center;
    color: var(--color-cream);
    position: relative;
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .access-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}
