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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.header-logo {
    max-height: 50px;
    width: auto;
    display: block;
    background: transparent;
    object-fit: contain;
}

.company-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2F6CB0;
    letter-spacing: 0.5px;
    line-height: 1;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding-top: 80px;
    z-index: 1000;
}

.nav-menu.active {
    right: 0;
}

.nav-link {
    display: block;
    padding: 20px 30px;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.nav-lang {
    display: block;
    padding: 20px 30px;
    color: #2F6CB0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}

.nav-link:hover {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.nav-link:last-child {
    border-bottom: none;
}

/* Mission Section */
.mission-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.mission-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.mission-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.mission-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mission-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 800px;
}

.mission-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.mission-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* About Us Section */
.about-section {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    font-size: 1.85rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-lead {
    margin-bottom: 2.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.about-stat-card {
    padding: 28px 24px;
    border-right: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.about-stat-card:nth-child(3n) {
    border-right: none;
}

.about-stat-card:nth-child(n + 4) {
    border-bottom: none;
}

.about-stat-head {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.about-stat-tagline {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2F6CB0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.about-stat-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #555;
    margin: 0;
}

/* legacy about (if used elsewhere) */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 260px;
    position: relative;
    overflow: hidden;
    background: #e8e8e8;
    display: grid;
    gap: 2px;
}

.product-image--grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.product-image--grid-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

.product-image-item {
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

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

.product-image-label {
    position: absolute;
    right: 8px;
    bottom: 8px;
    max-width: 85%;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 500;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info {
    padding: 25px;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

.product-description-inner {
    max-height: 4.8em;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.product-description.is-expanded .product-description-inner {
    max-height: 2000px;
}

.product-description-toggle {
    margin-top: 6px;
    padding: 0;
    border: none;
    background: none;
    color: #2F6CB0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.product-description-toggle:hover {
    text-decoration: underline;
}

.product-description.is-expanded .product-description-toggle {
    margin-top: 8px;
}

.product-description p {
    margin-bottom: 0.75em;
}

.product-description p:last-child {
    margin-bottom: 0;
}

/* Location & Contact Section */
.location-contact-section {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.location-contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.location-info {
    padding: 10px;
    text-align: left;
}

.location-name {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.location-address {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

.location-map-section {
    margin-top: 10px;
}

.location-map-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.location-map-wrapper {
    width: 100%;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    background-color: #e5e5e5;
}

.location-map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.location-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #2F6CB0;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.map-button-primary {
    background-color: #2F6CB0;
    color: #ffffff;
}

.map-button-primary:hover {
    background-color: #25548a;
    box-shadow: 0 2px 8px rgba(47, 108, 176, 0.4);
}

.map-button-secondary {
    background-color: #ffffff;
    color: #2F6CB0;
}

.map-button-secondary:hover {
    background-color: #f0f5fb;
    box-shadow: 0 2px 8px rgba(47, 108, 176, 0.2);
}

.location-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
}

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

.contact-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.contact-value {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 12px 15px;
    }

    .header-logo {
        max-height: 40px;
    }

    .company-name {
        font-size: 0.75rem;
    }

    .nav-menu {
        width: 250px;
    }

    .mission-title {
        font-size: 1.85rem;
    }

    .mission-text {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-section,
    .products-section,
    .location-contact-section {
        padding: 50px 0;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-stat-card {
        padding: 22px 20px;
    }

    .about-stat-card:nth-child(3n) {
        border-right: 1px solid #e8e8e8;
    }

    .about-stat-card:nth-child(2n) {
        border-right: none;
    }

    .about-stat-card:nth-child(n + 4) {
        border-bottom: none;
    }

    .about-stat-card:nth-child(n + 5) {
        border-bottom: 1px solid #e8e8e8;
    }

    .about-stat-card:last-child {
        border-bottom: none;
    }

    .location-contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .location-info,
    .contact-info {
        text-align: center;
        padding: 5px;
    }

    .location-map-actions {
        justify-content: center;
    }

    .contact-info {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 10px 15px;
    }

    .header-logo {
        max-height: 35px;
    }

    .company-name {
        font-size: 0.65rem;
    }

    .nav-menu {
        width: 100%;
    }

    .mission-title {
        font-size: 1.5rem;
    }

    .mission-text {
        font-size: 0.95rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-stat-card {
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
    }

    .about-stat-card:last-child {
        border-bottom: none;
    }
}

/* Desktop Navigation Layout */
@media (min-width: 769px) {
    /* Hide hamburger button on desktop */
    .menu-toggle {
        display: none;
    }

    /* Header layout: logo left, nav right */
    .header-container {
        padding: 15px 40px;
    }

    .logo-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    /* Turn side drawer into horizontal menu */
    .nav-menu {
        position: static;
        right: auto;
        top: auto;
        width: auto;
        height: auto;
        background-color: transparent;
        box-shadow: none;
        padding-top: 0;
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .nav-menu.active {
        right: auto;
    }

    .nav-link,
    .nav-lang {
        border-bottom: none;
        padding: 0;
        font-size: 1rem;
    }

    .nav-link:hover,
    .nav-lang:hover {
        background-color: transparent;
        color: #2F6CB0;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background-color: #25D366;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    min-width: fit-content;
}

.whatsapp-float-icon {
    height: 28px;
    width: auto;
    max-width: 120px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    /* 绿色 logo 转成白色，在绿色按钮上更清晰 */
    filter: brightness(0) invert(1);
}

.whatsapp-float:hover {
    background-color: #1EBE5D;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        padding: 10px 14px;
        font-size: 0.9rem;
        min-width: 52px;
        min-height: 52px;
    }

    .whatsapp-float-icon {
        height: 26px;
        max-width: 100px;
    }
}
