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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.nav-logo h2 {
    color: #2c5530;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

/* 汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle span {
    width: 30px;
    height: 4px;
    background-color: #2c5530;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

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

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

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2c5530;
}

.nav-cta {
    background: #2c5530;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.nav-cta:hover {
    background: #1e3a21;
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 80%;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 30px 20px;
    transform: scale(0.8) translateX(50px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: top right;
    pointer-events: none;
}

.mobile-menu.active {
    display: block;
    transform: scale(1) translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    margin: 0.8rem 0;
}

.mobile-nav-menu a {
    text-decoration: none;
    color: #2c5530;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.8rem 1rem;
    display: block;
    transition: all 0.3s ease;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mobile-nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(44, 85, 48, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-nav-menu a:hover::before {
    left: 100%;
}

.mobile-nav-menu a:hover {
    background: rgba(44, 85, 48, 0.1);
    color: #1e3a21;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.2);
}

.mobile-nav-cta {
    background: linear-gradient(135deg, #2c5530, #4a7c59) !important;
    color: white !important;
    border-radius: 15px !important;
    font-weight: 600 !important;
    margin-top: 1rem !important;
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.3) !important;
}

.mobile-nav-cta:hover {
    background: linear-gradient(135deg, #1e3a21, #2c5530) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(44, 85, 48, 0.4) !important;
}

/* 移动端菜单背景遮罩 */
.mobile-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.active::before {
    opacity: 1;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 50%, #6b8e6b 100%);
    background-image: url('images/main-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: heroBackgroundMove 20s ease-in-out infinite;
}

@keyframes heroBackgroundMove {
    0%, 100% { background-position: center, 0 0; }
    50% { background-position: center, -20px -10px; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.6) 0%, rgba(74, 124, 89, 0.5) 50%, rgba(107, 142, 107, 0.4) 100%);
    backdrop-filter: blur(2px);
}

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

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(3px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* 智能设备发光效果 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 60% 70%, rgba(212, 175, 55, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    animation: smartGlow 4s ease-in-out infinite alternate;
}

@keyframes smartGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b8941f 0%, #d4af37 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #2c5530;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: #2c5530;
    border: 2px solid #2c5530;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.btn-outline:hover {
    background: #2c5530;
    color: white;
}

/* Section Titles */
.section-title {
    text-align: center;
    color: #2c5530;
    margin-bottom: 3rem;
}

/* Product Categories */
.product-categories {
    padding: 5rem 0;
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

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

.category-card:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(44, 85, 48, 0.2);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.1), rgba(74, 124, 89, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.category-card:hover::before {
    opacity: 1;
}

.category-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.category-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

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

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

.lawn-garden {
    background: url('images/lawn-garden.svg');
    background-size: cover;
    background-position: center;
}

.security {
    background: url('images/security-cameras.svg');
    background-size: cover;
    background-position: center;
}

.kitchen {
    background: url('images/kitchen-bbq.svg');
    background-size: cover;
    background-position: center;
}

.lighting {
    background: url('images/lighting-atmosphere.svg');
    background-size: cover;
    background-position: center;
}

.category-content {
    padding: 1.5rem;
}

.category-content h3 {
    color: #2c5530;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.category-content p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.product-preview {
    margin-bottom: 1rem;
}

.product-item {
    background: #f8f9fa;
    padding: 0.4rem 0.8rem;
    margin-bottom: 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.3;
}

/* Professional Strength */
.professional-strength {
    padding: 5rem 0;
    background: white;
}

.strength-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.strength-text h2 {
    color: #2c5530;
    margin-bottom: 1.5rem;
}

.strength-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.strength-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.factory-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 300px;
}

.showcase-item {
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
}

.factory {
    grid-row: span 2;
}

.design {
    /* 保持原有样式 */
}

.testing {
    /* 保持原有样式 */
}

.factory-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.factory-image:hover {
    transform: scale(1.05);
}

/* Lifestyle Section */
.lifestyle {
    padding: 5rem 0;
    background: #f8f9fa;
}

.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.lifestyle-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.lifestyle-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
}

.lifestyle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lifestyle-img:hover {
    transform: scale(1.05);
}

.garden-evening {
    background: url('images/garden-evening.svg');
    background-size: cover;
    background-position: center;
}

.bbq-party {
    background: url('images/bbq-party.svg');
    background-size: cover;
    background-position: center;
}

.night-lighting {
    background: url('images/night-lighting.svg');
    background-size: cover;
    background-position: center;
}

.lifestyle-item h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: #2c5530;
}

.lifestyle-item p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
}

/* About & Contact */
.about-contact {
    padding: 5rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text h2 {
    color: #2c5530;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.contact-info h3 {
    color: #2c5530;
    margin-bottom: 1.5rem;
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-item {
    padding: 0.5rem 0;
    color: #666;
}

.contact-item strong {
    color: #2c5530;
}

/* Distributors */
.distributors {
    padding: 5rem 0;
    background: #2c5530;
    color: white;
    text-align: center;
}

.distributors h2 {
    color: white;
    margin-bottom: 1rem;
}

.distributors p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.distributor-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.benefit-item h3 {
    color: #d4af37;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #1e3a21;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 0.5rem;
    object-fit: contain;
    opacity: 0.9;
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    color: #d4af37;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

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

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

/* 图片放大模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #ffffff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.close:hover {
    color: #d4af37;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 产品图片点击效果 */
.product-image {
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Back to Top 按钮 */
.back-to-top {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 0;
}

.back-to-top-btn {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(44, 85, 48, 0.3);
}

.back-to-top-btn:hover {
    background: linear-gradient(135deg, #1e3a21 0%, #2c5530 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* 移动端菜单在响应式CSS中不需要额外设置 */
    
    .nav-container {
        justify-content: flex-start;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .strength-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .category-content {
        padding: 1rem;
    }
    
    .category-content h3 {
        font-size: 1.1rem;
    }
    
    .category-content p {
        font-size: 0.85rem;
    }
    
    .lifestyle-grid {
        grid-template-columns: 1fr;
    }
    
    .distributor-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn-primary, .btn-secondary, .btn-outline {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-content {
        padding: 0.8rem;
    }
    
    .category-content h3 {
        font-size: 1rem;
    }
    
    .category-content p {
        font-size: 0.8rem;
    }
}
