/* 全局样式 */
body {
    background: linear-gradient(135deg, #f8fbff 0%, #f0f8ff 100%);
    font-family: 'Noto Sans SC', 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #2A4E6B 0%, #1e3a50 100%);
    box-shadow: 0 2px 20px rgba(42, 78, 107, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1030; /* 确保导航栏在最上层 */
}
.navbar-brand, .nav-link, .navbar-toggler {
    color: #fff !important;
    transition: all 0.3s ease;
}
.navbar-brand:hover, .nav-link:hover {
    color: #00C4A9 !important;
    transform: translateY(-1px);
}

/* 下拉菜单样式 */
.navbar .dropdown-menu {
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(42, 78, 107, 0.2);
    padding: 10px 0;
    margin-top: 8px;
    z-index: 1031 !important; /* 确保下拉菜单在导航栏之上 */
    position: absolute !important;
}
.navbar .dropdown-item {
    color: #2A4E6B;
    padding: 8px 20px;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 2px 8px;
}
.navbar .dropdown-item:hover {
    background: linear-gradient(135deg, #00C4A9 0%, #00a693 100%);
    color: #fff;
    transform: translateX(5px);
}
.navbar .dropdown-divider {
    border-color: rgba(0, 196, 169, 0.2);
    margin: 8px 16px;
}

/* 确保导航栏下拉菜单不被其他元素遮挡 */
.navbar-nav .dropdown-menu {
    z-index: 1050 !important;
}

/* 修复移动端下拉菜单定位问题 */
.navbar-nav .dropdown {
    position: relative;
}

/* 全局强制修复下拉菜单定位 - 适用于所有屏幕尺寸 */
@media (max-width: 1199.98px) {
    /* 默认隐藏下拉菜单 */
    .navbar-collapse .dropdown-menu {
        position: static !important;
        float: none !important;
        width: auto !important;
        margin-top: 5px !important;
        margin-bottom: 10px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border: none !important;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1) !important;
        border-radius: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 5px 0 !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    /* 只有当显示时才显示下拉菜单 */
    .navbar-collapse .dropdown-menu.show {
        position: static !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* 移动端导航栏样式优化 */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar-collapse {
        background: linear-gradient(135deg, #2A4E6B 0%, #1e3a50 100%);
        border-radius: 15px;
        margin-top: 10px;
        padding: 15px;
        box-shadow: 0 8px 30px rgba(42, 78, 107, 0.3);
        border: 1px solid rgba(0, 196, 169, 0.2);
    }

    /* 强制覆盖Bootstrap的下拉菜单样式 */
    .navbar .navbar-nav .dropdown-menu {
        position: static !important;
        float: none !important;
        width: auto !important;
        margin-top: 5px !important;
        margin-bottom: 10px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border: none !important;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1) !important;
        border-radius: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 5px 0 !important;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* 只有当显示时才显示下拉菜单 */
    .navbar .navbar-nav .dropdown-menu.show {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* 强制覆盖Bootstrap的下拉菜单项样式 */
    .navbar .navbar-nav .dropdown-item {
        padding: 8px 20px !important;
        color: #2A4E6B !important;
        font-size: 0.9rem !important;
        border-radius: 8px !important;
        margin: 2px 10px !important;
        transition: all 0.3s ease !important;
        background: transparent !important;
    }

    .navbar .navbar-nav .dropdown-item:hover,
    .navbar .navbar-nav .dropdown-item:focus {
        background: linear-gradient(135deg, #00C4A9 0%, #00a693 100%) !important;
        color: white !important;
        transform: none !important;
    }

    .navbar .navbar-nav .dropdown-divider {
        margin: 8px 20px !important;
        border-color: rgba(42, 78, 107, 0.2) !important;
    }

    /* 确保导航链接在移动端有足够的点击区域 */
    .navbar-nav .nav-link {
        padding: 10px 15px;
        border-radius: 8px;
        margin: 2px 0;
        transition: all 0.3s ease;
    }

    .navbar-nav .nav-link:hover {
        background: rgba(0, 196, 169, 0.1);
        transform: none;
    }

    /* 这个规则已经在上面定义了，删除重复 */
}

/* 按钮样式 */
.cta-btn {
    background: linear-gradient(135deg, #00C4A9 0%, #00a693 100%);
    color: #fff;
    border-radius: 50px;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 196, 169, 0.3);
}
.cta-btn:hover {
    background: linear-gradient(135deg, #2A4E6B 0%, #1e3a50 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 78, 107, 0.4);
}

/* 主视觉区样式 */
.hero-gradient {
    background: linear-gradient(135deg, #2A4E6B 0%, #1e3a50 30%, #00C4A9 100%);
    color: white;
    padding: 100px 0 80px 0;
    margin-bottom: 50px;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}
.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}
.hero-gradient .container {
    position: relative;
    z-index: 1;
}

/* 特色图标样式 */
.value-icons i {
    font-size: 3.5rem;
    color: #00C4A9;
    text-shadow: 0 2px 10px rgba(0, 196, 169, 0.3);
    transition: all 0.3s ease;
}
.value-icons .col {
    text-align: center;
    transition: all 0.3s ease;
}
.value-icons .col:hover {
    transform: translateY(-5px);
}
.value-icons .col:hover i {
    transform: scale(1.1);
    color: #fff;
}

/* 卡片样式 */
.card-feature {
    border: none;
    border-radius: 25px;
    box-shadow: 0 5px 30px rgba(0, 196, 169, 0.1);
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}
.card-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 196, 169, 0.1), transparent);
    transition: left 0.5s ease;
}
.card-feature:hover::before {
    left: 100%;
}
.card-feature:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 196, 169, 0.2);
}

/* 行业解决方案样式 */
.industry-block {
    background: linear-gradient(135deg, #e6f7f4 0%, #d1f2eb 100%);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.industry-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #00C4A9, #2A4E6B);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.industry-block:hover::before {
    opacity: 0.1;
}
.industry-block:hover {
    background: linear-gradient(135deg, #caf0e9 0%, #b8ede0 100%);
    transform: translateY(-8px) scale(1.05);
    border-color: #00C4A9;
    box-shadow: 0 10px 30px rgba(0, 196, 169, 0.3);
}
.industry-block > * {
    position: relative;
    z-index: 1;
}

/* 安全合规样式 */
.security-section {
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
    border-radius: 25px;
    box-shadow: 0 5px 30px rgba(42, 78, 107, 0.1);
    padding: 40px 30px;
    border: 1px solid rgba(0, 196, 169, 0.1);
}

/* 设备展示样式 */
.device-showcase {
    padding: 40px 0;
}
.device-icon {
    font-size: 4rem;
    color: #2A4E6B;
    margin: 0 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.device-icon:hover {
    color: #00C4A9;
    transform: translateY(-5px) scale(1.1);
}

/* 客户见证样式 */
.testimonial {
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    position: relative;
    border-left: 4px solid #00C4A9;
    transition: all 0.3s ease;
}
.testimonial::before {
    content: "\201C";
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 80px;
    color: #00C4A9;
    font-family: serif;
    opacity: 0.2;
}
.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 196, 169, 0.15);
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #2A4E6B 0%, #1e3a50 100%);
    color: #fff;
    padding: 50px 0 20px 0;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00C4A9 0%, #2A4E6B 50%, #00C4A9 100%);
}
.footer a {
    color: #00C4A9;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer a:hover {
    color: #fff;
    transform: translateX(5px);
}
.footer h6 {
    color: #00C4A9;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}
.footer h6::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #00C4A9;
}

/* 徽章样式 */
.badge-icon {
    font-size: 2.5rem;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    color: #2A4E6B;
    margin: 10px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}
.badge-icon:hover {
    background: linear-gradient(135deg, #00C4A9 0%, #00a693 100%);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
}

/* 盾牌图标样式 */
.shield {
    font-size: 2.5rem;
    color: #00C4A9;
    margin-right: 15px;
    text-shadow: 0 2px 10px rgba(0, 196, 169, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-gradient {
        padding: 60px 0 40px 0;
        border-radius: 0 0 30px 30px;
    }
    .value-icons i {
        font-size: 2.5rem;
    }
    .device-icon {
        font-size: 3rem;
        margin: 0 10px;
    }
    .industry-block {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    .testimonial {
        padding: 20px;
    }
    .security-section {
        padding: 30px 20px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00C4A9 0%, #2A4E6B 100%);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2A4E6B 0%, #00C4A9 100%);
}