* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(145deg, #f0f7ff 0%, #e3eefc 100%);
    color: #0a2540;
    line-height: 1.5;
}

:root {
    --primary-blue: #0066cc;
    --deep-blue: #004a99;
    --dark-bg: #0b2b4f;
}

/* ========== 导航栏 ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 150px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,51,102,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,102,204,0.2);
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #0066cc;
    letter-spacing: 1px;
}

.logo-subtext {
    font-size: 12px;
    color: #4a6f8f;
    margin-top: -5px;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    align-items: center;
    font-weight: 500;
}

.nav-item {
    position: relative;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: #1a2b3c;
    transition: 0.2s;
    font-size: 1.05rem;
    position: relative;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.nav-link i {
    font-size: 12px;
    transition: transform 0.25s;
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), #4c9aff);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-blue);
}

/* ========== 关键修复：完美解决鼠标移动时菜单消失 ========== */
/* 1. 增加一个不可见的桥接区域（伪元素），填充分导航文字和下拉菜单之间的缝隙 */
.nav-item::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 18px;  /* 桥接区高度，覆盖间隙 */
    background: transparent;
    z-index: 199;
}

/* 2. 下拉菜单基础样式 + 延迟隐藏机制 */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background:var(--dark-bg);
    backdrop-filter: blur(16px);
    min-width: 260px;
    border-radius: 24px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.1s ease, visibility 0.1s ease, transform 0.1s ease;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 150, 255, 0.3);
    border: 1px solid rgba(0, 180, 255, 0.3);
}

/* 3. 核心修复：鼠标悬停时立即显示，并且延迟隐藏（通过transition-delay） */
.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    /* 取消延迟，立即显示 */
    transition-delay: 0s;
}

/* 4. 关键：当鼠标离开.nav-item时，延迟0.3秒隐藏，给用户足够时间移入菜单 */
.nav-item:not(:hover) .dropdown-menu {
    transition-delay: 0.1s;  /* 0.3秒延迟，足够鼠标从文字移动到菜单上 */
    transition-property: opacity, visibility, transform;
    transition-duration: 0.1s;
}

/* 5. 鼠标悬停在下拉菜单上时，强制保持显示（覆盖隐藏逻辑） */
.dropdown-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
    transition-delay: 0s !important;
}

/* 6. 同时，鼠标悬停在桥接区（::before）上时，也保持菜单显示 */
.nav-item:hover::before {
    /* 确保桥接区在悬停时联动 */
}

/* ========== 科技感阶梯动画（子菜单项依次淡入） ========== */
.dropdown-menu a {
    display: block;
    padding: 12px 24px;
    font-size: 0.95rem;
    color: #eef5ff;
    text-decoration: none;
    font-weight: 450;
    border-left: 3px solid transparent;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s, border-color 0.2s;
}

/* 当菜单显示时，子项依次入场 */
.nav-item:hover .dropdown-menu a {
    opacity: 1;
    transform: translateX(0);
}

/* 阶梯延迟 */
.dropdown-menu a:nth-child(1) { transition-delay: 0.01s; }
.dropdown-menu a:nth-child(2) { transition-delay: 0.04s; }
.dropdown-menu a:nth-child(3) { transition-delay: 0.07s; }
.dropdown-menu a:nth-child(4) { transition-delay: 0.10s; }
.dropdown-menu a:nth-child(5) { transition-delay: 0.13s; }
.dropdown-menu a:nth-child(6) { transition-delay: 0.16s; }
.dropdown-menu a:nth-child(7) { transition-delay: 0.19s; }
.dropdown-menu a:nth-child(8) { transition-delay: 0.22s; }

.dropdown-menu a:hover {
    background: rgba(0, 150, 255, 0.2);
    color: white;
    border-left: 3px solid var(--primary-blue);
    padding-left: 28px;
    backdrop-filter: blur(4px);
}

/* 科技感光效装饰 */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), #90e0ff, var(--primary-blue), transparent);
    border-radius: 24px 24px 0 0;
}

.dropdown-menu::after {
    content: '';
    position: absolute;
    bottom: 12px;
    right: 16px;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(0,102,204,0.15) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    border-radius: 50%;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .navbar { padding: 18px 60px; }
}
@media (max-width: 992px) {
    .navbar { flex-direction: column; gap: 16px; padding: 18px 24px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
    .dropdown-menu { left: 50%; transform: translateX(-50%) translateY(-8px) scale(0.98); }
    .nav-item:hover .dropdown-menu { transform: translateX(-50%) translateY(0) scale(1); }
    .nav-item::before { width: 100%; left: 0; }
}

/* Banner 样式 */
.banner {
    position: relative;
    width: 100%;
    height: 260px;
    background: linear-gradient(97deg, #0b2a4a 0%, #1b4a7a 100%);
    background-size: cover;
    background-position: center 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.banner h2 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.banner p {
    font-size: 1.4rem;
    max-width: 700px;
    background: rgba(0,0,0,0.2);
    padding: 8px 24px;
    border-radius: 60px;
    backdrop-filter: blur(3px);
}

/* 内容演示区 */
.content-demo {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 30px;
}

.card-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.demo-card {
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    padding: 28px;
    flex: 1;
    min-width: 260px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,102,204,0.25);
}

.demo-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.tip-badge {
    text-align: center;
    margin-top: 30px;
    background: rgba(0,102,204,0.1);
    padding: 12px;
    border-radius: 60px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    color: #0066cc;
}

/* Footer 样式 */
.footer-banner {
    background-color: var(--dark-bg);
    color: #deecff;
    padding: 40px 150px 20px;
    border-radius: 20px 20px 0 0;
    border-top: 2px solid #1f5891;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.4fr 1.2fr 1.2fr 1.6fr 1.2fr;
    gap: 25px;
    margin-bottom: 30px;
}

.footer-col h5 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 16px;
    font-weight: 600;
    border-left: 5px solid var(--primary-blue);
    padding-left: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #b8d1f0;
    text-decoration: none;
    transition: 0.2s;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info i {
    width: 24px;
    color: var(--primary-blue);
}

.copyright {
    border-top: 1px solid #204e7a;
    padding-top: 18px;
    text-align: center;
    color: #98b9e0;
    font-size: 0.9rem;
}

.copyright a {
    color: #98b9e0;
}

/* footer 专属美化 */
.footer-banner .footer-col:first-child .footer-logo {
    margin-bottom: 25px;
}

.footer-banner .footer-col:first-child .footer-logo-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-banner .footer-col:first-child .footer-logo-icon {
    width: 54px;
    height: 54px;
    background: #fff;
    background-size: contain;
    border-radius: 10px;
    box-shadow: 0 12px 22px -6px #00000060;
    border: 2px solid rgba(255,255,255,0.25);
}

.footer-banner .footer-col:first-child .footer-logo-text h3 {
    font-size: 2.0rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin: 0;
    letter-spacing: 1px;
}

.footer-banner .footer-col:first-child .footer-logo-text p {
    font-size: 0.95rem;
    color: #b0ccff;
    margin: 6px 0 0;
}

.footer-banner .footer-col:first-child h5 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.75;
    margin-bottom: 16px;
    border-left: none;
    padding-left: 0;
    color: #c4d6ff;
}

.footer-banner .footer-col:first-child .contact-info li {
    font-size: 1.0rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #f0f6ff;
}

.footer-banner .footer-col:first-child .contact-info i {
    font-size: 1.4rem;
    color: #6ea8ff;
}

.footer-banner .footer-col:first-child .contact-info li:last-child {
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
}

.footer-banner .footer-col:not(:first-child) ul li a,
.footer-banner .footer-col:not(:first-child) ul li {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.footer-banner .footer-col:not(:first-child) h5 {
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.copyright {
    font-size: 0.9rem;
    letter-spacing: 0.4px;
    opacity: 0.9;
    padding-top: 22px;
    margin-top: 5px;
}

/* 右侧悬浮 */
.float-contact {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
}

.float-item {
    position: relative;
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary-blue);
    box-shadow: 0 8px 20px rgba(0,40,80,0.25);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid rgba(255,255,255,0.8);
}

.float-item-price{
    position: relative;
    border: none;
    width: auto;
    height: auto;
    /*padding: 12px 28px;*/
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
    background: white;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
}

.float-item:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
    border-color: white;
}
.float-item-price:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
    border-color: white;
}

.float-card {
    position: absolute;
    right: 70px;
    top: 0;
    background: white;
    border-radius: 28px;
    padding: 20px 16px;
    box-shadow: 0 15px 30px rgba(0,40,80,0.3);
    border: 1px solid rgba(0,102,204,0.3);
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s ease;
    pointer-events: none;
    color: #0a2540;
}

.float-card-price {
    position: absolute;
    right: 0px;
    top: 70px;
    background: white;
    border-radius: 28px;
    padding: 20px 16px;
    box-shadow: 0 15px 30px rgba(0,40,80,0.3);
    border: 1px solid rgba(0,102,204,0.3);
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s ease;
    pointer-events: none;
    color: #0a2540;
}

.float-item.active .float-card {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.float-item.active .float-card,
.float-item-price.active .float-card-price {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.float-card::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid white;
}

.float-card-price::after {
    content: '';
    position: absolute;
    right: 35px;
    top: -9px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(0,102,204,0.3);
}

.float-card .qr-sim {
    min-width: 200px;
    margin: 10px auto 12px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    border: 3px solid white;
}

.float-card .contact-phone {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin: 10px 0 5px;
}

.float-card .small-note {
    font-size: 0.8rem;
    color: #4a6782;
}

.float-card h4 {
    font-size: 1.3rem;
    color: var(--deep-blue);
    margin-bottom: 5px;
}

/* banner 样式 */
.banner {
    position: relative;
    width: 100%;
    height: 260px;
    background: linear-gradient(97deg, #0b2a4a 0%, #1b4a7a 100%), url('./img/banner0.jpg');
    background-size: cover;
    background-position: center 30%;
    background-blend-mode: overlay;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 0;
}

.banner h2 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

.banner p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    font-weight: 300;
    background: rgba(0,0,0,0.2);
    padding: 8px 24px;
    border-radius: 60px;
    backdrop-filter: blur(3px);
}
/* ========= 回到顶部按钮独立样式 ========= */
.go-top-wrapper {
    position: fixed;
    bottom: 150px;
    right: 20px;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.go-top-wrapper.show {
    opacity: 1;
    visibility: visible;
}

.go-top-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0066cc 0%, #004a99 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.go-top-btn i {
    font-size: 20px;
    margin-bottom: 2px;
}

.go-top-text {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
}

.go-top-btn:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #004a99 0%, #003380 100%);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

/* 添加波纹效果 */
.go-top-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.go-top-btn:active::before {
    width: 100%;
    height: 100%;
}

/* 可选：添加进度环效果（显示滚动进度） */
.go-top-btn {
    position: relative;
    overflow: hidden;
}

.go-top-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
}

/* 小屏幕适配 */
@media (max-width: 768px) {
    .go-top-wrapper {
        bottom: 20px;
        right: 20px;
    }

    .go-top-btn {
        width: 44px;
        height: 44px;
    }

    .go-top-btn i {
        font-size: 18px;
    }

    .go-top-text {
        font-size: 9px;
    }
}

/* 如果右侧悬浮菜单可能遮挡，调整位置 */
@media (max-width: 480px) {
    .go-top-wrapper {
        bottom: 15px;
        right: 15px;
    }
}