/* 品牌角标位、通用 */
:root {
  --brand-blue: #3b82f6;
}
html { scroll-padding-top: 76px; }
body { overflow-x: hidden; }
a { text-decoration: none; }

/* 网址卡片 */
.page-card {
  cursor: pointer;
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  min-height: 130px;
  background: #fff;
}
.page-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  border-color: var(--brand-blue);
}
.page-card .card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}
.page-card .url-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #6b7280;
}
.page-card .card-text,
.page-card .text-muted {
  word-break: break-word;
}

/* Quickbar */
.quickbar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255,255,255,0.92);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  z-index: 2000;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  max-width: calc(100vw - 24px);
}
.quickbar .qb-left { min-width: 120px; }
.quickbar .qb-right { flex-wrap: wrap; }

/* 分类卡片 */
.category-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  transition: all .16s ease;
  background:#fff;
}
.category-card:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

/* 表格截断 */
.table .text-truncate { max-width: 420px; }

/* 平板 */
@media (max-width: 991.98px) {
  .page-card { min-height: 124px; }
  .quickbar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px;
  }
  .quickbar .qb-left,
  .quickbar .qb-right {
    width: 100%;
  }
}

/* 手机 */
@media (max-width: 767.98px) {
  html { scroll-padding-top: 88px; }
  .page-card {
    min-height: auto;
    border-radius: 12px;
    transition: none;
  }
  .page-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #e5e7eb;
  }
  .page-card .card-body {
    padding: .9rem;
  }
  .page-card .card-title {
    font-size: 1rem;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
  .page-card .url-text {
    font-size: .8rem !important;
  }
  .quickbar {
    border-radius: 14px;
  }
  .quickbar .qb-right {
    gap: .45rem !important;
  }
  .quickbar .btn,
  .quickbar .form-select {
    min-height: 38px;
  }
}
