/* ========== Hero ========== */
.hq-hero {
  background: #eef4ff;
  padding: 56px 0 48px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-left {
  flex: 1;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* 右侧插图 */
.hero-visual {
  flex: 0 0 320px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* ========== 搜索面板 ========== */
.query-section {
  background: linear-gradient(to bottom, #eef4ff 0, #eef4ff 84px, #fff 84px, #fff 100%);
  padding-top: 36px;
}


.search-panel {
  width: 100%;
  margin: 0 auto 30px;
  padding: 22px 48px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(32, 74, 132, 0.08);
}

.query-tabs {
  display: flex;
  gap: 44px;
  margin-bottom: 23px;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 0;
}

.qtab {
  padding: 0 0 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}
.qtab:hover { color: var(--color-primary); }
.qtab.active {
  color: var(--color-primary);
  font-weight: 600;
}
.qtab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--color-primary);
  border-radius: 2px 2px 0 0;
}

.search-row {
  display: flex;
  gap: 16px;
}

.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.si-icon {
  position: absolute;
  left: 18px;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1px solid #e5eaf3;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  transition: all var(--transition-fast);
  color: var(--color-text-primary);
}
.search-input-wrap input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30,91,255,0.08);
}

.btn-search-main {
  width: 120px;
  height: 48px;
  padding: 0 24px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn-search-main:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(30,91,255,0.25);
}

.hot-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 17px;
}

.ht-label {
  font-size: 13px;
  color: var(--color-text-muted);
}

.htag {
  min-width: 44px;
  height: 18px;
  padding: 0 10px;
  font-size: 12px;
  color: var(--color-primary);
  background: #EEF2FF;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.htag:hover {
  background: var(--color-primary);
  color: white;
}

/* ========== 布局：左侧树 + 右侧表格 ========== */
.content-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-top: 28px;
}

/* 左侧分类树 */
.category-sidebar {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.cs-header {
  padding: 0 22px 12px;
  background: transparent;
  border-bottom: none;
}
.cs-header h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.5;
}

.category-tree {
  padding: 0 30px 0 0;
  max-height: 680px;
  overflow-y: auto;
}
.category-tree::-webkit-scrollbar { width: 6px; }
.category-tree::-webkit-scrollbar-track { background: #f1f3f6; }
.category-tree::-webkit-scrollbar-thumb { background: #d0d3d9; border-radius: 3px; }

.ct-node {
  display: flex;
  align-items: flex-start;
  padding: 7px 22px;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.ct-node:hover { background: #F8FAFC; }
.ct-node.ct-root {
  background: #eef4ff;
  border-radius: 4px;
}
.ct-node.ct-root .ct-label { font-weight: 600; color: var(--color-primary); }

.ct-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  flex-shrink: 0;
  margin-right: 4px;
  margin-top: 1px;
}

.ct-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.ct-label.indent-1 { padding-left: 12px; }
.ct-label.highlight-ch { color: var(--color-primary); font-weight: 500; }

.ct-children {
  /* 子节点容器 */
}

/* 右侧表格 */
.table-area {
  background: white;
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.ta-header {
  padding: 0 0 14px;
  border-bottom: none;
}
.ta-header h4 {
  font-size: 14px;
  color: var(--color-text-secondary);
}
.ta-header strong {
  color: var(--color-primary);
  font-weight: 700;
}

.data-table-wrap {
  overflow-x: auto;
}

.hs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
}

.hs-table thead th {
  background: #fff;
  padding: 9px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--color-text-secondary);
  font-size: 12px;
  white-space: nowrap;
  border-bottom: none;
}

.hs-table tbody td {
  padding: 7px 12px;
  border-bottom: none;
  color: var(--color-text-primary);
  vertical-align: middle;
}

.hs-table tbody tr:nth-child(even) {
  background: #f8fbff;
}

.hs-table tbody tr:hover {
  background: #FAFBFE;
}
.hs-table tbody tr.row-hl {
  background: #FEF2F2;
}
.hs-table tbody tr.row-hl:hover {
  background: #FEE2E2;
}

.code-cell {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.name-cell {
  max-width: 220px;
  line-height: 1.45;
}

.btn-detail {
  padding: 0;
  font-size: 12px;
  color: var(--color-primary);
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn-detail:hover {
  background: transparent;
  color: var(--color-primary-dark);
}

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 22px 0 0;
  border-top: none;
}

.pg-btn {
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 2px;
  background: white;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.pg-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.pg-btn.pg-active {
  background: #eef4ff;
  color: var(--color-primary);
  border-color: transparent;
  font-weight: 600;
}
.pg-dots {
  color: var(--color-text-muted);
  font-size: 13px;
  padding: 0 4px;
}

/* ========== 编码说明 ========== */
.info-section {
  margin-top: 44px;
  background: #f4f8ff;
  border-radius: 4px;
  padding: 28px 40px;
  overflow: hidden;
}

.info-inner {
  display: flex;
  gap: 48px;
  align-items: center;
  min-height: 132px;
}

.info-text {
  flex: 1;
  min-width: 0;
}

.info-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.35;
  margin-bottom: 14px;
}

.info-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-list li {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.65;
  padding-left: 22px;
  position: relative;
}
.info-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.info-shield {
  flex: 0 0 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}
.info-icon {
  width: 250px;
  max-width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-visual { flex: 0 0 auto; }
  .search-panel { padding: 22px 32px 24px; }
  .query-tabs { gap: 28px; }
  .content-layout { grid-template-columns: 260px 1fr; gap: 24px; }
  .info-section { padding: 26px 32px; }
  .info-inner { gap: 28px; }
  .info-shield { flex-basis: 210px; }
  .info-icon { width: 210px; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 28px; }
  .content-layout { grid-template-columns: 1fr; }
  .category-sidebar { display: none; }
  .search-panel { padding: 20px; }
  .query-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .qtab { white-space: nowrap; font-size: 13px; padding: 0 0 12px; }
  .search-row { flex-direction: column; }
  .btn-search-main { width: 100%; }
  .info-inner { flex-direction: column; align-items: flex-start; }
  .info-shield { align-self: center; flex-basis: auto; }
  .pagination { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 24px; }
  .info-section { padding: 24px 20px; }
}
