:root {
  --ink: #202124;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f6f7f9;
  --warm: #f6f1e9;
  --paper: #fffaf3;
  --panel: #ffffff;
  --brand: #f26b21;
  --brand-dark: #c94f0f;
  --green: #1f8a70;
  --shadow: 0 12px 30px rgba(20, 24, 35, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fffaf3 0, #f6f1e9 460px, #f7f8f4 100%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.preview-note {
  min-height: 34px;
  display: grid;
  place-items: center;
  background: #fff7ed;
  color: #9a3412;
  border-bottom: 1px solid #fed7aa;
  padding: 6px 12px;
  text-align: center;
  font-weight: 800;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
}

.contact-bar {
  background: #222;
  color: #fff;
  font-size: 13px;
}

.contact-bar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  white-space: nowrap;
}

.contact-bar a {
  color: #fff;
  opacity: 0.9;
}

.shop-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 243, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(37, 36, 29, 0.08);
  backdrop-filter: blur(8px);
}

.shop-header__main {
  min-height: 74px;
  display: grid;
  grid-template-columns: 285px minmax(240px, 1fr) auto minmax(210px, auto) auto;
  gap: 18px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.header-search {
  display: grid;
  grid-template-columns: 1fr 92px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.header-search input {
  min-width: 0;
  border: 0;
  padding: 10px 16px;
  outline: 0;
}

.header-search button,
.header-inquiry,
.button--primary {
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.header-inquiry {
  padding: 11px 18px;
  border-radius: 999px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 9px 12px;
}

.language-tools {
  display: grid;
  grid-template-columns: auto minmax(132px, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 210px;
}

.language-auto,
.google-translate-box select {
  min-height: 38px;
  border: 1px solid #f8c7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
}

.language-auto {
  padding: 0 12px;
  cursor: pointer;
}

.language-auto:hover,
.language-auto:focus-visible {
  border-color: var(--brand);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(242, 107, 33, 0.16);
}

.google-translate-box {
  min-width: 132px;
  min-height: 38px;
}

.google-translate-box .goog-te-gadget {
  color: transparent;
  font-size: 0;
}

.google-translate-box .goog-te-gadget span,
.google-translate-box .goog-te-gadget img {
  display: none;
}

.google-translate-box select {
  width: 100%;
  padding: 0 10px;
  cursor: pointer;
}

.goog-te-banner-frame.skiptranslate,
body > .skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

.shop-nav {
  border-top: 1px solid var(--line);
  background: #fff;
}

.shop-nav__inner {
  display: flex;
  align-items: center;
  min-height: 60px;
  gap: 0;
  overflow-x: auto;
}

.shop-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 34px;
  border-left: 1px solid var(--line);
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.shop-nav a:last-child {
  border-right: 1px solid var(--line);
}

.shop-nav a:hover {
  color: var(--brand-dark);
  background: #fff7f1;
}

.shop-nav a.is-active {
  color: #fff;
  background: var(--brand);
}

body.section-page .store-hero,
body.section-page .factory-video-section,
body.section-page .home-category-showcase,
body.section-page .trust-section,
body.section-page .catalog-layout,
body.section-page .factory-showcase {
  display: none;
}

body[data-view="products"] .catalog-layout {
  display: grid;
  padding-top: 28px;
  padding-bottom: 38px;
}

body[data-view="capability"] .trust-section {
  display: block;
  padding-top: 34px;
  padding-bottom: 42px;
}

body[data-view="company"] .factory-showcase,
body[data-view="news"] .factory-showcase,
body[data-view="downloads"] .factory-showcase,
body[data-view="contact"] .factory-showcase {
  display: block;
  margin-top: 0;
}

body[data-view="company"] .factory-showcase__inner > :not(.company-section),
body[data-view="news"] .factory-showcase__inner > :not(#news-center),
body[data-view="downloads"] .factory-showcase__inner > :not(#download-center),
body[data-view="contact"] .factory-showcase__inner > :not(.inquiry-section) {
  display: none;
}

.store-hero {
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.96) 0%, rgba(255, 250, 243, 0.90) 48%, rgba(255, 238, 226, 0.78) 100%),
    url("assets/factory/kangpu-factory-overhead-web.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.store-hero__grid {
  min-height: 300px;
  display: grid;
  grid-template-columns: 270px 1fr 270px;
  gap: 24px;
  align-items: stretch;
  padding: 22px 0;
}

.hero-categories,
.supplier-card,
.catalog-sidebar,
.catalog-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(50, 45, 36, 0.07);
}

.hero-categories {
  padding: 14px;
}

.hero-categories h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 6px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

:lang(zh-CN) h1 {
  max-width: 1040px;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.12;
  font-weight: 900;
}

:lang(zh-CN) .hero-copy p {
  max-width: 1120px;
  font-size: 19px;
  line-height: 1.65;
}

h2 {
  margin-bottom: 10px;
  font-size: 24px;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 760px;
  color: #4b5563;
  font-size: 16px;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
}

.button--outline {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.button--text {
  color: var(--brand-dark);
  padding-inline: 8px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 18px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid #f8d3bd;
  border-radius: 999px;
  background: #fff8f3;
  color: #7c2d12;
  padding: 0 11px;
  font-size: 13px;
}

.hero-proof strong {
  margin-right: 4px;
  color: var(--brand-dark);
}

.supplier-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  padding: 18px;
}

.supplier-card strong {
  font-size: 18px;
}

.supplier-card span {
  color: var(--muted);
}

.supplier-card__capability {
  width: fit-content;
  color: var(--brand-dark);
  font-weight: 800;
}

.supplier-contact-list {
  display: grid;
  gap: 8px;
  margin: 4px 0 2px;
}

.supplier-contact-list a,
.supplier-contact-list .contact-disabled {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
}

.supplier-contact-list a:hover {
  border-color: #f8c7aa;
  background: #fff7f1;
}

.supplier-contact-list b {
  color: var(--brand-dark);
  font-size: 12px;
  text-transform: uppercase;
}

.supplier-contact-list span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #374151;
  font-size: 13px;
}

.supplier-contact-list .contact-disabled {
  background: #f9fafb;
}

.supplier-contact-list .contact-disabled b,
.supplier-contact-list .contact-disabled span {
  color: #6b7280;
}

.factory-video-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(520px, 760px) minmax(260px, 390px);
  gap: 30px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.96), rgba(255, 247, 237, 0.86)),
    url("assets/factory/trust-foam-blocks.jpg") center / cover no-repeat;
  overflow: hidden;
}

.factory-video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.66);
  pointer-events: none;
}

.factory-video-copy,
.factory-video-frame {
  position: relative;
  z-index: 1;
}

.factory-video-copy {
  max-width: 720px;
  padding: 6px 0;
}

.factory-video-copy p:last-child {
  color: #4b5563;
  font-size: 17px;
  line-height: 1.65;
}

.factory-video-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.factory-video-points span {
  min-height: 58px;
  display: flex;
  align-items: center;
  border: 1px solid #d9eee8;
  border-radius: 8px;
  background: #f2fbf8;
  color: #155e4b;
  padding: 10px 12px;
  font-weight: 800;
  line-height: 1.42;
}

.factory-video-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.factory-video-stats strong {
  min-height: 74px;
  display: grid;
  align-content: center;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  padding: 10px 12px;
}

.factory-video-stats b {
  color: var(--brand-dark);
  font-size: 26px;
  line-height: 1;
}

.factory-video-stats span {
  margin-top: 5px;
  color: #7c2d12;
  font-size: 13px;
  line-height: 1.25;
}

.quote-checklist {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
}

.quote-checklist h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.quote-checklist ul {
  margin: 0;
  padding-left: 18px;
  color: #4b5563;
  columns: 2;
  column-gap: 26px;
}

.quote-checklist li {
  margin-bottom: 6px;
  break-inside: avoid;
}

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

.factory-video-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  box-shadow: var(--shadow);
  justify-self: center;
  width: min(100%, 390px);
}

.factory-video-frame video {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 16;
  max-height: min(76vh, 680px);
  object-fit: contain;
  background: #111827;
}

.trust-section {
  padding: 34px 0 12px;
}

.home-category-showcase {
  margin-top: 24px;
  padding: 30px 28px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.96), rgba(238, 250, 245, 0.92)),
    url("assets/factory/foam-stock-and-packing.jpg") center / cover no-repeat;
  box-shadow: 0 16px 34px rgba(50, 45, 36, 0.08);
}

.home-category-showcase .section-heading {
  max-width: 1060px;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-category-grid a {
  min-height: 132px;
  display: grid;
  align-content: end;
  gap: 7px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.96));
  padding: 18px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.home-category-grid a:hover {
  transform: translateY(-2px);
  border-color: #f8c7aa;
  box-shadow: var(--shadow);
}

.home-category-grid span {
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.home-category-grid small {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 18px;
}

.section-heading p:last-child {
  color: #4b5563;
  font-size: 16px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trust-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(50, 45, 36, 0.06);
}

.trust-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--soft);
}

.trust-grid h3,
.trust-grid p {
  margin-inline: 14px;
}

.trust-grid h3 {
  margin-top: 14px;
  margin-bottom: 7px;
  font-size: 18px;
}

.trust-grid p {
  margin-bottom: 16px;
  color: #4b5563;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.process-strip span {
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid #d9eee8;
  border-radius: 8px;
  background: #f2fbf8;
  color: var(--green);
  padding: 8px 10px;
  font-weight: 800;
}

.capability-detail {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.capability-block {
  overflow: hidden;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(50, 45, 36, 0.08);
}

.capability-block__copy {
  padding: 22px 24px 18px;
}

.capability-block__copy h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.capability-block__copy p:last-child {
  max-width: 1040px;
  margin-bottom: 0;
  color: #4b5563;
  font-size: 16px;
}

.translated-image {
  position: relative;
  overflow: hidden;
  background: #111827;
}

.translated-image img,
.equipment-grid > img {
  width: 100%;
  display: block;
}

.translated-image span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2a90b;
  color: #fff;
  padding: 0 8px;
  text-align: center;
  font-size: clamp(8px, 1.35vw, 20px);
  font-weight: 800;
  line-height: 1.08;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
}

.translated-image--inspection span {
  font-size: clamp(8px, 1.28vw, 19px);
}

.translated-image--equipment-title span {
  align-items: flex-start;
  justify-content: flex-start;
  background: #f2a90b;
  padding: 32% 24px 0;
  color: #fff;
  font-size: clamp(22px, 4.2vw, 56px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
  text-align: left;
}

.translated-image--equipment-title span::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  width: 126px;
  max-width: 38%;
  height: 6px;
  background: #fff;
}

.equipment-grid {
  display: grid;
  gap: 14px;
  padding: 0 14px 14px;
}

.equipment-grid > img,
.equipment-grid .translated-image {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 0;
}

.catalog-sidebar {
  position: sticky;
  top: 128px;
  max-height: calc(100vh - 150px);
  overflow: auto;
  padding: 12px;
}

.sidebar-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.sidebar-title span {
  color: var(--muted);
  font-size: 12px;
}

.category-link {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 7px 8px;
  text-align: left;
}

.category-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-link b {
  color: var(--muted);
  font-size: 12px;
}

.category-link:hover,
.category-link.is-active {
  background: #fff1e8;
  color: var(--brand-dark);
}

.category-link.is-empty {
  color: #a1a1aa;
  cursor: default;
}

.group-node {
  margin-top: 2px;
}

.group-children {
  margin-left: 12px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.hero-category {
  min-height: 32px;
}

.catalog-panel {
  min-width: 0;
  padding: 16px;
}

.catalog-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.catalog-panel__head h2 {
  margin-bottom: 4px;
}

.catalog-panel__head span,
.catalog-meta {
  color: var(--muted);
}

.catalog-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.catalog-actions select,
.small-button {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 10px;
}

.small-button {
  cursor: pointer;
}

.main-products {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.main-products button {
  border: 1px solid #d9eee8;
  border-radius: 999px;
  background: #f2fbf8;
  color: var(--green);
  padding: 6px 11px;
  cursor: pointer;
  font-weight: 700;
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 14px;
  font-size: 13px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.product-body {
  min-width: 0;
  padding: 10px;
}

.product-title {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  color: #1f2937;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-price {
  margin-top: 8px;
  color: var(--brand-dark);
  font-size: 16px;
  font-weight: 800;
}

.product-moq {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.product-tags span {
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
  color: #4b5563;
  padding: 3px 6px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.product-actions a {
  display: grid;
  min-height: 36px;
  place-items: center;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.product-actions a + a {
  border-left: 1px solid var(--line);
  color: var(--green);
}

.load-more {
  display: block;
  width: min(360px, 100%);
  min-height: 42px;
  margin: 18px auto 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.empty-state {
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.factory-showcase {
  position: relative;
  margin-top: 34px;
  padding: 54px 0;
  background:
    linear-gradient(90deg, rgba(10, 18, 28, 0.78), rgba(10, 18, 28, 0.48) 46%, rgba(10, 18, 28, 0.70)),
    url("assets/factory/foam-factory-overhead-bg.jpg") center / cover no-repeat;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(20, 24, 35, 0.18);
}

.factory-showcase__inner {
  display: grid;
  gap: 22px;
}

.company-section,
.inquiry-section,
.resource-section,
.forum-section {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
}

.company-section {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
}

.company-section p {
  color: #4b5563;
}

.company-section dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.company-section dl > div {
  padding: 12px;
  border-radius: 8px;
  background: rgba(246, 247, 249, 0.90);
}

.company-intro-copy {
  display: grid;
  align-content: start;
}

.company-intro-copy p {
  font-size: 16px;
  line-height: 1.72;
}

.company-gallery,
.company-strengths {
  grid-column: 1 / -1;
}

.company-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 12px;
}

.company-gallery figure {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: #111827;
}

.company-gallery__main {
  grid-row: span 2;
  min-height: 432px;
}

.company-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.company-gallery figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  border-radius: 6px;
  background: rgba(17, 24, 39, 0.76);
  color: #fff;
  padding: 8px 10px;
  font-weight: 800;
}

.company-strengths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.company-strengths article {
  display: grid;
  gap: 7px;
  border: 1px solid #d9eee8;
  border-radius: 8px;
  background: #f2fbf8;
  padding: 16px;
}

.company-strengths strong {
  color: #155e4b;
  font-size: 18px;
}

.company-strengths span {
  color: #4b5563;
  line-height: 1.55;
}

.company-media-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
}

.company-media-heading {
  max-width: 920px;
}

.company-media-heading h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.company-media-heading p:last-child {
  margin-bottom: 0;
  color: #4b5563;
  font-size: 16px;
}

.company-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.company-media-grid figure {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 12px 28px rgba(20, 24, 35, 0.10);
}

.company-media-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.18s ease;
}

.company-media-grid figure:hover img {
  transform: scale(1.03);
}

.company-media-grid figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  background: rgba(17, 24, 39, 0.80);
  color: #fff;
  padding: 10px 12px;
}

.company-media-grid b {
  color: #fed7aa;
  font-size: 13px;
  text-transform: uppercase;
}

.company-media-grid span {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.32;
}

.resource-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  gap: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 243, 0.90));
}

.resource-copy p {
  color: #4b5563;
}

.forum-section {
  display: grid;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 243, 0.92));
}

.forum-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.forum-header h2 {
  margin-bottom: 8px;
}

.forum-header p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: #4b5563;
  font-size: 16px;
}

.forum-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.forum-stats strong {
  min-width: 112px;
  display: grid;
  gap: 3px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  padding: 12px;
}

.forum-stats span {
  color: var(--brand-dark);
  font-size: 22px;
}

.forum-stats small {
  color: #7c2d12;
}

.forum-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.forum-compose,
.forum-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.forum-compose {
  position: sticky;
  top: 150px;
}

.forum-compose h3 {
  margin: 0 0 12px;
}

.forum-compose form,
.forum-reply-form {
  display: grid;
  gap: 10px;
}

.forum-compose label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.forum-compose input,
.forum-compose select,
.forum-compose textarea,
.forum-reply-form input,
.forum-reply-form select,
.forum-reply-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  color: var(--ink);
}

.forum-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.forum-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.forum-tabs button {
  min-height: 34px;
  border: 1px solid #d9eee8;
  border-radius: 999px;
  background: #f2fbf8;
  color: var(--green);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 800;
}

.forum-tabs button.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.forum-posts {
  display: grid;
  gap: 14px;
}

.forum-post {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf3;
  padding: 16px;
}

.forum-post__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.forum-post h3 {
  margin: 7px 0 8px;
  font-size: 20px;
}

.forum-post p {
  color: #4b5563;
}

.forum-post time,
.forum-meta {
  color: var(--muted);
  font-size: 12px;
}

.forum-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: #fff1e8;
  color: var(--brand-dark);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}

.forum-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 12px;
  font-weight: 800;
}

.forum-replies {
  display: grid;
  gap: 8px;
}

.forum-reply {
  border-left: 4px solid #92d3c0;
  border-radius: 6px;
  background: #f2fbf8;
  padding: 10px 12px;
}

.forum-reply.is-admin {
  border-left-color: var(--brand);
  background: #fff7ed;
}

.forum-reply strong,
.forum-reply span {
  display: inline-flex;
  margin-right: 8px;
}

.forum-reply span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.forum-reply p {
  margin: 6px 0 0;
}

.forum-reply-form {
  grid-template-columns: 1fr 150px;
  margin-top: 12px;
}

.forum-reply-form textarea,
.forum-reply-form button {
  grid-column: 1 / -1;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.faq-list article {
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  background: #fff7ed;
  padding: 12px 14px;
}

.faq-list strong {
  color: #111827;
}

.faq-list span {
  color: #4b5563;
}

.question-form {
  display: grid;
  gap: 12px;
  align-content: start;
}

.question-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.download-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid #f8c7aa;
  border-radius: 8px;
  background: #fff7ed;
  padding: 18px;
}

.download-file-icon {
  width: 74px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #dc2626;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.20);
}

.download-file-copy {
  display: grid;
  gap: 5px;
}

.download-file-copy strong {
  color: #111827;
  font-size: 22px;
}

.download-file-copy span {
  color: var(--brand-dark);
  font-weight: 800;
}

.download-file-copy p {
  margin: 0;
  color: #4b5563;
}

.download-button {
  min-width: 190px;
}

.download-grid a {
  min-height: 122px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid #d9eee8;
  border-radius: 8px;
  background: #f2fbf8;
  padding: 18px;
}

.download-grid a:hover {
  border-color: #92d3c0;
  box-shadow: var(--shadow);
}

.download-grid strong {
  color: #155e4b;
  font-size: 18px;
}

.download-grid span {
  color: #4b5563;
}

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 3px 0 0;
  font-weight: 700;
}

.inquiry-section {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.88)),
    url("assets/factory/foam-factory-overhead-bg.jpg") center 64% / cover no-repeat;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-card h2 {
  margin-bottom: 4px;
}

.contact-card a {
  color: var(--brand-dark);
  font-weight: 800;
}

.contact-card span {
  color: var(--muted);
  font-weight: 800;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quote-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.quote-form label:nth-child(4),
.form-actions,
.form-message {
  grid-column: 1 / -1;
}

.quote-form input,
.quote-form select,
.quote-form textarea,
.question-form input,
.question-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  color: var(--ink);
}

.quote-form textarea {
  resize: vertical;
}

.form-message {
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

.form-message a {
  color: var(--brand-dark);
  text-decoration: underline;
}

.mobile-quote-bar {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #222;
  color: #fff;
}

.site-footer .page-shell {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 1240px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .store-hero__grid {
    grid-template-columns: 250px 1fr;
  }

  .supplier-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .shop-header__main {
    grid-template-columns: 1fr auto;
  }

  .header-search,
  .header-inquiry,
  .language-tools {
    grid-column: 1 / -1;
  }

  .language-tools {
    grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .shop-nav {
    display: none;
  }

  .shop-nav.is-open {
    display: block;
  }

  .shop-nav__inner {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-nav a {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .store-hero__grid,
  .factory-video-section,
  .catalog-layout,
  .company-section,
  .inquiry-section,
  .resource-section,
  .forum-header,
  .forum-layout {
    grid-template-columns: 1fr;
  }

  .catalog-panel {
    order: 1;
  }

  .catalog-sidebar {
    order: 2;
    position: static;
    max-height: 260px;
    overflow: auto;
  }

  .forum-compose {
    position: static;
  }

  .forum-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .trust-grid,
  .process-strip,
  .home-category-grid,
  .company-gallery,
  .company-strengths {
    grid-template-columns: 1fr;
  }

  .company-gallery__main {
    grid-row: auto;
    min-height: 260px;
  }

  .company-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 62px;
  }

  .page-shell {
    width: min(100% - 20px, 1440px);
  }

  .contact-bar__inner,
  .catalog-meta,
  .catalog-panel__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-search {
    grid-template-columns: 1fr 78px;
  }

  .language-tools {
    grid-template-columns: 1fr;
  }

  .store-hero__grid {
    gap: 12px;
    padding: 14px 0;
  }

  .hero-categories {
    display: none;
  }

  .hero-copy {
    padding: 10px 0;
  }

  h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  :lang(zh-CN) h1 {
    font-size: 30px;
    line-height: 1.16;
  }

  h2 {
    font-size: 21px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  :lang(zh-CN) .hero-copy p {
    font-size: 15px;
    line-height: 1.62;
  }

  .hero-proof {
    gap: 6px;
  }

  .hero-proof span {
    min-height: 30px;
    font-size: 12px;
  }

  .supplier-card {
    padding: 14px;
  }

  .trust-section {
    padding-top: 24px;
  }

  .factory-video-section {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 24px;
  }

  .factory-video-points {
    grid-template-columns: 1fr;
  }

  .factory-video-stats {
    grid-template-columns: 1fr;
  }

  .quote-checklist ul {
    columns: 1;
  }

  .factory-video-frame {
    justify-self: center;
    width: min(100%, 360px);
  }

  .factory-video-copy p:last-child {
    font-size: 15px;
  }

  .catalog-panel,
  .company-section,
  .inquiry-section,
  .resource-section,
  .forum-section,
  .home-category-showcase {
    padding: 12px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .product-body {
    padding: 8px;
  }

  .product-price {
    font-size: 14px;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }

  .forum-stats,
  .forum-reply-form {
    grid-template-columns: 1fr;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-feature {
    grid-template-columns: 1fr;
  }

  .download-button {
    width: 100%;
  }

  .company-media-grid {
    grid-template-columns: 1fr;
  }

  .mobile-quote-bar {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 36px rgba(20, 24, 35, 0.18);
  }

  .mobile-quote-bar a {
    min-height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
  }

  .mobile-quote-bar a:first-child {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
  }
}
