/* 
 * Mujian Dao - Global Styles
 * Design Philosophy: Elegance over Function
 */

:root {
    /* Color Palette */
    --primary-color: #4A3B32;
    /* Deep Sandalwood */
    --secondary-color: #C5A065;
    /* Champagne Gold */
    --bg-color: #F9F8F6;
    /* Warm White */
    --dark-bg: #2C2C2C;
    /* Charcoal */
    --text-main: #333333;
    /* Dark Grey */
    --text-muted: #666666;
    /* Light Grey */

    /* Fonts */
    --font-en-heading: 'Playfair Display', serif;
    --font-en-body: 'Inter', sans-serif;
    --font-cn-heading: 'Noto Serif SC', serif;
    --font-cn-body: 'Noto Sans SC', sans-serif;
}

/* General Reset & Typography */
body {
    font-family: var(--font-en-body), var(--font-cn-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-en-heading), var(--font-cn-heading);
    font-weight: 700;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Utility Classes */
.text-gold {
    color: var(--secondary-color) !important;
}

.bg-dark-wood {
    background-color: var(--primary-color) !important;
}

.bg-warm {
    background-color: var(--bg-color) !important;
}

/* Buttons */
.btn-gold {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #b08d55;
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: #fff;
    color: #fff;
    border-radius: 0;
    padding: 10px 25px;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    transition: background-color 0.4s ease, padding 0.4s ease;
    padding: 20px 0;
    background-color: rgba(74, 59, 50, 0.9);
}

.navbar.scrolled {
    background-color: #4A3B32 !important;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 50px;
    margin-right: 15px;
    transition: height 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
}

.navbar-brand h3 {
    margin: 0;
    color: #fff !important;
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 40px;
        margin-right: 10px;
    }
    
    .navbar-brand h3 {
        font-size: 1.2rem;
    }
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    margin-left: 20px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-bg-animated {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: -1;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .hero-bg-animated {
        object-fit: cover;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #fff !important;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    color: #fff !important;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

.hero-btn {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.1s;
}

/* Section General */
section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 50px;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* About Teaser */
.about-teaser-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
    border-radius: 8px;
}

/* Core Advantages */
.advantage-card {
    padding: 30px 20px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.advantage-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.advantage-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Stats Section */
.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-en-heading);
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Craftsmanship Banner */
.craftsmanship-banner {
    position: relative;
}

.craftsmanship-banner h2 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.craftsmanship-banner p {
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Product Cards */
.product-card-col {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card-flipper {
    position: relative;
    height: 600px;
    cursor: pointer;
    perspective: 1000px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.product-card-flipper:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.product-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    overflow: hidden;
    background: #f5f5f5;
}

.product-card-front img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.6s ease, padding 0.3s ease;
}

.product-card-flipper:hover .product-card-front img {
    transform: scale(1.05);
    padding: 15px;
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
    transition: all 0.3s ease;
}

.product-card-flipper:hover .product-overlay {
    padding-bottom: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.3));
}

.product-code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}

.product-image {
    transition: opacity 0.5s ease;
}

/* Product Carousel */
.product-carousel-wrapper {
    overflow: hidden;
    padding: 20px 0;
}

.product-carousel {
    display: flex;
    gap: 20px;
    animation: scroll-left 30s linear infinite;
    will-change: transform;
}

.product-carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.carousel-product-card {
    flex: 0 0 300px;
    height: 400px;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f5f5f5;
}

.carousel-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.carousel-product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s ease;
}

.carousel-product-card:hover img {
    transform: scale(1.05);
}

.carousel-product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
}

.carousel-product-code {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
    color: #fff;
}

.carousel-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

@media (max-width: 768px) {
    .product-card-flipper {
        height: 350px;
    }

    .product-card-front img {
        padding: 15px;
    }

    .product-overlay {
        padding: 20px;
    }

    .product-overlay h3 {
        font-size: 1rem;
    }
    
    .carousel-product-card {
        flex: 0 0 200px;
        height: 300px;
    }
    
    .product-carousel {
        animation-duration: 20s;
    }

    .product-code {
        font-size: 0.75rem;
    }
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-logo {
    height: 30px;
    margin-bottom: 20px;
}

.footer-links h5 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-icons a {
    color: #fff;
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Floating Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-widget a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    color: #fff;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-widget a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .navbar-collapse {
        background-color: var(--primary-color);
        padding: 20px;
    }

    .advantage-card {
        margin-bottom: 0;
        padding: 20px 10px;
    }

    .advantage-card h4 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .advantage-card p {
        font-size: 0.85rem;
    }

    .advantage-icon {
        margin-bottom: 15px;
    }

    .advantage-icon i {
        font-size: 2rem !important;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .craftsmanship-banner h2 {
        font-size: 1.8rem;
    }

    .about-teaser-img {
        min-height: auto;
        height: auto;
        object-fit: contain;
    }
}