/* === 3. 英雄区域 (Hero) === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
    padding-top: 0;
    overflow: hidden;
}

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    margin-top: 0;
    border-radius: 0;
    background: #222;
}

.hero-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero .container {
    position: relative;
    z-index: 1;
    padding-top: 60px;
}

.hero-label {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    color: var(--text-main);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(48px, 6vw, 80px);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 32px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 48px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* === 4. 统计数据条 (Stats) === */
.stats-section {
    padding: 80px 0;
    border-bottom: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
}

.stat-item {
    background: #f5f5f7;
    padding: 32px 24px;
    border-radius: var(--radius-unified);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-item p {
    color: var(--text-light);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
}

/* === 5. 业务板块 (Bento Grid - Image Filled) === */
.services-section {
    padding: 120px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 48px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.section-desc {
    max-width: 400px;
    color: var(--text-light);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 380px);
    /* 稍微增加高度以容纳按钮 */
    gap: var(--grid-gap);
}

.bento-card {
    background: #222;
    /* 默认深色底 */
    border-radius: var(--radius-unified);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    /* 统一文字颜色为白 */
    border: none;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* 卡片背景图层 */
.card-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s ease;
}

.bento-card:hover .card-bg-img {
    transform: scale(1.05);
}

/* 渐变遮罩，确保文字可读 */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    z-index: 1;
}

/* 内容层级提升 */
.card-content-wrapper {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-large {
    grid-column: span 2;
}

.card-tall {
    grid-row: span 2;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-unified);
    margin-bottom: 20px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 8px;
    /* 给图标加个底 */
}

.card-content h3 {
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-ghost {
    margin-top: 24px;
    align-self: flex-start;
}

/* === 新增：卡片按钮样式 === */
.card-large .btn-ghost {
    background: var(--primary-color);
    color: var(--text-main);
    border: 1px solid var(--primary-color);
}

.card-large .btn-ghost:hover {
    background: white;
    border-color: #fff;
    color: var(--text-main);
}

.btn-ghost:hover {
    background: white;
    border-color: white;
    color: var(--text-main);
}

/* === 6. 关于部分 (Dark Theme) === */
.about-section {
    background-color: var(--dark-bg);
    color: white;
    padding: 120px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 48px;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.about-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
    line-height: 1.6;
}

.btn-outline:hover {
    background: white;
    color: black;
}

.about-img {
    height: 500px;
    background: #222;
    border-radius: var(--radius-unified);
    position: relative;
    overflow: hidden;
}


/* 响应式 */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .card-large {
        grid-column: span 2;
    }

    .card-tall {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 48px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card-large {
        grid-column: span 1;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
