:root {
    --primary-red: #8D1B11;
    --secondary-red: #8A0200;
    --accent-red: #FF4757;
    --accent-teal: #20B2AA;
    --accent-blue: #4169E1;
    --accent-yellow: #FFD700;
    --accent-green: #32CD32;
    --primary-grey: #333;
    --secondary-grey: #666;
}
.header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}
/* Logo区域样式 */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    max-height: 60px;
}

.logo img{
    max-height: 60px;
}

/* 搜索框样式 */
.search {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 300px;
}

.search .input-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
}

.search .form-control {
    border: 1px solid var(--primary-red);
    border-right: none;
    border-radius: 20px 0 0 20px;
    padding-left: 12px;
    font-size: 0.9em;
    height: 32px;
}

.search .form-control:focus {
    border-color: var(--primary-red);
    box-shadow: none;
}

.search .btn-outline-secondary {
    border: 1px solid var(--primary-red);
    border-left: none;
    background-color: transparent;
    border-radius: 0 20px 20px 0;
    color: var(--primary-red);
    padding: 0 10px;
    height: 32px;
    font-size: 0.9em;
}

.search .btn-outline-secondary:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.search .btn-outline-secondary:focus {
    box-shadow: none;
}

/* 导航菜单样式 */
.navbar {
    position: relative;
    margin: 0;
    padding: 0;
    height: 40px;
    background-color: var(--primary-red);
}

.navbar-nav {
    width: 1200px;
    margin: 0 auto;
}

.navbar-nav .nav-item {
    margin: 0 5px;
    width: 16.6%;
    height: 40px;
    line-height: 40px;
    text-align: center;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 0 12px !important;
    border-radius: 0;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;

}

.navbar-toggler {
    border: 1px solid #ddd;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-collapse {
    width: 1200px;
    margin: 0 auto;
    height: 40px;
    padding: 0;
}

/* 移动端导航栏样式 */
@media screen and (max-width: 768px) {
    .navbar {
        position: relative;
        height: 50px;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 0 15px;
    }
    
    .navbar-toggler {
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        border: 1px solid #fff;
        background: transparent;
        padding: 8px 12px;
        z-index: 1001;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 20px;
        height: 20px;
    }
    
    .navbar-collapse {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-red);
        padding: 60px 0 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        display: block !important;
    }
    
    .navbar-collapse.show {
        right: 0;
        display: block !important;
    }
    
    .navbar-collapse.collapse {
        display: block !important;
        right: -100%;
    }
    
    .navbar-collapse.collapse.show {
        right: 0;
        display: block !important;
    }
    
    /* 强制覆盖Bootstrap的collapse行为 */
    .navbar-collapse.collapse:not(.show) {
        display: block !important;
        right: -100%;
    }
    
    .navbar-nav {
        width: 100%;
        margin: 0;
        flex-direction: column;
        padding: 0 20px;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        margin: 0 0 10px 0;
        height: auto;
        line-height: normal;
        text-align: left;
    }
    
    .navbar-nav .nav-link {
        display: block;
        padding: 12px 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 16px;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff !important;
    }
    
    /* 下拉菜单移动端样式 */
    .nav-item.dropdown {
        position: static;
    }
    
    .dropdown-menu {
        position: static !important;
        display: none !important;
        background-color: transparent !important;
        border-bottom: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 10px !important;
        width: 100% !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease !important;
        z-index: auto !important;
        top: auto !important;
        left: auto !important;
        /* min-width: auto !important; */
        width: 100%;
    }

    .dropdown-menu.show {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        max-height: none !important;
        overflow: visible !important;
        width: 100% !important;
        min-width: auto !important;
        padding: 10px 15px !important;
        background: transparent;
    }

    .dropdown-menu li {
        flex: 0 0 auto !important;
        margin: 0 !important;
        display: inline-block !important;
        float: none !important;
    }

    .dropdown-item {
        padding: 8px 15px !important;
        color: rgba(255, 255, 255, 0.95) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 20px !important;
        font-size: 12px !important;
        transition: all 0.3s ease !important;
        background-color: transparent !important;
        display: inline-block !important;
        white-space: nowrap !important;
        margin: 0 !important;
    }

    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.2) !important;
        color: #fff !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        transform: translateY(-2px) !important;
    }
    
    /* 遮罩层 */
    .navbar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .navbar-backdrop.show {
        opacity: 1;
        visibility: visible;
    }
}

/* 下拉菜单基础样式 */
.nav-item.dropdown {
    position: relative;
}

/* 下拉菜单容器 */
.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 9999;
    top: 100%;
    left: 0;
    margin: 0;
    padding: 4px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 0 0 8px 8px;
    width: 100%;
    min-width: auto;
    box-shadow: 0 8px 25px rgba(141, 27, 17, 0.15);
    border-top: 3px solid var(--primary-red);
    animation: dropdownSlide 0.3s ease-out;
}

/* 下拉菜单动画 */
@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 显示状态 */
.dropdown-menu.show {
    display: block;
}

.dropdown-menu li {
    text-align: center;
    border-bottom: 1px solid rgba(141, 27, 17, 0.08);
    transition: background-color 0.3s ease;
}

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

.dropdown-menu li:hover {
    background: linear-gradient(135deg, rgba(141, 27, 17, 0.05) 0%, rgba(141, 27, 17, 0.02) 100%);
}

/* 菜单项样式 */
.dropdown-item {
    display: block;
    width: 100%;
    padding: 5px 15px;
    font-size: 14px;
    margin: 0;
    color: #333;
    text-decoration: none;
    background-color: transparent;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 100%);
    transition: height 0.3s ease;
}

/* 悬停效果 */
.dropdown-item:hover {
    color: var(--primary-red);
    background: linear-gradient(135deg, rgba(141, 27, 17, 0.08) 0%, rgba(141, 27, 17, 0.03) 100%);
    padding-left: 25px;
    transform: translateX(5px);
}

.dropdown-item:hover::before {
    height: 100%;
}

/* 下拉菜单箭头 */
.nav-item.dropdown .dropdown-toggle::after {
    border-top-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
    border-top-color: #fff;
    transform: translateY(2px);
}

/* 鼠标悬停时显示下拉菜单 */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}