/* 首页特定样式 */

/* Hero Banner区 */
.hero-banner {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('../image/rh_tech_bg1.png') center/cover no-repeat;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.forest-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M100,500 Q200,400 300,500 T500,500" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/><path d="M200,550 Q300,450 400,550 T600,550" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/><path d="M400,500 Q500,400 600,500 T800,500" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></svg>') no-repeat center;
    background-size: cover;
    opacity: 0.3;
}

.tech-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.tech-line {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: var(--white);
    padding: var(--spacing-md);
    width: 60%;
}

.hero-title {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    color: black;
    /* text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3); */
    animation: fadeInUp 1s ease-out;
}

.hero-title-blu {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-blue);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 28px;
    margin-bottom: var(--spacing-xs);
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
    color: black;
}

.hero-slogan {
    font-size: 18px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.4s both;
    color: #d1d1d1;
}

.hero-buttons {
    display: flex;
    gap: 32px;
    /* justify-content: center; */
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: var(--white);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.8;
    color: var(--dark-gray);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--dark-gray);
    border-bottom: 2px solid var(--dark-gray);
    transform: rotate(45deg);
    margin: 0 auto;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* 核心价值区 */
.core-values {
    padding: var(--spacing-xl) 0;
    background: #011D40;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.value-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-top-color: var(--forest-green);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-card h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-gray);
}

.value-card p {
    color: #666;
    line-height: 1.8;
}

/* 业务速览区 */
.business-overview {
    padding: var(--spacing-xl) 0;
    background: #F5F9FF;
}

.business-tabs {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 32px;
    background: #1a7ee210;
    border: 0.5px solid var(--white);
    color: var(--light-gray);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: transparent;
}

.business-content {
    position: relative;
    min-height: 400px;
}

.tab-panel {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.tab-panel.active {
    display: block;
}

.business-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 当只有两张卡片时居中 */
    gap: 32px;
}

.business-card {
    background: #FFFFFF;
    /* padding: 24px 28px; */
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(5, 33, 70, 0.08);
    border: 1px solid rgba(15, 40, 80, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    flex: 1 1 0;            /* 所有卡片等分可用宽度，相当于 1fr */
    max-width: 380px;       /* 防止在大屏上过宽 */
}

.business-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 55px rgba(5, 33, 70, 0.14);
    border-color: rgba(26, 126, 226, 0.35);
}

.business-icon {
    margin-bottom: var(--spacing-sm);
    width: 100%;
    aspect-ratio: 3 / 2; /* 照片比例 3:2 */
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    background: #E6F1FF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.business-card h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-gray);
    padding: 8px 20px 0px 20px;
}

.business-card p {
    color: var(--light-gray);
    margin-bottom: 16px;
    line-height: 1.6;
    padding: 0px 20px 0px 20px;
}

.card-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 4px 20px 20px 20px;
}

.card-link:hover {
    color: var(--forest-green);
    transform: translateX(5px);
}

/* 实力展示区 */
.strength-showcase {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: url('../image/img_hxsl.png') center/cover no-repeat;
    background-size: cover;
    background-position: center;
}

.strength-showcase .section-title {
    color: var(--dark-gray);
    margin-bottom: var(--spacing-lg);
    font-size: 36px;
    font-weight: bold;
}

.strength-showcase .section-title::after {
    background: var(--primary-blue);
    width: 60px;
    height: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-card {
    text-align: center;
    /* padding: var(--spacing-lg); */
    /* background: var(--white); */
    /* border-radius: 12px; */
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, rgb(104, 187, 250), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat-label {
    font-size: 16px;
    color: var(--dark-gray);
    font-weight: 500;
}

.partners-section {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    /* background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
    text-align: center;
}

.partners-section h3 {
    font-size: 28px;
    margin-bottom: var(--spacing-md);
    color: var(--dark-gray);
    font-weight: bold;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.partner-logo {
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    transition: all 0.3s ease;
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border: 2px solid var(--forest-green);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* 合作入口区 */
.cooperation-cta {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--forest-green));
    color: var(--white);
    text-align: center;
}

.cooperation-cta h2 {
    font-size: 36px;
    margin-bottom: var(--spacing-sm);
}

.cooperation-cta p {
    font-size: 18px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-slogan {
        font-size: 16px;
    }

    .values-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .business-grid {
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

