/* ========== Reset & Base ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #0f1115;
  color: #e6e8eb;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

code {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: "JetBrains Mono", Consolas, Monaco, monospace;
}

/* ========== Layout ========== */
.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

/* ========== Hero ========== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #1a1d24 0%, #14171d 100%);
  border: 1px solid #232730;
  border-radius: 16px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(220, 53, 69, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-left h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-left .subtitle {
  color: #8a8f99;
  font-size: 13px;
  margin-top: 6px;
}
.hero-stats {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #232730;
  border-radius: 10px;
  padding: 10px 16px;
  min-width: 80px;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #e6e8eb;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  font-size: 11px;
  color: #8a8f99;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

/* ========== Toolbar ========== */
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: #14171d;
  border: 1px solid #232730;
  border-radius: 12px;
  margin-bottom: 12px;
}

.search-box {
  flex: 1 1 280px;
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #6b7280;
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 10px 36px 10px 38px;
  background: #0f1115;
  border: 1px solid #2a2f3a;
  border-radius: 8px;
  color: #e6e8eb;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box input:focus {
  border-color: #ee5a5a;
  box-shadow: 0 0 0 3px rgba(238, 90, 90, 0.12);
}
.search-box input::placeholder { color: #5b6270; }
.search-clear {
  position: absolute;
  right: 6px;
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  display: none;
}
.search-clear:hover { background: rgba(255, 255, 255, 0.06); color: #e6e8eb; }
.search-box.has-text .search-clear { display: block; }

.sort-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8a8f99;
}
.sort-group select {
  background: #0f1115;
  border: 1px solid #2a2f3a;
  color: #e6e8eb;
  padding: 7px 10px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}
.sort-group select:focus { border-color: #ee5a5a; }

/* ========== Meta row ========== */
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 4px 12px;
  font-size: 12px;
  color: #6b7280;
}
.legend {
  display: flex;
  gap: 14px;
  align-items: center;
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-out { background: #ee5a5a; }
.dot-in { background: #f4a261; }
.dot-mutual { background: #9c59b6; }

/* ========== 头像（渐变首字母 / 真实B站头像） ========== */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* ========== 人物卡片网格 ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #14171d;
  border: 1px solid #232730;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}
.card:hover {
  background: #1a1d24;
  border-color: #2f3441;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.card-avatar {
  width: 48px;
  height: 48px;
  font-size: 20px;
  flex-shrink: 0;
}
.card-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-name {
  font-size: 15px;
  font-weight: 600;
  color: #e6e8eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.card:hover .card-name { color: #ff8585; }
.card-stats {
  font-size: 11px;
  color: #6b7280;
  display: flex;
  gap: 10px;
  align-items: center;
  font-variant-numeric: tabular-nums;
}
.ps-out { color: #ee5a5a; }
.ps-in { color: #f4a261; }

/* Highlight matched text */
.match {
  background: rgba(238, 90, 90, 0.25);
  color: #ff9999;
  border-radius: 3px;
  padding: 0 2px;
}

/* ========== Empty ========== */
.empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #6b7280;
  background: #14171d;
  border: 1px dashed #2a2f3a;
  border-radius: 12px;
  text-align: center;
}
.empty.show { display: flex; }
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-text { font-size: 14px; }

/* ========== Footer ========== */
.footer {
  margin-top: 24px;
  padding: 14px;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}

/* ========== 详情面板（居中模态框） ========== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 90;
}
.drawer-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* 居中模态框 */
.drawer {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(700px, 94vw);
  max-height: 88vh;
  background: #14171d;
  border: 1px solid #2a2f3a;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -48%) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              visibility 0.25s;
  z-index: 100;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.drawer.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  position: relative;
  padding: 0;
}
.drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #8a8f99;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  z-index: 10;
  transition: background 0.15s, color 0.15s;
}
.drawer-close:hover {
  background: rgba(238, 90, 90, 0.2);
  color: #ee5a5a;
}

.drawer-content {
  padding: 0;
}

/* Profile Header */
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 24px 20px;
  background: linear-gradient(135deg, #1a1d24 0%, #14171d 100%);
  border-bottom: 1px solid #232730;
  position: relative;
  overflow: hidden;
}
.profile-header::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(238, 90, 90, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.profile-meta {
  min-width: 0;
}
.profile-name {
  font-size: 20px;
  font-weight: 700;
  color: #e6e8eb;
  margin-bottom: 8px;
  word-break: break-all;
}
.profile-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-out {
  background: rgba(238, 90, 90, 0.15);
  color: #ee5a5a;
  border: 1px solid rgba(238, 90, 90, 0.25);
}
.badge-in {
  background: rgba(244, 162, 97, 0.15);
  color: #f4a261;
  border: 1px solid rgba(244, 162, 97, 0.25);
}

/* 跳转B站主页按钮 */
.profile-actions {
  padding: 14px 24px;
  border-bottom: 1px solid #1e222b;
}
.bili-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #fb7299 0%, #ee5a5a 100%);
  border: 1px solid rgba(251, 114, 153, 0.4);
  box-shadow: 0 4px 14px rgba(251, 114, 153, 0.25);
  transition: transform 0.12s ease, box-shadow 0.15s, filter 0.15s;
}
.bili-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(251, 114, 153, 0.35);
  filter: brightness(1.05);
}
.bili-link:active {
  transform: translateY(0);
}
.bili-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ========== 两列关系 ========== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 20px 24px 26px;
}
.col {
  min-width: 0;
  background: #0f1115;
  border: 1px solid #232730;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.col-out { border-top: 3px solid rgba(238, 90, 90, 0.5); }
.col-in  { border-top: 3px solid rgba(244, 162, 97, 0.5); }
.col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #cfd3da;
}
.col-ico { font-size: 15px; }
.col-out .col-title { color: #ee5a5a; }
.col-in  .col-title { color: #f4a261; }

.rel-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 46vh;
  overflow-y: auto;
  padding-right: 2px;
}

/* Relationship Chip */
.rel-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #14171d;
  border: 1px solid #232730;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.rel-chip:hover {
  background: #1a1d24;
  border-color: #3a4150;
}
.rel-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.rel-name {
  font-size: 14px;
  color: #e6e8eb;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 互相拉黑：chip 高亮（紫色描边 + 发光） */
.rel-chip.rel-mutual {
  border-color: rgba(156, 89, 182, 0.65);
  background: linear-gradient(135deg, rgba(156, 89, 182, 0.18) 0%, rgba(124, 92, 231, 0.10) 100%);
  box-shadow: 0 0 0 1px rgba(156, 89, 182, 0.25), 0 2px 10px rgba(156, 89, 182, 0.18);
}
.rel-chip.rel-mutual:hover {
  border-color: #b06fd0;
  background: linear-gradient(135deg, rgba(156, 89, 182, 0.28) 0%, rgba(124, 92, 231, 0.16) 100%);
  box-shadow: 0 0 0 1px rgba(176, 111, 208, 0.4), 0 4px 14px rgba(156, 89, 182, 0.3);
}
/* 「互」徽标 */
.rel-mutual-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #9c59b6 0%, #7c5ce7 100%);
  box-shadow: 0 2px 6px rgba(124, 92, 231, 0.4);
  letter-spacing: 1px;
}
/* ========== 互相拉黑 顶部高亮板块 ========== */
.mutual-section {
  margin: 0 24px;
  padding: 14px 16px 16px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(156, 89, 182, 0.16) 0%, rgba(124, 92, 231, 0.08) 100%);
  border: 1px solid rgba(156, 89, 182, 0.45);
  box-shadow: 0 0 0 1px rgba(156, 89, 182, 0.12), 0 4px 18px rgba(156, 89, 182, 0.14);
}
.mutual-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #d9b8ee;
  margin-bottom: 12px;
}
.mutual-ico { font-size: 17px; }
.mutual-title b { color: #fff; }
/* 互黑对象：一排按钮 */
.mutual-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 30vh;
  overflow-y: auto;
  padding-right: 2px;
}
.mutual-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #efe4f7;
  background: linear-gradient(135deg, rgba(156, 89, 182, 0.22) 0%, rgba(124, 92, 231, 0.14) 100%);
  border: 1px solid rgba(156, 89, 182, 0.55);
  box-shadow: 0 2px 8px rgba(156, 89, 182, 0.16);
  transition: transform 0.12s ease, box-shadow 0.15s, filter 0.15s, border-color 0.15s;
}
.mutual-btn:hover {
  transform: translateY(-1px);
  border-color: #b06fd0;
  filter: brightness(1.08);
  box-shadow: 0 4px 14px rgba(156, 89, 182, 0.3);
}
.mutual-btn:active { transform: translateY(0); }
.mutual-btn-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.mutual-btn-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-empty {
  padding: 16px;
  text-align: center;
  color: #4b5563;
  font-size: 13px;
  background: #14171d;
  border: 1px dashed #2a2f3a;
  border-radius: 10px;
}

/* ========== 公会 / MCN 筛选 ========== */
.filter-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8a8f99;
}
.filter-group select {
  background: #0f1115;
  border: 1px solid #2a2f3a;
  color: #e6e8eb;
  padding: 7px 10px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  max-width: 200px;
}
.filter-group select:focus { border-color: #ee5a5a; }

/* ========== 卡片：公会 / MCN 标签 ========== */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.card-tag {
  font-size: 10.5px;
  line-height: 1.4;
  padding: 1px 7px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.tag-guild { background: rgba(124, 92, 231, 0.16); color: #bcaaff; }
.tag-mcn   { background: rgba(34, 197, 94, 0.14);  color: #6ee7a0; }

/* ========== 详情：公会 / MCN 行 ========== */
.profile-gm {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.gm-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  background: #0f1115;
  border: 1px solid #232730;
  border-radius: 8px;
  padding: 3px 9px;
}
.gm-k {
  color: #6b7280;
  font-size: 11px;
}
.gm-v { color: #e6e8eb; font-weight: 600; }

/* ========== Responsive ========== */
@media (max-width: 720px) {
  .app { padding: 16px 14px 48px; }
  .hero { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-stats { width: 100%; }
  .stat { flex: 1; }

  /* 工具栏竖向堆叠，所有控件占满宽度 */
  .toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  /* 关键修复：column 布局下 flex-basis 会作用于高度，必须重置，否则搜索框被撑到 280px 高 */
  .search-box { flex: 0 0 auto; width: 100%; }
  .search-box input { padding: 12px 36px 12px 38px; font-size: 15px; }
  .sort-group { width: 100%; }
  .sort-group select { flex: 1; padding: 10px; }
  .filter-group { width: 100%; }
  .filter-group select { flex: 1; padding: 10px; max-width: none; }
  .reset-btn { width: 100%; padding: 11px 14px; justify-content: center; }

  /* 图例换行，避免和“显示 N 人”挤在一行 */
  .meta-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .legend { flex-wrap: wrap; gap: 10px 14px; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .card { padding: 11px 12px; gap: 10px; min-height: 64px; }
  .card-avatar { width: 42px; height: 42px; font-size: 18px; }
  .card-name { font-size: 14px; }
  .avatar { width: 30px; height: 30px; font-size: 13px; }

  .two-col { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .rel-list { max-height: none; }
  .mutual-section { margin: 0 14px; }
  .mutual-btns { max-height: none; }
  .drawer { width: 94vw; max-height: 90vh; }
}

/* ========== 声明 / 免责弹窗 ========== */
.disclaimer-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.disclaimer-overlay.show {
  display: flex;
  animation: disc-fade 0.2s ease;
}
@keyframes disc-fade { from { opacity: 0; } to { opacity: 1; } }

.disclaimer-box {
  width: min(460px, 94vw);
  background: linear-gradient(135deg, #1a1d24 0%, #14171d 100%);
  border: 1px solid #2f3441;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  padding: 30px 28px 26px;
  text-align: center;
  animation: disc-pop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes disc-pop {
  from { transform: translateY(12px) scale(0.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.disclaimer-icon { font-size: 40px; line-height: 1; margin-bottom: 6px; }
.disclaimer-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffd166;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.disclaimer-body {
  text-align: left;
  font-size: 13.5px;
  line-height: 1.7;
  color: #c3c8d0;
}
.disclaimer-body p { margin-bottom: 10px; }
.disclaimer-body b { color: #ff8585; }
.disclaimer-tech {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid #232730;
  text-align: center;
  color: #8a8f99;
  font-size: 12.5px;
}
.disclaimer-tech b { color: #7fd1ff; }
.maker-link {
  color: #fb7299;
  font-weight: 600;
  text-decoration: none;
}
.maker-link:hover { text-decoration: underline; filter: brightness(1.1); }
.disclaimer-enter {
  margin-top: 18px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  font-family: inherit;
  background: linear-gradient(135deg, #fb7299 0%, #ee5a5a 100%);
  box-shadow: 0 6px 18px rgba(238, 90, 90, 0.3);
  transition: transform 0.12s ease, filter 0.15s, box-shadow 0.15s;
}
.disclaimer-enter:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 8px 22px rgba(238, 90, 90, 0.4);
}
.disclaimer-enter:active { transform: translateY(0); }

/* ========== Footer（含制作署名 / 声明按钮） ========== */
.footer {
  margin-top: 24px;
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: center;
}
.footer-maker { color: #8a8f99; }
.footer-declare {
  padding: 6px 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #2a2f3a;
  color: #ffd166;
  font-size: 12px;
  border-radius: 999px;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.footer-declare:hover {
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.4);
}

/* ========== 重置筛选按钮 ========== */
.reset-btn {
  padding: 7px 14px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  background: #0f1115;
  border: 1px solid #2a2f3a;
  color: #c3c8d0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.reset-btn:hover {
  background: #1a1d24;
  border-color: #3a4150;
  color: #fff;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0f1115; }
::-webkit-scrollbar-thumb { background: #2a2f3a; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #3a4150; }

.drawer::-webkit-scrollbar { width: 6px; }
.drawer::-webkit-scrollbar-thumb { background: #2a2f3a; }
