:root {
    --warm-white: #F8F5F0;
    --light-apricot: #F2E1C9;
    --soft-gold: #D4AF37;
    --charcoal-gray: #333333;
    --gilded-gold: #C9A962;
    --light-brown: #B8A07E;
    --soft-gray: #E8E4DE;
    --text-dark: #2C1C1C;
    --text-light: #6B6B6B;
    --max-width: 1200px;
    --navbar-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', '思源黑体 CN', sans-serif;
    background-color: var(--warm-white);
    color: var(--charcoal-gray);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--navbar-height);
}

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--navbar-height);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.navbar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.navbar-logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--charcoal-gray) !important;
    flex-shrink: 0;
    height: 100%;
}

.navbar-logo img {
    height: 36px;
    width: auto;
    margin-right: 8px;
    object-fit: contain;
}

.navbar-logo .logo-text {
    color: #000000 !important;
}

.navbar-logo .logo-highlight {
    color: var(--gilded-gold) !important;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    height: 100%;
}

.navbar-menu li {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gilded-gold);
    transition: width 0.3s ease;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--gilded-gold);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    height: 30px;
    justify-content: center;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal-gray);
    transition: all 0.3s ease;
}

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

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

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

@media (max-width: 992px) {
    .navbar-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: var(--warm-white);
        flex-direction: column;
        padding: 1rem 20px;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        max-height: calc(100vh - var(--navbar-height));
        overflow-y: auto;
        height: auto;
    }

    .navbar-menu.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-menu li {
        width: 100%;
        height: auto;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-menu li:last-child {
        border-bottom: none;
    }

    .navbar-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
        height: auto;
    }

    .navbar-menu a::after {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        font-size: 1.5rem;
    }

    .navbar-logo img {
        height: 30px;
    }

    .container,
    .navbar-container {
        padding: 0 16px;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}
