/* 基础样式 */
:root {
    --primary-color: #1a3a5f;
    --secondary-color: #2c5282;
    --accent-color: #3182ce;
    --light-color: #ebf8ff;
    --dark-color: #2d3748;
    --text-color: #4a5568;
    --white: #ffffff;
    --success-color: #48bb78;
    --error-color: #f56565;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f7fafc;
}

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

/* 面包屑导航样式 */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li::after {
    content: '/';
    margin: 0 0.5rem;
    color: #6b7280;
}

.breadcrumb li:last-child::after {
    content: '';
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    color: var(--primary-color);
    font-weight: 500;
}

/* 导航栏样式 */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo img {
    height: auto;
    max-height: 80px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* 语言切换器样式 */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    background-color: var(--accent-color);
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(rgba(26, 58, 95, 0.8), rgba(26, 58, 95, 0.9)), url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 10rem 0 5rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
}

.btn:hover {
    background-color: #2c5282;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 检测技术介绍区域 */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-color);
}

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

.tech-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.tech-card:hover {
    transform: translateY(-10px);
}

.tech-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.vision-image {
    background-image: url('images/vision_default.png');
}

.ultrasound-image {
    display: block;
    margin-bottom: 15px;
}

.tech-content {
    padding: 1.5rem;
}

.tech-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.tech-content h3 i {
    margin-right: 10px;
    color: var(--accent-color);
}

.tech-features {
    list-style: none;
    margin: 1rem 0;
}

.tech-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.tech-features li i {
    margin-right: 10px;
    color: var(--accent-color);
}

.tech-features li:last-child {
    border-bottom: none;
}

/* 应用领域样式 */
.applications {
    background-color: var(--light-color);
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab {
    padding: 1rem 2rem;
    background-color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    margin: 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.tab.active {
    background-color: var(--accent-color);
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.industry-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.industry-card:hover {
    transform: translateY(-5px);
}

.industry-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* 客户案例样式 */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.case-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.case-content {
    padding: 1.5rem;
}

.case-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.case-content .case-industry {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.case-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-color);
}

/* 联系表单样式 */
.contact {
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    font-family: inherit;
}

.message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
    display: none;
}

.message.success {
    background-color: var(--success-color);
    color: white;
}

.message.error {
    background-color: var(--error-color);
    color: white;
}

/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.wechat-section h3 {
    text-align: center;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p, .footer-section a {
    color: #cbd5e0;
    margin-bottom: 0.5rem;
    display: block;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.wechat-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wechat-qr-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}

.wechat-qr-container img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.footer-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info p {
    color: #cbd5e0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.security-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
    display: inline-block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    
    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 0.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab {
        width: 80%;
    }
}

/* Hero区域样式 */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    text-align: center;
    max-width: 800px;
}

/* 页脚微信容器样式 */
.wechat-container {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 图片懒加载样式 */
.lazyload {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazyload.loaded {
    opacity: 1 !important;
}

/* 确保图片在加载过程中可见 */
img[data-image] {
    opacity: 1;
    transition: opacity 0.3s;
}

/* 确保超声波检测图片容器正确显示 */
.ultrasound-image img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 1 !important;
}