/* ========================================
   首页专用样式 - 三角支撑布局
   ======================================== */

/* Hero 区域 - 三角分区设计 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #fef9f5 0%, #f5ebe0 50%, #e8d5c5 100%);
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-triangle-1 {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: linear-gradient(135deg, rgba(232, 141, 103, 0.1) 0%, rgba(139, 111, 92, 0.05) 100%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    border-radius: 30px;
}

.hero-triangle-2 {
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 50%;
    height: 70%;
    background: linear-gradient(135deg, rgba(139, 111, 92, 0.08) 0%, rgba(232, 141, 103, 0.05) 100%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    border-radius: 30px;
}

.hero-triangle-3 {
    position: absolute;
    top: 30%;
    left: 10%;
    width: 40%;
    height: 50%;
    background: linear-gradient(135deg, rgba(232, 141, 103, 0.06) 0%, rgba(107, 83, 69, 0.04) 100%);
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
    border-radius: 30px;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 60px 5%;
}

.hero-badge {
    display: inline-block;
    padding: 10px 30px;
    background: rgba(232, 141, 103, 0.1);
    color: var(--primary-orange);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-size: 56px;
    color: var(--earth-brown);
    line-height: 1.3;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-title span {
    color: var(--primary-orange);
    position: relative;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--warm-brown);
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s both;
}

/* 核心优势板块 - 三角支撑 */
.advantages {
    background: white;
    position: relative;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.advantage-card {
    background: linear-gradient(135deg, #fef9f5 0%, #fff 100%);
    padding: 50px 35px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--light-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-orange), var(--warm-brown));
    transform: scaleX(0);
    transition: var(--transition);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--medium-shadow);
}

.advantage-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(232, 141, 103, 0.1) 0%, rgba(139, 111, 92, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary-orange);
}

.advantage-card h3 {
    font-size: 24px;
    color: var(--earth-brown);
    margin-bottom: 15px;
}

.advantage-card p {
    color: #666;
    line-height: 1.8;
}

/* 快速入口 - 不对称布局 */
.quick-access {
    background: linear-gradient(135deg, var(--soft-beige) 0%, #fff 100%);
}

.access-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
}

.access-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    min-height: 350px;
    box-shadow: var(--light-shadow);
    transition: var(--transition);
}

.access-item:hover {
    transform: scale(1.02);
    box-shadow: var(--medium-shadow);
}

.access-item.large {
    grid-row: span 2;
}

.access-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.access-item:hover .access-img {
    transform: scale(1.1);
}

.access-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(107, 83, 69, 0.9));
    color: white;
}

.access-overlay h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.access-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* 资讯列表区域 */
.news-section {
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
}

/* 动画关键帧 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 992px) {
    .hero-title {
        font-size: 42px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .access-grid {
        grid-template-columns: 1fr;
    }
    
    .access-item.large {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}
