/* Homepage sections r14: 询价助手, 产品中心, 项目能力, 合作流程 and 采购指南.
   Font family, sizes and letter-spacing come from site-typography.css; this file only sets
   layout and colour. Display lines that need a larger size use its .h3 / .h4 classes. */
.hs-section {
  --hs-paper: #f6f2ea;
  --hs-ink: #231d18;
  --hs-text: #5c544c;
  --hs-gold: #a57a45;
  --hs-line: #ddd4c7;
  --hs-brown: #3a2c22;
  --hs-ease: cubic-bezier(.22, .61, .36, 1);
  color: var(--hs-ink);
  background: var(--hs-paper);
}
.hs-section a { color: inherit; text-decoration: none; }
.hs-section img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hs-section figure { margin: 0; }
.hs-section img.hs-focus-left { object-position: 26% center; }
.hs-section img.hs-focus-right { object-position: 74% center; }
.hs-section :is(h2, h3, .h3, .h4) { margin: 0; color: var(--hs-ink); }
.hs-section h2 { word-break: keep-all; overflow-wrap: anywhere; }
.hs-kicker { margin: 0; color: var(--hs-gold); }
.hs-text { margin: 0; color: var(--hs-text); }
.hs-step { margin: 0; color: var(--hs-gold); }

/* Centered section heading: kicker, short gold rule, title, note. */
.hs-head-center { display: grid; justify-items: center; gap: 16px; text-align: center; }
.hs-head-center .hs-kicker::after { content: ""; display: block; width: 92px; height: 1px; margin: 16px auto 4px; background: var(--hs-gold); }

.hs-link { display: inline-flex; align-items: center; gap: 18px; padding-bottom: 8px; border-bottom: 1px solid var(--hs-ink); }
.hs-link span, .hs-btn-dark span, .hs-btn-line span, .hs-cap-list a > span:last-child { transition: transform .3s var(--hs-ease); }
.hs-link:hover span, .hs-btn-dark:hover span, .hs-btn-line:hover span, .hs-cap-list a:hover > span:last-child { transform: translateX(4px); }
.hs-section a:focus-visible { outline: 2px solid var(--hs-gold); outline-offset: 3px; }

/* ---------- 首屏 ---------- */
/* Keep the original hero design; only let it fill the screen (overrides the fixed heights in web-v3-homepage-exact.css). */
.hero .hero-media { height: 100vh; height: 100svh; min-height: 600px; }

/* ---------- 询价助手 ---------- */
.hs-assist { padding: 72px 0 96px; }
.hs-assist-head { padding-bottom: 36px; border-bottom: 1px solid var(--hs-line); }
.hs-assist-note { margin: 0; color: var(--hs-text); }
.hs-assist-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); margin-top: 30px; }
.hs-assist-main { display: grid; gap: 12px; align-content: start; padding-right: 30px; border-right: 1px solid var(--hs-line); }
.hs-assist-media { display: block; aspect-ratio: 863 / 477; overflow: hidden; margin-bottom: 18px; }
.hs-assist-media img, .hs-assist-thumb img, .hs-product-card img, .hs-project-media img { transition: transform 1.2s var(--hs-ease); }
.hs-assist-media:hover img, .hs-assist-thumb:hover img, .hs-product-card:hover img { transform: scale(1.03); }
.hs-assist-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 18px; color: var(--hs-text); }
.hs-btn-dark { display: inline-flex; align-items: center; gap: 18px; height: 50px; padding: 0 48px; color: #f6f2ea !important; background: var(--hs-brown); transition: background .3s; }
.hs-btn-dark:hover { background: #4b3a2d; }
.hs-assist-side { display: grid; grid-template-rows: 1fr 1fr; padding-left: 30px; }
.hs-assist-item { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.hs-assist-item + .hs-assist-item { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--hs-line); }
.hs-assist-thumb { display: block; aspect-ratio: 349 / 312; overflow: hidden; }
.hs-assist-item > div { display: grid; gap: 14px; justify-items: start; }
.hs-assist-item .hs-link { margin-top: 12px; }

/* ---------- 产品中心 ---------- */
.hs-products { padding: 64px 0 96px; background: #fbf9f4; }
/* Nine categories plus the closing text cell fill five columns by two rows. */
.hs-products-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 44px 32px; margin-top: 44px; }
.hs-product-card { display: grid; gap: 6px; justify-items: center; text-align: center; }
.hs-product-card figure { width: 100%; aspect-ratio: 344 / 266; overflow: hidden; margin-bottom: 14px; }
.hs-product-card p { margin: 0; color: var(--hs-text); }
.hs-products-more { display: grid; align-content: center; justify-items: start; gap: 28px; padding: 0 8% 40px; }
.hs-products-more::before { content: ""; width: 100%; height: 1px; background: var(--hs-line); margin-bottom: 12px; }

/* ---------- 项目能力 ---------- */
/* Same page width as the sections above; photo sits inside the column instead of bleeding to the window edge. */
.hs-project { padding: 96px 0 104px; }
.hs-project-inner { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 72px; align-items: stretch; }
.hs-project-copy { display: grid; align-content: center; justify-items: start; gap: 20px; }
/* Same 92px rule as the centered headings, centered under the label itself. */
.hs-project .hs-kicker::after { content: ""; display: block; width: 92px; height: 1px; margin: 16px auto 4px; background: var(--hs-gold); }
.hs-cap-list { width: 100%; margin: 18px 0 14px; padding: 0; list-style: none; }
.hs-cap-list li { border-bottom: 1px solid var(--hs-line); }
.hs-cap-list a { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; padding: 16px 0; }
.hs-num { color: var(--hs-gold); }
.hs-cap-list a:hover .hs-cap-name { color: var(--hs-gold); }
.hs-btn-line { display: inline-flex; align-items: center; gap: 22px; height: 54px; padding: 0 36px; color: var(--hs-gold) !important; border: 1px solid var(--hs-gold); transition: background .3s, color .3s; }
.hs-btn-line:hover { color: #f6f2ea !important; background: var(--hs-gold); }
.hs-project-media { position: relative; max-width: 100%; min-height: 520px; overflow: hidden; }
.hs-project-media img { position: absolute; inset: 0; }
.hs-project-media figcaption { position: absolute; right: 28px; bottom: 22px; color: rgba(246, 242, 234, .9); }

/* ---------- 合作流程 ---------- */
.hs-process { padding: 104px 0 104px; background: #eee7db; }
.hs-process-head .hs-text { max-width: 30em; }
.hs-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 64px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hs-line); }
.hs-step-item { position: relative; display: grid; gap: 14px; align-content: start; padding: 40px 28px 8px 0; }
.hs-step-item + .hs-step-item { padding-left: 28px; border-left: 1px solid var(--hs-line); }
.hs-step-item::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--hs-gold); }
.hs-step-item + .hs-step-item::before { left: -4px; }
.hs-step-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
/* Thin gold line drawings, matching the hairlines and dots of the timeline. */
.hs-step-icon { width: 46px; height: 46px; fill: none; stroke: var(--hs-gold); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--hs-ease); }
.hs-step-item:hover .hs-step-icon { transform: translateY(-3px); }

/* ---------- 采购指南 ---------- */
.hs-guides { padding: 96px 0 112px; }
.hs-guides-head { padding-bottom: 36px; border-bottom: 1px solid var(--hs-line); }
.hs-guides-head .hs-link { white-space: nowrap; }
.hs-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.hs-guide-card a { display: grid; gap: 12px; align-content: start; }
.hs-guide-card figure { aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 12px; }
.hs-guide-card img { transition: transform 1.2s var(--hs-ease); }
.hs-guide-card a:hover img { transform: scale(1.03); }
.hs-read { justify-self: start; display: inline-flex; gap: 14px; margin-top: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--hs-line); }
.hs-read span { transition: transform .3s var(--hs-ease); }
.hs-guide-card a:hover .hs-read span { transform: translateX(4px); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .hs-steps { grid-template-columns: minmax(0, 1fr); margin-top: 44px; border-top: 0; border-left: 1px solid var(--hs-line); }
  .hs-step-item, .hs-step-item + .hs-step-item { gap: 6px; padding: 0 0 36px 32px; border-left: 0; }
  .hs-step-top { justify-content: flex-start; align-items: center; gap: 14px; margin-bottom: 4px; }
  .hs-step-icon { width: 38px; height: 38px; }
  .hs-step-item::before, .hs-step-item + .hs-step-item::before { top: 16px; left: -4px; }
  .hs-guide-grid { gap: 24px; }
  .hs-assist-grid { grid-template-columns: minmax(0, 1fr); }
  .hs-assist-main { padding: 0 0 36px; border-right: 0; border-bottom: 1px solid var(--hs-line); }
  .hs-assist-side { padding: 36px 0 0; }
  .hs-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hs-products-more { grid-column: 1 / -1; justify-items: center; padding: 8px 0 0; text-align: center; }
  .hs-project-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hs-project-media { min-height: 0; aspect-ratio: 940 / 862; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .hs-assist { padding: 56px 0 64px; }
  .hs-assist-head, .hs-guides-head { padding-bottom: 26px; }
  .hs-assist-actions .hs-btn-dark { width: 100%; justify-content: space-between; padding: 0 24px; }
  .hs-assist-item { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: start; }
  .hs-assist-item > div { gap: 6px; }
  .hs-assist-item .hs-text br { display: none; }
  .hs-assist-item .hs-link { margin-top: 4px; }
  .hs-assist-item + .hs-assist-item { margin-top: 20px; padding-top: 20px; }
  .hs-assist-side { padding-top: 24px; }
  .hs-products { padding: 56px 0 64px; }
  .hs-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; margin-top: 32px; }
  .hs-products-more { grid-column: auto; justify-items: start; padding: 0 0 24px; text-align: left; }
  .hs-project { padding: 56px 0 64px; }
  .hs-cap-list a { grid-template-columns: 52px minmax(0, 1fr) auto; padding: 16px 0; }
  .hs-btn-line { width: 100%; justify-content: space-between; }
  .hs-process, .hs-guides { padding: 64px 0 72px; }
  .hs-guide-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 16px; margin-top: 32px; padding-bottom: 8px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
  .hs-guide-card { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-section img, .hs-section a span { transition: none !important; }
}
