:root {
    --primary-color: #4A3B32;
    /* Dark Walnut */
    --accent-color: #C5A059;
    /* Antique Gold */
    --bg-color: #F9F7F2;
    /* Rice Paper */
    --text-color: #2C241F;
    --light-text: #F5F1E8;
    --font-serif: 'Noto Serif SC', serif;
    --font-sans: 'Noto Sans SC', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: var(--font-serif);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(249, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(74, 59, 50, 0.1);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1512;
    /* Very dark brown */
    color: var(--light-text);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.sub-headline {
    font-size: 1.2rem;
    color: var(--accent-color);
    letter-spacing: 4px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.headline {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--accent-color);
    color: #1a1512;
    font-weight: 700;
    border-radius: 2px;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.cta-button:hover {
    background-color: #d4b06a;
    transform: translateY(-2px);
}

/* Hero Animation (Abstract Luopan) */
.hero-bg-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
    pointer-events: none;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 400px;
    height: 400px;
    border-style: dashed;
    animation: rotate-right 60s linear infinite;
}

.ring-2 {
    width: 600px;
    height: 600px;
    border-width: 1px;
    opacity: 0.5;
    animation: rotate-left 80s linear infinite;
}

.ring-3 {
    width: 800px;
    height: 800px;
    border-style: dotted;
    animation: rotate-right 100s linear infinite;
}

.center-pool {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-color);
}

@keyframes rotate-right {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-left {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

/* Heritage Section */
.heritage-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.heritage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.heritage-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #5a4a3d;
}

.heritage-img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 20px 20px 0 var(--primary-color);
}

/* Craftsmanship Section */
.craftsmanship-section {
    position: relative;
    padding: 100px 0;
    background-color: #1a1512;
    color: var(--light-text);
}

.craft-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

.craftsmanship-section .container {
    position: relative;
    z-index: 2;
}

.craftsmanship-section .section-title {
    color: var(--light-text);
}

.craft-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.craft-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border: 1px solid rgba(197, 160, 89, 0.2);
    transition: 0.3s;
}

.craft-card:hover {
    background: rgba(197, 160, 89, 0.1);
    transform: translateY(-5px);
}

.craft-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.craft-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Product Section */
.product-section {
    padding: 100px 0;
    background-color: #fff;
}

.product-showcase {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.product-image {
    flex: 1;
}

.product-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-details {
    flex: 1;
}

.product-details h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.product-desc {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #555;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Contact Section */
.contact-section {
    padding: 80px 0 40px;
    background-color: var(--primary-color);
    color: var(--light-text);
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-list {
    list-style: none;
    margin-top: 2rem;
}

.contact-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: bold;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

.beian-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.beian-info a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s;
}

.beian-info a:hover {
    color: var(--accent-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: 0.3s ease-in-out;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: block;
    }

    .headline {
        font-size: 2.5rem;
    }

    .heritage-grid,
    .craft-grid,
    .contact-wrapper,
    .product-showcase {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .heritage-image-wrapper {
        order: -1;
        /* Image first on mobile */
        margin-bottom: 2rem;
    }

    .heritage-img {
        box-shadow: 10px 10px 0 var(--primary-color);
    }

    .contact-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .product-image {
        margin-bottom: 2rem;
    }
}

/* Contact QR Code */
.contact-qr {
    text-align: center;
    margin-left: 2rem;
}

.contact-qr img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    padding: 5px;
    background: white;
}

.contact-qr p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.copyright {
    border-top: none;
    /* Remove previous border */
    padding-top: 0.5rem;
    margin-top: 0;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .contact-qr {
        margin-left: 0;
        margin-top: 2rem;
    }
}