/* Hamburger */
.hamburger { display: none; width: 30px; height: 21px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.hamburger span{display:block;width:100%;height:3px;background:#fff;transition:all .3s ease;}
.hamburger.open span:nth-child(1){transform:translateY(9px) rotate(45deg);}
.hamburger.open span:nth-child(2){opacity:0;}
.hamburger.open span:nth-child(3){transform:translateY(-9px) rotate(-45deg);} 

/* Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.nav-links a {
    color: #ffffff; /* Pure white for better contrast */
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

@media(max-width:900px){
    .hamburger{display:flex;}
    #nav-links{position:absolute;top:80px;left:0;right:0;background:#3a5f7d;flex-direction:column;align-items:center;display:none;}
    #nav-links.active{display:flex;}
    .nav-links a{margin:15px 0;}
}

.nav-links a:hover {
    color: #25D366;
    transform: translateY(-2px);
}

/* Dropdown Menu */
.products-dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.dropdown-btn:hover {
    color: #25D366;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 1rem;
    display: none;
    z-index: 1000;
}

.dropdown-content a {
    color: #2c3e50;
    padding: 0.5rem 1rem;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #25D366;
    transform: translateX(5px);
}

.products-dropdown:hover .dropdown-content {
    display: block;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-selector select {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-widget a {
    background-color: #25D366;
    color: white;
    padding: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.whatsapp-widget a:hover {
    transform: scale(1.1);
}

/* Header */
body {
    padding-top: 80px; /* 为固定导航栏留出空间 */
}

header {
    background: #3a5f7d; /* Slate blue color */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: white;
    height: 80px; /* 固定导航栏高度 */
    box-sizing: border-box;
}

header nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-img { height: 40px; }
.logo a {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: white;
}

.contact-info p {
    margin: 0;
    font-size: 0.9rem;
}

/* Product Cards */
.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-height: 550px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.category-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.02);
}

.category-card h3 {
    font-size: 1.6rem;
    margin: 1.8rem 1.5rem 0.8rem;
    color: #2c3e50;
    line-height: 1.4;
    font-weight: 600;
}

.category-card p {
    font-size: 1.2rem;
    margin: 0 1.5rem 1.5rem;
    color: #666;
    line-height: 1.6;
}

.product-meta {
    margin: 0 1.5rem 1.8rem;
    font-size: 0.9rem;
    color: #888;
}

.product-meta span {
    margin-right: 1rem;
    padding: 0.3rem 0.8rem;
    background: #f7f7f7;
    border-radius: 4px;
}

.product-meta .product-category {
    background: #e8f5e9;
    color: #2e7d32;
}

.product-meta .product-material {
    background: #f3e5f5;
    color: #4a148c;
}

/* Grid Layout */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 50px;  /* 移除顶部margin，由body的padding-top控制 */
    padding: 2rem;
}

@media (max-width: 1200px) {
    .category-grid {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    .category-card {
        min-height: 450px;
    }
    .category-card img {
        height: 280px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
}

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

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* Map Image */
.map-image {
    text-align: center;
    margin: 4rem 0;
}

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