:root {
    --primary-color: #0056b3; /* 更深沉专业的蓝色，符合医疗/科技行业 */
    --secondary-color: #f8f9fa;
    --accent-color: #17a2b8; /* 辅助强调色 */
    --success-color: #28a745;
    --text-primary: #212529;
    --text-secondary: #495057;
    --light-gray: #e9ecef;
    --border-color: #dee2e6;
}

body {
    padding-top: 76px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    color: var(--text-primary);
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    padding: 0.4rem 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.navbar-nav {
    gap: 2rem;
    align-items: center;
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 1.15rem;
    padding: 0.5rem 0 !important;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.9;
    text-decoration: none;
}

.product-details-tabs .nav-tabs {
    border-bottom: 2px solid #e9ecef;
    gap: 1rem;
    display: flex;
    margin-bottom: 1.5rem;
}

.product-details-tabs .nav-link {
    border: none;
    padding: 1rem 1.5rem;
    color: #6c757d;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.product-details-tabs .nav-link:hover {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.product-details-tabs .nav-link.active {
    color: #0d6efd;
    background-color: transparent;
}

.product-details-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0d6efd;
}

.product-detail-header {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    padding: 3rem 0;
    margin-top: 2rem;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.product-detail-header .breadcrumb {
    margin-bottom: 1rem;
}

.product-detail-header .breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-detail-header .breadcrumb-item a:hover {
    color: #0d6efd;
}

.product-detail-header .breadcrumb-item.active {
    color: #212529;
    font-weight: 500;
}

.nav-link:hover {
    opacity: 1;
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

@media (max-width: 991px) {
    .navbar-nav {
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 0 !important;
    }
}

/* Hero Section */
.hero {
    padding: 40px 0;
    background: linear-gradient(135deg, #fff 0%, var(--secondary-color) 100%);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero .lead {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 1.25rem;
    line-height: 1.4;
    max-width: 720px;
}

.hero img {
    max-width: 85%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    margin: 0 auto;
    display: block;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 统一解决方案卡片按钮样式 */
.solution-card .btn {
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,86,179,0.2);
}

.solution-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
}

.solution-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Feature Box */
/* 增强产品卡片交互效果 */
.feature-box {
    padding: 1.75rem 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid var(--light-gray);
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: -1;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-box i {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
}

.feature-box:hover i {
    transform: scale(1.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-box p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Feature List */
.feature-list li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: #4a5568;
}

.feature-list .bi {
    font-size: 1.2rem;
    margin-right: 10px;
}

/* Product Card */
/* News Card Styles */
.news-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.news-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.news-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image-wrapper img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.news-meta .date {
    display: flex;
    align-items: center;
}

.news-meta .category {
    background: rgba(0,86,179,0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.news-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content .read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.news-content .read-more:hover {
    gap: 0.75rem;
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to bottom, rgba(248,249,250,0.5) 0%, rgba(255,255,255,1) 100%);
}

.product-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.product-image-wrapper {
    position: relative;
    width: 96%;
    padding-top: 54%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.product-image-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

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

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.product-card:hover .product-content h3 {
    color: var(--primary-color);
}

/* Statistics Box */
.stat-box {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.stat-box h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Hide scrollbar but keep functionality */
::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Modal Styles */
.modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
    margin: 0.5rem auto;
}

.modal-content {
    max-width: 600px;
    width: 90%;
    margin: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: none;
}

.modal-header {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.modal-body {
    padding: 1rem;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.modal-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Form Elements */
.form-label {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.form-control {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
}

.form-text {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.mb-4 {
    margin-bottom: 0.75rem !important;
}

/* Testimonial Cards */
.testimonial-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.testimonial-author h4 {
    color: #333;
    margin-bottom: 5px;
}

.testimonial-author p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Social Links */
.social-links a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5rem;
    color: #fff;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
}

/* 增强移动端响应式设计 */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero img {
        margin-top: 30px;
        max-height: 380px;
        object-fit: contain;
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 90%;
    }

    .feature-box {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .product-image-wrapper {
        padding-top: 66.67%; /* 3:2 aspect ratio for mobile */
    }

    .testimonial-card {
        height: 100%;
        margin-bottom: 15px;
    }

    #testimonialCarousel .carousel-control-prev,
    #testimonialCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
        background: rgba(0,0,0,0.2);
        border-radius: 50%;
        margin: 0 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .stat-box {
        padding: 20px 15px;
    }

    .stat-box h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .lead {
        font-size: 1.1rem;
    }

    .feature-box i {
        font-size: 2rem;
    }

    .feature-box h3 {
        font-size: 1.3rem;
    }

    #cta .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    #cta .d-flex {
        flex-direction: column;
    }
    
    .product-content {
        padding: 1.25rem 1rem;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

.hero img {
    max-width: 75%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    margin: 0 auto;
    display: block;
}

.hero img:hover {
    transform: scale(1.03);
}

/* Language Selector Styles */
.language-selector {
    position: relative;
    margin-left: 10px;
}

.language-selector .dropdown-toggle {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 6px 10px;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.language-selector .dropdown-toggle:hover {
    background-color: #0056b3;
}

.language-selector .dropdown-toggle .bi {
    font-size: 1rem;
}

.language-selector .dropdown-toggle span {
    display: none; /* 在小屏幕上隐藏文字，只显示图标 */
}

.dropdown-menu {
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 10px 15px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item img {
    width: 20px;
    margin-right: 8px;
}

/* PC端语言选择器样式 */
@media (min-width: 992px) {
    /* 隐藏移动端的语言选择器 */
    .mobile-language-selector {
        display: none;
    }
    
    /* 显示PC端的语言选择器 */
    .desktop-language-selector {
        display: block;
        margin-left: 15px;
    }
    
    .desktop-language-selector .dropdown-toggle {
        padding: 8px 12px;
        font-size: 1rem;
    }
    
    .desktop-language-selector .dropdown-toggle span {
        display: inline;
    }
}

/* 移动端样式 */
@media (max-width: 991.98px) {
    /* 显示移动端的语言选择器 */
    .mobile-language-selector {
        display: block;
    }
    
    /* 隐藏PC端的语言选择器 */
    .desktop-language-selector {
        display: none;
    }
}
