@charset "utf-8";

/* 底部导航栏 - 仅手机端显示 */
    .bottom-nav {
	max-width: 1000px;
	margin: 0 auto;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: white;
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 2px 0 0 2px;
	box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	display: none;
}
.nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: #666;
	flex: 1;
	padding: 5px 0;
	position: relative;
	transition: all 0.3s ease;
	font-style: normal;
}
.nav-icon {
	font-size: 16px;
	margin-bottom: 2px;
	transition: all 0.3s ease;
	font-style: normal;
	display: block;
	width: 100%;
	text-align: center;
}
.nav-text {
	font-size: 0.8rem;
	font-weight: normal;
	text-align: center;
}
.nav-item.active {
	color: #008db5;
	transform: translateY(0px);
}
.nav-item.active .nav-icon {
	text-shadow: 0 2px 5px rgba(76, 175, 80, 0.3);
}
.new-badge {
	position: absolute;
	top: -2px;
	right: 22%;
	background-color: #FF5722;
	color: white;
	font-size: 0.6rem;
	padding: 2px 4px;
	border-radius: 10px;
	animation: pulse 2s infinite;
	font-style: normal;
}
 @keyframes pulse {
 0% {
transform: scale(1);
}
 50% {
transform: scale(1.1);
}
 100% {
transform: scale(1);
}
}
.cart-badge {
	position: absolute;
	top: -2px;
	right: 22%;
	background-color: #FF5722;
	color: white;
	font-size: 0.6rem;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-style: normal;
}
.admin-badge {
	position: absolute;
	top: -2px;
	right: 15%;
	background-color: #2196F3;
	color: white;
	font-size: 0.5rem;
	padding: 1px 3px;
	border-radius: 10px;
	font-style: normal;
}

.sub-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    width: 105px; /* 稍微加宽以适应标题 */
    padding: 0; /* 由内部元素控制间距 */
    display: none;
    z-index: 1001;
}

.sub-menu-header {
    background-color: #f5f5f5;
    color: #666;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.sub-menu-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 5px 0;
}

.sub-menu:before {
    content: '';
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.sub-menu-item {
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    text-align: center;
}

.sub-menu-item:hover {
    background-color: #f5f5f5;
}
.sub-menu-item.disabled {
	color: #A8A8A8;
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}
.has-submenu {
    position: relative;
}

.sub-menu.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

/* 增强高亮样式 */
.sub-menu-item.active {
    background: linear-gradient(135deg, #00919a 0%, #6ec3c8 100%);
    color: white;
    font-weight: bold;
    position: relative;
    border-radius: 0px;
}

.sub-menu-item.active:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 50%;
    background-color: white;
    border-radius: 5px;
}

/* 手机端显示底部导航 */
 @media (max-width: 768px) {
  .bottom-nav {
    display: flex;
   }
   body {
    padding-bottom: 85px;
   }
   .list-table {
        min-width: 100%; /* 在小屏幕上允许表格宽度扩展 */
    }
    
    .list-table th, 
    .list-table td {
        padding: 8px 10px; /* 减小内边距 */
        font-size: 13px; /* 调整字体大小 */
    }
 @media (max-width: 360px) {
   .nav-icon {
    font-size: 22px;
    }
    .nav-text {
     font-size: 0.65rem;
    }
   }
 }   
/* 电脑端隐藏底部导航并调整布局 */
 @media (min-width: 769px) {
 .bottom-nav {
   display: flex;
  }
 body {
   padding-bottom: 12px;
  }
 }
