html, body {
    overflow-x: hidden;
}

.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(248, 244, 240, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(194, 24, 7, 0.05);
    z-index: 1000;
}

.nav-container {
    max-width: 1300px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #e53935;
}

.logo-mark {
    font-size: 18px;
}

.logo-text {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

.logo-text em {
    font-style: normal;
    opacity: .7;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-item {
    text-decoration: none;   
    color: #e53935; 
    opacity: 0.85;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.25px;
    display: inline-block;
    transition: all 0.25s ease;
}

.nav-item:hover, 
.nav-item.active,
.dropdown:hover .nav-item {
    opacity: 1;
    font-weight: 300;
    animation: textBlinkGlow 2s ease-in-out infinite alternate;
}

@keyframes textBlinkGlow {
    0% { opacity: 0.85; text-shadow: 0 0 0 rgba(229, 57, 53, 0); }
    100% { opacity: 1; text-shadow: 0 0 4px rgba(229, 57, 53, 0.15); }
}

/* 下拉菜单 (Dropdown) */
.dropdown {
    position: relative;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(248, 244, 240, 0.95);
    width: auto; 
    padding: 4px 0;
    list-style: none;
    transition: all 0.3s ease;
}

.dropdown-content li a {
    display: block;
    padding: 10px 24px;
    text-decoration: none;
    color: #e53935;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
    text-align: left;
    white-space: nowrap;
}

.dropdown-content li a:hover {
    color: #c21807;
    background-color: rgba(194, 24, 7, 0.03);
    font-weight: 300;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: #c21807;
    transition: all 0.3s ease;
}
@media (max-width: 960px) {
    .nav-container { padding: 0 24px; }
    .menu-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 75px);
        background-color: rgba(248, 244, 240, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(194, 24, 7, 0.05);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 30px;
        gap: 24px;
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.03);
    }

    .nav-menu.active { right: 0; }
    .nav-item { width: 100%; display: block; }
    .dropdown { width: 100%; }
    
    .dropdown-content {
        position: static;
        width: 100%;
        background: transparent;
        padding: 8px 0 0 16px;
    }
    .dropdown.open .dropdown-content { display: block; }
}

/* ==========================================================================
   Logo image added to the original navigation
   ========================================================================== */
.logo-image {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* Keep the original desktop dropdown behavior exactly:
   hover the whole .dropdown, then move into .dropdown-content. */
.dropdown-content {
    top: 100%;
}

@media (max-width: 960px) {
    .logo-image {
        width: 32px;
        height: 32px;
    }
}
