

/* ailhj-hero.css - AI领航局 Hero Banner Widget 样式 */

.ailhj-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

/* UnicornStudio 动态背景层 — fixed，输出到 body 末尾，不受父级 overflow 影响 */
.ailhj-hero-us-bg {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: -10;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, black 0%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 0%, black 80%, transparent);
}

.ailhj-hero-us-inner {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

.ailhj-hero-us-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

/* UnicornStudio 渲染的 canvas 铺满容器 */
.ailhj-hero-us-canvas canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* 视差背景层 — fixed，与 test2.html 结构一致 */
.ailhj-hero-parallax {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.ailhj-hero-bg-grid {
    background-size: 60px 60px;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.12) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 80%);
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    transform: perspective(500px) rotateX(20deg);
    opacity: 0.6;
}

.ailhj-hero-bg-glow-1 {
    position: absolute;
    top: -10%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%); /* #3b82f6 */
    border-radius: 50%;
    filter: blur(60px);
}

.ailhj-hero-bg-glow-2 {
    position: absolute;
    top: 40%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%); /* #3b82f6 */
    border-radius: 50%;
    filter: blur(80px);
}

.ailhj-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
    z-index: 1;
}

.ailhj-hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    max-width: 760px;
    width: 100%;
}

.ailhj-hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 16px;
    color: inherit;
}

.ailhj-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.88;
    margin: 0 0 32px;
    color: inherit;
}

.ailhj-hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.ailhj-hero-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.ailhj-hero-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    text-decoration: none;
}

.ailhj-hero-btn-primary {
    background: #3b82f6;
    color: #fff;
    border: 2px solid #3b82f6;
}

.ailhj-hero-btn-outline {
    background: transparent;
    color: inherit;
    border: 2px solid currentColor;
}

@media (max-width: 576px) {
    .ailhj-hero-title   { font-size: 1.6rem; }
    .ailhj-hero-subtitle { font-size: 0.95rem; }
    .ailhj-hero-content { padding: 40px 16px; }
}
