/* 珠宝设计 · 页面版式（首页 / 分类页 / 详情页） */

/* ================================================================ 首页 */

/* M1 首屏检索：左侧文案，右侧满出血实拍 */
.home-hero {
  position: relative;
  height: var(--h-hero);
  display: grid;
  grid-template-columns: minmax(0, 52%) minmax(0, 48%);
  background: var(--bg-hero);
}
.hero-copy {
  align-self: center;
  /* 左对齐容器：padding 不参与 max-width，否则宽屏下文字区被挤成一条 */
  --hero-gutter: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  padding: 8px 56px 8px var(--hero-gutter);
  max-width: calc(674px + var(--hero-gutter) + 56px);
}
.hero-copy h1 {
  font-size: 44px;
  line-height: 1.24;
  letter-spacing: .01em;
  color: var(--ink);
}
.hero-lead {
  margin-top: 12px;
  max-width: 34em;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-2);
}
.home-hero .search-field { margin-top: 20px; max-width: 560px; }
.hot-index {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.hot-index a { color: var(--ink-2); border-bottom: 1px solid var(--accent-soft); }
.hot-index a:hover { color: var(--accent-deep); border-color: var(--accent); }
.hot-index span { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 11.5px; letter-spacing: .04em; }
.hero-media { position: relative; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* M2 分类索引 */
.cat-section {
  padding-top: 22px;
  padding-bottom: 18px;
}
.cat-section .sec-head { padding-bottom: 16px; }

/* M3 分类内容模块（数据驱动） */
.feed-zone { padding-top: 8px; padding-bottom: 14px; }
.feed-block + .feed-block { margin-top: 26px; }
.feed-block .sec-head { padding-bottom: 12px; }
.feed-block .sec-more {
  flex: none;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent-soft);
  white-space: nowrap;
}
.feed-block .sec-more:hover { color: var(--accent); border-color: var(--accent); }
.feed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.feed-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feed-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(120, 80, 60, .12); }
.feed-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}
.feed-media img { width: 100%; height: 100%; object-fit: cover; }
.feed-body { padding: 11px 13px 13px; }
.feed-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  margin-bottom: 6px;
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--accent-deep);
  background: #fffaf3;
}
.feed-card h3 {
  font-size: 14.5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.feed-card h3 a { color: inherit; }
.feed-card h3 a:hover { color: var(--accent-deep); }
.feed-card p {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* M3 材质速查 */
.material-row { padding-top: 20px; padding-bottom: 18px; }
.tables > *, .standards-row > * { min-width: 0; }
.material-row .tables {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* M4 工序路径 */
.craft-path { padding-top: 39px; padding-bottom: 15px; }
.path-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  counter-reset: none;
}
.path-steps .step {
  position: relative;
  padding: 16px 18px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  min-height: 146px;
}
.path-steps .step::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  width: 10px;
  height: 1px;
  background: var(--accent-soft);
}
.path-steps .step:last-child::after { display: none; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff7f1;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 11.5px;
  letter-spacing: .02em;
}
.path-steps .step h3 { margin: 10px 0 6px; font-size: 15.5px; }
.path-steps .step p { font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }

/* M5 风格索引 */
.style-index { padding-top: 12px; padding-bottom: 12px; }
.style-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.style-card {
  position: relative;
  display: block;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.style-card::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 42%;
  width: 8px;
  height: 1px;
  background: var(--accent-soft);
}
.style-card:last-child::after { display: none; }
.style-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(120, 80, 60, .12); }
.style-card figure { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; }
.style-card img { width: 100%; height: 100%; object-fit: cover; }
.style-body { padding: 7px 9px 9px; }
.style-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.style-num {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--accent-deep);
}
.style-card h3 { margin: 0; font-size: 14px; line-height: 1.3; }
.style-years {
  display: block;
  margin-top: 1px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--ink-3);
}
.style-card p { margin-top: 3px; font-size: 11.5px; line-height: 1.5; color: var(--ink-2); }

/* M6 + M7 同排 */
.standards-row {
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  gap: 44px;
  padding-top: 37px;
  padding-bottom: 71px;
  align-items: start;
}
.standards-row .sec-head { padding-bottom: 12px; }
.standards-row .data-table th { padding: 9px 12px; }
.standards-row .data-table td { padding: 10px 12px; }
.standards-row .data-table td:first-child { color: var(--accent-deep); }
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}
.scenario {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.scenario svg {
  width: 30px; height: 30px;
  color: var(--accent-deep);
  stroke-width: 1.2;
}
.scenario h3 { margin: 8px 0 5px; font-size: 14.5px; }
.scenario p { font-size: 12px; line-height: 1.65; color: var(--ink-2); }

/* ============================================================ 分类页 */

.page-hero {
  position: relative;
  background: var(--bg-hero);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.page-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(0, 40%);
  gap: 40px;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 30px;
}
.page-hero-copy h1 {
  margin: 14px 0 12px;
  font-size: 40px;
  line-height: 1.25;
}
.page-hero-copy .lead {
  max-width: 36em;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
}
.page-hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 18px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-2);
}
.page-hero-stats strong {
  display: block;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--ink);
}
.page-hero-media {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 26px;
}
.chip {
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .16s ease;
}
.chip:hover { border-color: var(--accent-soft); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fdf4ec;
}
.sort-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 12.5px;
  color: var(--ink-3);
}
.select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.select-wrap svg {
  position: absolute;
  right: 14px;
  width: 10px;
  height: 7px;
  color: var(--ink-2);
  pointer-events: none;
}
.sort-group select {
  height: 34px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fffaf3;
  font: inherit;
  font-size: 13px;
  color: var(--ink-2);
  appearance: none;
  cursor: pointer;
}

.entry-section { padding-top: 34px; padding-bottom: 10px; }
.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.entry-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 18px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color .18s ease, transform .18s ease;
}
.entry-card:hover { border-color: var(--accent-soft); transform: translateY(-2px); }
.entry-media {
  display: block;
  aspect-ratio: 4 / 3;
  margin: -6px -8px 2px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--line-soft);
}
.entry-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.entry-card:hover .entry-media img { transform: scale(1.03); }
.entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.entry-num {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--accent-deep);
}
.entry-card h3 { font-size: 17px; line-height: 1.4; }
.entry-card h3 a { color: inherit; }
.entry-card h3 a:hover { color: var(--accent-deep); }
.entry-head { padding-top: 26px; }
.entry-count {
  font-size: 12.5px;
  color: var(--ink-3);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
}
.entry-card p { font-size: 13px; line-height: 1.75; color: var(--ink-2); }
.entry-more {
  margin-top: auto;
  padding-top: 10px;
  font-size: 12.5px;
  color: var(--accent-deep);
  letter-spacing: .04em;
}
.entry-empty {
  display: none;
  padding: 40px 0;
  text-align: center;
  color: var(--ink-2);
  font-size: 14px;
}
.entry-empty.is-visible { display: block; }
.entry-empty button {
  margin-left: 10px;
  font: inherit;
  font-size: 13px;
  color: var(--accent-deep);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--accent-soft);
  cursor: pointer;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 34px 0 8px;
}
.pager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--ink-2);
  transition: border-color .16s ease, color .16s ease;
}
a.pager-link:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.pager-link.is-current {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fdf4ec;
}
.pager-gap {
  padding: 0 4px;
  color: var(--ink-3);
  font-size: 13px;
}

.list-description {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 62%);
  gap: 40px;
  padding-top: 34px;
  padding-bottom: 34px;
  border-top: 1px solid var(--line-soft);
  margin-top: 30px;
}
.list-description h2 { font-size: 26px; line-height: 1.35; }
.list-description .desc-body { font-size: 14.5px; line-height: 1.95; color: var(--ink-2); }
.list-description .desc-body p + p { margin-top: 14px; }

.related-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 46px;
}
.related-cats .rel-head {
  grid-column: 1 / -1;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 22px;
  padding-left: 14px;
  position: relative;
}
.related-cats .rel-head::before {
  content: "";
  position: absolute;
  left: 0; top: .2em; bottom: .2em;
  width: 3px;
  background: var(--accent-deep);
}
.rel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  background: var(--surface);
  border-radius: var(--radius);
  transition: background .18s ease;
}
.rel-card:hover { background: #fffaf3; }
.rel-card .rel-kicker {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--accent-deep);
}
.rel-card h3 { margin: 4px 0 4px; font-size: 18px; }
.rel-card p { font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.rel-card svg { flex: none; width: 20px; height: 20px; color: var(--accent-deep); }

/* ============================================================ 详情页 */

.article-wrap { padding-top: 26px; }
.article-head {
  max-width: 900px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line);
}
.article-head h1 {
  margin: 10px 0 14px;
  font-size: 40px;
  line-height: 1.28;
}
.article-head h1::before {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-bottom: 16px;
  background: var(--accent-deep);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  letter-spacing: .03em;
}
.article-lead {
  margin-top: 16px;
  max-width: 44em;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 56px;
  padding-top: 34px;
  padding-bottom: 20px;
  align-items: start;
}
.article-body { max-width: 720px; }
.article-body h2 {
  margin: 38px 0 12px;
  font-size: 24px;
  line-height: 1.4;
  scroll-margin-top: 24px;
}
.article-body p {
  font-size: 15px;
  line-height: 2;
  color: #3a2b25;
}
.article-body p + p { margin-top: 12px; }
.article-body .table-wrap {
  margin: 18px 0 6px;
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.article-body .table-note {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.faq-list { margin-top: 18px; }
.faq-list details {
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 0;
}
.faq-list details:first-of-type { border-top: 1px solid var(--line-soft); }
.faq-list summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 26px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 0;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  color: var(--accent-deep);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list .faq-a {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-2);
}

.article-figure {
  margin: 22px 0 6px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line-soft);
}
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  transition: border-color .18s ease, background .18s ease;
}
.post-nav-link:hover { border-color: var(--accent-soft); background: #fffaf3; }
.post-nav-link span {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--ink-3);
}
.post-nav-next { text-align: right; }

.article-toc {
  position: sticky;
  top: 24px;
  padding: 18px 20px;
  background: var(--surface);
  border-radius: var(--radius);
}
.article-toc h2 {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.article-toc ol { display: grid; gap: 2px; }
.article-toc a {
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 2px solid transparent;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}
.article-toc a:hover { color: var(--ink); }
.article-toc a.active {
  border-left-color: var(--accent-deep);
  color: var(--accent-deep);
  font-weight: 600;
}

.related-entries {
  padding-top: 30px;
  padding-bottom: 46px;
  border-top: 1px solid var(--line-soft);
}
.related-entries h2 {
  font-size: 22px;
  padding-left: 14px;
  position: relative;
  margin-bottom: 18px;
}
.related-entries h2::before {
  content: "";
  position: absolute;
  left: 0; top: .2em; bottom: .2em;
  width: 3px;
  background: var(--accent-deep);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: rel;
}
.related-grid a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 20px 22px 20px 52px;
  background: var(--surface);
  border-radius: var(--radius);
  min-height: 92px;
  transition: background .18s ease;
}
.related-grid a::before {
  counter-increment: rel;
  content: counter(rel, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-2);
  letter-spacing: .08em;
  color: var(--accent-deep);
}
.related-grid a:hover { background: #fffaf3; }
.related-grid .rel-num {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--accent-deep);
}
.related-grid h3 { font-size: 15px; line-height: 1.45; }

/* ============================================================ 响应式 */

@media (max-width: 1180px) {
  :root { --gutter: 28px; }
  .site-nav { gap: 12px; font-size: 12px; }
  .hero-copy h1 { font-size: 38px; }
  .style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .style-card::after { display: none; }
}

@media (max-width: 980px) {
  .site-header { height: auto; min-height: var(--h-header); }
  .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    order: 3;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .24s ease;
  }
  .site-nav.is-open { max-height: 480px; padding: 8px 0 12px; }
  .site-nav a { width: 100%; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
  .site-nav a::after { display: none; }

  .home-hero {
    height: auto;
    grid-template-columns: 1fr;
  }
  .hero-copy { order: 2; padding: 26px var(--gutter) 30px; max-width: none; }
  .hero-media { order: 1; height: 260px; }
  .hero-copy h1 { font-size: 32px; }
  .home-hero .search-field { max-width: none; }

  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed-block .sec-head { flex-wrap: wrap; gap: 8px 16px; }
  .tables > *, .standards-row > * { min-width: 0; }
.material-row .tables { grid-template-columns: 1fr; }
  .path-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path-steps .step::after { display: none; }
  .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .standards-row { grid-template-columns: 1fr; gap: 26px; }
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .page-hero .wrap { grid-template-columns: 1fr; gap: 22px; padding-top: 24px; padding-bottom: 24px; }
  .page-hero-media { aspect-ratio: 16 / 7; }
  .page-hero-copy h1 { font-size: 32px; }
  .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-description { grid-template-columns: 1fr; gap: 16px; }
  .related-cats { grid-template-columns: 1fr; padding-bottom: 36px; }

  .article-head h1 { font-size: 32px; }
  .article-layout { grid-template-columns: 1fr; gap: 26px; }
  .article-toc { position: static; order: -1; }
  .article-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-nav { grid-template-columns: 1fr; gap: 10px; }
  .post-nav-next { text-align: left; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-top: 24px;
  }
  .footer-inner > * { flex: none; width: 100%; }
  .site-footer { min-height: 0; padding-bottom: 22px; }
  .footer-legal { text-align: left; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; }
  body { font-size: 14.5px; }
  .hero-copy h1 { font-size: 27px; }
  .hero-lead { font-size: 14.5px; }
  .search-field { flex-wrap: wrap; }
  .field { flex: 1 1 100%; }
  .btn-search { width: 100%; height: 46px; }
  .cat-grid { grid-template-columns: 1fr; }
  .feed-grid { grid-template-columns: 1fr; }
  .cat-tile { min-height: 96px; }
  .cat-thumb { width: 64px; height: 64px; }
  .sec-head { flex-direction: column; gap: 6px; }
  .sec-head h2 { font-size: 22px; }
  .path-steps { grid-template-columns: 1fr; }
  .path-steps .step { min-height: 0; }
  .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .style-body { padding: 8px 10px 12px; }
  .scenario-grid { grid-template-columns: 1fr; }
  .standards-row .table-wrap,
  .material-row .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .standards-row .data-table,
  .material-row .data-table { min-width: 520px; }
  .entry-grid { grid-template-columns: 1fr; }
  .entry-card { padding: 18px; }
  .entry-media { margin: -4px -6px 2px; }
  .sort-group { margin-left: 0; }
  .article-toc ol { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .article-body p { font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* 详情页正文栏容器（宽度收窄到可读区间） */
.article-shell { max-width: 1040px; margin: 0 auto; }
