/* ============================================================
   Hero 首屏 - 修复版（宽度与 About 统一）
   ============================================================ */

.hero {
    background-image: url("../img/首页.webp");
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh);
    display: flex;
    align-items: center;
    padding: 320px 0 100px 0 !important;  /* 从 80px 改为 160px（80 + 80） */
    top:-100
}

/* ----- 遮罩层 ----- */
.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):not(.hero-glow-3):not(.hero-glow-4) {
    position: relative;
    z-index: 2;
}

/* ============================================================
   装饰光晕
   ============================================================ */
.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;
}

.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;
}

.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;
}

.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); }
}

/* ============================================================
   容器 - 宽度与 About 统一
   ============================================================ */
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;  /* 与 About 统一 */
    box-sizing: border-box;
}

/* ============================================================
   左侧文案
   ============================================================ */
.hero-content {
    width: 100%;
}

.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: 16px;
    color: #ffffff;
}

.hero-content h1 span {
    font-weight: 400;
    color: #9bd1ff;
}

.hero-content .hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 18px;
}

.hero-content .hero-features span {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-content .hero-desc {
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 560px;
    margin-bottom: 28px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   按钮
   ============================================================ */
.hero-content .hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.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 .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;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 24px;
        height: auto;
    }

    .hero-content {
        text-align: center;
        padding: 0;
    }

    .hero-content .hero-badge {
        font-size: 12px;
        padding: 4px 16px;
        margin-bottom: 12px;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .hero-content .hero-features {
        justify-content: center;
        gap: 8px 14px;
        margin-bottom: 14px;
    }

    .hero-content .hero-features span {
        font-size: 0.85rem;
        padding: 3px 12px;
    }

    .hero-content .hero-desc {
        font-size: 0.92rem;
        max-width: 100%;
        margin-bottom: 22px;
        padding: 0 4px;
        line-height: 1.7;
    }

    .hero-content .hero-desc br {
        display: none;
    }

    .hero-content .hero-actions {
        flex-direction: column;
        align-items: center;
        margin-bottom: 28px;
    }

    .hero-content .btn-learn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        min-width: 160px;
        max-width: 220px;
        text-align: center;
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .hero-content .hero-trust {
        justify-content: center;
        gap: 14px;
    }

    .hero-content .trust-number {
        font-size: 1.3rem;
    }

    .hero-content .trust-label {
        font-size: 0.7rem;
    }

    .hero-content .trust-divider {
        height: 24px;
    }

    .hero-image .placeholder-img {
        max-width: 100%;
        aspect-ratio: 4/3;
        padding: 20px;
        border-radius: 20px;
    }

    .hero-image .placeholder-img i {
        font-size: 3rem;
    }

    .hero-image .placeholder-img span {
        font-size: 0.85rem;
    }

    /* 光晕在手机端缩小 */
    .hero::before {
        width: 280px;
        height: 280px;
        top: -15%;
        right: -20%;
        filter: blur(50px);
    }

    .hero::after {
        width: 200px;
        height: 200px;
        bottom: -15%;
        left: -15%;
        filter: blur(40px);
    }

    .hero-glow-3 {
        width: 200px;
        height: 200px;
        filter: blur(60px);
    }

    .hero-glow-4 {
        width: 150px;
        height: 150px;
        bottom: 10%;
        right: 5%;
        filter: blur(40px);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 40px 0;
    }

    .hero .container {
        padding: 0 16px;
        gap: 24px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content .hero-features span {
        font-size: 0.75rem;
        padding: 2px 10px;
    }

    .hero-content .hero-desc {
        font-size: 0.85rem;
    }

    .hero-content .btn-learn {
        min-width: 130px;
        max-width: 180px;
        padding: 10px 20px;
        font-size: 0.88rem;
    }

    .hero-content .hero-trust {
        gap: 10px;
    }

    .hero-content .trust-number {
        font-size: 1.1rem;
    }

    .hero-content .trust-label {
        font-size: 0.65rem;
    }

    .hero-image .placeholder-img {
        aspect-ratio: 4/3;
        padding: 16px;
        border-radius: 16px;
    }

    .hero-image .placeholder-img i {
        font-size: 2.4rem;
    }

    .hero-image .placeholder-img span {
        font-size: 0.75rem;
    }
}