/* ==========================================================================
   赛跑综合网 — components.css（跨页复用的结构件）
   只引用 tokens.css 的变量，不写死颜色与字号。
   ========================================================================== */

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--r-pill);
  font-size: var(--fs-small); font-weight: 700; letter-spacing: .02em;
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn--primary { background: var(--c-accent); color: #23180a; }
.btn--primary:hover { background: var(--c-accent-deep); }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line-strong); }
.btn--ghost:hover { border-color: var(--c-ink-soft); color: var(--c-ink); }
.btn--onDark { background: transparent; color: var(--c-ink-invert); border-color: rgba(238,243,251,.4); }
.btn--onDark:hover { background: rgba(238,243,251,.12); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- 站点页头（M0 / L0 / D0） ---------- */
.site-header {
  background: var(--c-navy);
  color: var(--c-ink-invert);
  position: relative; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 76px;
}
.brand { display: flex; flex-direction: column; gap: 3px; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: .06em; }
.brand-sub {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: var(--fs-micro);
  letter-spacing: .3em; text-transform: uppercase; color: var(--c-ink-invert-soft);
}
.site-nav {
  display: flex; align-items: center; gap: 18px; flex-wrap: nowrap;
  justify-content: flex-start; margin-left: auto; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  font-size: var(--fs-small); color: var(--c-ink-invert-soft); white-space: nowrap;
  flex: 0 0 auto;
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--c-ink-invert); border-color: var(--c-accent);
}
.menu-btn {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(238,243,251,.35); border-radius: var(--r-s);
  cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 2px; background: var(--c-ink-invert); content: "";
  position: relative;
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
@media (max-width: 1320px) {
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 12.5px; }
  .brand-sub { display: none; }
}

/* ---------- 页脚（M10 / L6 / D10） ---------- */
.site-footer { background: var(--c-navy); color: var(--c-ink-invert-soft); padding: 14px 0 0; }
.footer-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 32px; padding-bottom: 8px;
}
.footer-grid > * { flex: 1 1 180px; min-width: 170px; }
.footer-grid > .footer-brand { flex: 1.4 1 260px; }
.footer-brand-name { font-size: 20px; font-weight: 700; color: var(--c-ink-invert); letter-spacing: .06em; }
.footer-brand-desc { margin-top: 8px; font-size: var(--fs-small); line-height: 1.8; max-width: 34ch; }
.footer-col h3 {
  font-size: var(--fs-small); color: var(--c-ink-invert);
  letter-spacing: .14em; margin-bottom: 12px; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-weight: 400;
}
.footer-col ul { display: grid; gap: 6px; }
.footer-col a { font-size: var(--fs-small); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--c-accent); }
.footer-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; }
.footer-note {
  border-top: 1px solid var(--c-line-invert);
  padding: 8px 0 8px; font-size: var(--fs-micro); line-height: 1.75;
  color: rgba(169, 189, 216, .8);
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: var(--fs-micro);
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(169, 189, 216, .65);
}

/* ---------- 内页容器件：面包屑 ---------- */
.crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: var(--fs-tiny); color: var(--c-ink-muted);
}
.crumbs a { color: var(--c-ink-muted); }
.crumbs a:hover { color: var(--c-accent); }
.crumbs span[aria-hidden] { color: var(--c-line-strong); }

/* ---------- 标签 / 徽标 ---------- */
.tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--c-panel-2); color: var(--c-navy);
  font-size: var(--fs-micro); letter-spacing: .06em; white-space: nowrap;
}
.tag--accent { background: var(--c-accent-soft); color: #8a4c05; }
.tag--ink { background: var(--c-navy); color: var(--c-ink-invert); }

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-m); transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.card:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow-hover); }
.card .thumb { overflow: hidden; border-radius: var(--r-m) var(--r-m) 0 0; background: var(--c-panel); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 内页筛选条 ---------- */
.filter-toolbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(249, 250, 254, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.filter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 0; flex-wrap: wrap;
}
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: var(--fs-micro);
  letter-spacing: .18em; text-transform: uppercase; color: var(--c-ink-muted);
  margin-right: 4px;
}
.chip {
  padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--c-line-strong); background: var(--c-surface);
  font-size: var(--fs-tiny); color: var(--c-ink-soft); cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.chip:hover { border-color: var(--c-navy-soft); color: var(--c-navy); }
.chip[aria-pressed="true"] { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-ink-invert); }
.filter-count { font-size: var(--fs-tiny); color: var(--c-ink-muted); font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; }
