/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 首页风格同步 */
.hero-section {
    background: linear-gradient(to right, rgba(10, 75, 120, 0.8), rgba(30, 140, 200, 0.6)), url('../img/medical-background.jpg') no-repeat center center fixed;
    background-size: cover;
    padding: 4rem 0;
    color: white;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
        /* 移动端优化 */
        background-position: 50% 30%;
    }
}

.product-hero {
    background: linear-gradient(to right, rgba(10, 75, 120, 0.8), rgba(30, 140, 200, 0.6)), url('../img/medical-equipment.jpg') no-repeat center center fixed;
    background-size: cover;
    padding: 4rem 0;
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-top: 1rem;
    color: #e9f0f5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0a4b78;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav-links li {
    display: inline;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00c6ff;
}

/* 首页特殊样式 */
.home .hero {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1620714223084-8fcacc6dfd8d?ixid=M3wzNjM5Nzd8MHwxfHNlYXJjaHwxwZTF8ZW58MHx8fHwxNzE2NDg0Njk4fDA&ixlib=rb-4.0.3&w=800');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

.hero .container {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3rem;
    border-radius: 10px;
}

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

.certification-badge {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.certification-badge i {
    color: #00c6ff;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background-color: #00c6ff;
    color: #0a4b78;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-primary:hover {
    background-color: #009ccc;
    color: #fff;
}

/* 页面标题部分 */
.page-header {
    background-color: #e9f0f5;
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #0a4b78;
}

/* 内容区域 */
.content-section {
    padding: 3rem 0;
}

.features {
    background-color: #fff;
    padding: 3rem 0;
}

.feature-item {
    background-color: #f0f6fc;
    padding: 2rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.feature-item h3 {
    color: #0a4b78;
    margin-bottom: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-card h3 {
    color: #0a4b78;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.product-features {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.product-features li {
    margin-bottom: 0.5rem;
    color: #555;
}

@media (max-width: 768px) {
    .product-card {
        padding: 1rem;
    }
    
    .product-card img {
        height: 150px;
    }
}

.contact-info {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.contact-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.contact-icon {
    background-color: #e9f0f5;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: #00c6ff;
    font-size: 24px;
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    color: #0a4b78;
}

.contact-details p {
    margin: 0;
    color: #666;
}

@media (max-width: 768px) {
    .contact-card {
        padding: 1rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        margin-right: 1rem;
    }
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    padding-bottom: 33.33%; /* 保持3:2比例（500px高度对应100%宽度） */
    height: 0;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .map-container {
        padding-bottom: 66.66%; /* 调整移动端比例为3:2 */
    }
}

.map-legend {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 0.95rem;
}

.map-legend p {
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .map-container {
        padding-bottom: 50%; /* 调整移动端比例 */
    }

    .map-legend {
        font-size: 0.85rem;
    }
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #0a4b78;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* 页脚 */
footer {
    background-color: #0a4b78;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

footer p {
    margin: 0.5rem 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        background-color: #0a4b78;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .page-header {
        padding: 1.5rem 0;
    }
    
    .contact-content {
        padding: 1.5rem;
    }
    
    .map-container {
        height: 0;
        padding-bottom: 50%; /* 调整移动端比例 */
    }
}

.company-overview {
    background-color: #f8f9fa;
    padding: 3rem 0;
}

.overview-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.overview-text {
    font-size: 1.1rem;
    margin: 1.5rem 0;
    color: #555;
}

.key-projects, .core-products, .certifications {
    margin-top: 2rem;
}

.key-projects ul, .core-products ul {
    list-style-type: none;
    padding-left: 0;
}

.key-projects li, .core-products li {
    position: relative;
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.key-projects li::before, .core-products li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00c6ff;
}

@media (max-width: 768px) {
    .overview-content {
        padding: 1.5rem;
    }
    
    .key-projects h3, .core-products h3, .certifications h3 {
        font-size: 1.2rem;
    }
}

.company-profile {
    padding: 3rem 0;
}

.profile-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.mission-section, .core-business, .key-projects, .certifications, .product-system, .technology-advantage {
    margin-bottom: 2.5rem;
}

.key-projects ul, .product-system ul {
    list-style-type: none;
    padding-left: 0;
}

.key-projects li, .product-system li {
    position: relative;
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

.key-projects li::before, .product-system li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00c6ff;
}

@media (max-width: 768px) {
    .profile-content {
        padding: 1.5rem;
    }
    
    .mission-section, .core-business, .key-projects, .product-system, .technology-advantage {
        margin-bottom: 1.5rem;
    }
}

/* 案例展示样式 */
.case-studies {
    margin-bottom: 3rem;
}

.case-study {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

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

.case-study img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.case-content {
    padding: 1.5rem;
}

.case-tags {
    margin-top: 1rem;
}

.case-tags span {
    display: inline-block;
    background-color: #e9f0f5;
    color: #0a4b78;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .case-study {
        margin-bottom: 1.5rem;
    }
    
    .case-study img {
        height: 180px;
    }
}

/* 产品详情页面样式 */
.product-detail-section {
    padding: 3rem 0;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.product-image {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    margin-bottom: 1.5rem;
}

.product-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
    /* 添加宽屏适配规则 */
    @media (min-aspect-ratio: 16/9) {
        height: 60vh;
    }
}

.image-caption {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.image-caption p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.product-image:hover {
    transform: translateY(-5px);
}

.product-image:hover img {
    transform: scale(1.05);
}

.product-description {
    padding: 1rem 0;
}

.product-description h2 {
    color: #0a4b78;
    margin-bottom: 1.5rem;
}

.product-description p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.product-features li {
    margin-bottom: 0.75rem;
    color: #555;
}

.product-specs {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.product-specs li {
    margin-bottom: 0.75rem;
    color: #555;
}

@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-image img {
        height: 350px;
        /* 移动端优化 */
        @media (max-height: 600px) {
            height: 250px;
        }
    }
}

/* 产品卡片样式 */
.product-cards-section {
    padding: 3rem 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.product-image {
    height: 200px;
    overflow: hidden;
}

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

.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    color: #0a4b78;
    margin-bottom: 1rem;
}

.product-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.product-features li {
    margin-bottom: 0.75rem;
    color: #555;
}

.product-specs h4 {
    margin-bottom: 0.5rem;
    color: #0a4b78;
}

@media (max-width: 768px) {
    .product-image {
        height: 150px;
    }
    
    .product-card {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
}
