/* DURIX — Resources Hub (/resources/)
   页面专属样式，前缀 resources-；只使用 tokens.css 中的变量，
   不改动 style.css 的全局原子（wrap / section / label / mono / btn / cta-banner）。 */

.resources-page {
  background: var(--pw);
}

/* Hero */
.resources-hero {
  padding: clamp(56px, 6.5vw, 104px) 0 clamp(44px, 5.5vw, 88px);
}

.resources-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5.5vw, 88px);
  align-items: center;
}

.resources-hero-title {
  font-size: clamp(38px, 5vw, 68px);
  margin-bottom: 26px;
}

.resources-hero-lead {
  font-size: 18px;
  line-height: 1.68;
  max-width: 620px;
  margin-bottom: 34px;
}

.resources-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Image frames: 1px border, grey fallback, restrained hover */
.resources-media {
  background: var(--gray-block);
  border: 1px solid var(--line);
  overflow: hidden;
}

.resources-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.resources-media:hover img {
  transform: scale(1.015);
}

.resources-media-hero {
  aspect-ratio: 16 / 10;
}

.resources-media-4x3 {
  aspect-ratio: 4 / 3;
}

.resources-media-3x2 {
  aspect-ratio: 3 / 2;
}

/* Replacement notes for the placeholder photography */
.resources-figure-note {
  margin: 10px 0 0;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Section headings (page-scoped equivalent of the About section-head) */
.resources-section-head {
  max-width: 780px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.resources-section-title {
  margin-bottom: 16px;
}

.resources-section-lead {
  font-size: 17px;
  line-height: 1.7;
}/* 01 / 02 — Guides and Troubleshooting */
.resources-priority-grid,
.resources-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.2vw, 44px);
}

.resources-entry,
.resources-card {
  background: var(--w);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(22px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
}

.resources-entry .resources-media {
  margin-bottom: 6px;
}

.resources-entry-index {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--r);
  margin: 14px 0 12px;
}

.resources-entry-title {
  margin-bottom: 12px;
}

.resources-entry-copy {
  margin-bottom: 20px;
}

.resources-entry-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.resources-entry-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
}

.resources-entry-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--g);
  transition: color 0.2s ease, gap 0.2s ease;
}

.resources-entry-link:hover,
.resources-entry-link:focus {
  color: var(--r);
  gap: 12px;
}

.resources-arrow {
  color: var(--r);
}

/* 03 — Blog and Downloads cards */
.resources-card-index {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 10px;
}

.resources-card-title {
  font-size: clamp(20px, 2vw, 26px);
  margin-bottom: 12px;
}

.resources-card-copy {
  margin-bottom: 20px;
}

.resources-tag-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resources-tag-list li {
  border: 1px solid var(--line);
  border-radius: 1px;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}/* 04 — Featured topics: copy column + technical index table */
.resources-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 4.5vw, 72px);
  align-items: start;
}

.resources-featured-figure {
  margin: clamp(26px, 3vw, 40px) 0 0;
}

.resources-index-wrap {
  border-top: 1px solid var(--g);
  overflow-x: auto;
}

.resources-index {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.resources-index th {
  text-align: left;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.resources-index td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
  vertical-align: top;
}

.resources-index tbody tr {
  transition: background-color 0.2s ease;
}

.resources-index tbody tr:hover {
  background-color: var(--w);
}

.resources-index td:first-child {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--r);
  white-space: nowrap;
}/* 05 — Technical advice */
.resources-advice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(30px, 4.5vw, 72px);
  align-items: start;
}

.resources-advice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: resources-advice;
}

.resources-advice-list li {
  position: relative;
  padding: 0 0 24px 54px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  counter-increment: resources-advice;
}

.resources-advice-list li:last-child {
  margin-bottom: 0;
}

.resources-advice-list li::before {
  content: counter(resources-advice, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--r);
}

.resources-advice-list h3 {
  font-size: clamp(18px, 1.6vw, 22px);
  margin-bottom: 8px;
}

.resources-advice-list p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.resources-brief {
  background: var(--w);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(24px, 2.6vw, 34px);
}

.resources-brief-title {
  font-size: 18px;
  margin-bottom: 16px;
}

.resources-brief-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}

.resources-brief-list li {
  position: relative;
  padding: 11px 0 11px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
}

.resources-brief-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 8px;
  height: 1px;
  background: var(--r);
}

.resources-brief-cta {
  width: 100%;
  justify-content: center;
}

/* Responsive: single column stack, table keeps its own scroll */
@media (max-width: 1024px) {
  .resources-hero-grid,
  .resources-priority-grid,
  .resources-secondary-grid,
  .resources-featured-grid,
  .resources-advice-grid {
    grid-template-columns: 1fr;
  }

  .resources-hero-lead {
    font-size: 17px;
  }
}