/* ============================================================
   style.css — 首页专用版式（内页复用 components.css + tokens.css）
   ============================================================ */

/* ---------------------------------------------------------- HERO */
.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: clamp(370px, 27.8vw, 400px);
  overflow: hidden;
  background: #0e1f16;
  color: var(--on-dark);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: url("../images/hero-court.jpg") center / cover no-repeat;
  filter: blur(16px) brightness(0.34) saturate(0.9);
  transform: scale(1.08);
  opacity: 0.9;
}

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 50.2%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0e1f16 0%, #0e1f16 38%, rgba(14, 31, 22, 0.72) 52%, rgba(14, 31, 22, 0.12) 68%, rgba(14, 31, 22, 0) 82%),
    linear-gradient(0deg, rgba(14, 31, 22, 0.4), rgba(14, 31, 22, 0) 45%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 26px 0 14px 8px;
}

.hero .eyebrow {
  max-width: 520px;
  margin-bottom: 7px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: clamp(46px, 5.3vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--on-dark);
}

.hero h1 {
  max-width: 560px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: clamp(24px, 2.05vw, 29px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.hero-lede {
  max-width: 500px;
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--on-dark-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-stats {
  margin-top: 2px;
  font-size: var(--fs-2);
  letter-spacing: 0.04em;
  color: var(--on-dark-soft);
}

/* ---------------------------------------------------------- 分类索引 */
.category-index { padding-block: 31px 19px; }

.cat-grid {
  margin-inline: -15px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--r-1);
  transition: transform 0.25s var(--ease);
}
.cat-card:hover { transform: translateY(-3px); }

.cat-thumb {
  display: block;
  aspect-ratio: 1.4 / 1;
  overflow: hidden;
  background: var(--paper-3);
  border-radius: var(--r-1);
}
.cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.cat-card:hover .cat-thumb img { transform: scale(1.04); }

.cat-body {
  display: block;
  padding-top: 8px;
}
.cat-num {
  display: block;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-1);
  color: var(--accent);
  letter-spacing: 0.1em;
}
.cat-name {
  display: block;
  margin: 2px 0 3px;
  font-size: var(--fs-6);
  font-weight: 700;
  line-height: 1.4;
}
.cat-desc {
  display: block;
  font-size: var(--fs-3);
  line-height: 1.5;
  color: var(--muted);
}

/* ---------------------------------------------------------- 精选条目 */
.featured { padding-block: 12px 28px; }

.featured-grid {
  margin-inline: -15px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.entry-card { min-width: 0; }

.entry-link { position: relative; display: block; }

.entry-thumb {
  display: block;
  aspect-ratio: 3.3 / 1;
  overflow: hidden;
  background: var(--paper-3);
  border-radius: var(--r-1);
}
.entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.entry-card:hover .entry-thumb img { transform: scale(1.04); }

.entry-body {
  display: block;
  padding-top: 4px;
}
.entry-num {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.entry-title {
  margin: 1px 0 1px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entry-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}
.entry-body .tag {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  padding: 2px 7px;
}

/* ---------------------------------------------------------- 器材三参数 */
.gear {
  background: var(--paper);
  color: var(--ink);
  padding-block: 53px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gear-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.55fr 0.95fr;
  gap: clamp(18px, 2.4vw, 34px);
  align-items: center;
}

.gear-copy h2 {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 28px;
  line-height: 1.25;
  color: var(--ink);
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}
.gear-copy p {
  margin: 8px 0 14px;
  font-size: var(--fs-4);
  line-height: 1.7;
  color: var(--muted);
  max-width: 320px;
}

.gear-media img {
  width: 100%;
  aspect-ratio: 2.8 / 1;
  object-fit: cover;
  border-radius: var(--r-1);
}

.gear-list { display: grid; gap: 0; }
.gear-item {
  display: flex;
  gap: 11px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.gear-item:first-child { border-top: 0; padding-top: 0; }
.gear-item:last-child { padding-bottom: 0; }
.gear-dot {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--lime-deep);
  border-radius: 50%;
  color: var(--lime-deep);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 9.5px;
}
.gear-item h3 {
  font-size: var(--fs-5);
  line-height: 1.4;
  color: var(--ink);
}
.gear-item p {
  margin-top: 2px;
  font-size: var(--fs-2);
  line-height: 1.6;
  color: var(--muted);
}

/* ---------------------------------------------------------- 训练路径 */
.training-path { padding-block: 3px 13px; }
.training-path .wrap { position: relative; }

.path-grid {
  display: grid;
  grid-template-columns: 400px 380px 350px;
  column-gap: 96px;
  margin-inline: -15px;
}

.path-step {
  display: grid;
  grid-template-columns: 143px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.path-thumb {
  display: block;
  aspect-ratio: 1.8 / 1;
  overflow: hidden;
  background: var(--paper-3);
  border-radius: var(--r-1);
}
.path-thumb img { width: 100%; height: 100%; object-fit: cover; }

.path-num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.path-num::before {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: var(--lime);
  font-size: 10px;
}
.path-step:nth-child(1) .path-num::before { content: "1"; }
.path-step:nth-child(2) .path-num::before { content: "2"; }
.path-step:nth-child(3) .path-num::before { content: "3"; }
.path-body h3 {
  margin: 1px 0 3px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 17px;
  line-height: 1.35;
}
.path-body p {
  font-size: var(--fs-3);
  line-height: 1.6;
  color: var(--muted);
}

.path-link {
  position: absolute;
  right: 0;
  top: 6px;
  margin: 0;
  text-align: right;
}
.training-path .section-head { padding-right: 132px; }
.path-link a {
  font-size: var(--fs-3);
  font-weight: 700;
  border-bottom: 1px solid var(--line-strong);
}
.path-link a::after { content: " →"; color: var(--accent); }

/* ---------------------------------------------------------- 伤病防护 */
.injury {
  background: var(--paper-2);
  padding-block: 22px 12px;
}

.injury-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.5fr 0.95fr;
  gap: clamp(18px, 2.6vw, 36px);
  align-items: center;
}

.injury-copy h2 {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 28px;
  line-height: 1.25;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}
.injury-copy p {
  margin-top: 6px;
  max-width: 340px;
  font-size: var(--fs-3);
  line-height: 1.7;
  color: var(--muted);
}

.injury-media img {
  width: 100%;
  aspect-ratio: 5.5 / 1;
  object-fit: cover;
  border-radius: var(--r-1);
}

.injury-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}
.injury-list li {
  position: relative;
  padding-left: 13px;
  font-size: var(--fs-2);
  line-height: 1.55;
  color: var(--ink-soft);
}
.injury-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.injury-list strong { display: block; font-size: var(--fs-3); color: var(--ink); }

/* ---------------------------------------------------------- 最新收录 */
.latest { padding-block: 6px; }

.latest-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(20px, 2.6vw, 36px);
  align-items: start;
}

.latest-copy h2 {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 28px;
  line-height: 1.25;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}
.latest-copy p {
  margin-top: 6px;
  font-size: var(--fs-3);
  line-height: 1.65;
  color: var(--muted);
  max-width: 280px;
}

.latest-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: 26px;
}

.latest-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  grid-template-areas:
    "thumb title date"
    "thumb cat date";
  column-gap: 10px;
  row-gap: 1px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 0.2s var(--ease);
}
.latest-row:hover { transform: translateX(3px); }
.latest-thumb {
  grid-area: thumb;
  width: 58px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-1);
  background: var(--paper-3);
}
.latest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.latest-title {
  grid-area: title;
  font-size: var(--fs-3);
  font-weight: 700;
  line-height: 1.45;
}
.latest-cat { grid-area: cat; font-size: var(--fs-1); color: var(--muted); }
.latest-date {
  grid-area: date;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-1);
  color: var(--muted-2);
  white-space: nowrap;
}

/* ---------------------------------------------------------- 关于 */
.archive { padding-block: 4px 0; }

.archive-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(22px, 3vw, 44px);
  align-items: start;
}

.archive-media img {
  width: 100%;
  aspect-ratio: 5 / 1;
  object-fit: cover;
  border-radius: var(--r-1);
}

.archive-copy h2 {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 24px;
  line-height: 1.25;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}
.archive-copy > p {
  margin: 4px 0 6px;
  max-width: 820px;
  font-size: var(--fs-3);
  line-height: 1.65;
  color: var(--ink-soft);
}
.archive-note {
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gear-grid { grid-template-columns: 1fr 1fr; }
  .gear-list { grid-column: 1 / -1; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .gear-item { border-top: 0; padding: 0; }
  .injury-grid { grid-template-columns: 1fr 1fr; }
  .injury-list { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero { min-height: 420px; }
  .hero-media { object-position: 72% center; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(10, 24, 16, 0.95) 0%, rgba(10, 24, 16, 0.86) 52%, rgba(10, 24, 16, 0.45) 100%),
      linear-gradient(0deg, rgba(10, 24, 16, 0.5), rgba(10, 24, 16, 0) 60%);
  }
  .path-grid { grid-template-columns: 1fr; gap: 12px; }
  .path-link { position: static; margin-top: 8px; text-align: left; }
  .training-path .section-head { padding-right: 0; }
  .path-step { grid-template-columns: 132px minmax(0, 1fr); }
  .latest-grid,
  .archive-grid { grid-template-columns: 1fr; }
  .latest-copy p { max-width: none; }
  .latest-list { column-gap: 18px; }
  .archive-media img { aspect-ratio: 21 / 9; }
  .path-link { text-align: left; }
}

@media (max-width: 760px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .featured-grid { grid-template-columns: 1fr; gap: 20px; }
  .entry-thumb { aspect-ratio: 2.4 / 1; }
  .gear-grid { grid-template-columns: 1fr; }
  .gear-media { order: 2; }
  .gear-list { order: 3; grid-template-columns: 1fr; gap: 10px; }
  .gear-item { border-top: 1px solid var(--line-dark); padding-top: 8px; }
  .gear-item:first-child { border-top: 0; padding-top: 0; }
  .gear-copy p { max-width: none; }
  .injury-grid { grid-template-columns: 1fr; }
  .injury-media { order: 2; }
  .injury-list { order: 3; }
  .latest-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .latest-row { grid-template-columns: 64px 1fr auto; }
}

@media (max-width: 480px) {
  .hero { min-height: 440px; }
  .hero-copy { padding-block: 46px 36px; }
  .hero h1 { font-size: 34px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-stats { font-size: 11px; }
  .injury-list { grid-template-columns: 1fr; }
  .latest-thumb { width: 52px; }
  .latest-row { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .latest-title { font-size: var(--fs-2); }
  .archive-media img { aspect-ratio: 16 / 9; }
}

/* ---------- 数据对接补充 ---------- */
.chip { display: inline-flex; align-items: center; justify-content: center; line-height: 1; text-decoration: none; }
.chip.is-active, .chip[aria-pressed="true"] { background: #0e2233; border-color: #0e2233; color: #fff; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 36px 0 12px; }
.page-num { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid rgba(14,34,51,.25); border-radius: 4px; color: #0e2233; font-size: 13px; text-decoration: none; }
.page-num:hover, .page-num:focus-visible { border-color: #0e2233; }
.page-num.is-active { background: #0e2233; border-color: #0e2233; color: #fff; }
.page-gap { display: inline-flex; align-items: center; padding: 0 4px; color: #6b7883; }
.empty-state { padding: 46px 0; text-align: center; color: #6b7883; }
.article-nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(14,34,51,.16); }
.article-nav-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px; border: 1px solid rgba(14,34,51,.16); border-radius: 4px; color: #0e2233; text-decoration: none; }
.article-nav-item span { font-size: 12px; color: #6b7883; }
.article-nav-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.article-nav-item:hover { border-color: #0e2233; }
.article-nav-next { text-align: right; }
.section-figure { margin: 18px 0; }
.section-figure img, .article img { max-width: 100%; height: auto; border-radius: 4px; }
@media (max-width: 700px) { .article-nav { grid-template-columns: 1fr; } .article-nav-next { text-align: left; } }
