/* ============================================================
   Hero 首屏 - 优化版（与全站蓝色调统一）
   ============================================================ */

.hero {
    background-image: url("../img/首页.avif");
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
}

/* ----- 遮罩层（加深，与全站一致） ----- */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, rgba(11, 42, 74, 0.88) 0%, rgba(11, 42, 74, 0.65) 45%, rgba(43, 127, 193, 0.35) 100%);
}

.hero > *:not(.hero-overlay) {
    position: relative;
    z-index: 2;
}

/* ============================================================
   装饰光晕（与 service/cases 节统一，替换原有的 ::before/::after）
   ============================================================ */

/* 光晕1：右上角大范围亮蓝（替换 ::before） */
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(43, 127, 193, 0.25) 0%, rgba(155, 209, 255, 0.08) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
    animation: heroGlowFloat1 10s ease-in-out infinite alternate;
}

/* 光晕2：左下角深蓝（替换 ::after） */
.hero::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(43, 127, 193, 0.2) 0%, rgba(11, 42, 74, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(70px);
    animation: heroGlowFloat2 12s ease-in-out infinite alternate-reverse;
}

/* 新增光晕3：顶部冷白（增强层次） */
.hero-glow-3 {
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(155, 209, 255, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(90px);
    animation: heroGlowPulse 8s ease-in-out infinite alternate;
}

/* 新增光晕4：右下暖蓝点缀 */
.hero-glow-4 {
    position: absolute;
    bottom: 15%;
    right: 15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(43, 127, 193, 0.1) 0%, rgba(245, 229, 107, 0.03) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
    animation: heroGlowFloat3 9s ease-in-out infinite alternate;
}

/* ============================================================
   光晕动画
   ============================================================ */
@keyframes heroGlowFloat1 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    100% { transform: translate(-20px, 20px) scale(1.15); opacity: 1; }
}

@keyframes heroGlowFloat2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    100% { transform: translate(20px, -20px) scale(1.2); opacity: 1; }
}

@keyframes heroGlowFloat3 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    100% { transform: translate(-15px, -15px) scale(1.3); opacity: 0.8; }
}

@keyframes heroGlowPulse {
    0% { opacity: 0.4; transform: translateX(-50%) scale(0.9); }
    100% { opacity: 0.9; transform: translateX(-50%) scale(1.1); }
}

/* ============================================================
   容器（优化间距）
   ============================================================ */
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    box-sizing: border-box;
}

/* ============================================================
   左侧文案（优化）
   ============================================================ */

/* 标签（新增，与 service 节统一） */
.hero-content .hero-badge {
    display: inline-block;
    background: rgba(43, 127, 193, 0.2);
    color: #9bd1ff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 20px;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    border: 1px solid rgba(155, 209, 255, 0.15);
    backdrop-filter: blur(4px);
}

/* 标题 */
.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #ffffff;
}

.hero-content h1 span {
    font-weight: 400;
    color: #9bd1ff;
}

/* 副标题（保留金色，但调整大小和阴影） */
.hero-content .sub-title {
    font-size: 1.4rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-content .sub-title span {
    font-family: "KaiTi", serif;
    font-size: 2.2rem;
    color: #f5e56b;
    text-shadow:
        0 1px 0 #e8d05a,
        0 2px 0 #d4b84a,
        0 3px 0 #bf9f3a,
        0 4px 0 #aa872a,
        0 5px 0 #95701c,
        0 6px 12px rgba(0, 0, 0, 0.4),
        0 0 4px rgba(255, 248, 220, 0.3);
}

/* 描述文字 */
.hero-content p {
    font-size: 1.05rem;
    opacity: 0.8;
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   按钮（优化，增加两个按钮布局）
   ============================================================ */
.hero-content .hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-content .btn-learn {
    display: inline-block;
    background: #ffffff;
    color: #0b2a4a;
    padding: 14px 44px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.hero-content .btn-learn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    background: #f0f7ff;
}

/* 次要按钮（新增） */
.hero-content .btn-secondary {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.hero-content .btn-secondary:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   信任标识（新增，与 about 节统一）
   ============================================================ */
.hero-content .hero-trust {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.hero-content .trust-item {
    display: flex;
    flex-direction: column;
}

.hero-content .trust-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f5e56b;
    line-height: 1.1;
}

.hero-content .trust-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.hero-content .trust-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================================
   右侧图片占位（优化）
   ============================================================ */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image .placeholder-img {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4/3;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    text-align: center;
    padding: 20px;
    gap: 12px;
    transition: all 0.4s ease;
}

.hero-image .placeholder-img:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-image .placeholder-img i {
    font-size: 4rem;
    opacity: 0.4;
    color: #9bd1ff;
    margin: 0;
}

.hero-image .placeholder-img span {
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.6;
}

/* ============================================================
   响应式适配
   ============================================================ */
@media (max-width: 1024px) {
    .hero .container {
        padding: 0 40px;
        gap: 40px;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content .sub-title span {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 24px;
        height: auto;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .sub-title span {
        font-size: 1.5rem;
    }

    .hero-content p {
        max-width: 100%;
        font-size: 0.95rem;
    }

    .hero-content .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-content .btn-learn,
    .hero-content .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 12px 24px;
    }

    .hero-content .hero-trust {
        gap: 16px;
    }

    .hero-content .trust-number {
        font-size: 1.3rem;
    }

    .hero-image .placeholder-img {
        max-width: 100%;
        aspect-ratio: 4/3;
        padding: 16px;
    }

    .hero-image .placeholder-img i {
        font-size: 3rem;
    }

    /* 光晕在手机端缩小 */
    .hero::before {
        width: 350px;
        height: 350px;
        top: -20%;
        right: -15%;
        filter: blur(60px);
    }

    .hero::after {
        width: 250px;
        height: 250px;
        bottom: -20%;
        left: -10%;
        filter: blur(50px);
    }

    .hero-glow-3 {
        width: 250px;
        height: 250px;
    }

    .hero-glow-4 {
        width: 180px;
        height: 180px;
    }
}