/* 宣传首页：概览 Hero + 能力分区，头/中/底统一蓝调 */

:root {
    --home-bg: #0a1224;
    --home-bg-deep: #0b1530;
    --home-header: #0c1730;
    --home-line: rgba(148, 178, 255, 0.14);
    --home-text: rgba(232, 238, 252, 0.92);
    --home-muted: rgba(196, 210, 245, 0.72);
}

html:has(.page-home),
body:has(.page-home),
.page-home {
    background: var(--home-bg) !important;
}

.page-home.layui-layout-admin {
    background: var(--home-bg);
    min-height: 100vh;
}

/* 头部：与中间蓝调一致，避免纯黑 */
.page-home .layui-header {
    background: linear-gradient(180deg, #0e1a38 0%, var(--home-header) 100%) !important;
    border-bottom: 1px solid var(--home-line);
    box-shadow: none;
}

.page-home .layui-nav,
.page-home .layui-nav-child,
.page-home .layui-nav-child dd {
    background-color: transparent !important;
}

.page-home .layui-header .layui-nav .layui-nav-item > a,
.page-home .layui-logo {
    color: var(--home-text) !important;
}

.page-home .layui-header .layui-nav .layui-nav-item > a:hover,
.page-home .layui-header .layui-nav .layui-this > a {
    color: #fff !important;
    background-color: rgba(110, 161, 255, 0.12) !important;
}

.page-home .layui-nav .layui-this:after {
    background-color: #6ea1ff !important;
}

.page-home .layui-nav-child {
    background-color: #12203d !important;
    border: 1px solid var(--home-line);
}

.page-home .layui-nav-child dd a {
    color: var(--home-text) !important;
}

/* 中间内容区：为页脚留出空间，避免遮挡底部 */
.page-home .layui-body {
    padding: 0 !important;
    background: var(--home-bg) !important;
    overflow-x: hidden;
    overflow-y: auto;
    bottom: 48px !important;
}

/* 底部模块恢复可见，色调与中间一致 */
.page-home .layui-footer.site-footer {
    left: 0 !important;
    height: auto !important;
    min-height: 48px;
    line-height: 1.5;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    background: var(--home-bg-deep) !important;
    border-top: 1px solid var(--home-line) !important;
    color: var(--home-muted) !important;
    box-shadow: none;
}

.page-home .layui-footer.site-footer p {
    color: var(--home-muted) !important;
    margin: 0;
}

.home-overview {
    position: relative;
    color: #e8eefc;
    background: var(--home-bg);
    margin-bottom: 0;
    padding-bottom: 0;
}

.home-hero {
    position: relative;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Banner 轮播替换默认 hero */
.home-hero-banner {
    display: block;
    min-height: 0;
    padding: 0;
    background: #0a1224;
}

.home-banner {
    position: relative;
    width: 100%;
    height: clamp(168px, 28vw, 400px);
    overflow: hidden;
}

.home-banner-viewport {
    position: absolute;
    inset: 0;
}

.home-banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    z-index: 0;
}

.home-banner-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.home-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.home-banner-link--static {
    cursor: default;
}

.home-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.home-banner-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(8, 16, 36, 0.45);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, opacity 0.2s ease;
}

.home-banner-nav:hover {
    background: rgba(8, 16, 36, 0.7);
}

.home-banner-prev { left: 16px; }
.home-banner-next { right: 16px; }

.home-banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.home-banner-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.home-banner-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
    .home-banner-slide {
        transition: none;
    }
}

@media screen and (max-width: 640px) {
    .home-hero-banner,
    .home-banner {
        height: clamp(140px, 42vw, 220px);
    }

    .home-banner-nav {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .home-banner-prev { left: 8px; }
    .home-banner-next { right: 8px; }
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 600px at 75% 20%, rgba(61, 120, 255, 0.24), transparent 60%),
        radial-gradient(900px 500px at 15% 80%, rgba(70, 110, 210, 0.16), transparent 55%),
        linear-gradient(160deg, #0b1530 0%, #0c1836 45%, #0a1224 100%);
}

.home-hero-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    right: 8%;
    top: 18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 140, 255, 0.35), transparent 68%);
    filter: blur(20px);
    animation: homePulse 7s ease-in-out infinite;
    pointer-events: none;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    padding: 48px 0 56px;
}

.home-eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 178, 255, 0.28);
    background: rgba(255, 255, 255, 0.04);
    color: #b7c7ef;
    font-size: 13px;
    letter-spacing: 0.04em;
    animation: homeRise 0.6s ease both;
}

.home-title {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.15;
    font-weight: 700;
    color: #ffffff;
    animation: homeRise 0.7s ease 0.05s both;
}

.home-subtitle {
    margin: 0 0 32px;
    max-width: 540px;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(226, 234, 255, 0.72);
    animation: homeRise 0.75s ease 0.1s both;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    animation: homeRise 0.8s ease 0.15s both;
}

.home-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4d8dff 0%, #2f6df0 55%, #2559d6 100%);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(47, 109, 240, 0.38);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.home-btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 16px 36px rgba(47, 109, 240, 0.48);
    filter: brightness(1.05);
    color: #fff !important;
}

.home-btn-arrow {
    transition: transform 0.2s ease;
}

.home-btn-primary:hover .home-btn-arrow {
    transform: translateX(3px);
}

.home-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 13px 22px;
    border-radius: 999px;
    border: 1px solid rgba(170, 195, 255, 0.28);
    color: #d7e3ff !important;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.home-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(170, 195, 255, 0.5);
    color: #fff !important;
}

.home-btn-disabled {
    display: inline-flex;
    padding: 14px 24px;
    border-radius: 999px;
    color: rgba(226, 234, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-overview-visual {
    display: flex;
    justify-content: center;
    animation: homeRise 0.9s ease 0.12s both;
}

.home-visual-card {
    width: min(360px, 100%);
    padding: 36px 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(180, 200, 255, 0.22);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    text-align: center;
}

.home-visual-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    margin-bottom: 18px;
    box-shadow: 0 12px 30px rgba(20, 60, 160, 0.35);
}

.home-visual-name {
    font-size: 20px;
    font-weight: 650;
    color: #fff;
    margin-bottom: 16px;
}

.home-visual-line {
    height: 1px;
    margin: 0 auto 16px;
    width: 64%;
    background: linear-gradient(90deg, transparent, rgba(180, 205, 255, 0.55), transparent);
}

.home-visual-points {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.home-visual-points li {
    position: relative;
    padding: 8px 0 8px 18px;
    font-size: 14px;
    color: rgba(206, 218, 255, 0.8);
}

.home-visual-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6ea1ff;
    box-shadow: 0 0 10px rgba(110, 161, 255, 0.8);
}

.home-section {
    position: relative;
    padding: 72px 0;
    background: var(--home-bg);
}

.home-section-alt {
    background: linear-gradient(180deg, var(--home-bg-deep) 0%, var(--home-bg) 100%);
}

.home-section-inner {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.home-section-head {
    text-align: center;
    margin-bottom: 36px;
}

.home-section-head h2 {
    margin: 0 0 10px;
    font-size: clamp(24px, 3vw, 32px);
    color: #fff;
}

.home-section-head p {
    margin: 0;
    color: rgba(198, 212, 245, 0.65);
    font-size: 15px;
}

.home-highlights {
    background: linear-gradient(180deg, #0a1224 0%, var(--home-bg) 100%);
    padding-top: 56px;
}

.home-stat-grid,
.home-feature-grid,
.home-scene-grid {
    display: grid;
    gap: 16px;
}

.home-stat-grid {
    grid-template-columns: repeat(4, 1fr);
}

.home-feature-grid,
.home-scene-grid {
    grid-template-columns: repeat(3, 1fr);
}

.home-stat-card,
.home-feature-card,
.home-scene-card,
.home-advantage-item {
    border-radius: 18px;
    border: 1px solid rgba(148, 178, 255, 0.14);
    background: rgba(255, 255, 255, 0.035);
    padding: 22px 20px;
}

.home-stat-card {
    text-align: center;
    padding: 26px 16px;
}

.home-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #8eb6ff;
    margin-bottom: 8px;
}

.home-stat-label {
    font-size: 13px;
    color: rgba(206, 218, 255, 0.7);
    line-height: 1.5;
}

.home-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(77, 141, 255, 0.35), rgba(47, 109, 240, 0.15));
    color: #cfe0ff;
    font-weight: 700;
}

.home-feature-card h3,
.home-scene-card h3,
.home-advantage-item h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #fff;
}

.home-feature-card p,
.home-scene-card p,
.home-advantage-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: rgba(198, 212, 245, 0.72);
}

.home-advantage-list {
    display: grid;
    gap: 14px;
}

.home-advantage-item {
    padding: 22px 24px;
}

.home-cta-band {
    padding: 64px 20px 72px;
    margin: 0;
    background:
        radial-gradient(700px 280px at 50% 0%, rgba(61, 120, 255, 0.22), transparent 70%),
        var(--home-bg);
    text-align: center;
}

.home-cta-band-inner {
    width: min(720px, 100%);
    margin: 0 auto;
}

.home-cta-band h2 {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 34px);
    color: #fff;
}

.home-cta-band p {
    margin: 0 0 24px;
    color: rgba(198, 212, 245, 0.7);
    font-size: 15px;
    line-height: 1.7;
}

@keyframes homeRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homePulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

@media screen and (max-width: 960px) {
    .home-hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        width: min(100% - 32px, 640px);
        padding: 32px 0 40px;
    }

    .home-overview-visual {
        order: -1;
    }

    .home-stat-grid,
    .home-feature-grid,
    .home-scene-grid {
        grid-template-columns: 1fr;
    }

    .home-btn-primary,
    .home-btn-ghost {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (min-width: 641px) and (max-width: 960px) {
    .home-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-feature-grid,
    .home-scene-grid {
        grid-template-columns: 1fr 1fr;
    }
}
