.zeroui-pc-nav {
    width: 100%;
    justify-content: space-between;
}
/* 搜索框样式 */
.header i {
    -webkit-text-stroke-width: unset;
}

.nav-link i {
    font-size: 18px;
}

.search-box {
    position: relative;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper input:focus {
    box-shadow: none;
}

/* 下拉框样式 */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 360px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    display: none;
    z-index: 1000;
}

.search-box input:focus + .search-dropdown,
.search-dropdown:hover {
    display: block;
}

/* 搜索历史样式 */
.search-history {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: #999;
    font-size: 13px;
}

.clear-history {
    color: #999;
    text-decoration: none;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 4px 0;
    color: #666;
    text-decoration: none;
}

.history-item i {
    margin-right: 8px;
    font-size: 14px;
    color: #999;
}

/* 热门内容样式 */
.hot-content {
    padding: 12px 16px;
}

.hot-header {
    margin-bottom: 8px;
    color: #999;
    font-size: 13px;
}

.hot-item {
    display: flex;
    align-items: center;
    padding: 4px 0;
    color: #333;
    text-decoration: none;
}

.hot-rank {
    width: 18px;
    margin-right: 12px;
    color: #ff6b6b;
    font-weight: bold;
}

.hot-text {
    flex: 1;
    font-size: 13px;
}

.hot-tag {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 2px;
    background: #f5f5f5;
    color: #999;
    margin-left: 8px;
}

/* 停效果 */
.history-item:hover,
.hot-item:hover {
    background: #f5f5f5;
}

/* 添加或修改样式 */
.navbar-brand {
    margin-right: 32px !important;
}

.nav-link {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 15px;
}

/* 下拉菜单基础样式 */
.dropdown-menu {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    margin-top: 8px;
}

.dropdown-header {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    padding: 8px 0;
}

.dropdown-item {
    font-size: 13px;
    padding: 8px 16px;
    color: #666;
}

.dropdown-item:hover {
    background: #f5f5f5;
    color: #ff6b6b;
}

/* 产品圈下拉菜单样式 */
.product-menu {
    display: flex;
    padding: 20px;
    white-space: nowrap;
}

.product-category {
    padding: 0 20px;
    border-right: 1px solid #f0f0f0;
}

.product-category:last-child {
    border-right: none;
}

.product-category h6 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.product-category .dropdown-item {
    padding: 8px 0;
    font-size: 13px;
    color: #666;
}

.product-category .dropdown-item:hover {
    background: transparent;
    color: #ff6b6b;
}

/* 更多菜单样式 */
.more-menu {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px;
    min-width: 200px;
    white-space: nowrap;
}

.more-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.more-item:hover {
    background: #f5f5f5;
    color: #ff6b6b;
}

.more-item .badge {
    font-size: 10px;
    padding: 2px 6px;
    font-weight: normal;
}

/* 导航项悬停效果 */
.nav-link:hover,
.nav-link:focus {
}

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

/* 修改下拉菜单相关样式 */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    margin-top: 0; /* 移除上边距 */
    padding-top: 8px; /* 添加内边距 */
}

/* 添加一个透明的覆盖区域，用于连接导航项和下拉菜单 */
.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px; /* 覆盖导航项和下拉菜单之间的间隙 */
}

/* 修改下拉菜单的示逻辑 */
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

/* 确保下拉菜单在导航项正下方 */
.dropdown-menu {
    top: 100%;
    left: 50%;
}

/* 添加下拉菜单过渡动画 */
.dropdown-menu {
    transition: opacity 0.2s ease-in-out;
    opacity: 0;
    display: block;
    visibility: hidden;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

/* 调整下拉菜单的箭头指示器 */
.dropdown-toggle::after {
    margin-left: 0.5em;
    vertical-align: middle;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
}

/* 调整下拉菜单的位 */
.dropdown-menu {
    min-width: auto;
    padding: 0;
}

/* 移除之前的固定宽度设置 */
.dropdown-menu.show {
    display: block;
}

/* 发现下拉菜单样式 */
.discover-menu {
    display: flex;
    padding: 24px;
    white-space: nowrap;
    min-width: 600px;
}

.discover-category {
    padding: 0 10px;
    border-right: 1px solid #f0f0f0;
    min-width: 160px;
}

.discover-featured {
    flex: 1;
    display: flex;
    gap: 20px;
    padding-left: 24px;
}

.featured-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.featured-link {
    display: block;
    position: relative;
    height: 160px;
}

.featured-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-link:hover img {
    transform: scale(1.05);
}

.featured-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
}

.featured-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
}

.featured-info p {
    font-size: 13px;
    margin: 0;
    opacity: 0.8;
}

/* 调整下拉菜单的显示位置 */
.dropdown-menu {
    margin-top: 0;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 添加过渡动画 */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
}

/* 修改下拉菜单定位相关的样式 */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 0;
}

/* 调整发现和产品圈菜单的宽度和位置 */
.discover-menu,
.product-menu {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px;
}

/* 更多菜单特殊处理 */
.dropdown-menu-end {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

/* 保持动画效果 */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

/* 调整下拉菜单的箭头指示器位置 */
.dropdown-toggle::after {
    position: relative;
    left: 1px;
}

/* 消息通知样式 */
.message-menu {
    width: 180px;
    padding: 8px 0;
    border-radius: 8px;
}

.message-type-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.message-type-item:hover {
    background-color: #f5f5f5;
    color: #333;
}

.message-type-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-type-info i {
    font-size: 16px;
    color: #666;
}

.message-count {
    background: #ff6b6b;
    color: #ffffff;
    font-size: 10px;
    padding: 1px 2px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* 保持徽章样式 */
.message-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b6b;
    color: #fff;
    font-size: 10px;
    padding: 1px 2px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* 用户菜单样式 */
.user-menu {
    width: 240px;
    padding: 0;
    border-radius: 8px;
}

.user-info {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.user-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.user-meta {
    font-size: 12px;
    color: #666;
}

.user-stats {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-value {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

.user-menu-list {
    padding: 8px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
}

.menu-item:hover {
    background: #f5f5f5;
}

.menu-item i {
    font-size: 16px;
    margin-right: 8px;
    color: #666;
}

.menu-tag {
    font-size: 12px;
    color: #ff6b6b;
    margin-left: auto;
}

/* 添加管理员入口相关样式 */
.menu-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 4px 0;
}

.admin-divider,
.admin-entry {
    display: none;
}

/* 当用户是管理员时显示 */
.user-menu.is-admin .admin-divider,
.user-menu.is-admin .admin-entry {
    display: block;
}

.admin-entry i {
    color: #ff6b6b;
}

/* footer 相关样式 */
footer {
    font-size: 14px; /* 更新footer基础字体大小 */
}

footer h6 {
    font-size: 16px; /* 更新标题字体大小为16px */
    font-weight: 600; /* 加粗标题 */
    color: #333;
    margin-bottom: 16px;
}

footer .list-unstyled li {
    margin-bottom: 8px;
}

footer .list-unstyled a {
    font-size: 14px; /* 更新链接字体大小为14px */
    color: #666;
    text-decoration: none;
}

footer .list-unstyled a:hover {
    color: #333;
}

/* 关注阿里云区域 */
footer .small {
    font-size: 14px; /* 更新说明文字大小为14px */
    line-height: 1.5;
    color: #666;
}

/* 底部链接和版权信息 */
footer .gap-3 {
    gap: 1rem !important;
}

footer .gap-3 a,
footer .gap-3 span {
    font-size: 14px; /* 更新底部链接字体大小为14px */
    color: #666;
    text-decoration: none;
}

footer .gap-3 a:hover {
    color: #333;
}

/* 版权信息 */
footer .mt-3 p {
    font-size: 14px; /* 更新版权信息字体大小为14px */
    color: #999;
    line-height: 1.5;
}

/* 移动端导航样式 */
@media (max-width: 991.98px) {
    /* 隐藏PC端元素 */
    .main-nav,
    .navbar .right-functions {
        display: none !important;
    }

    .zeroui-pc-nav {
        display: none !important;
    }

    /* 显示移动端导航 */
    .mobile-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0 16px;
    }

    /* 左侧区域 */
    .mobile-header-left {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    /* 右侧区域 */
    .mobile-header-right {
        display: flex;
        align-items: center;
        gap: 16px;
    }
}

/* PC端样式 */
@media (min-width: 992px) {
    .mobile-header,
    .mobile-sidebar,
    .sidebar-overlay {
        display: none !important;
    }
}

/* 侧边栏样式 */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1050;
    transition: all 0.3s;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.mobile-sidebar.active {
    left: 0;
}

/* 遮罩层 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

/* 侧边栏内容样式 */
.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-menu {
    padding: 16px 0;
}

.sidebar-menu .nav-item {
    width: 100%;
}

.sidebar-menu .nav-link {
    padding: 12px 16px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-menu .dropdown-menu {
    position: static !important;
    width: 100%;
    padding: 0 0 0 16px;
    margin: 0;
    border: none;
    box-shadow: none;
}

/* 按钮样式 */
.menu-toggle,
.sidebar-close {
    border: none;
    background: none;
    padding: 8px;
    color: #333;
    cursor: pointer;
}

.mobile-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #333;
    border-radius: 50%;
    background: #f5f5f5;
}

.zerov4-footer {
    background: url(/static/images/home/bg-shape.png);
    background-size: cover;
    background-position: center;
    background-color: #ffffff;
    padding: 48px 0 24px;
}

.hero-section {
    display: none;
}

.zerov4-home-link {
    gap: 10px;
}

.zerov4-home-link a {
    font-size: 12px !important;
    color: #666;
}
