/* ==========================================================================
   Hero Carousel Widget - 与 111/css/main.css 原样式保持一致
   ========================================================================== */

.hero-carousel {
    position: relative;
    width: 100%;
    height: 56.25vw; /* 1080/1920 ratio */
    max-height: 100vh;
    overflow: hidden;
    background: #000;
}

.hero-slides {
    position: absolute;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide .bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 6s ease-out;
}

.hero-slide.active .bg {
    transform: scale(1);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    padding-left: clamp(16px, 4vw, 50px);
    padding-right: clamp(16px, 4vw, 50px);
    box-sizing: border-box;
}

.hero-content-inner {
    width: 1440px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    color: #fff;
    box-sizing: border-box;
}

.hero-tag {
    display: inline-block;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.2s;
}

.hero-title {
    font-size: 52px;
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 24px;
    max-width: 900px;
    white-space: pre-line;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.9s ease 0.4s;
}

.hero-desc {
    font-size: 18px;
    line-height: 1.5;
    max-width: 620px;
    margin: 0 0 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.9s ease 0.6s;
}

.hero-btn {
    display: inline-block;
    padding: 16px 40px;
    background: #ff7900;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.25s, transform 0.25s, opacity 0.9s ease 0.8s;
    opacity: 0;
    transform: translateY(30px);
}

.hero-btn:hover {
    background: #e66d00;
    transform: translateY(-2px);
}

.hero-slide.active .hero-tag,
.hero-slide.active .hero-title,
.hero-slide.active .hero-desc,
.hero-slide.active .hero-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s, border-color 0.25s;
}

.hero-arrow:hover {
    background: #ff7900;
    border-color: #ff7900;
}

.hero-arrow.prev { left: 40px; }
.hero-arrow.next { right: 40px; }
.hero-arrow svg { width: 22px; height: 22px; }

/* Pagination */
.hero-dots {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 12px;
}

.hero-dot {
    width: 36px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    transition: background 0.25s;
}

.hero-dot::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: #ff7900;
    transition: width 0s linear;
}

.hero-dot.active { background: rgba(255, 255, 255, 0.3); }

.hero-dot.active::after {
    width: 100%;
    transition: width 6s linear;
}

/* 顶部遮盖防止溢出 */
.hero-carousel {
    max-width: 100vw;
    overflow-x: clip;
}

@supports not (overflow-x: clip) {
    .hero-carousel {
        overflow-x: hidden;
    }
}

.hero-bg-video {
    object-fit: cover;
}

.hero-mobile-only {
    display: none;
}

@media (max-width: 900px) {
    .hero-carousel { height: 70vh; }
    .hero-slides { transition: none; }
    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    .hero-tag {
        font-size: 13px;
        margin-bottom: 12px;
    }
    .hero-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    .hero-desc {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    .hero-btn {
        font-size: 14px;
        padding: 10px 24px;
        margin-top: 16px;
    }
    .hero-arrow { display: none; }
    .hero-dots { bottom: 24px; }
    .hero-desktop-only { display: none; }
    .hero-mobile-only { display: block; }
}
