/* 基础重置与字体设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: #333;
    font-size: 14px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏容器 - 白色背景 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    background-color: #ffffff;
    padding: 0 20px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #eaeaea;
    font-size: 14px;
}

/* 左侧Logo样式 */
.logo {
    display: flex;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}

/* 中间菜单样式 - 桌面端显示 */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: flex-start;
    margin-left: 30px;
}

.nav-menu li {
    position: relative;
}

.menu-link {
    color: #232323;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 400;
    display: block;
    white-space: nowrap;
    font-size: 14px;
}

.menu-link:hover {
    background-color: #f8f9fa;
    color: #2980b9;
}

/* 下拉菜单内容 - 桌面端四列布局 */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 800px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1000;
    padding: 20px;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* 桌面端：鼠标悬停时显示下拉菜单 */
.dropdown:hover .dropdown-content {
    display: grid;
}

.dropdown-content a {
    color: #2c3e50;
    padding: 8px 10px;
    text-decoration: none;
    display: block;
    border-radius: 4px;
    margin-bottom: 2px;
    font-size: 13px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: #ebf5fb;
    color: #2980b9;
}

/* 右侧功能区 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
/* 统一登录按钮和后台按钮的高度 */
.login-btn, .dropdown-user .login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px; /* 固定高度 */
    line-height: 1; /* 确保文字居中 */
    min-height: 36px; /* 最小高度 */
}

/* 确保用户下拉菜单容器不影响按钮高度 */
.dropdown-user {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

/* 如果问题依然存在，可以添加更精确的样式 */
.nav-right a.login-btn {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: 500;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1;
}
/* 登录按钮样式 */
.login-btn {
    background-color: #e74c3c;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: 500;
    white-space: nowrap;
    font-size: 14px;
}

.login-btn:hover {
    background-color: #c0392b;
}

/* 汉堡菜单按钮（默认隐藏） */
.hamburger {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* 内容区域 */
.content {
    padding: 0 20px 20px 20px;
    background-color: white;
    border-radius: 8px;
    /*box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
    margin: 20px;
    flex: 1; /* 让内容区域填满剩余空间 */
}

/* 新增：页脚样式 */
.footer {
    background-color: #ffffff;
    color: #ecf0f1;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #eeeeee;
    margin-top: auto;
}

.footer-menu {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-menu a {
    color: #1c1c1c;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}



.footer-copyright p,a {
    font-size: 12px;
    color: #1c1c1c;
    margin: 0;
    line-height: 1.5;
    text-decoration: none;
}
/* 响应式设计 - 关键修改：992px以下为移动端 */
@media screen and (max-width: 992px) {
    /* 隐藏整个导航菜单 */
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        padding: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
        max-height: 80vh;
        overflow-y: auto;
    }

    /* 激活时显示导航菜单 */
    .nav-menu.active {
        display: block;
    }

    /* 关键修改1：隐藏其他常规菜单项（如"热门工具"） */
    .nav-item-default {
        display: none !important;
    }

    /* 关键修改2：隐藏"全部功能"这个文字菜单项本身 */
    .dropdown > .menu-link {
        display: none;
    }

    /* 关键修改3：让功能列表直接显示，并调整为两列布局 */
    .dropdown-content {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        min-width: auto;
        width: 100%;
        padding: 15px;
        box-shadow: none;
        border-radius: 0;
        gap: 8px;
    }

    /* 显示汉堡菜单 */
    .hamburger {
        display: flex;
    }
    
    /* 移动端页脚调整 */
    .footer-menu {
        gap: 15px;
        padding: 0 10px;
    }
    
    .footer-menu a {
        font-size: 12px;
    }
    
    .footer-copyright p {
        font-size: 11px;
        padding: 0 10px;
    }
}

/* 更小屏幕的适配 */
@media screen and (max-width: 480px) {
    .navbar {
        padding: 0 10px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .login-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    /* 超小屏幕下改为单列 */
    .dropdown-content {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    /* 超小屏幕页脚调整 */
    .footer-menu {
        flex-direction: column;
        gap: 10px;
    }
}
/* 图标基础样式 */
.menu-link i {
    margin-right: 8px; /* 图标和文字之间的间距 */
    font-size: 14px; /* 图标大小 */
    width: 16px; /* 固定宽度，保持对齐 */
    text-align: center;
}

/* 登录按钮也可以添加图标 */
.login-btn i {
    margin-right: 6px;
}

/* 小屏幕下调整图标大小 */
@media screen and (max-width: 992px) {
    .menu-link i {
        font-size: 16px; /* 在小屏幕上稍大一点 */
        margin-right: 10px;
    }
}

/* 用户下拉菜单容器 */
.dropdown-user {
    position: relative;
    display: inline-block;
}

.dropdown-user-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1000;
    padding: 10px 0;
    /* 移除 margin-top: 5px; 这行 */
    margin-top: 0; /* 改为0 */
}

/* 让下拉菜单悬停时也保持显示 */
.dropdown-user:hover .dropdown-user-content,
.dropdown-user-content:hover {
    display: block;
}

/* 下拉菜单项样式 */
.dropdown-user-content a {
    color: #2c3e50;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.dropdown-user-content a:hover {
    background-color: #ebf5fb;
    color: #2980b9;
    border-left-color: #2980b9;
}

/* 下拉菜单图标样式 */
.dropdown-user-content a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
    font-size: 12px;
}

/* 移动端适配 */
@media screen and (max-width: 992px) {
    .dropdown-user-content {
        position: fixed;
        top: 60px;
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        margin-top: 0;
        display: none;
    }
    
    /* 关键：添加一个透明的连接区域 */
    .dropdown-user::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 10px;
        background: transparent;
        display: none; /* 默认隐藏 */
    }
    
    /* 在电脑端小窗口显示连接区域 */
    @media (hover: hover) and (pointer: fine) {
        .dropdown-user:hover::after {
            display: block;
        }
        
        .dropdown-user:hover .dropdown-user-content {
            display: block;
        }
    }
    
    /* 触摸设备用JS控制 */
    .dropdown-user-content.show {
        display: block;
    }
    
    .dropdown-user-content a {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .dropdown-user-content a {
        padding: 12px 20px;
        font-size: 14px;
    }
}