/* =========================================================
   首页 Hero 首屏大图轮播区
   ========================================================= */

.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    min-height: 560px;
    overflow: hidden;
    background: var(--color-bg-dark);
}

/* 幻灯片容器 */
.hero__slides {
    position: absolute;
    inset: 0;
}
.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1200ms ease-in-out;
}
.hero__slide.is-active {
    opacity: 1;
    z-index: 1;
}

/* 背景图片 — 使用渐变遮罩叠加，保证文字可读 */
.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    transition: transform 8s ease-out;
}
.hero__slide.is-active .hero__bg {
    transform: scale(1);
}
/* 蓝色渐变遮罩 — 符合主色调 */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        rgba(11, 37, 69, 0.78) 0%,
        rgba(10, 61, 145, 0.48) 45%,
        rgba(10, 61, 145, 0.15) 100%
    );
}

/* 文案层 */
.hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}
.hero__copy {
    max-width: 600px;
    color: #fff;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 800ms ease 300ms, transform 800ms cubic-bezier(0.4,0,0.2,1) 300ms;
}
.hero__slide.is-active .hero__copy {
    opacity: 1;
    transform: translateY(0);
}
.hero__eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(77, 163, 255, 0.18);
    border: 1px solid rgba(77, 163, 255, 0.45);
    color: #BCD9FF;
    font-size: var(--font-size-caption);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: var(--space-5);
    backdrop-filter: blur(8px);
}
.hero__title {
    font-family: var(--font-serif);
    font-size: var(--font-size-hero);
    font-weight: var(--weight-bold);
    color: #fff;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-5);
    text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.hero__desc {
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.7;
    color: rgba(255,255,255,0.88);
    max-width: 500px;
    margin-bottom: var(--space-8);
    letter-spacing: 0.01em;
}
.hero__cta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}
/* Hero 上的 CTA 浅色版本 */
.hero .btn-primary {
    background: #fff;
    color: var(--color-primary);
}
.hero .btn-primary:hover {
    background: var(--color-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.hero .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.hero .btn-secondary:hover {
    background: rgba(255,255,255,0.14);
    border-color: #fff;
    color: #fff;
}

/* 轮播指示器 */
.hero__dots {
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero__dot {
    width: 32px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.35);
    transition: all var(--transition);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}
.hero__dot.is-active {
    background: #fff;
    width: 56px;
}
.hero__dot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
}
.hero__dot.is-active::before {
    transform: scaleX(1);
    transition: transform 6s linear;
}

/* 左右箭头 */
.hero__arrows {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    max-width: calc(var(--container-max) + 2 * var(--container-padding));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--container-padding);
}
.hero__arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    color: #fff;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    display: grid;
    place-items: center;
    pointer-events: auto;
    transition: all var(--transition);
    opacity: 0;
    transform: translateX(10px);
}
.hero:hover .hero__arrow { opacity: 1; transform: translateX(0); }
.hero__arrow--prev { transform: translateX(-10px); }
.hero:hover .hero__arrow--prev { transform: translateX(0); }
.hero__arrow:hover {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

/* 滚动提示 */
.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255,255,255,0.75);
    font-size: var(--font-size-caption);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    pointer-events: none;
}
.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    position: relative;
    overflow: hidden;
}
.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: #fff;
    animation: scroll-line 2.2s ease-in-out infinite;
}
@keyframes scroll-line {
    0%   { top: -50%; }
    60%  { top: 100%; }
    100% { top: 100%; }
}

/* =========================================================
   Hero 响应式
   ========================================================= */
@media (max-width: 768px) {
    .hero { min-height: 520px; }
    .hero__copy { max-width: 100%; }
    .hero__desc { max-width: 100%; }
    .hero__arrows { display: none; }
    .hero__scroll { display: none; }
    .hero__cta .btn { flex: 1; }
    .hero__overlay {
        background: linear-gradient(
            180deg,
            rgba(11, 37, 69, 0.7) 0%,
            rgba(10, 61, 145, 0.45) 50%,
            rgba(11, 37, 69, 0.85) 100%
        );
    }
}
