/* ========================================
   智库百科 - 首页专用样式
   ======================================== */

/* Hero Banner 区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE4E1 50%, #FFDAB9 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 228, 225, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 164, 132, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, 30px) rotate(5deg); }
    50% { transform: translate(-20px, 50px) rotate(-5deg); }
    75% { transform: translate(-40px, 20px) rotate(3deg); }
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 900px;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #C4A484;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #8B7355;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4rem;
    color: #5D4E37;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(189, 154, 122, 0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #8B7355;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    width: 400px;
    height: 400px;
    opacity: 0.1;
    z-index: 1;
}

.hero-image-left {
    top: 20%;
    left: 5%;
    animation: float 12s ease-in-out infinite;
}

.hero-image-right {
    bottom: 15%;
    right: 5%;
    animation: float 15s ease-in-out infinite reverse;
}

/* 品牌定位板块 - 不规则网格布局 */
.brand-section {
    padding: 6rem 0;
    background: #FFF8F0;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, minmax(280px, auto));
    gap: 2rem;
}

.brand-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F0 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(189, 154, 122, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FFE4E1, #C4A484);
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(189, 154, 122, 0.2);
}

.brand-card-large {
    grid-column: span 5;
    grid-row: span 2;
}

.brand-card-medium {
    grid-column: span 4;
}

.brand-card-small {
    grid-column: span 3;
}

.brand-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FFE4E1 0%, #FFDAB9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #8B7355;
}

.brand-card h3 {
    font-size: 1.5rem;
    color: #5D4E37;
    margin-bottom: 1rem;
}

.brand-card p {
    color: #A09070;
    line-height: 1.8;
}

/* 服务体系板块 */
.service-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #FFF8F0 0%, #FDF5F0 100%);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(189, 154, 122, 0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    border-color: #FFE4E1;
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(189, 154, 122, 0.15);
}

.service-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #C4A484 0%, #D4B494 100%);
    color: #FFF8F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.service-card h3 {
    font-size: 1.4rem;
    color: #5D4E37;
    margin-bottom: 1rem;
}

.service-card p {
    color: #A09070;
    line-height: 1.8;
}

/* 成功案例板块 */
.case-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #F5E6D3 0%, #FFE4E1 100%);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.case-card {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(189, 154, 122, 0.15);
    transition: all 0.4s ease;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(189, 154, 122, 0.25);
}

.case-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.case-content {
    padding: 2rem;
}

.case-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #FFE4E1;
    color: #8B7355;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.case-content h3 {
    font-size: 1.4rem;
    color: #5D4E37;
    margin-bottom: 1rem;
}

.case-content p {
    color: #A09070;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.case-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(189, 154, 122, 0.15);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #C4A484;
}

.stat-label {
    font-size: 0.85rem;
    color: #A09070;
}

/* 资讯列表板块 */
.news-section {
    padding: 6rem 0;
    background: #FFF8F0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: #FFFFFF;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(189, 154, 122, 0.1);
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(189, 154, 122, 0.18);
}

.news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.85rem;
    color: #C4A484;
    margin-bottom: 0.5rem;
}

.news-content h3 {
    font-size: 1.2rem;
    color: #5D4E37;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.news-excerpt {
    color: #A09070;
    font-size: 0.95rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA 板块 */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #C4A484 0%, #D4B494 100%);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.8rem;
    color: #FFF8F0;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn-light {
    background: #FFF8F0;
    color: #C4A484;
}

.cta-btn-light:hover {
    background: #FFFFFF;
    color: #8B7355;
}

.cta-btn-outline {
    background: transparent;
    border: 2px solid #FFF8F0;
    color: #FFF8F0;
}

.cta-btn-outline:hover {
    background: #FFF8F0;
    color: #C4A484;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .brand-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: auto;
    }

    .brand-card-large {
        grid-column: span 6;
        grid-row: span 1;
    }

    .brand-card-medium {
        grid-column: span 3;
    }

    .brand-card-small {
        grid-column: span 3;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .brand-grid {
        grid-template-columns: 1fr;
    }

    .brand-card-large,
    .brand-card-medium,
    .brand-card-small {
        grid-column: span 1;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .brand-card,
    .service-card {
        padding: 1.5rem;
    }
}
