/* ===== 全局科技风变量 ===== */
:root {
    --color-dark: #050812;
    --color-blue-main: #0099ff;
    --color-blue-light: #40bfff;
    --color-neon: #00e5ff;
    --color-gray: #94a3b8;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft Yahei", sans-serif;
    background-color: var(--color-dark);
    color: #fff;
    overflow-x: hidden;
}
/* ===== 粒子背景 ===== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
/* ===== 雷达扫描动画 ===== */
.radar-box {
    position: relative;
    width: 420px;
    height: 420px;
    margin: 0 auto;
}
.radar-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0,153,255,0.2);
    position: absolute;
    top: 0;
    left: 0;
}
.radar-circle:nth-child(2) { transform: scale(0.8); }
.radar-circle:nth-child(3) { transform: scale(0.6); }
.radar-circle:nth-child(4) { transform: scale(0.4); }
.radar-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(transparent 60%, rgba(0,229,255,0.25));
    animation: scan 6s linear infinite;
}
@keyframes scan {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* ===== 霓虹发光文字 ===== */
.text-neon {
    text-shadow: 0 0 8px rgba(0,229,255,0.8), 0 0 20px rgba(0,153,255,0.5);
}
/* ===== 卡片悬浮科技效果 ===== */
.tech-card {
    background: rgba(0,30,60,0.35);
    border: 1px solid rgba(0,153,255,0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.tech-card:hover {
    border-color: var(--color-neon);
    box-shadow: 0 0 25px rgba(0,229,255,0.25);
    transform: translateY(-6px);
}
/* ===== 按钮科技效果 ===== */
.btn-tech {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-blue-main);
    transition: all 0.3s;
}
.btn-tech:hover {
    background: rgba(0,153,255,0.2);
    box-shadow: 0 0 15px rgba(0,153,255,0.4);
}
/* ===== 滚动动画 ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}
.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}
/* ===== 导航悬浮 ===== */
.nav-fixed {
    background: rgba(5,8,18,0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
    .radar-box { width: 280px; height: 280px; }
}

/* ================================================================
   以下是保留自原网站样式的功能模块
   ================================================================ */

/* 语言切换下拉框（适配深色主题） */
.lang-select {
    background: transparent;
    border: 1px solid rgba(0,229,255,0.3);
    color: #94a3b8;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}
.lang-select:hover {
    border-color: #00e5ff;
}
.lang-select option {
    background: #0a1628;
    color: #fff;
}

/* 悬浮 WhatsApp 按钮（保持不变） */
.float-whatsapp {
    position: fixed;
    right: 25px;
    bottom: 30px;
    width: 55px;
    height: 55px;
    background: #25D366;
    border-radius: 50%;
    text-align: center;
    line-height: 55px;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 998;
    transition: transform 0.2s;
}
.float-whatsapp:hover {
    transform: scale(1.05);
}

/* 多语言内容默认隐藏（由 JS 切换显示） */
.lang-en, .lang-ru {
    display: none;
}

/* ================================================================
   可选：保持页脚链接颜色等通用样式
   ================================================================ */

footer a {
    color: #94a3b8;
    transition: color 0.2s;
}
footer a:hover {
    color: #00e5ff;
}

/* ===== 产品卡片 - 悬停渐变色效果 ===== */
.product-gradient-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,20,40,0.5);
    border: 1px solid rgba(0,153,255,0.15);
    transition: all 0.4s ease;
    cursor: pointer;
}
.product-gradient-card .card-inner {
    position: relative;
    z-index: 2;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.product-gradient-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,153,255,0.1), rgba(0,229,255,0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}
.product-gradient-card:hover::before {
    opacity: 1;
}
.product-gradient-card:hover {
    border-color: rgba(0,229,255,0.4);
    transform: translateY(-6px);
    box-shadow: 0 0 30px rgba(0,229,255,0.1);
}
.product-gradient-card:hover .card-inner h4 {
    color: #00e5ff;
}
.product-gradient-card .card-inner h4 {
    transition: color 0.3s ease;
}


/* ===== 科技感标题文字（复刻图片效果） ===== */
.drone-title{
    font-size: 36px;
    font-weight: 900;
    color: #22ccff;
    letter-spacing: 4px;
    /* 多层光晕复刻原图发光层级 */
    text-shadow:
    0 0 10px #24d0ff,
    0 0 26px #00aaff,
    0 0 55px rgba(0, 150, 255, 0.75),
    0 8px 12px rgba(0,80,160,0.4);
    /* 响应式适配 */
    line-height: 1.2;
    margin-bottom: 8px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .drone-title {
        font-size: 24px;
        letter-spacing: 2px;
    }
}

/* ===== 图片铺满卡片 - 悬停动画 ===== */
.product-cover-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}
.product-cover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,229,255,0.15);
}

/* ===== 方案：动画图文解决方案卡片 ===== */
.solve-card {
    border-radius: 18px;
    overflow: hidden;
    background: #152033;
    transition: all 0.35s ease-out;
    position: relative;
    border: 1px solid rgba(0,153,255,0.1);
    height: 100%;
}
.solve-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 35px rgba(0,110,255,0.45);
    border-color: rgba(0,229,255,0.3);
}

.img-wrap {
    overflow: hidden;
    height: 220px;
    position: relative;
    background: #0f1a2e;
}
.solve-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.solve-card:hover .solve-img {
    transform: scale(1.08);
}

/* 图片占位背景色（图片加载失败时显示） */
.bg-img1 { background: linear-gradient(135deg, #0f3460, #1a4a7a); }
.bg-img2 { background: linear-gradient(135deg, #1a508b, #2a6aa8); }
.bg-img3 { background: linear-gradient(135deg, #006978, #0088a0); }

.card-body {
    padding: 26px 24px;
}

/* ===== 滚动入场动画（已在 tech.js 中支持，这里作为补充） ===== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
    .img-wrap {
        height: 160px;
    }
    .card-body {
        padding: 18px 16px;
    }
    .card-body h4 {
        font-size: 1.1rem;
    }
}

/* ===== 解决方案卡片 ===== */
.solve-card {
    border-radius: 18px;
    overflow: hidden;
    background: #152033;
    transition: all 0.35s ease-out;
    border: 1px solid rgba(0,153,255,0.1);
    height: 100%;
}
.solve-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 35px rgba(0,110,255,0.45);
    border-color: rgba(0,229,255,0.3);
}
.img-wrap {
    overflow: hidden;
    height: 220px;
    position: relative;
    background: #0f1a2e;
}
.solve-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.solve-card:hover .solve-img {
    transform: scale(1.08);
}
.bg-img1 { background: linear-gradient(135deg, #0f3460, #1a4a7a); }
.bg-img2 { background: linear-gradient(135deg, #1a508b, #2a6aa8); }
.bg-img3 { background: linear-gradient(135deg, #006978, #0088a0); }
.card-body {
    padding: 26px 24px;
}

/* ===== 分层星体 + 星云背景 ===== */
.star-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at 20% 20%, rgba(8,25,60,0.35) 0%, transparent 45%),
                radial-gradient(ellipse at 80% 70%, rgba(5,22,48,0.3) 0%, transparent 45%);
}
.star {
    position: absolute;
    border-radius: 50%;
    background-color: #ffffff;
    animation: twinkle ease-in-out infinite;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.65; }
}

/* ===== 导航留白（为固定导航预留95px） ===== */
.main-content {
    padding-top: 95px !important;
}

/* ===== 产品中心专用样式 ===== */
.product-wrap {
    padding-top: 95px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 100px;
    position: relative;
    z-index: 2;
}
.title-main {
    text-align: center;
    font-size: 38px;
    text-shadow: 0 0 14px #42baff;
    margin-bottom: 20px;
}
.title-desc {
    text-align: center;
    font-size: 18px;
    color: #93b9da;
    margin-bottom: 48px;
}

/* 分类标签栏 */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.tab-item {
    border: 1px solid #2878bc;
    color: #82c8ff;
    padding: 10px 26px;
    border-radius: 30px;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    transition: 0.25s;
}
.tab-item.active {
    background: #0077dd;
    border-color: #0077dd;
    color: #fff;
}
.tab-item:hover:not(.active) {
    background: rgba(0,119,221,0.18);
}


.pro-btn {
    border: 1px solid #34a0ec;
    color: #62ccff;
    padding: 8px 20px;
    border-radius: 8px;
    background: transparent;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s;
}
.pro-btn:hover {
    background: rgba(0,136,255,0.15);
    border-color: #62ccff;
}

/* ===== 导航栏多语言布局（精准修复） ===== */
/* 仅桌面端生效（≥1024px） */
@media (min-width: 1024px) {
    [class*="hidden lg:flex"] {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0.75rem !important;
        overflow: visible !important;
    }

    [class*="hidden lg:flex"] a,
    [class*="hidden lg:flex"] .nav-dropdown {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        padding: 0.4rem 0.5rem !important;
        font-size: 0.9rem !important;
        color: #e5e7eb !important;
        transition: color 0.2s ease;
    }

    [class*="hidden lg:flex"] a:hover {
        color: #00e5ff !important;
    }

    [class*="hidden lg:flex"] .nav-dropdown {
        display: inline-block !important;
    }
}

/* 移动端强制隐藏桌面导航（备选保险） */
@media (max-width: 1023px) {
    nav.hidden.lg\:flex {
        display: none !important;
    }
}
/* ===== 移动端导航栏修复（追加） ===== */

/* 1. 强制移动端菜单默认隐藏 */
#mobileMenu.hidden {
    display: none !important;
}

/* 2. 移动端菜单显示时（移除 hidden 类） */
#mobileMenu:not(.hidden) {
    display: block !important;
}

/* 3. 汉堡按钮：移动端显示，桌面端隐藏 */
#mobileMenuBtn {
    display: block !important;
}

@media (min-width: 1024px) {
    #mobileMenuBtn {
        display: none !important;
    }
}

/* 4. 移动端菜单内部样式优化（可选） */
@media (max-width: 1023px) {
    #mobileMenu {
        background: rgba(10, 22, 40, 0.98) !important;
        backdrop-filter: blur(8px);
        border-top: 1px solid rgba(0, 229, 255, 0.15);
        padding: 1rem 1.5rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
    }
    #mobileMenu a {
        font-size: 1rem !important;
        padding: 0.6rem 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    #mobileMenu .sub-menu a {
        font-size: 0.9rem !important;
        padding: 0.4rem 0 !important;
        border-bottom: none;
    }
}
/* ===== 语言切换文字链接（桌面端悬停效果） ===== */
.lang-link {
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s ease;
}
.lang-link:hover {
    color: #00e5ff;          /* 悬停时变为霓虹蓝 */
}
.lang-link.active {
    color: #00e5ff;
    font-weight: 600;
}
.lang-divider {
    color: #4a5568;
}