/* Global Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #0b1120;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-color: #38bdf8;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: #1e293b;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.amazon-btn {
    background: linear-gradient(135deg, #f90, #f70);
    color: #fff !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amazon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px; /* Offset for fixed header */
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(11, 17, 32, 0.3), rgba(11, 17, 32, 0.9));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #0069d9;
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.6);
    transform: scale(1.05);
}

/* About Section */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    gap: 3rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--glass-border);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Factory Section */
.factory-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.factory-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
}

.factory-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    height: 500px;
}

.factory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Factory carousel styles */
.factory-carousel {
    position: relative;
    width: 100%;
    /* max-width: 900px; */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    /* Match previous static factory image height */
    height: 500px;
}
.factory-carousel .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}
.factory-carousel .carousel-slide {
    min-width: 100%;
    flex: 0 0 100%;
    overflow: hidden;
}
.factory-carousel .carousel-slide img {
    width: 100%;
    height: 500px; /* explicit height to match previous layout */
    object-fit: cover;
    display: block;
}
.factory-carousel .carousel-prev,
.factory-carousel .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.factory-carousel .carousel-prev { left: 12px; }
.factory-carousel .carousel-next { right: 12px; }
.factory-carousel .carousel-indicators {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    display: flex;
    gap: 8px;
}
.factory-carousel .carousel-dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.6);
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
}
.factory-carousel .carousel-dot.active {
    background: var(--accent-color, #2b9af3);
}

/* Footer & Contact */
footer {
    background: #0f172a;
    padding-top: 5rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center; /* Vertically align icon and text */
    color: var(--text-muted);
}
.contact-info li i {
    margin-right: 10px;
    color: var(--primary-color);
    min-width: 20px; /* Ensure icon has space */
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 备案信息样式 */
.beian-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.beian-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
}
.beian-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: inline-block;
}
.beian-number {
    color: var(--text-muted);
}

/* 公安备案号样式调整 */
.beian-item:hover {
    color: #fff;
}
.beian-item img.beian-img {
    width: 18px;
    height: 18px;
}
.gongan-number {
    margin-top: 0.25rem;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

.wa-button {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.wa-button:hover {
    transform: scale(1.1) rotate(10deg);
}

.wa-button svg {
    width: 35px;
    height: 35px;
    fill: #fff;
}

.wa-qr-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 200px;
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.wa-button:hover + .wa-qr-popup,
.wa-qr-popup:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wa-qr-popup img {
    width: 100%;
    border-radius: 5px;
}

.wa-qr-popup p {
    text-align: center;
    color: #333;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simplification for this demo, mobile menu would need JS */
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
}
