/* ==================== 全局基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
}

/* 隐藏滚动条但允许滚动 */
::-webkit-scrollbar { display: none; }
html { scrollbar-width: none; }
body {
     -ms-overflow-style: none; 
     background-color: #f5f5f5;
    }

/* 可选：禁用弹性滚动 */
html, body { overscroll-behavior: none; }

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0);
    padding: 1.5rem 6rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}


.logo img {
    height: 60px; /* 根据实际需求调整 */
    width: auto; /* 保持比例 */
    vertical-align: middle; /* 垂直居中 */
    padding: 0;
}

.logo span {
    color: rgba(30,30,140,1);
}
.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    height: 100%;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: rgb(112, 112, 255);
    transition: width 0.3s;
    height: 4px; 
    /* 悬停时细线 */
}
.nav-links a:hover::after {
    width: 100%;
    height: 4px; /* 悬停时细线 */
}




/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;

}

.dropdown-content {
    display: none;
    position: absolute;
    top: 130%;             /* 下拉菜单出现在按钮下方 */
    left: 50%;

    background-color: #f9f9f9;
    /* min-width: 900px; */
    min-width:auto;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    padding: 1rem;
    border-radius: 4px;
    left: 50%;
    transform: translateX(-50%);
}

.dropdown-column {
    display: inline-block;
    vertical-align: top;
    width: 12rem;
    padding: 0 1rem;
}

.dropdown-column h4 {
    color: #2c3e50;
    margin: 0.5rem 0;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #ddd;
}

.dropdown-content a {
    color: #333;
    padding: 0.3rem 0;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    color: rgba(30,30,140,1);
    background-color: #f1f1f1;
}

.sub-item {
    padding-left: 1rem !important;
}

.sub-sub-item {
    padding-left: 2rem !important;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

.dropbtn::after {
    content: ' ▼';
    font-size: 0.8em;
}

    /* ==================== 页脚 ==================== */
    footer {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        color: white;
        padding: 60px 150px 30px;
        font-family: 'Arial', sans-serif;
    }
    
    .footer-content {
        max-width: 1500px;
        margin: 0 auto;
    }
    
    .footer-main {
        display: flex;
        gap: 50px;
        margin-bottom: 40px;
    }
    
    .footer-logo img {
        width: 180px;
        height: auto;
        border-radius: 5px;
    }
    
    .footer-info h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        color: #fff;
        position: relative;
        display: inline-block;
    }
    
    .footer-info h3:after {
        content: '';
        position: absolute;
        width: 60%;
        height: 3px;
        background: linear-gradient(to right, #4fc3f7, #9b59b6);
        bottom: -8px;
        left: 0;
        border-radius: 2px;
    }
    
    .footer-details {
        display: flex;
        gap: 80px;
    }
    
    .footer-contact p {
        margin-bottom: 15px;
        font-size: 1rem;
        color: rgba(255,255,255,0.8);
        display: flex;
        align-items: center;
    }
    
    .footer-contact i {
        margin-right: 10px;
        color: #4fc3f7;
        width: 20px;
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        transform: translateX(50rem);
    }
    
    .footer-links h4 {
        font-size: 1.2rem;
        margin-bottom: 15px;
        color: #fff;
    }
    
    .footer-links a {
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        margin-bottom: 10px;
        transition: all 0.3s ease;
    }
    
    .footer-links a:hover {
        color: #4fc3f7;
        transform: translateX(5px);
    }
    
    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 30px;
        border-top: 1px solid rgba(255,255,255,0.1);
        font-size: 0.9rem;
        color: rgba(255,255,255,0.6);
    }
    
    .footer-copyright {
        flex: 1;
    }
    
    .footer-icp {
        flex: 1;
        text-align: center;
    }
    
    .social-links {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        gap: 20px;
    }
    
    .social-links a {
        color: rgba(255,255,255,0.7);
        font-size: 1.2rem;
        transition: all 0.3s ease;
    }
    
    .social-links a:hover {
        color: #4fc3f7;
        transform: translateY(-3px);
    }
    
    @media (max-width: 992px) {
        footer {
            padding: 50px 80px 30px;
        }
        
        .footer-details {
            flex-direction: column;
            gap: 30px;
        }
    }
    
    @media (max-width: 768px) {
        footer {
            padding: 40px 30px 20px;
        }
        
        .footer-main {
            flex-direction: column;
            gap: 30px;
        }
        
        .footer-bottom {
            flex-direction: column;
            gap: 15px;
            text-align: center;
        }
        
        .footer-copyright, 
        .footer-icp {
            order: 2;
            width: 100%;
        }
        
        .social-links {
            order: 1;
            justify-content: center;
            margin-bottom: 20px;
        }
    }
/* ==================== 手机端样式 ==================== */

@media (max-width: 768px) {
    html {
        font-size: calc(12px + 0.5vw); /* 动态调整，最小 12px */
        -webkit-text-size-adjust: 100%; /* 禁用浏览器自动放大 */
    }
/* ==================== 全局导航栏 ==================== */
    .navbar {
        position: fixed;
        padding: 0 1.5rem;
        top: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .hamburger {
        display: block;
        color: rgba(30,30,140,1);
        padding: 8px;
        border-radius: 4px;
        transition: all 0.3s; /* 增强过渡效果 */
        background: rgba(255,255,255,0.1); /* 新增背景避免透明 */
        border: 1px solid rgba(255,255,255,0.3); /* 增加边框 */
    }
    
    .hamburger:hover {
        opacity: 0.8;
        background: rgba(255,255,255,0.2); /* 更明显的悬停状态 */
    }
    .footer-links {
        transform: none; /* 移除桌面端的偏移 */
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(51,51,51,0.98); /* 改为半透明背景 */
        backdrop-filter: blur(10px); /* 毛玻璃效果 */
        flex-direction: column;
        padding: 1rem 0; /* 减少内边距 */
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
        z-index: 999; /* 确保菜单在顶层 */
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease; /* 新增动画效果 */
        height: auto;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        min-width: 100%;
        transform: none;
    }
    
    .dropdown-column {
        width: 100%;
        padding: 0;
    }
    
    .dropdown:hover .dropdown-content {
        display: none;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    .nav-links a {
        padding: 1rem;
        width: calc(100% - 2rem); /* 防止边缘溢出 */
        margin: 0 1rem; 
        color: #fff; /* 明确字体颜色 */
        font-family: system-ui, -apple-system, sans-serif; /* 系统字体 */
        font-size: 1.1rem;
        border-radius: 6px;
      /*  background: rgba(51,51,51,0.98); /* 改为半透明背景 */
        transition: background 0.2s;
    }

    .nav-links a:hover {
        background: rgba(53, 52, 52, 0.1); /* 悬停反馈 */
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }


/* ==================== 产品展示模块 ==================== */
    .product-grid,
    .product-list-item {
        flex-direction: column;
        margin: 0 -1rem; /* 抵消容器边距 */
        width: calc(100% + 2rem); /* 防止横向溢出 */
    }
    
    .product-card {
      
        height: auto;
        min-width: 85vw; /* 限制最小宽度 */
        margin: 0 1rem; /* 增加安全边距 */
        box-sizing: border-box; /* 防止padding导致溢出 */
    }

    .product-list-image,
    .product-card-img-container {
        max-width: 100vw; /* 视图宽度限制 */
        margin-left: -1rem;
        margin-right: -1rem;
        aspect-ratio: 16/9;
        border-radius: 0; /* 移除圆角避免视觉溢出 */
    }
    
    .product-list {
        scroll-snap-type: x mandatory;
        overflow-x: auto;
        scroll-padding: 0 1rem; /* 滚动对齐修正 */
        -ms-overflow-style: none;  /* 隐藏滚动条 */
        scrollbar-width: none;
    }
    
    .product-list::-webkit-scrollbar {
        display: none;
    }
    
    .product-card {
        scroll-snap-align: start;
        flex: 0 0 85vw; /* 精确控制卡片宽度 */
        box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* 增加边界感 */
    }

    .view-detail-btn {
        display: flex;           /* 启用 Flex 布局 */
        justify-content: center; /* 水平居中 */
        align-items: center;     /* 垂直居中 */
        margin: 0 auto;          /* 水平居中备用方案 */
        background: rgba(30,30,140,1);
        color: white;
        padding: 10px 25px;
        border-radius: 5px;
        text-decoration: none;
        transition: all 0.3s;
    }
    
    .view-detail-btn:hover {
        background: rgba(30,30,140,1);
    }
/* ==================== 产品详情页 ==================== */
    .banner{
        margin: 0; /* 减少顶部间距 */
        padding: 0;
    }
    .product-detail {
        grid-template-columns: 1fr;
        margin-top: 60px; /* 减少顶部间距 */
        padding: 0;
        width: 100vw; /* 视图宽度限制 */
        box-sizing: border-box;
    }
    
    .spec-table {
        display: block;
        width: calc(100% - 2rem); /* 安全宽度 */
        margin: 0 1rem;
        overflow-x: auto;
        background: 
            linear-gradient(90deg, #fff 95%, rgba(255,255,255,0)),
            linear-gradient(-90deg, #fff 95%, rgba(255,255,255,0)); /* 滚动提示 */
    }
    
    .product-header h1 {
        font-size: clamp(1.6rem, 6vw, 2rem); /* 动态字体 */
        padding: 0 1rem; /* 安全边距 */
    }
    
    .product-content {
        padding: 0 1rem; /* 内容安全区 */
    }

/* ==================== 通用组件 ==================== */

    .banner-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem); /* 动态响应字体 */
        line-height: 1.2;
    }
    
    .product-specs {
        flex-direction: column;
        gap: 1rem; /* 使用相对单位 */
        padding: 0 1rem; /* 安全边距 */
    }
    
    .downloads {
        flex-direction: column;
        max-width: 100vw;
        overflow: hidden; /* 防止意外溢出 */
    }
    .nav-links > a,
    .dropbtn {
        color: blue !important;
    }
    
    @media (hover: none) and (pointer: coarse) {
    /* 移除悬停效果，因为移动端没有鼠标 */
    .nav-links a:hover::after {
        display: none;
    }
    
    /* 增大可点击区域 */
    .nav-links a, .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}


