:root {
    --bg-color: #ffffff;
    --text-color: #1d1d1f;
    --accent-color: #2997ff;
    --secondary-text: #6e6e73;
    --nav-bg: #ffffff;
    --nav-blur: 20px;
    --section-padding: 100px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Navbar - White Background */
/* Navbar - White Background */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    backdrop-filter: blur(var(--nav-blur));
    -webkit-backdrop-filter: blur(var(--nav-blur));
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ✅ 1. 去掉固定 height，用 padding 控制高度 */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* height: 54px;  ← 删除这行 */
    padding: 10px 20px;    /* 上下 8px，整体高度更自然 */
}

/* ✅ 2. 让 logo 容器也参与居中 */
.logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #1d1d1f;
}

/* ✅ 3. 核心：限制 logo 图片的高度，避免撑大 navbar */
.logo img {
    height: 64px;         /* 你可以改 36 / 48，看实际效果 */

}

/* 导航链接区域 */
.nav-links {
    display: flex;
    gap: 30px;
}

/* 导航项样式 */
.nav-item {
    position: relative;
    font-size: 15px;
    color: #1d1d1f;
    opacity: 0.8;
}

.nav-item:hover {
    opacity: 1;
}


/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #f5f5f7;
    padding: 20px;
    border-radius: 12px;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 10px);
}

.dropdown-category h4 {
    font-size: 11px;
    color: var(--secondary-text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-category ul li {
    margin-bottom: 5px;
}

.dropdown-category ul li a {
    font-size: 14px;
    color: var(--text-color);
    display: block;
    padding: 4px 0;
}

.dropdown-category ul li a:hover {
    color: var(--accent-color);
}

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

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.6;
}

.hero-content {
    z-index: 1;
    max-width: 1500px;
    padding: 0 20px;
    animation: fadeIn 1.5s ease-out;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -2px;
    background: linear-gradient(to right, #1d1d1f, #666);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: #1d1d1f;
    margin-bottom: 40px;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #147ce5;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #1d1d1f;
    color: #1d1d1f;
}

.btn-secondary:hover {
    background-color: #1d1d1f;
    color: white;
}

/* Sections General */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--secondary-text);
}

/* Factory Section */
.factory-section {
    background: #f5f5f7;
}

.factory-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    padding: 0 20px;
}

.factory-text h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.factory-text p {
    color: var(--secondary-text);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.factory-media {
    background: #e8e8ed;
    height: 400px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.factory-media img,
.factory-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Best Sellers */
.best-sellers {
    background: #ffffff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-card {
    background: #f5f5f7;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.product-image {
    height: 300px;
    background: #e8e8ed;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-info {
    padding: 25px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.product-info p {
    color: var(--secondary-text);
}

/* Our Work Section (Replaces Showcase) */
.our-work-section {
    background: #ffffff;
    padding: 100px 0;
    overflow: hidden;
}

.our-work-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    padding: 0 40px;
    align-items: center;
}

.our-work-left {
    position: sticky;
    top: 100px;
}

.our-work-left h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.our-work-left p {
    font-size: 1.2rem;
    color: var(--secondary-text);
    margin-bottom: 30px;
    max-width: 400px;
}

.our-work-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    height: 600px;
    /* Fixed height for the window */
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.scrolling-column-wrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.scrolling-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: scroll-vertical var(--duration, 30s) linear infinite;
}

/* Pause on hover */
.scrolling-column-wrapper:hover .scrolling-column {
    animation-play-state: paused;
}

.scrolling-column img {
    width: 100%;
    border-radius: 12px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.scrolling-column img:hover {
    transform: scale(1.02);
}

@keyframes scroll-vertical {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* Social Media */
.social-section {
    text-align: center;
    background: #ffffff;
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.social-card {
    width: 200px;
    height: 300px;
    background: #f5f5f7;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
footer {
    background: #ffffff;
    padding: 60px 0 20px;
    border-top: 1px solid #d2d2d7;
    font-size: 14px;
    color: var(--secondary-text);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    padding: 0 20px;
}

.footer-col h4 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

/* Newsletter Form */
.newsletter-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #d2d2d7;
    border-radius: 4px;
    font-size: 14px;
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    background-color: #ff5722;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #e64a19;
}

.footer-bottom {
    text-align: left;
    margin-top: 60px;
    padding: 20px 20px 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    border-top: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .factory-content {
        grid-template-columns: 1fr;
    }

    .our-work-right {
        grid-template-columns: repeat(2, 1fr);
    }

    .scrolling-column-wrapper:nth-child(3) {
        display: none;
        /* Hide 3rd column on mobile */
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .our-work-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .our-work-left {
        text-align: center;
        position: static;
    }

    .our-work-left p {
        margin: 0 auto 30px;
    }

    .our-work-right {
        height: 500px;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}