/* 网址导航样式 */

/* 容器布局 */
.webnav-container {
  display: flex;
  min-height: 100vh;
}

/* 侧边栏 */
.webnav-sidebar {
  width: 260px;
  background: #fff;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
  position: fixed;
  left: 0;
  top: 50px;
  height: calc(100vh - 50px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  transform: translateX(-100%);
}

.webnav-sidebar.active {
  transform: translateX(0);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.sidebar-logo i {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin-bottom: 2px;
}

.nav-link-wrapper {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.nav-link:hover {
  background-color: #f5f7fa;
  color: #667eea;
}

.nav-link.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.nav-link i:not(.arrow-icon) {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

.nav-link span {
  font-size: 14px;
  flex: 1;
}

/* 二级菜单箭头 */
.nav-link.has-arrow {
  padding-right: 32px;
}

.arrow-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #999;
  transition: transform 0.3s ease;
}

.nav-item.expanded .arrow-icon {
  transform: translateY(-50%) rotate(90deg);
}

/* 二级菜单列表 */
.sub-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nav-item.expanded > .sub-nav-list {
  max-height: 500px;
}

.sub-nav-list .nav-link {
  font-size: 13px;
}

.sub-nav-list .nav-link i:not(.arrow-icon) {
  font-size: 13px;
  width: 16px;
}

.sub-nav-list .nav-link span {
  font-size: 13px;
}

/* 三级菜单缩进 */
.sub-nav-list .sub-nav-list .nav-link {
  font-size: 12px;
}

/* 遮罩层 */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 主内容区 */
.webnav-main {
  flex: 1;
  margin-left: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部搜索栏 */
.webnav-header {
  position: sticky;
  top: 50px;
  padding: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 50;
  width: 100%;
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  color: #666;
  font-size: 18px;
  transition: all 0.3s ease;
}

.sidebar-toggle:hover {
  background: #667eea;
  color: #fff;
}

.search-box {
  flex: 1;
  position: relative;
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: #667eea;
  background: #fff;
}

.search-box input::placeholder {
  color: #999;
}

/* 内容区域 */
.webnav-content {
  flex: 1;
  padding: 0;
}

/* 首页横幅 */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 60px 40px;
  margin-bottom: 40px;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-content p {
  font-size: 16px;
  opacity: 0.9;
}

/* 分类区域 */
.category-section {
  margin-bottom: 40px;
  scroll-margin-top: 113px;
}

.section-header {
  margin-bottom: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.section-title i {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.section-desc {
  color: #999;
  font-size: 14px;
  padding-left: 44px;
}

/* 网站网格 */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.site-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 5px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.site-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #667eea;
}

.site-icon {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-icon-text {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: #667eea;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.site-info {
  flex: 1;
  min-width: 0;
}
.nav-title{
	margin: 20px 0;
}
.nav-header *{
	font-size: 1rem;
}
.site-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-description {
  font-size: 12px;
  color: #999;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.site-desc {
  font-size: 13px;
  color: #999;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-tip {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 14px;
}

/* 页脚 */
.webnav-footer {
  padding: 24px;
  text-align: center;
  color: #999;
  font-size: 13px;
  border-top: 1px solid #f0f0f0;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {

  

	.sites-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
	}
	.site-description {
		-webkit-line-clamp: 1;
	}
}



/* 隐藏原页面标题 */
body.notop .webnav-container {
  margin-top: 0;
}

/* 滚动条样式 */
.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

/* 选项卡样式 */




.tab-container {
  display: flex;
  flex-direction: column;
}

.tab-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding-bottom: 12px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 5px;
  border: none;
  background: #f5f7fa;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: #e8ecf1;
  color: #667eea;
}

.tab-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.tab-btn i {
  font-size: 14px;
}

.tab-content {
  position: relative;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}


