/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    background-color: #0a0a1a; /* 深色背景 */
    color: #e0e0e0; /* 浅色文字 */
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(13, 13, 38, 0.95); /* 半透明深色背景 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1000;
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00b4d8; /* 科技蓝 */
    z-index: 1001;
}

.nav-links {
    display: flex;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-links li a {
    text-decoration: none;
    color: #e0e0e0;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    transition: color 0.3s;
    display: block;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #00b4d8; /* 科技蓝 */
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: #e0e0e0; /* 浅色汉堡菜单 */
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 主要内容样式 */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%); /* 渐变背景 */
    color: #e0e0e0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #00b4d8; /* 科技蓝 */
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.3); /* 发光效果 */
}

.hero p {
    font-size: 1.2rem;
    color: #b0b0b0;
}

/* 特性区域样式 */
.features {
    padding: 4rem 2rem;
    background-color: #0a0a1a;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #00b4d8; /* 科技蓝 */
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 5%;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: rgba(26, 26, 46, 0.8); /* 半透明背景 */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
    border: 1px solid #00b4d8; /* 科技蓝边框 */
    backdrop-filter: blur(5px);
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: #00b4d8; /* 科技蓝 */
}

.feature-item p {
    color: #b0b0b0;
}

/* 页脚样式 */
footer {
    background-color: rgba(13, 13, 38, 0.95);
    color: #e0e0e0;
    padding: 3rem 2rem 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.company-info h3,
.footer-contact h3,
.footer-links h3 {
    margin-bottom: 1rem;
    color: #00b4d8;
}

.company-info p,
.footer-contact p {
    margin-bottom: 0.5rem;
    color: #b0b0b0;
}

/* 二维码样式 */
.qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qrcode {
    width: 150px;
    height: 150px;
    background-color: #e0e0e0; /* 浅色二维码背景 */
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qrcode-container p {
    margin-bottom: 0.5rem;
    color: #b0b0b0;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #00b4d8;
}

.footer-links ul li a {
    color: #b0b0b0;
}

.footer-links ul li a:hover {
    color: #00b4d8;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }
    
    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 1002;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        height: auto; /* 改为自适应高度 */
        min-height: 100vh; /* 设置最小高度 */
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        background-color: rgba(13, 13, 38, 0.98);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        display: none;
        z-index: 9999;
        overflow-y: auto;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links li:nth-child(5) { transition-delay: 0.5s; }
    
    .nav-links li a {
        display: block;
        padding: 1rem;
        margin: 0;
        font-size: 1.2rem;
        color: #e0e0e0;
        transition: color 0.3s ease;
    }
    
    .nav-links li a:hover,
    .nav-links li a.active {
        color: #00b4d8;
    }
    
    /* 调整logo在移动端的位置 */
    .navbar {
        padding: 1rem;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9998;
        background-color: rgba(13, 13, 38, 0.98);
        backdrop-filter: blur(10px);
    }
    
    .logo {
        font-size: 1.2rem;
        margin-right: 1rem;
    }
    
    /* 调整内容区域在移动端的显示 */
    .hero {
        margin-top: 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .features {
        padding: 3rem 1rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    /* 调整导航菜单在更小屏幕上的样式 */
    .nav-links li a {
        font-size: 1.1rem;
        padding: 0.8rem;
    }
}

/* 关于我们页面样式 */
.page-header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #00b4d8; /* 科技蓝 */
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
}

.page-header p {
    font-size: 1.2rem;
    color: #b0b0b0;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.about-content p {
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.company-intro {
    margin-bottom: 4rem;
}

.company-intro h2,
.company-history h2,
.team-intro h2 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.company-intro h2:after,
.company-history h2:after,
.team-intro h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #007bff;
}

.company-intro p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.company-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.vision-item {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid #00b4d8;
    backdrop-filter: blur(5px);
}

.vision-item h3 {
    margin-bottom: 1rem;
    color: #00b4d8;
}

.vision-item p {
    color: #b0b0b0;
}

.company-history {
    margin-bottom: 4rem;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background-color: #00b4d8;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2rem;
}

.timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: #00b4d8;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
}

.timeline-content {
    background: rgba(26, 26, 46, 0.8);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid #00b4d8;
    backdrop-filter: blur(5px);
}

.timeline-content h4 {
    margin-bottom: 0.5rem;
    color: #00b4d8;
}

.team-intro {
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    text-align: center;
    padding: 1.5rem;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid #00b4d8;
    backdrop-filter: blur(5px);
}

.member-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    overflow: hidden;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.member-photo:hover {
    transform: scale(1.05);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 放大镜效果 */
.member-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 180, 216, 0.2);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-photo:hover::after {
    opacity: 1;
}

/* 放大镜图标 */
.member-photo::before {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.member-photo:hover::before {
    opacity: 1;
}

/* 大图预览样式 */
.image-preview {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.image-preview.active {
    display: flex;
}

.image-preview img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
}

.photo-placeholder {
    display: none; /* 隐藏占位符 */
}

.team-member h4 {
    margin-bottom: 0.5rem;
    color: #00b4d8;
}

.team-member p {
    color: #b0b0b0;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .company-vision {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline:before {
        left: 15px;
    }
    
    .timeline-year {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .page-header {
        padding: 3rem 1rem;
        margin-top: 20px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .about-content {
        padding: 3rem 1rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* 服务内容样式 */
.service-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 5%; /* 添加左右边距 */
    background-color: #0a0a1a;
}

/* 服务标题样式 */
.section-padding h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #00b4d8;
    position: relative;
    padding-bottom: 1rem;
}

.section-padding h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00b4d8, transparent);
}

/* 产品卡片样式优化 */
.products-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 5%; /* 添加左右边距 */
    background-color: #0a0a1a;
}

/* 容器样式 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 4rem 0;
}

/* 服务项样式 */
.service-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid #00b4d8;
    backdrop-filter: blur(5px);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.5rem;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00b4d8;
    position: relative;
    padding-bottom: 0.5rem;
}

.service-item h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #00b4d8;
}

/* 产品卡片样式 */
.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid #00b4d8;
    backdrop-filter: blur(5px);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-card h2 {
    font-size: 1.5rem;
    margin: 1rem;
    color: #00b4d8;
    position: relative;
    padding-bottom: 0.5rem;
}

.product-card h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #00b4d8;
}

.product-card p {
    margin: 0 1rem 1rem;
    color: #b0b0b0;
    line-height: 1.6;
}

.product-card a {
    display: block;
    text-align: center;
    padding: 1rem;
    background-color: #00b4d8;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.product-card a:hover {
    background-color: #0096b3;
}

/* 联系我们页面样式 */
.contact-details,
.map-container {
    padding: 2rem;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid #00b4d8;
    backdrop-filter: blur(5px);
}

.contact-details h2,
.map-container h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #00b4d8;
}

.contact-details p {
    margin-bottom: 0.5rem;
    color: #b0b0b0;
}

.map-container iframe {
    border-radius: 8px;
}

@media (min-width: 768px) {
    #contact-info {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 2rem;
    }
}

/* 新闻列表样式优化 */
.news-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
    background-color: #0a0a1a; /* 修改为深色背景 */
}

.news-item {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid #00b4d8;
    backdrop-filter: blur(5px);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.5rem;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.news-item h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00b4d8;
}

.news-item p {
    margin-bottom: 1rem;
    color: #b0b0b0;
}

.news-item a {
    display: inline-block;
    text-align: center;
    padding: 0.5rem 1rem;
    background-color: #00b4d8;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.news-item a:hover {
    background-color: #0096b3;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .service-content,
    .products-content {
        padding: 2rem 1rem; /* 在小屏幕上减小边距 */
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-padding h2 {
        font-size: 1.8rem;
    }
}