/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 85px; /* 为固定头部留出空间 */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.08);
    height: 85px;
    display: flex;
    align-items: center;
}

/* 导航容器样式 */
.nav {
    width: 100%;
    height: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    height: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    align-items: center;
    flex: 0 0 auto; /* 防止导航菜单被压缩 */
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.nav-menu a:hover {
    color: #2c5aa0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c5aa0;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 搜索框样式 */
.search-container {
    position: relative;
    margin-left: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background: white;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

#search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 200px;
    font-size: 14px;
    color: #333;
}

#search-input::placeholder {
    color: #999;
}

#search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

#search-btn:hover {
    background: rgba(44, 90, 160, 0.1);
}

.search-icon {
    font-size: 16px;
    color: #666;
}

/* 搜索结果样式 */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.search-result-category {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.search-result-snippet {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
    line-height: 1.4;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto; /* 防止logo被压缩 */
}

.logo-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.logo-text h1 {
    color: #2c5aa0;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.logo-text p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    margin-top: 4px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    flex: 0 0 auto; /* 防止被压缩 */
    margin-left: 1rem; /* 给移动端菜单按钮一些左边距 */
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 40px 20px 60px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 0 !important;
    opacity: 0.8;
    font-weight: 300;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #2c5aa0;
    color: white;
}

.btn-primary:hover {
    background: #1e3f7a;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2c5aa0;
}

/* 章节样式 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5aa0;
    font-weight: bold;
}

section {
    padding: 60px 0;
}

/* 关于我们 */
.about {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c5aa0;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.company-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature h4 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* 核心服务 - 4个服务卡片 */
.services {
    background: #1a1a2e;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.15), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(255,255,255,0.1), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(255,255,255,0.15), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.1), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    padding: 80px 0;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.1) 0%, rgba(26, 26, 46, 0.1) 100%);
    pointer-events: none;
}

.services .section-title {
    color: white;
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid transparent;
    position: relative;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    border-color: #2c5aa0;
    background: rgba(255, 255, 255, 0.98);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #2c5aa0;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.service-card h4 {
    color: #999;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 2rem;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f7a 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.service-btn:hover {
    background: linear-gradient(135deg, #1e3f7a 0%, #2c5aa0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

.service-btn i {
    font-size: 1rem;
}

/* 项目案例 */
.cases {
    background: #f8f9fa;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.case-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.case-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.placeholder-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.placeholder-text {
    font-size: 1rem;
    text-align: center;
    padding: 0 10px;
}

.case-content {
    padding: 1.5rem;
}

.case-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c5aa0;
}

.case-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.tag {
    background: #e3f2fd;
    color: #2c5aa0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.case-more {
    color: #2c5aa0;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e3f2fd;
    transition: all 0.3s ease;
}

.case-card:hover .case-more {
    background: #e3f2fd;
    border-color: #2c5aa0;
}

/* 项目案例弹窗样式 */
.case-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.case-modal.active {
    opacity: 1;
    visibility: visible;
}

.case-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.case-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.case-modal.active .case-modal-content {
    transform: scale(1) translateY(0);
}

.case-modal-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f7a 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.case-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.case-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.case-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.case-modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.case-modal-image {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-modal-placeholder {
    font-size: 4rem;
    color: #ccc;
}

.case-modal-info {
    display: grid;
    gap: 25px;
}

.case-modal-description h3,
.case-modal-tags h3,
.case-modal-contact h3 {
    color: #2c5aa0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.case-modal-description p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-container .tag {
    background: #e3f2fd;
    color: #2c5aa0;
    padding: 6px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.case-modal-contact p {
    color: #666;
    margin-bottom: 20px;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
}

.contact-btn.phone {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.contact-btn.email {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* 响应式弹窗 */
@media (max-width: 768px) {
    .case-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .case-modal-header {
        padding: 15px 20px;
    }
    
    .case-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .case-modal-body {
        padding: 20px;
    }
    
    .case-modal-image {
        height: 200px;
    }
    
    .contact-buttons {
        gap: 10px;
    }
    
    .contact-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* 产品弹窗样式 */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.product-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.product-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.product-modal.active .product-modal-content {
    transform: scale(1) translateY(0);
}

.product-modal-header {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.product-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.product-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.product-modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.product-modal-image {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal-placeholder {
    font-size: 4rem;
    color: #ccc;
}

.product-modal-info {
    display: grid;
    gap: 25px;
}

.product-modal-description h3,
.product-modal-features h3,
.product-modal-applications h3,
.product-modal-contact h3 {
    color: #27ae60;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.product-modal-description p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

.product-modal-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-modal-features li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.product-modal-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.application-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.app-tag {
    background: #e8f5e8;
    color: #27ae60;
    padding: 6px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-modal-contact p {
    color: #666;
    margin-bottom: 20px;
}

/* 新闻弹窗样式 */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.news-modal.active {
    opacity: 1;
    visibility: visible;
}

.news-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.news-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.news-modal.active .news-modal-content {
    transform: scale(1) translateY(0);
}

.news-modal-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.news-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.news-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.news-modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.news-modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.news-date,
.news-category {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.news-modal-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-modal-placeholder {
    font-size: 3rem;
    color: #ccc;
}

.news-modal-content-full h3,
.news-modal-summary h3,
.news-modal-contact h3 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.news-content-text {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 20px;
    white-space: pre-line;
}

.news-modal-summary p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
    font-style: italic;
}

.news-modal-contact p {
    color: #666;
    margin-bottom: 20px;
}

/* 产品网格 */
.products {
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c5aa0;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
}

/* 新闻网格 */
.news {
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c5aa0;
}

.news-excerpt {
    color: #666;
    margin-bottom: 1rem;
}

.news-date {
    color: #999;
    font-size: 0.9rem;
}

/* 联系我们 */
.contact {
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2c5aa0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e3f7a;
}

/* 在线咨询功能 */
.online-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
}

/* 咨询按钮 */
.chat-button {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f7a 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(44, 90, 160, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    animation: pulse 2s infinite;
}

.chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(44, 90, 160, 0.4);
}

.chat-icon {
    font-size: 1.2rem;
}

.chat-text {
    font-weight: 500;
    font-size: 0.9rem;
}

/* 脉搏动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(44, 90, 160, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(44, 90, 160, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(44, 90, 160, 0.3);
    }
}

/* 咨询弹窗 */
.chat-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
}

.chat-popup.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* 弹窗头部 */
.chat-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f7a 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 弹窗内容 */
.chat-content {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

/* 欢迎区域 */
.chat-welcome {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 15px;
}

.welcome-avatar {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    background: #2c5aa0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-text h4 {
    margin: 0 0 5px 0;
    color: #2c5aa0;
    font-size: 1.1rem;
}

.welcome-text p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* 咨询选项 */
.chat-options {
    margin-bottom: 20px;
}

.chat-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-option:hover {
    border-color: #2c5aa0;
    background: #f8f9fa;
}

.option-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-text h5 {
    margin: 0 0 5px 0;
    color: #2c5aa0;
    font-size: 1rem;
}

.option-text p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
}

/* 联系方式 */
.chat-contact {
    margin-bottom: 20px;
}

.chat-contact h4 {
    margin: 0 0 15px 0;
    color: #2c5aa0;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.method-icon {
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    background: #2c5aa0;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-text span {
    display: block;
    font-size: 0.8rem;
    color: #666;
}

.method-text strong {
    display: block;
    color: #2c5aa0;
    font-size: 0.9rem;
}

/* 快速留言表单 */
.chat-form h4 {
    margin: 0 0 15px 0;
    color: #2c5aa0;
    font-size: 1.1rem;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.chat-form input,
.chat-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.chat-form input:focus,
.chat-form textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f7a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

/* 遮罩层 */
.chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.chat-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 额外的科技感样式 */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 20px 20px 0;
    border-color: transparent #2c5aa0 transparent transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::after {
    opacity: 1;
}

/* 科技感装饰元素 */
.services::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(44, 90, 160, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 服务卡片悬停时的光效 */
.service-card:hover {
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(44, 90, 160, 0.1),
        0 0 20px rgba(44, 90, 160, 0.2);
}

/* 响应式优化 */
@media (max-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .services::after {
        display: none;
    }
    
    .service-card::after {
        display: none;
    }
}

/* 产品卡片和新闻卡片的悬停效果 */
.product-card:hover,
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-more,
.news-more {
    color: #2c5aa0;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e3f2fd;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.product-card:hover .product-more,
.news-card:hover .news-more {
    background: #e3f2fd;
    border-color: #2c5aa0;
}

/* 图片占位符样式 */
.product-image-placeholder,
.news-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    color: #999;
    font-size: 3rem;
}

/* 响应式弹窗优化 */
@media (max-width: 768px) {
    .product-modal-content,
    .news-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .product-modal-header,
    .news-modal-header {
        padding: 15px 20px;
    }
    
    .product-modal-header h2,
    .news-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .product-modal-body,
    .news-modal-body {
        padding: 20px;
    }
    
    .product-modal-image,
    .news-modal-image {
        height: 180px;
    }
    
    .news-modal-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-buttons {
        gap: 10px;
    }
    
    .contact-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* 加载状态指示器样式 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* 错误状态样式 */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.error-text {
    color: #e74c3c;
    font-size: 16px;
    margin-bottom: 20px;
    max-width: 300px;
}

.retry-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.retry-btn:hover {
    background: #1e3f7a;
}

/* 图片懒加载样式 */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 页面过渡动画 */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式优化 */
@media (max-width: 768px) {
    .loading-container,
    .error-container {
        padding: 40px 20px;
    }
    
    .loading-spinner {
        width: 32px;
        height: 32px;
        border-width: 3px;
    }
    
    .error-icon {
        font-size: 36px;
    }
}

/* 消息提示样式 */
.message {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    max-width: 400px;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 4px solid #2c5aa0;
}

.message.show {
    transform: translateX(0);
}

.message-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.message-text {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.message-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.message-close:hover {
    background: #f0f0f0;
    color: #666;
}

/* 消息类型样式 */
.message-success {
    border-left-color: #27ae60;
}

.message-error {
    border-left-color: #e74c3c;
}

.message-info {
    border-left-color: #3498db;
}

.message-warning {
    border-left-color: #f39c12;
}

/* 响应式消息提示 */
@media (max-width: 768px) {
    .message {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(100%);
    }
    
    .message.show {
        transform: translateY(0);
    }
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #2c5aa0;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(44, 90, 160, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: #1e3f7a;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(44, 90, 160, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
}

/* 响应式返回顶部按钮 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}