/* style.css — 首页版式（按 03-ui/home-ui-desktop.png 的分区预算落位）
   基准宽度 1440px；分区高度预算见 03-ui/compare-log.md。 */

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: 0;
  background:
    radial-gradient(120% 90% at 82% 18%, rgba(237, 224, 208, 0.9), transparent 62%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.42fr);
  gap: 40px;
  align-items: start;
}
.hero-copy { padding: 26px 0 40px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(32px, 2.95vw, 42px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.hero-lead {
  margin: 12px 0 0;
  max-width: 600px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.hero-actions { display: flex; gap: 12px; margin-top: 22px; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-mute);
}
.hero-stats span { display: inline-flex; align-items: center; gap: 7px; }
.hero-stats svg { width: 15px; height: 15px; color: var(--gold); }
.hero-stats b {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--accent);
  margin-right: 2px;
}
.hero-media {
  justify-self: end;
  width: 100%;
  max-width: 560px;
  height: clamp(280px, 26vw, 375px);
  max-width: none;
  margin: 0 calc((min(1328px, 100vw - 48px) - 100vw) / 2) 0 0;
  border-radius: 14px 0 0 14px;
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 20px 40px rgba(60, 32, 20, 0.12);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------- 分类索引（6 列） */
.cat-section { padding: 16px 0 48px; }
.cat-section .section-head { margin-bottom: 6px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 0 12px 10px;
  overflow: hidden;
}
.cat-card .ico {
  display: grid;
  place-items: center;
  width: calc(100% + 24px);
  height: 90px;
  margin: 0 -12px 8px;
  background: linear-gradient(180deg, #fffaf2, #f6e8d6);
  border-bottom: 1px solid var(--line);
  color: var(--gold);
}
.cat-card .ico img { height: 64px; width: auto; }
.cat-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}
.cat-card p { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--ink-mute); }
.cat-card .more { position: absolute; right: 12px; bottom: 10px; color: var(--gold-soft); opacity: 0; transition: opacity .2s ease; }
.cat-card:hover .more { opacity: 1; }

/* ---------------------------------------------------------- 工艺对比表 */
.table-section { padding: 12px 0 10px; }
.table-section .data-table { margin-top: 0; }

/* ---------------------------------------------------------- 本周精读卡 */
.notes-section { padding: 18px 0 16px; }
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.note-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 8px;
  align-items: center;
}
.note-card .thumb {
  aspect-ratio: 3 / 2;
  border-radius: var(--r-image);
  overflow: hidden;
  background: var(--bg-deep);
}
.note-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.note-card h3 { font-size: 13.5px; line-height: 1.55; }
.note-card p { font-size: 11.5px; line-height: 1.65; }

/* -------------------------------------------------------------- 材质区 */
.material-section { padding: 31px 0 29px; }
.material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.material-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
}
.material-item .thumb {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-deep);
}
.material-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.material-item h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--accent);
}
.material-item p { margin: 3px 0 0; font-size: 11px; line-height: 1.6; color: var(--ink-mute); }

/* -------------------------------------------------------------- 定制流程 */
.custom-section { padding: 29px 0 28px; scroll-margin-top: 92px; }
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 0 10px;
  text-align: center;
}
.step .no {
  display: block;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}
.step h3 { margin: 4px 0 3px; font-size: 14px; color: var(--accent); }
.step p { margin: 0; font-size: 11px; line-height: 1.65; color: var(--ink-mute); }
.step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 4px;
  right: -8px;
  color: var(--gold-soft);
  font-size: 15px;
}

/* -------------------------------------------------------------- 收藏区 */
.collect-section { padding: 30px 0 49px; }
.collect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.collect-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: start;
}
.collect-item .thumb {
  grid-row: 1 / span 2;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-image);
  overflow: hidden;
  background: var(--bg-deep);
}
.collect-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.collect-item h3 {
  margin: 0 0 3px;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--accent);
}
.collect-item p { margin: 0; font-size: 12px; line-height: 1.7; color: var(--ink-soft); }

/* -------------------------------------------------------------- 响应式 */
@media (max-width: 1279px) {
  .hero-grid { gap: 30px; }
  .hero h1 { font-size: 38px; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .note-card { grid-template-columns: 120px minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { justify-self: stretch; max-width: none; height: 300px; order: -1; }
  .note-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .step:not(:last-child)::after { display: none; }
  .collect-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-top: 18px; }
  .hero h1 { font-size: 28px; }
  .hero-media { height: 220px; }
  .hero-stats { gap: 14px; font-size: 11.5px; flex-wrap: wrap; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .material-grid { grid-template-columns: 1fr; }
  .note-card { grid-template-columns: 104px minmax(0, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step { text-align: left; padding-left: 52px; }
  .step .no { position: absolute; left: 0; top: -4px; font-size: 26px; }
  .hero-actions .btn { padding: 10px 16px; font-size: 13px; }
}
