/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'HarmonyOS Sans', 'Source Han Sans CN', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: rgba(0, 0, 0, 0.5);
    /* backdrop-filter: blur(10px); */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 透明导航栏样式 */
.navbar.transparent {
    background: rgba(0, 0, 0, 0);
    box-shadow: none;
}

/* 首页导航栏透明样式 */
body[data-page="home"] .navbar {
    /* background: rgba(0, 0, 0, 0.5); */
    box-shadow: none;
}

/* 其他页面导航栏样式 */
body:not([data-page="home"]) .navbar {
    /* background: rgba(0, 0, 0, 0.7); */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-logo img {
    height: 40px;
    vertical-align: middle;
}

.company-name {
    display: inline-block;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-left: 10px;
    vertical-align: middle;
    transition: color 0.3s ease;
}

.navbar.transparent .company-name {
    color: #ffffff;
}

.nav-logo a:hover .company-name {
    color: #ffd700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffd700;
}

.nav-link.active {
    color: #ffd700;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffd700;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.nav-link:not(.active)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffd700;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* 头部英雄区域 */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(45deg, rgba(10, 61, 208, 0.7), rgba(0, 0, 0, 0.5)); */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 55px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: #ffd700;
}

.hero-subtitle {
    font-size: 36px;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-services {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* 章节标题 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 35px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.section-divider {
    width: 70px;
    height: 3px;
    background: #0a3dd0;
    margin: 0 auto 20px;
}

/* 服务网格 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.service-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    max-width: 100%;
    max-height: 100%;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* 产品预览 */
.products-preview {
    padding: 80px 0;
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* 优势部分 */
.advantages-section {
    padding: 80px 0;
    background: #fff;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.advantage-item {
    text-align: center;
}

.advantage-number {
    font-size: 48px;
    font-weight: bold;
    color: #0a3dd0;
    margin-bottom: 10px;
}

.advantage-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.advantage-item p {
    color: #666;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: #0a3dd0;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #0834b3;
}

.text-center {
    text-align: center;
}

/* 页脚样式 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #0a3dd0;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-item {
    display: flex;
    align-items: center;
    position: relative;
}

.social-links a img {
    width: 32px;
    height: 32px;
    border-radius: 5px;
}
#footer-wechat {
    width: 64px;
    height: 64px;
    border-radius: 5px;
}
.qq-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

#footer-qq-number {
    margin-left: 10px;
    color: #ccc;
    font-size: 14px;
}

.wechat-link {
    position: relative;
    display: inline-block;
}

.wechat-qrcode-footer {
    position: absolute;
    bottom: 40px;
    left: 0;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    width: 120px;
}

.wechat-qrcode-footer img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

.wechat-link:hover .wechat-qrcode-footer {
    opacity: 1;
    visibility: visible;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-services {
        font-size: 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .advantage-number {
        font-size: 36px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    /*为什么选择我们*/
    .about-features {
        background-image: url('../images/xz.jpg');
        background-position: center center;
        background-size: cover;
        padding: 80px 0;
        color: #fff;
    }
    .feature-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    .feature-item {
        text-align: center;
        padding: 30px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }
    .feature-icon {
        width: 26px;
        height: 26px;
        margin: 0 auto 20px;
    }
    .feature-title {
        font-size: 25px;
        font-family: 'HarmonyOSSansCNBold', Arial, sans-serif;
        margin-bottom: 15px;
        color: #ffffff;
    }
    .feature-desc {
        font-size: 14px;
        line-height: 1.6;
        color: #ffffff;
    }
    .page-title {
        text-align: center;
        font-size: 35px;
        font-weight: bold;
        color: #ffffff;
        margin-bottom: 60px;
    }
}