/* ========================================
   Homepage Dedicated Styles - 首页独立样式与视觉统一
   Scoped under .home-page / .home-hero to avoid affecting other pages
   ======================================== */

.home-page {
    --home-primary: #0078d4;
    --home-primary-dark: #005a9e;
    --home-navy: #0f2942;
    --home-ink: #1c2f41;
    --home-muted: #5b6b79;
    --home-surface: #ffffff;
    --home-surface-alt: #f5f8fc;
    --home-border: #e4e9ed;
    --home-radius: 8px;
    --home-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    --home-shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.10);
    --home-section-padding: 64px;
    --home-heading-gap: 36px;
    color: var(--home-ink);
}

/* ========================================
   0. Back To Top Button (matches site style)
   ======================================== */
.home-page .scrollToTop {
    position: fixed;
    right: 5px;
    bottom: 5px;
    width: 50px;
    height: 50px;
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    cursor: pointer;
    z-index: 1005;
    display: none;
}

.home-page .scrollToTop i {
    line-height: 50px;
    font-size: 24px;
}

@media (max-width: 767px) {
    .home-page .scrollToTop {
        width: 40px;
        height: 40px;
        background-color: rgba(0, 0, 0, 0.4);
    }

    .home-page .scrollToTop i {
        line-height: 40px;
        font-size: 20px;
    }
}

/* ========================================
    1. Compact Enterprise Start Banner
   ======================================== */
.home-hero {
    --hx: 0px;
    --hy: 0px;
    --mx: 72%;
    --my: 42%;
    position: relative;
    overflow: hidden;
    background: #061429;
    border-bottom: 1px solid var(--home-border);
    padding: 48px 0 42px;
}

.home-hero__bg-list {
    position: absolute;
    inset: -16px;
    z-index: 0;
    overflow: hidden;
    transform: translate3d(var(--hx), var(--hy), 0);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.07);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 6s ease-out;
}

.home-hero__bg.is-active {
    opacity: 1;
    transform: scale(1);
}

.home-hero__glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(
        460px circle at var(--mx) var(--my),
        rgba(56, 189, 248, 0.18),
        rgba(0, 120, 212, 0.04) 45%,
        transparent 75%
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(5, 19, 38, 0.68) 0%,
        rgba(5, 19, 38, 0.32) 52%,
        rgba(5, 19, 38, 0.06) 100%
    );
    pointer-events: none;
}

.home-hero .container {
    position: relative;
    z-index: 2;
}

.home-hero__stage {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(310px, 42vh, 410px);
    padding: 8px 0 18px;
}

.home-hero__slides {
    display: grid;
    width: 100%;
    max-width: 740px;
}

.home-hero__slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.home-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-hero__title {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 40px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-hero__slide.is-active .home-hero__title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.06s;
}

.home-hero__title span {
    background: linear-gradient(90deg, #7dd3fc 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.home-hero__points li {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-hero__slide.is-active .home-hero__points li {
    opacity: 1;
    transform: translateY(0);
}

.home-hero__slide.is-active .home-hero__points li:nth-child(1) { transition-delay: 0.14s; }
.home-hero__slide.is-active .home-hero__points li:nth-child(2) { transition-delay: 0.20s; }
.home-hero__slide.is-active .home-hero__points li:nth-child(3) { transition-delay: 0.26s; }
.home-hero__slide.is-active .home-hero__points li:nth-child(4) { transition-delay: 0.32s; }

.home-hero__points li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.85);
    margin-right: 9px;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-hero__slide.is-active .home-hero__actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.34s;
}

.home-hero__btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 28px;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.65);
    background: rgba(0, 120, 212, 0.28);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.home-hero__btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transition: left 0.55s ease;
}

.home-hero__btn:hover::before,
.home-hero__btn:focus::before {
    left: 130%;
}

.home-hero__btn:hover,
.home-hero__btn:focus {
    background: var(--home-primary);
    border-color: #7dd3fc;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 120, 212, 0.42);
}

.home-hero__btn i {
    font-size: 13px;
    transition: transform 0.25s ease;
}

.home-hero__btn:hover i {
    transform: translateX(4px);
}

/* Prev / Next Carousel Arrows */
.home-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(6, 20, 41, 0.42);
    backdrop-filter: blur(8px);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.home-hero__arrow:hover,
.home-hero__arrow:focus-visible {
    background: var(--home-primary);
    border-color: #7dd3fc;
    transform: translateY(-50%) scale(1.06);
    outline: none;
}

.home-hero__arrow--prev {
    left: 18px;
}

.home-hero__arrow--next {
    right: 18px;
}

/* Subtle Capsule Progress Indicators */
.home-hero__dots {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.home-hero__dot {
    position: relative;
    width: 28px;
    height: 4px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.26);
    overflow: hidden;
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.25s ease;
}

.home-hero__dot:hover {
    background: rgba(255, 255, 255, 0.48);
}

.home-hero__dot.is-active {
    width: 52px;
    background: rgba(255, 255, 255, 0.26);
}

.home-hero__dot.is-active::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8, #22d3ee);
    transform-origin: left center;
    animation: heroProgress 5.5s linear forwards;
}

.home-hero.is-paused .home-hero__dot.is-active::after {
    animation-play-state: paused;
}

@keyframes heroProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* ========================================
   2. Unified Homepage Section Rhythm & Surfaces
   ======================================== */
.home-page .default-padding,
.home-page .core-values-area,
.home-page .history-area,
.home-page .team-area,
.home-page .certification-area,
.home-page .mvp-area,
.home-page .access-migration--home {
    padding: var(--home-section-padding) 0;
}

.home-page .bg-gray,
.home-page .home-gray,
.home-page .mvp-area--modern {
    background: var(--home-surface-alt) !important;
}

.home-page .home-white,
.home-page .about-area,
.home-page .blog-area,
.home-page .faq-area {
    background: var(--home-surface) !important;
}

.home-page .site-heading,
.home-page .section-title,
.home-page .fw-home-head {
    margin-bottom: var(--home-heading-gap);
}

.home-page .site-heading h2,
.home-page .section-title h2,
.home-page .fw-home-head h2 {
    color: var(--home-ink);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
}

.home-page .site-heading p,
.home-page .section-title p,
.home-page .fw-home-head p {
    color: var(--home-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* About section cleanup */
.home-page .about-area .side-bg {
    display: none;
}

.home-page .about-area .thumb img {
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow);
    width: 100%;
    height: auto;
}

/* Unified cards across homepage */
.home-page .value-card,
.home-page .team-intro-box,
.home-page .cert-card,
.home-page .mvp-item,
.home-page .blog-item {
    border-radius: var(--home-radius);
    border: 1px solid var(--home-border);
    box-shadow: var(--home-shadow);
    background: var(--home-surface);
}

.home-page .value-card:hover,
.home-page .cert-card:hover,
.home-page .mvp-item:hover,
.home-page .blog-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-shadow-hover);
    border-color: rgba(0, 120, 212, 0.35);
}

.home-page .value-card .icon,
.home-page .cert-card .cert-icon {
    background: #eaf4fd;
    color: var(--home-primary);
}

/* ========================================
   3. Lightweight Stats Band (replaces 574KB PNG)
   ======================================== */
.home-page .home-stats-section {
    background:
        radial-gradient(circle at 88% 20%, rgba(0, 180, 216, 0.22) 0%, rgba(0, 180, 216, 0) 40%),
        linear-gradient(135deg, #0c2540 0%, #0e3b68 55%, #0067b8 100%) !important;
    position: relative;
    overflow: hidden;
}

.home-page .home-stats-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

.home-page .home-stats-section .container {
    position: relative;
    z-index: 1;
}

.home-page .home-stats-section .site-heading h2 {
    color: #ffffff;
}

.home-page .home-stats-section .site-heading p {
    color: rgba(255, 255, 255, 0.84);
}

.home-page .home-stats-section .stats {
    background: none !important;
    min-height: 0;
    padding: 0;
}

.home-page .home-stats-section .stats::before {
    display: none;
}

.home-page .home-stats-section .stats-grid {
    border-radius: var(--home-radius);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: none;
    padding: 24px 16px;
}

.home-page .home-stats-section .stats-grid:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-3px);
}

/* ========================================
   4. FAQ & Utility Styles (extracted from Default.aspx)
   ======================================== */
.faq-area .panel-group {
    margin-bottom: 0;
}

.faq-area .panel-default {
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.faq-area .panel-default > .panel-heading {
    background: #ffffff;
    border-radius: var(--home-radius);
    padding: 0;
}

.faq-area .panel-title a {
    display: block;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--home-ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-area .panel-title a:hover {
    color: var(--home-primary);
}

.faq-area .panel-title a i {
    color: var(--home-primary);
    margin-right: 10px;
}

.faq-area .panel-body {
    padding: 14px 24px 20px;
    color: var(--home-muted);
    line-height: 1.8;
    font-size: 15px;
}

.faq-area .panel-body p {
    margin: 0;
}

/* ========================================
   5. Responsive Adjustments
   ======================================== */
@media (max-width: 991px) {
    .home-page {
        --home-section-padding: 48px;
        --home-heading-gap: 32px;
    }

    .home-hero {
        padding: 36px 0;
    }

    .home-hero__stage {
        min-height: 285px;
        padding: 0;
    }

    .home-hero__arrow {
        display: none;
    }

    .home-hero__title {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .home-page {
        --home-section-padding: 40px;
        --home-heading-gap: 28px;
    }

    .home-hero {
        padding: 28px 0;
    }

    .home-hero__stage {
        min-height: 265px;
    }

    .home-hero__bg {
        background-position: 72% center;
    }

    .home-hero__overlay {
        background: linear-gradient(90deg, rgba(5, 19, 38, 0.78), rgba(5, 19, 38, 0.6));
    }

    .home-hero__title {
        font-size: 25px;
    }

    .home-hero__actions .home-hero__btn {
        width: 100%;
    }

    .home-page .site-heading h2,
    .home-page .section-title h2,
    .home-page .fw-home-head h2 {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__bg-list,
    .home-hero__bg,
    .home-hero__slide,
    .home-hero__title,
    .home-hero__points li,
    .home-hero__actions,
    .home-hero__btn,
    .home-hero__dot,
    .home-hero__dot.is-active::after {
        transition: none;
        animation: none;
        transform: none;
    }
}
