/* ========================================
   优选生活建站 - 首页专属样式
   不规则网格自适应平铺布局
   ======================================== */

/* Hero Banner 区域 - 非全屏常规布局 */
.hero {
    margin-top: 72px;
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, transparent 70%);
    transform: rotate(-15deg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    padding-right: 40px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 30px;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -2px;
    color: #1a1a1a;
}

.hero-title span {
    display: block;
    color: #666;
}

.hero-description {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.9;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-floating-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: #fff;
    padding: 24px 32px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-stat {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: #888;
    margin-top: 6px;
}

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        margin: 0 auto 36px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        height: 350px;
    }
    
    .hero-floating-card {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* 核心优势板块 - 不规则卡片平铺 */
.features {
    padding: 100px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 24px;
}

.feature-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fafafa;
    padding: 40px 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-item:hover {
    background: #1a1a1a;
    color: #fff;
    transform: scale(1.02);
}

.feature-item:hover .feature-icon {
    background: #fff;
    color: #1a1a1a;
}

.feature-item:hover .feature-title,
.feature-item:hover .feature-text {
    color: #fff;
}

.feature-item.large {
    grid-column: span 2;
    grid-row: span 2;
    background: #1a1a1a;
    color: #fff;
}

.feature-item.wide {
    grid-column: span 2;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.feature-text {
    color: #666;
    line-height: 1.7;
    transition: color 0.3s ease;
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .feature-item.large,
    .feature-item.wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* 快速入口板块 */
.quick-access {
    padding: 80px 0;
    background: #fafafa;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.access-item {
    background: #fff;
    padding: 32px 20px;
    border-radius: 14px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.access-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.access-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 12px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.access-icon svg {
    width: 28px;
    height: 28px;
}

.access-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

@media (max-width: 968px) {
    .access-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 资讯列表区块 - 首页下方 */
.home-news {
    padding: 100px 0;
    background: #fff;
}

.news-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #1a1a1a;
    display: inline-block;
}

.news-group {
    margin-bottom: 60px;
}

.news-group:last-child {
    margin-bottom: 0;
}

/* CTA 区域 */
.cta {
    padding: 100px 0;
    background: #1a1a1a;
    color: #fff;
    text-align: center;
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.cta-text {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: #fff;
    color: #1a1a1a;
}

.cta .btn-primary:hover {
    background: #f0f0f0;
}

.cta .btn-outline {
    border-color: #fff;
    color: #fff;
}

.cta .btn-outline:hover {
    background: #fff;
    color: #1a1a1a;
}

@media (max-width: 640px) {
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
}
