/* Global Styles */
:root {
    --primary-color: #0066cc;
    --secondary-color: #004080;
    --accent-color: #3399ff;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --dark-gray: #343a40;
    --footer-bg: #242930;
    --success: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Highlighted Button Styles */
.order-kit-button {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 15px;
    box-shadow: 0 4px 12px rgba(51, 153, 255, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.order-kit-button:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
}

.order-kit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

#logo {
    height: 60px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.language-selector {
    display: flex;
    gap: 10px;
    margin-left: auto;
    margin-right: 2rem;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    color: var(--gray);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
}

.lang-btn:hover {
    color: var(--primary-color);
    background-color: rgba(0, 102, 204, 0.05);
}

.lang-btn.active {
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background-color: rgba(0, 102, 204, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

nav {
    width: 100%;
    margin-top: 1rem;
}

.main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav > li {
    position: relative;
    margin: 0 15px;
}

.main-nav > li > a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.main-nav > li > a:hover, .main-nav > li > a.active {
    color: var(--primary-color);
}

.main-nav > li > a.active::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.dropdown {
    position: absolute;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
    display: none;
    left: 0;
    border-radius: 4px;
    overflow: hidden;
}

.main-nav > li:hover .dropdown {
    display: block;
}

.dropdown li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown li a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about-section {
    padding: 5rem 2rem;
    background-color: var(--light-bg);
    text-align: center;
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.learn-more {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.learn-more:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Services Section */
.services-section {
    padding: 5rem 2rem;
    text-align: center;
}

.services-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

/* News Section */
.news-section {
    padding: 5rem 2rem;
    background-color: var(--light-bg);
    text-align: center;
}

.news-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.news-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.news-column {
    flex: 1;
    min-width: 300px;
}

.news-column h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: left;
}

.news-item {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.news-item .date {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.contact-info {
    flex: 1;
    min-width: 250px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info a {
    color: var(--accent-color);
}

.contact-info a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.footer-section {
    min-width: 150px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--accent-color);
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--light-gray);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-nav {
        justify-content: center;
    }
    
    .main-nav > li {
        margin: 0 8px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem;
    }
    
    .logo-container {
        flex-basis: 50%;
    }
    
    .language-selector {
        margin-right: 0;
        margin-left: auto;
        gap: 5px;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 0.9rem;
    }
    
    nav {
        margin-top: 0.5rem;
    }
    
    .main-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        gap: 5px;
        padding: 0 5px;
    }
    
    .main-nav > li {
        width: 100%;
        margin: 0;
        text-align: center;
    }
    
    .main-nav > li > a {
        padding: 8px 5px;
        font-size: 0.9rem;
    }
    
    .dropdown {
        position: absolute;
        width: 180px;
        display: none;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }
    
    .main-nav > li:hover .dropdown {
        display: block;
    }
    
    .dropdown li a {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-section, .services-section, .news-section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 576px) {
    header {
        padding: 0.7rem 0.5rem;
    }
    
    #logo {
        height: 45px;
    }
    
    .main-nav {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-nav > li:nth-child(5), .main-nav > li:nth-child(6) {
        grid-column: span 1;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

/* Spanish Language Specific Styles */
.es-lang * {
    /* Spanish specific font adjustments if needed */
}

/* Language visibility controls */
.lang-en, .lang-es, .lang-zh {
    display: none;
}

body .lang-en {
    display: inline-block;
}

body.es-lang .lang-en {
    display: none;
}

body.es-lang .lang-es {
    display: inline-block;
}

body.zh-lang .lang-en {
    display: none;
}

body.zh-lang .lang-zh {
    display: inline-block;
}

/* Language specific styles */
.lang-en, .lang-es, .lang-zh {
    display: none;
}

body .lang-en {
    display: inline-block;
}

body.es-lang .lang-en {
    display: none;
}

body.es-lang .lang-es {
    display: inline-block;
}

body.zh-lang .lang-en {
    display: none;
}

body.zh-lang .lang-zh {
    display: inline-block;
}

/* Additional language styles for enhanced visibility */
body.en-lang .lang-en {
    display: inline-block;
}

body.en-lang .lang-es,
body.en-lang .lang-zh {
    display: none;
}

/* 图片轮播展示栏目样式 */
.equipment-showcase {
    padding: 4rem 2rem;
    background-color: var(--light-bg);
    text-align: center;
    background-image: linear-gradient(to bottom, var(--light-bg), var(--white), var(--light-bg));
}

.equipment-showcase h2 {
    margin-bottom: 2.5rem;
    color: var(--secondary-color);
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.equipment-showcase h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0.5rem auto 0;
}

.image-carousel {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
    padding: 25px 0;
    border: 1px solid var(--light-gray);
    transition: opacity 0.3s ease;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: transform;
    cursor: grab;
    position: relative;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-slide {
    flex: 0 0 auto;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
    position: relative;
    backface-visibility: hidden;
}

.carousel-image {
    max-width: 90%;
    max-height: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    pointer-events: none; /* 防止拖动图片 */
    opacity: 0.85;
}

.carousel-slide:hover .carousel-image {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 15px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.image-carousel:hover .carousel-controls {
    opacity: 1;
}

.carousel-button {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--secondary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .carousel-slide {
        width: 50%; /* 平板设备每次显示2张图片 */
        height: 280px;
    }
    
    .carousel-image {
        max-height: 240px;
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        width: 100%; /* 移动设备每次显示1张图片 */
        height: 250px;
    }
    
    .carousel-image {
        max-height: 220px;
        max-width: 85%;
    }
    
    .equipment-showcase {
        padding: 3rem 1rem;
    }
    
    .equipment-showcase h2 {
        font-size: 1.8rem;
    }
    
    .carousel-controls {
        padding: 0 15px;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 18px;
        background-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }
}