/* ===== Hero Final - 极简大图风 (参考yonyou) ===== */

.hero-final {
    height: 100vh !important;
    min-height: 600px !important;
    display: flex !important;
    align-items: center !important;
    position: relative;
    overflow: hidden;
    background: none !important;
}

/* Full-bleed background - user's image covers viewport */
.hero-final .hf-bg {
    position: absolute;
    inset: 0;
    top: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-final .hf-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(.9) brightness(.94);
    transform: scale(1.02);
    animation: hfBgZoom 20s ease-in-out infinite;
}

@keyframes hfBgZoom {
    0%, 100% { transform: scale(1.02); }
    50% { transform: scale(1.06); }
}

/* Dark overlay for readability */
.hero-final .hf-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.35) 100%);
    z-index: 1;
}

/* Lightweight information-flow motion: slow, quiet and content-safe. */
.hero-final::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .22;
    background-image:
        linear-gradient(rgba(92, 211, 234, .10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(92, 211, 234, .10) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 48%, #000 100%);
    animation: hfGridDrift 26s linear infinite;
}

.hero-final::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -28%;
    width: 24%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(96, 218, 241, .14), transparent);
    transform: skewX(-12deg);
    animation: hfDataSweep 12s ease-in-out infinite;
}

@keyframes hfGridDrift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 84px 42px, 42px 84px; }
}

@keyframes hfDataSweep {
    0%, 18% { transform: translateX(0) skewX(-12deg); opacity: 0; }
    30% { opacity: .7; }
    65%, 100% { transform: translateX(620%) skewX(-12deg); opacity: 0; }
}

/* Subtle light effect overlay */
.hero-final .hf-overlay-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 65%);
    bottom: 12%;
    left: 48%;
    z-index: 1;
    pointer-events: none;
    animation: glowPulse 7s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.hero-final .hero-bg { background: none !important; }

/* Content - flex layout for text + image */
.hero-final .hero-content {
    width: 1120px;
    margin: 0 auto;
    padding: 80px 40px 0;
    position: relative;
    z-index: 2;
}

.hf-content-flex {
    display: flex !important;
    align-items: center;
    transform: translateY(-34px);
}

.hero-final .hf-text {
    position: relative;
    z-index: 2;
    max-width: 650px;
    flex-shrink: 0;
}

/* Company logo/name */
.hf-brand {
    font-size: 1rem;
    font-weight: 600;
    color: #93c5fd;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    animation: hfFade 0.5s ease 0.1s forwards;
}

/* Title */
.hf-title {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 0;
    opacity: 0;
    animation: hfFade 0.6s ease 0.2s forwards;
}

.hf-title strong {
    display: block;
    font-size: 46px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.16;
    margin-bottom: 20px;
}

/* CTA button */
.hf-btn-wrap {
    margin-top: 50px;
    display: flex;
    gap: 12px;
    opacity: 0;
    animation: hfFade 0.6s ease 0.35s forwards;
}

.hf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 36px;
    border-radius: 24px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
}

.hf-btn-primary {
    background: linear-gradient(90deg, #ffffff, #f8fafc);
    color: #1e293b;
    border: 1px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.hf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.hf-btn-secondary {
    color: #d9f6fb;
    border: 1px solid rgba(111, 224, 239, .72);
    background: rgba(6, 26, 43, .24);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.hf-btn-secondary:hover {
    color: #fff;
    background: rgba(23, 127, 156, .32);
    border-color: rgba(145, 238, 247, .95);
    transform: translateY(-2px);
}

/* Animations */
@keyframes hfFade {
    to { opacity: 1; transform: none; }
    from { opacity: 0; transform: translateY(12px); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-final { height: auto !important; min-height: auto !important; }
    .hero-final .hero-content { padding: 80px 20px 60px; text-align: center; }
    .hf-content-flex { transform: none; }
    .hf-text { max-width: 100% !important; }
    .hf-title { font-size: 18px; }
    .hf-title strong { font-size: 32px; }
    .hf-btn-wrap { justify-content: center; }
}
