/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f6f8fa;
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  font-size: 14px;
}

/* 容器样式 */
.down-container {
  width: 1200px;
  margin: 0 auto;
  padding: 0;
  background: none;
  min-height: 100vh;
}

/* 面包屑导航 */
.breadcrumb {
  display: flex;
  align-items: center;
  padding: 32px 0 0 0;
  margin: 0 0 24px 0;
  border: none;
  background: none;
  font-size: 15px;
  color: #888;
}

.breadcrumb-icon {
  width: 16px;
  height: 16px;
  background: url('http://www.2na.com/class/template/images/icon-mbx.png') no-repeat center;
  background-size: contain;
  margin-right: 6px;
  vertical-align: middle;
}

.breadcrumb a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #0056b3;
}

.breadcrumb-sep {
  margin: 0 6px;
  color: #bbb;
}

.breadcrumb-current {
  color: #222;
  font-weight: 600;
}

/* 栏目选择区域 */
.category-section {
  margin: 0px 0 20px;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.category-title {
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 18px;
  color: #191919;
  margin-top: 20px;
}

.category-list {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.category-item {
  display: flex;
  align-items: center;
  padding: 0 13px;
  height: 48px;
  background: #fff;
  border: 1.5px solid #e3e6ed;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.2s;
  /* min-width: 120px; */
  justify-content: center;
  box-shadow: none;
}


.category-item:hover,.category-item.active {
  border-color: #1677ff;
  color: #1677ff;
  background: #f0f7ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}
.category-item span{
  padding: 0;
  font-size: 14px;
}

.category-logo {
  width: auto;
  /* height: 22px; */
  /* margin-right: 8px; */
}

/* 主体内容布局 */
.down-main {
  display: flex;
  gap: 20px;
}

.down-main-left {
  flex: 1;
}

.down-main-right {
  width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 路由器区域 */
.router-section {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  padding-bottom: 20px;
}

.section-title-main {
  padding: 17px 0;
  margin: 0 25px;
  border-bottom: 1px solid #eee;
  display: flex;
}
.section-title-main span {
  display: block;
  font-size: 30px;
  font-weight: bold;
  color: #000;
  line-height: 42px;
  letter-spacing: 1px;
  flex: 1;
}
.section-title-main .search-type {
  display: flex;
  align-items: center;
  
}
.section-title-main .search-type a{
  color: #666;
  font-size: 13px;
  padding: 0 11px;
  display: block;
  overflow: hidden;
  letter-spacing: 0.2px;
  line-height: 30px;
}
.section-title-main .search-type a.active{
  background: #E7F5FF;
  color: #17A1FF;
  font-weight: bold;
  border-radius: 15px;
}
.section-title-main .search-type a:hover{
  color: #007bff;
}
.section-title-main small {
  display: block;
  font-size: 14px;
  color: #b0b4bb;
  margin-top: 6px;
  margin-left: 2px;
  font-family: 'Arial', 'Helvetica Neue', Arial, sans-serif;
  line-height: normal;
}



/* 侧边栏样式 */
.side-section {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  padding: 15px 20px;
}

/* 编辑推荐板块样式 */
.editor-recommend-section {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.editor-recommend-list {
  display: flex;
  gap: 20px;
  padding: 0 25px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.editor-recommend-item {
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.editor-recommend-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 123, 255, 0.3);
}

.recommend-cover {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
}

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

.editor-recommend-item:hover .recommend-cover img {
  transform: scale(1.05);
}

.recommend-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 不同徽章颜色 */
.recommend-badge[data-type="热门"] {
  background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
  box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

.recommend-badge[data-type="新品"] {
  background: linear-gradient(90deg, #4ecdc4, #44a08d);
  box-shadow: 0 2px 4px rgba(78, 205, 196, 0.3);
}

.recommend-badge[data-type="推荐"] {
  background: linear-gradient(90deg, #45b7d1, #96c93d);
  box-shadow: 0 2px 4px rgba(69, 183, 209, 0.3);
}

.recommend-badge[data-type="精选"] {
  background: linear-gradient(90deg, #f093fb, #f5576c);
  box-shadow: 0 2px 4px rgba(240, 147, 251, 0.3);
}

.recommend-title {
  padding: 12px 15px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  text-align: center;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.not-list{
  margin: 20px;
  font-size: 18px;
  font-weight: normal;
}
/* 响应式设计 */
@media (max-width: 768px) {
  .category-item{
    height: 38px;
    min-width: auto;
    overflow: hidden;
    /* padding: 0 12px; */
    flex-shrink: 0;            /* 子元素不会被压缩 */
    flex-grow: 0;              /* 子元素不会被拉伸 */
    flex-basis: auto;          /* 宽度按内容来 */
  }
  .category-item span{
    padding: 0 10px;
    font-size: 14px;
  }
  .router-desc{
    max-height: 45px;
    overflow: hidden;
  }
  .download-link{
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 16px;
  }
  .down-container {
    padding: 10px;
    width: 100%;
  }
  
  .down-main {
    flex-direction: column;
  }
  
  
  /* 编辑推荐板块移动端样式 */
  .editor-recommend-list {
    gap: 12px;
    padding: 0 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
    margin-top: 10px;
  }
  
  .editor-recommend-list::-webkit-scrollbar {
    height: 4px;
  }
  
  .editor-recommend-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
  }
  
  .editor-recommend-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
  }
  
  .editor-recommend-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }
  
  .editor-recommend-item {
    flex: 0 0 160px;
    min-width: 160px;
    max-width: 160px;
  }
  
  .recommend-cover {
    height: 90px;
  }
  
  .recommend-title {
    padding: 8px 10px;
    font-size: 12px;
  }
  
  .recommend-badge {
    font-size: 10px;
    padding: 1px 6px;
  }
  .section-title-main{
    padding: 10px 0;
    margin: 0 15px;
  }
  .section-title-main span{
    font-size: 20px;
  }
  .category-item:hover,.category-item.active {
    transform: translateY(0);
  }
  .category-title{
    margin-top: 10px;
  }
}
