:root {
  --ink: #17212b;
  --muted: #5f6f79;
  --line: #dce4e7;
  --paper: #ffffff;
  --mist: #f4f7f7;
  --raw: #176b62;
  --raw-dark: #0d4742;
  --fabric: #9b3f46;
  --fabric-dark: #6d2931;
  --ochre: #b17a2d;
  --blue: #2e628d;
  --shadow: 0 18px 48px rgba(28, 41, 49, 0.12);
  --radius: 8px;
  --font: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font);
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

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

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

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

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 14px;
}

.topbar nav a {
  text-decoration: none;
}

.topbar nav a:hover {
  color: var(--raw);
}

.fabric-topbar nav a:hover {
  color: var(--fabric);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.language-switch a {
  display: inline-flex;
  min-width: 38px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.language-switch a.active,
.language-switch a:hover {
  background: var(--fabric);
  color: #fff;
}

.hub-hero,
.site-hero,
.section {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
}

.hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: 44px 0;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--ochre);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.16;
}

h3 {
  font-size: 20px;
}

.hero-copy > p:last-child {
  max-width: 680px;
  margin-top: 18px;
  font-size: 17px;
}

.domain-grid {
  display: grid;
  gap: 18px;
}

.domain-card {
  min-height: 310px;
  display: grid;
  align-content: end;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius);
  text-decoration: none;
  color: #fff;
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}

.domain-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 25, 31, 0.82), rgba(11, 25, 31, 0.24));
}

.domain-card > * {
  position: relative;
}

.domain-card p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.86);
}

.domain-card span,
.domain-card strong {
  font-size: 14px;
  font-weight: 900;
}

.material-card {
  background-image: url("https://images.pexels.com/photos/5698851/pexels-photo-5698851.jpeg?auto=compress&cs=tinysrgb&w=1400");
}

.fabric-card {
  background-image: url("https://images.pexels.com/photos/6069552/pexels-photo-6069552.jpeg?auto=compress&cs=tinysrgb&w=1400");
}

.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 30px;
  align-items: center;
  min-height: 620px;
  padding: 54px 0 42px;
}

.raw-hero,
.fabric-hero {
  position: relative;
}

.raw-hero::before,
.fabric-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: -1;
  width: 50vw;
  background: #e8eeee;
}

.fabric-hero::before {
  background: #f1e9e7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-link,
.secondary-link,
.inquiry-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
}

.primary-link,
.inquiry-form button {
  border: 0;
  background: var(--raw);
  color: #fff;
}

.fabric-hero .primary-link,
.fabric-band button {
  background: var(--fabric);
}

.secondary-link {
  border: 1px solid var(--line);
  background: var(--paper);
}

.market-board,
.fabric-showcase,
.category-grid article,
.fabric-grid article,
.lead-grid article,
.product-row article,
.quote-table,
.stock-table,
.inquiry-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.market-board {
  padding: 22px;
}

.market-board > div {
  display: grid;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.market-board span,
.fabric-showcase span,
.category-grid span,
.fabric-grid span,
.product-row span {
  color: var(--ochre);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-board strong {
  font-size: 26px;
  line-height: 1.2;
}

.market-board ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.market-board li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius);
  background: #f6f8f8;
}

.market-board li span {
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.fabric-showcase {
  overflow: hidden;
}

.fabric-showcase img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.fabric-showcase div {
  padding: 18px;
}

.fabric-showcase strong {
  display: block;
  margin: 8px 0;
  font-size: 26px;
}

.section {
  padding: 42px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 18px;
}

.section-head p:last-child {
  margin-top: 10px;
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  gap: 6px;
  width: min(320px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.floating-contact strong {
  font-size: 15px;
}

.floating-contact a {
  color: var(--fabric);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

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

.category-grid,
.fabric-grid,
.lead-grid,
.product-row {
  display: grid;
  gap: 16px;
}

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

.category-grid article {
  overflow: hidden;
}

.category-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.category-grid article h3,
.category-grid article p,
.category-grid article span {
  margin-left: 16px;
  margin-right: 16px;
}

.category-grid article span {
  display: block;
  margin-top: 16px;
  margin-bottom: 7px;
}

.category-grid article p {
  margin-top: 8px;
  margin-bottom: 18px;
  font-size: 14px;
}

.split-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-table,
.stock-table {
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 1fr 1fr;
  gap: 14px;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  align-items: center;
}

.stock-table .table-row {
  grid-template-columns: 1fr 1.4fr 1fr 0.8fr 0.8fr;
}

.table-row:first-child {
  border-top: 0;
}

.table-row.head {
  background: #f8fafb;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

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

.lead-grid article {
  padding: 20px;
}

.lead-grid p {
  margin-top: 8px;
}

.inquiry-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  margin-bottom: 42px;
}

.inquiry-form {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 130px;
  gap: 10px;
}

.inquiry-form input,
.inquiry-form select,
.register-form input,
.register-form select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.register-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: 28px;
  align-items: start;
  padding-top: 54px;
}

.register-copy,
.register-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.register-copy {
  padding: 30px;
}

.register-copy p {
  margin-top: 16px;
}

.register-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.register-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.phone-row,
.code-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px;
}

.code-row {
  grid-template-columns: minmax(0, 1fr) 136px;
  align-items: end;
}

.code-row button {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

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

.fabric-grid article {
  min-height: 190px;
  padding: 18px;
  border-top: 5px solid var(--fabric);
}

.fabric-grid h3,
.fabric-grid p {
  margin-top: 9px;
}

.feature-products {
  border-top: 1px solid var(--line);
}

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

.product-row article {
  overflow: hidden;
}

.product-row img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-row div {
  padding: 18px;
}

.product-row h3,
.product-row p {
  margin-top: 9px;
}

.stock-section {
  border-top: 1px solid var(--line);
}

@media (max-width: 1180px) {
  .hub-hero,
  .site-hero,
  .register-layout,
  .inquiry-band {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr;
    padding: 14px 18px;
  }

  .topbar nav {
    justify-content: flex-start;
  }

  .language-switch {
    width: max-content;
  }

  .hub-hero,
  .site-hero,
  .section {
    width: min(100% - 24px, 1360px);
  }

  .category-grid,
  .fabric-grid,
  .lead-grid,
  .product-row {
    grid-template-columns: 1fr;
  }

  .table-row,
  .stock-table .table-row,
  .inquiry-form,
  .phone-row,
  .code-row {
    grid-template-columns: 1fr;
  }

  .market-board li {
    display: grid;
  }
}
