﻿/* 导航栏样式 */
        .navbar {
            /*background: #34495e;*/
            border-radius: 5px;
            overflow: visible; /* 重要：改为visible确保下拉菜单不被裁剪 */
            margin: 20px 0;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        .nav-list {
            list-style: none;
             /*display: flex;*/
            justify-content: center;
            position: relative; /* 确保下拉菜单相对于导航栏定位 */

        }
        
        .nav-item {
            position: relative; /* 确保下拉菜单相对于菜单项定位 */
        }
        
        .nav-item > a {
            display: block;
            color: white;
            text-decoration: none;
            /*padding: 18px 25px;*/
            /*font-size: 1.1rem;*/
            transition: all 0.3s ease;
            position: relative;
            white-space: nowrap; /* 防止文字换行 */
        }
        
        .nav-item > a:hover {
            background: #3498db;
        }
        
        .nav-item > a::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 3px;
            /*background: #3498db;*/
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }
        
        .nav-item > a:hover::after {
            width: 80%;
        }
        
        /* 下拉菜单样式 - 修复版 */
        .dropdown-content {
            position: absolute;
            top: 100%; /* 从菜单项底部开始 */
            
            left: 5px;/* 修改11：下拉栏目的位置偏移修改，原来是0 */
            background: #8c2f21;/* 修改22：修改下拉背景颜色0D7E14*/
            /*min-width: 220px;*/
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            border-radius: 0 0 5px 5px;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
            /* 确保下拉菜单不被父元素裁剪 */
            display: block !important; /* 强制显示，悬停时控制可见性 */
        }
        
        .dropdown-content a {
            display: block;
            padding: 4px 20px;/* 修改33：上下的padding太大，原来是14px */
            /*color: #333;*/
            text-decoration: none;
            border-bottom: 1px solid #f1f1f1;
            transition: all 0.2s ease;
            position: relative;
        }
        
        .dropdown-content a:last-child {
            border-bottom: none;
        }
        
        .dropdown-content a::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 0;
            /*background: #3498db;*/
            transition: width 0.2s ease;
            z-index: -1;
        }
        
        .dropdown-content a:hover {
            /*color: white;*/
            padding-left: 30px;
        }
        
        .dropdown-content a:hover::before {
            width: 100%;
        }
        
        /* 悬停时显示下拉菜单 - 修复版 */
        .nav-item:hover .dropdown-content {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        /* 添加下拉指示箭头 
        .nav-item.has-dropdown > a::after {
            content: " ▼";
            /*font-size: 10px;*/
            margin-left: 8px;
            position: static;
            background: none;
            width: auto;
            height: auto;
            transform: none;
        }*/