/* ==========================================================================
   跑步活动大全 — components.css（跨页复用组件）
   页头 / 按钮 / 卡片 / 章节头 / 页脚 / 提示条 —— 三页共享，只引用 tokens 变量。
   ========================================================================== */

/* ---------- M0 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--h-header);
  background: var(--c-head);
  border-bottom: 1px solid var(--c-line);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; flex-direction: column; gap: 1px; flex: none; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: .02em; line-height: 1.25; color: var(--c-navy); }
.brand-sub { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 9.5px; letter-spacing: .3em; color: var(--c-ink-muted); }
.site-nav {
  display: flex; align-items: center; gap: 22px;
  margin-left: auto;
  font-size: 13.5px; color: var(--c-ink-soft);
}
.site-nav a { position: relative; padding: 6px 0; transition: color var(--t-fast); }
.site-nav a:hover { color: var(--c-navy); }
.site-nav a[aria-current="page"] { color: var(--c-navy); font-weight: 600; }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--c-amber); border-radius: 2px;
}
.site-nav .nav-all {
  padding: 7px 14px; border: 1px solid var(--c-line-strong); border-radius: var(--r-pill);
  color: var(--c-navy); font-size: 13px;
}
.site-nav .nav-all:hover { border-color: var(--c-navy); }
.site-nav .nav-all::after { display: none; }

.menu-btn {
  display: none; width: 40px; height: 40px; margin-left: auto;
  border: 1px solid var(--c-line-strong); border-radius: var(--r-s);
  background: var(--c-surface); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--c-navy);
  border-radius: 2px; position: relative; transition: transform var(--t-fast), opacity var(--t-fast);
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.btn--primary { background: var(--c-amber); color: #23303f; }
.btn--primary:hover { background: var(--c-amber-hover); }
.btn--ghost { border: 1px solid rgba(238, 244, 253, .42); color: var(--c-ink-invert); }
.btn--ghost:hover { border-color: var(--c-ink-invert); background: rgba(238, 244, 253, .08); }
.btn--solid { background: var(--c-navy); color: #fff; }
.btn--solid:hover { background: var(--c-navy-soft); }
.btn:active { transform: translateY(1px); }

/* ---------- 分类卡（首页索引 / 内页相关分类共用） ---------- */
.card {
  display: flex; flex-direction: column;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-l); overflow: hidden;
  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); transform: translateY(-2px); }
.card-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--c-tint); }
.card-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  border-radius: var(--r-s); background: var(--c-tint);
  font-size: 11px; color: var(--c-ink-soft); letter-spacing: .02em;
}
.tag--amber { background: var(--c-amber-tint); color: #6b4d05; }
.tag--blue { background: var(--c-tint-2); color: #1d4f8f; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: var(--fs-small); color: var(--c-ink-muted);
}
.breadcrumb a { color: var(--c-ink-soft); }
.breadcrumb a:hover { color: var(--c-blue); }
.breadcrumb span[aria-current] { color: var(--c-ink); }
.breadcrumb .sep::before {
  content: "/"; color: var(--c-line-strong);
}

/* ---------- FAQ（可展开） ---------- */
.faq-item { border-top: 1px solid var(--c-line); }
.faq-item:last-of-type { border-bottom: 1px solid var(--c-line); }
.faq-item summary {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 2px; cursor: pointer; list-style: none;
  font-size: 14.5px; font-weight: 600; color: var(--c-ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; margin-left: auto; color: var(--c-ink-muted);
  font-size: 16px; font-weight: 400; transition: transform var(--t-fast);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { color: var(--c-navy); }
.faq-body { padding: 0 30px 16px 2px; font-size: 13.5px; line-height: 1.8; color: var(--c-ink-soft); }

/* ---------- 提示条 ---------- */
.notice-inner {
  display: flex; align-items: center; gap: 12px;
  background: var(--c-amber-tint); border-radius: var(--r-m);
  min-height: 50px; padding: 10px 18px;
  font-size: 13px; line-height: 1.6; color: #5b4305;
}
.notice-icon {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-amber); color: #3d2c00;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.notice-copy strong { font-weight: 700; margin-right: 6px; }

/* ---------- M10 页脚 ---------- */
.site-footer { background: var(--c-footer); color: var(--c-ink-invert-soft); }
.footer-main {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 30px; padding-top: 26px;
}
.footer-main > * { flex: 1 1 180px; min-width: 170px; }
.footer-main > .footer-brand { flex: 1.25 1 220px; }
.footer-brand .brand-name { color: var(--c-ink-invert); font-size: 20px; }
.footer-brand .brand-sub { color: var(--c-ink-invert-soft); }
.footer-brand p + p { margin-top: 6px; font-size: 12.5px; line-height: 1.65; max-width: 290px; }
.footer-title { font-size: 12px; letter-spacing: .16em; color: #8fa8c8; margin-bottom: 8px; }
.footer-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; font-size: 12.5px; }
.footer-cats a { color: var(--c-ink-invert); }
.footer-cats a:hover { color: var(--c-amber); }
.footer-rules { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; line-height: 1.55; }
.footer-rules li::before { content: "·"; margin-right: 6px; color: var(--c-amber); }
.footer-side { font-size: 12.5px; line-height: 1.6; color: #8fa8c8; }
.footer-side .footer-title { margin-bottom: 8px; }
.footer-note {
  margin-top: 12px; padding: 9px 0 13px;
  border-top: 1px solid var(--c-line-invert);
  font-size: 11.5px; color: #7f96b6;
}
.footer-beian { margin-left: 12px; }
