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

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #3498db;
    margin: 15px auto;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: #3498db;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    border: 2px solid #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #3498db;
    color: white;
}

.text-center {
    text-align: center;
}

/* Navbar Placeholder - Prevent navbar flickering */
.navbar-placeholder {
    min-height: 80px; /* Set minimum height to prevent flickering */
    background-color: white; /* Consistent with navbar background color */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999; /* Slightly lower than navbar */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Consistent with navbar shadow */
}

/* Navbar */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 80px; /* Fixed height */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: block;
}

.logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #3498db;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c3e50;
    cursor: pointer;
}

/* Homepage Banner */
.banner {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
    overflow: hidden;
}

.banner-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.banner-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#banner-desktop-image {
    display: block;
}

#banner-mobile-image {
    display: none;
}

/* Mobile banner image display logic */
@media (max-width: 768px) {
    #banner-desktop-image {
        display: none;
    }
    
    #banner-mobile-image {
        display: block;
    }
}

.banner-content {
    max-width: 800px;
    padding: 20px;
}

.banner-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Company Introduction */
.company-intro {
    background-color: white;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.intro-text {
    flex: 1;
}

.intro-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.intro-text p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

.intro-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Product Grid */
.products-grid, .products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

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

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

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

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-info p {
    color: #666;
    margin-bottom: 15px;
}

.product-category {
    display: inline-block;
    background-color: #f1f8ff;
    color: #3498db;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Why Choose Us */
.why-choose-us {
    background-color: #f8fafc;
}

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

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.feature-item p {
    color: #666;
}

/* Partner Clients */
.clients-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 30px 0;
}

.client-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.client-logo:hover {
    opacity: 1;
}

.client-logo span {
    font-weight: 500;
    color: #2c3e50;
}

/* Page Header */
.page-header {
    background-color: #2c3e50;
    background-image: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 100px 0 60px;
    margin-top: 0;
    position: relative;
}

/* Page header background mask to ensure text readability */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.6); /* Semi-transparent overlay */
    z-index: 0;
}

/* Page header content needs to be placed above the mask */
.page-header * {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* News List */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

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

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

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

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

.news-content {
    padding: 20px;
}

.news-date {
    color: #3498db;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
}

/* Product Introduction Area */
.products-grid-section {
    background-color: #f9f9f9;
    background-image: none;
    position: relative;
}

/* Product introduction area background mask to ensure content readability */
.products-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(249, 249, 249, 0.9); /* Semi-transparent overlay for content readability */
    z-index: 0;
}

/* Product introduction area content needs to be placed above the mask */
.products-grid-section .container {
    position: relative;
    z-index: 1;
}

/* News List Area */
.news-list {
    background-color: #fff;
    background-image: none;
    position: relative;
}

/* News list area background mask to ensure content readability */
.news-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent overlay for content readability */
    z-index: 0;
}

/* News list area content needs to be placed above the mask */
.news-list .container {
    position: relative;
    z-index: 1;
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.filter-btn {
    background-color: #f1f8ff;
    color: #3498db;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background-color: #3498db;
    color: white;
}

/* Contact Page */
.contact-section {
    background-color: #f8f8f8;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2, .contact-form h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-right: 15px;
    margin-top: 5px;
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Map Area */
.map-section {
    background-color: #f8fafc;
    padding: 60px 0;
    text-align: center;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.map-placeholder {
    background-color: white;
    padding: 60px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.map-placeholder i {
    font-size: 4rem;
    color: #3498db;
    margin-bottom: 20px;
}

.map-placeholder p {
    margin-bottom: 10px;
    color: #666;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    z-index: 10;
}

.modal-body {
    padding: 40px;
}

.modal-news-image, .modal-product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-news-date, .modal-product-category {
    color: #3498db;
    margin-bottom: 10px;
}

.modal-news-title, .modal-product-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.modal-news-content, .modal-product-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.modal-product-specs {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.modal-product-specs h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.modal-product-specs ul {
    list-style-type: disc;
    padding-left: 20px;
}

.modal-product-specs li {
    margin-bottom: 5px;
    color: #666;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

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

.footer h3, .footer h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-info p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 992px) {
    .intro-content {
        flex-direction: column;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .banner-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 10px 20px;
        font-size: 1.2rem;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1000; /* Ensure button is on top layer */
    }
}

@media (max-width: 480px) {
    .banner {
        height: 60vh;
        min-height: 400px;
    }
    
    .banner-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .category-filter {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

/* News Timeline Styles */
.news-timeline {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.timeline-header {
    text-align: center;
    margin-bottom: 3rem;
}

.timeline-header h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.timeline-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 3px;
}

.timeline-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 10%; /* 调整时间轴中心线位置，更适合单侧布局 */
    width: 4px;
    background: linear-gradient(to bottom, #3498db, #2980b9);
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: flex-start;
}

.timeline-dot {
    position: absolute;
    left: 10%;
    top: 1rem;
    width: 24px;
    height: 24px;
    background-color: white;
    border: 4px solid #3498db;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-dot:hover {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.4);
}

.timeline-year {
    position: absolute;
    top: -25px;
    left: 10%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 700;
    color: #3498db;
    padding: 4px 12px;
    background-color: white;
    border-radius: 20px;
    white-space: nowrap;
}

.timeline-year.current {
    color: white;
    background-color: #3498db;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.timeline-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.timeline-item.even .timeline-content {
    margin-left: 18%; /* 调整为单侧布局的合适边距 */
    width: 70%; /* 调整宽度以充分利用空间 */
}

/* 移除奇数项的样式，因为现在只使用even类 */
.timeline-item.odd .timeline-content {
    margin-left: 18%; /* 统一使用相同的布局 */
    width: 70%;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.timeline-media {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.timeline-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.timeline-content:hover .timeline-media img {
    transform: scale(1.05);
}

.timeline-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.timeline-date {
    display: inline-block;
    color: #3498db;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-title {
    color: #2c3e50;
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.timeline-content:hover .timeline-title {
    color: #3498db;
}

.timeline-summary {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.timeline-btn {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* News Modal Styles */
.news-detail-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.news-detail-header time {
    color: #3498db;
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.news-detail-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.news-detail-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.news-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-content p {
    color: #333;
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: justify;
}

/* Responsive Timeline */
@media (max-width: 992px) {
    .timeline::before {
        left: 40px;
    }
    
    .timeline-dot {
        left: 40px;
        transform: translateX(-50%);
    }
    
    .timeline-year {
        left: 40px;
        transform: translateX(-50%);
        text-align: center;
    }
    
    .timeline-item.even .timeline-content,
    .timeline-item.odd .timeline-content {
        margin: 0 0 0 80px;
        width: calc(100% - 80px); /* 确保在小屏幕上宽度合适 */
    }
    
    .timeline-media {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .news-timeline {
        padding: 3rem 0;
    }
    
    .timeline-header h2 {
        font-size: 2rem;
    }
    
    .timeline-content {
        flex-direction: column;
    }
    
    .timeline-media {
        height: 150px;
    }
    
    .timeline-body {
        padding: 1.25rem;
    }
    
    .timeline-title {
        font-size: 1.3rem;
    }
    
    .timeline-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .timeline::before {
        left: 25px;
    }
    
    .timeline-dot {
        left: 25px;
        width: 20px;
        height: 20px;
    }
    
    .timeline-year {
        left: 25px;
        font-size: 0.75rem;
        padding: 2px 8px;
    }
    
    .timeline-item.even .timeline-content,
    .timeline-item.odd .timeline-content {
        margin: 0 0 0 60px;
    }
    
    .timeline-media {
        height: 120px;
    }
    
    .timeline-header h2 {
        font-size: 1.8rem;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
}

