* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
  font-size: 12px;
}

/* 顶部导航栏 - 主站风格 */
.tp1 {
  background: url(/templets/default/image/bg.gif);
}
.tp1 .mn {
  width: 1000px;
  margin: 0px auto;
}
.tp1 .mn img {
  display: block;
}
.tp1 .dh3 {
  background-image: url(/templets/default/image/dh.jpg);
}
.tp1 .dh {
  width: 1000px;
  margin: 0 auto;
  background-image: url(/templets/default/image/dh.jpg);
  height: 40px;
}
.tp1 .dh li {
  margin-left: 7px;
  float: left;
  height: 40px;
}
.tp1 .dh li a:link,
.tp1 .dh li a:visited {
  font-size: 14px;
  color: #ffffff;
  text-decoration: none;
  line-height: 40px;
  padding: 10px 8px;
}
.tp1 .dh li a:hover {
  font-size: 14px;
  color: #ffffff;
  text-decoration: none;
  background: url(/templets/default/image/db.gif);
  padding: 10px 8px;
}

/* 商标分类内容容器 */
.sbfl-container {
  width: 1000px;
  margin: 20px auto;
}

/* 头部 */
.header {
  background: white;
  color: #333;
  text-align: left;
  padding: 10px 20px 15px;
  margin-bottom: 15px;
  border: 1px solid #CACACA;
}
.header h1 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #004381;
}
.header .subtitle {
  font-size: 12px;
  color: #666;
}

/* 搜索栏 */
.search-bar {
  margin: 0 auto 15px;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
}
.search-bar select {
  width: 100px;
  padding: 8px;
  border: 1px solid #B8B8B8;
  border-radius: 0;
  font-size: 12px;
  background: white;
}
.search-bar input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #B8B8B8;
  font-size: 12px;
  outline: none;
}
.search-bar input:focus {
  border-color: #004381;
}
.search-bar button {
  padding: 8px 20px;
  background: #004381;
  color: white;
  border: none;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.search-bar button:hover {
  background: #003366;
}

/* 搜索结果 */
.search-result {
  margin: 15px auto;
  background: white;
  padding: 15px;
  border: 1px solid #CACACA;
}
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.result-header span {
  font-size: 12px;
  color: #666;
}
.clear-btn {
  padding: 5px 15px;
  background: #eee;
  border: 1px solid #ccc;
  cursor: pointer;
  font-size: 12px;
}
.clear-btn:hover {
  background: #ddd;
}
.result-list {
  max-height: 400px;
  overflow-y: auto;
}
.result-item {
  padding: 8px 10px;
  border-bottom: 1px dotted #ccc;
  cursor: pointer;
  line-height: 22px;
}
.result-item:hover {
  background: #f8f9fa;
}
.result-item:last-child {
  border-bottom: none;
}
.result-item .item-class {
  display: inline-block;
  background: #004381;
  color: white;
  padding: 1px 6px;
  font-size: 11px;
  margin-right: 6px;
}
.result-item .item-subgroup {
  display: inline-block;
  background: #e8e8e8;
  color: #666;
  padding: 1px 6px;
  font-size: 11px;
  margin-right: 6px;
}
.result-item .item-name {
  font-size: 12px;
}
.result-item .item-name em {
  color: #004381;
  font-style: normal;
  font-weight: bold;
}

/* 类别导航 */
.class-nav {
  margin: 15px auto;
  background: white;
  padding: 15px;
  border: 1px solid #CACACA;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.class-nav .nav-item {
  display: inline-block;
  padding: 6px 14px;
  background: white;
  border: 1px solid #004381;
  border-radius: 4px;
  font-size: 12px;
  color: #004381;
  cursor: pointer;
  text-decoration: none;
}
.class-nav .nav-item:hover,
.class-nav .nav-item.active {
  background: #004381;
  color: white;
  border-color: #004381;
}

/* 分类列表 */
.class-list {
  margin: 0 auto 20px;
}
.class-block {
  background: white;
  margin-bottom: 10px;
  border: 1px solid #CACACA;
}
.class-header {
  background: #5B9BD5;
  color: white;
  padding: 12px 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.class-header h3 {
  font-size: 14px;
  font-weight: bold;
}
.class-header .toggle {
  font-size: 16px;
}
.class-body {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.class-body.open {
  max-height: 50000px;
  padding: 0;
}
.class-note {
  padding: 10px 15px;
  background: #fff9e6;
  font-size: 12px;
  color: #666;
  border-bottom: 1px solid #eee;
  display: none;
  line-height: 1.8;
}
.class-note.show {
  display: block;
}

/* 子类 */
.subgroup {
  border-bottom: 1px solid #eee;
}
.subgroup:last-child {
  border-bottom: none;
}
.subgroup-header {
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f8f8;
  border-bottom: 1px solid #eee;
}
.subgroup-header:hover {
  background: #f0f0f0;
}
.subgroup-header .sg-code {
  display: inline-block;
  background: #5B9BD5;
  color: white;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: bold;
  margin-right: 8px;
}
.subgroup-header .sg-name {
  flex: 1;
  font-size: 12px;
  color: #333;
}
.subgroup-header .sg-count {
  color: #999;
  font-size: 11px;
  margin-left: 8px;
}
.subgroup-header .sg-toggle {
  font-size: 14px;
  color: #999;
  transition: transform 0.3s;
}
.subgroup-header .sg-toggle.open {
  transform: rotate(90deg);
}
.subgroup-items {
  padding: 0 15px 0 60px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #ffffff;
}
.subgroup-items.open {
  max-height: 5000px;
  padding: 10px 15px 10px 60px;
}
.subgroup-items .item {
  display: inline-block;
  padding: 5px 10px;
  margin: 4px 4px;
  background: #f0f0f0;
  border-left: 2px solid #5B9BD5;
  font-size: 12px;
  color: #555;
  line-height: 1.5;
}
.subgroup-items .item em {
  color: #004381;
  font-style: normal;
  font-weight: bold;
}

/* 底部 */
.footer {
  text-align: center;
  padding: 15px;
  color: #999;
  font-size: 11px;
  border-top: 1px dotted #ccc;
}

/* 响应式 */
@media (max-width: 768px) {
  .sbfl-container {
    width: 100%;
    padding: 0 10px;
  }
  .tp1 .mn,
  .tp1 .dh {
    width: 100%;
  }
  .search-bar {
    flex-direction: column;
  }
  .search-bar select,
  .search-bar input {
    width: 100%;
  }
  .class-nav {
    margin: 10px;
  }
  .subgroup-items {
    padding-left: 40px;
  }
  .subgroup-items.open {
    padding-left: 40px;
  }
}
