/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局样式 */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-placeholder {
    width: 150px;
    height: 40px;
    background-color: #1890FF;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.navbar-nav ul {
    display: flex;
    list-style: none;
    font-size: 1.5em;
}

.navbar-nav li {
    margin-left: 20px;
}

.navbar-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: #1890FF;
}

.navbar-toggle {
    display: none;
    cursor: pointer;
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Banner 样式 */
.banner {
    background: linear-gradient(135deg, #0a2463, #1e3a8a, #3b82f6);
    color: #fff;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="80" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="30" cy="70" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="70" cy="30" r="1.2" fill="rgba(255,255,255,0.07)"/></svg>');
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #fff;
    color: #1890FF;
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #1890FF;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #40a9ff;
    transform: translateY(-2px);
}

/* 核心优势样式 */
.advantages {
    padding: 80px 0;
    background-color: #fff;
}

.advantages h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2rem;
    color: #333;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.advantage-icon {
    margin-bottom: 20px;
}

.icon-placeholder {
    width: 60px;
    height: 60px;
    background-color: #1890FF;
    border-radius: 50%;
    margin: 0 auto;
}

.advantage-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.advantage-card p {
    color: #666;
}

/* 产品概览样式 */
.products-overview {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.products-overview h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2rem;
    color: #333;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image {
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.product-card h3 {
    padding: 20px;
    padding-bottom: 10px;
    color: #333;
}

.product-card p {
    padding: 0 20px;
    padding-bottom: 20px;
    color: #666;
    min-height: 80px;
}

.product-card .btn {
    margin: 0 20px 20px;
    display: block;
    text-align: center;
}

/* 案例/信任区域样式 */
.trust {
    padding: 60px 0;
    background-color: #1890FF;
    color: #fff;
    text-align: center;
}

.trust p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #0f172a, #1e293b, #334155);
    color: #fff;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-info {
    margin-bottom: 30px;
}

.footer-info h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-info p {
    margin-bottom: 10px;
}

.footer-copyright {
    border-top: 1px solid #444;
    padding-top: 20px;
    width: 100%;
    /* 确保版权信息在移动设备上正确换行 */
    word-break: normal;
    text-align: center;
}

/* 页面标题样式 */
.page-header {
    background: linear-gradient(135deg, #0a2463, #1e3a8a, #3b82f6);
    color: #fff;
    padding: 120px 0 40px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="80" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="30" cy="70" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="70" cy="30" r="1.2" fill="rgba(255,255,255,0.07)"/></svg>');
    animation: pulse 3s infinite;
}

.page-header h1 {
    font-size: 2.5rem;
}

/* 产品详情页面样式 */
.product-detail {
    padding: 60px 0;
    background-color: #fff;
}

.product-detail:nth-child(even) {
    background-color: #f5f5f5;
}

.product-detail h2 {
    margin-bottom: 30px;
    color: #333;
}

.product-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    position: relative;
    width: 100%;
    z-index: 1;
}

.product-media {
    flex: 1;
    min-width: 300px;
    z-index: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-video {
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.product-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
    min-width: 300px;
    z-index: 2;
    position: relative;
}

.video-placeholder {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: 8px;
}

/* 视频元素样式 */
video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    /* Edge浏览器兼容性修复 */
    background-color: #000;
    /* 确保视频在Edge中正确渲染 */
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    /* 解决Edge视频黑屏问题 */
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    -ms-perspective: 1000px;
    perspective: 1000px;
}

/* 视频容器样式 */
.product-video {
    position: relative;
    overflow: hidden;
    /* Edge浏览器兼容性修复 */
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    z-index: 1;
    /* 解决Edge视频黑屏问题 */
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    -ms-perspective: 1000px;
    perspective: 1000px;
}

.product-info {
    flex: 1;
    min-width: 300px;
}

.product-info h3 {
    margin-bottom: 15px;
    color: #333;
}

.product-info ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.product-info li {
    margin-bottom: 10px;
    color: #666;
}

.tech-specs {
    width: 100%;
    border-collapse: collapse;
}

.tech-specs th,
.tech-specs td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.tech-specs th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #333;
}

.tech-specs tr:hover {
    background-color: #f5f5f5;
}

/* 公司简介样式 */
.company-intro {
    padding: 60px 0;
    background-color: #fff;
}

.company-intro h2 {
    margin-bottom: 30px;
    color: #333;
}

.company-intro p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

.company-intro ul {
    padding-left: 20px;
    margin-top: 30px;
}

.company-intro li {
    margin-bottom: 15px;
    color: #666;
}

/* 团队介绍样式 */
.team {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.team h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2rem;
    color: #333;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.team-member {
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    width: calc(14.28% - 10px);
    min-width: 150px;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.member-avatar {
    margin-bottom: 20px;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    background-color: #1890FF;
    border-radius: 50%;
    margin: 0 auto;
}

.team-member h3 {
    margin-bottom: 5px;
    color: #333;
}

.member-position {
    color: #1890FF;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.member-desc {
    color: #666;
    font-size: 0.9rem;
}

/* 联系信息样式 */
.contact-info {
    padding: 60px 0;
    background-color: #fff;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-details {
    flex: 1;
    min-width: 300px;
}

.contact-details h2 {
    margin-bottom: 30px;
    color: #333;
}

.contact-details ul {
    list-style: none;
}

.contact-details li {
    margin-bottom: 20px;
    color: #666;
    font-size: 1.1rem;
}

.wechat-qr {
    flex: 1;
    min-width: 300px;
}

.wechat-qr h2 {
    margin-bottom: 30px;
    color: #333;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        padding: 20px 0;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .navbar-nav.active {
        transform: translateY(0);
    }

    .navbar-nav ul {
        flex-direction: column;
        align-items: center;
        font-size: 1.2em;
    }

    .navbar-nav li {
        margin: 10px 0;
    }

    .navbar-nav a {
        font-size: 1rem;
    }

    .navbar-toggle {
        display: block;
    }

    .banner h1 {
        font-size: 2rem;
    }

    .banner p {
        font-size: 1rem;
    }

    .advantages h2,
    .products-overview h2,
    .team h2 {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .product-content,
    .contact-content {
        flex-direction: column;
    }

    /* 确保移动设备上图片和视频在上，文字内容在下 */
    .product-media {
        order: 1;
        z-index: 1;
        position: relative;
        width: 100%;
    }

    .product-image {
        width: 100%;
        height: auto;
        max-height: 300px;
        overflow: hidden;
    }

    .product-video {
        width: 100%;
        height: 250px;
        overflow: hidden;
        margin-top: 10px;
    }

    .product-info {
        order: 2;
        z-index: 100;
        margin-top: 20px;
        background-color: #fff !important;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        position: relative;
        width: 100%;
        clear: both;
        display: block;
        overflow: visible;
    }
}

@media (max-width: 480px) {
    .banner {
        padding: 100px 0 60px;
    }

    .banner h1 {
        font-size: 1.8rem;
    }

    .advantages-grid,
    .products-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .advantages h2,
    .products-overview h2,
    .team h2 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}

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

.advantage-card,
.product-card,
.team-member {
    animation: fadeIn 0.6s ease forwards;
}

.advantage-card:nth-child(1) {
    animation-delay: 0.1s;
}

.advantage-card:nth-child(2) {
    animation-delay: 0.2s;
}

.advantage-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.team-member {
    animation-delay: 0.1s;
}

.team-member:nth-child(2) {
    animation-delay: 0.2s;
}

.team-member:nth-child(3) {
    animation-delay: 0.3s;
}

.team-member:nth-child(4) {
    animation-delay: 0.4s;
}

.team-member:nth-child(5) {
    animation-delay: 0.5s;
}