/* ───── 模块:categories — 三大内容方向 + 关于横幅 ─────
   卡片用 --cat(由 HTML style 注入)做顶部强调线;暖白极简,悬停轻微抬升。 */

.cat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

/* 单张分类卡 */
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 24px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  overflow: hidden;
  transition:
    transform .3s var(--ease),
    box-shadow .3s var(--ease),
    border-color .3s var(--ease);
}

/* 顶部强调线:用卡片注入的分类色,悬停变粗 */
.cat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cat, var(--accent));
  transition: height .3s var(--ease), opacity .3s var(--ease);
  opacity: .85;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--line);
}
.cat-card:hover::before {
  height: 5px;
  opacity: 1;
}

.cat-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* 标签:较大字重,起始位置为分类色点缀 */
.cat-card__label {
  font-size: 18px;
  font-weight: 660;
  letter-spacing: -.3px;
  color: var(--text);
}

.cat-card__blurb {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-2);
  flex: 1;
}

.cat-card__count {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-3);
  letter-spacing: .2px;
}

/* ───── 关于横幅 ───── */
#about-brief .about-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 34px;
  background: var(--bg-sunk);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
}

#about-brief .about-banner h2 {
  font-size: clamp(22px, 3.4vw, 28px);
  font-weight: 680;
  letter-spacing: -.5px;
  line-height: 1.2;
  margin-bottom: 12px;
}

#about-brief .about-banner p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 56ch;
}

#about-brief .about-banner .btn-ghost {
  flex: none;
}

/* ── 响应式(断点统一:760 / 600)── */
@media (max-width: 760px) {
  .cat-cards { grid-template-columns: 1fr; }
  #about-brief .about-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 28px 24px;
  }
}
