:root {
  color-scheme: light;
  --ink: #182024;
  --muted: #64706f;
  --paper: #fbfaf4;
  --surface: #ffffff;
  --line: #dedbd1;
  --green: #1e6f63;
  --green-deep: #17483f;
  --coral: #d94f3d;
  --amber: #f3b44d;
  --teal: #1f8291;
  --blue: #2e5c88;
  --shadow: 0 18px 48px rgba(24, 32, 36, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(251, 250, 244, 0.92);
  border-bottom: 1px solid rgba(222, 219, 209, 0.85);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: #fff;
  object-fit: contain;
  box-shadow: 0 8px 18px rgba(14, 49, 71, 0.12);
}

.nav-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  color: #293433;
  padding: 0 12px;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(30, 111, 99, 0.1);
  outline: none;
}

.language-switch {
  position: relative;
  min-width: 116px;
}

.language-switch > button {
  display: none;
}

.language-dropdown {
  position: relative;
}

.language-dropdown-toggle,
.language-dropdown-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 0;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
}

.language-dropdown-toggle {
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.language-dropdown-toggle:hover,
.language-dropdown-toggle:focus-visible,
.language-dropdown.is-open .language-dropdown-toggle {
  border-color: var(--teal);
  outline: none;
}

.language-flag {
  display: block;
  width: 24px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid rgba(13, 24, 28, 0.12);
  border-radius: 2px;
  object-fit: cover;
}

.language-current-label {
  flex: 1;
  text-align: left;
  white-space: nowrap;
}

.language-dropdown-arrow {
  width: 11px;
  height: 8px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 160ms ease;
}

.language-dropdown.is-open .language-dropdown-arrow {
  transform: rotate(180deg);
}

.language-dropdown-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: 0;
  width: 156px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 32px rgba(13, 24, 28, 0.16);
}

.language-dropdown-menu[hidden] {
  display: none;
}

.language-dropdown-option {
  padding: 9px 10px;
  border-radius: 8px;
}

.language-dropdown-option:hover,
.language-dropdown-option:focus-visible {
  background: rgba(30, 111, 99, 0.1);
  outline: none;
}

.language-dropdown-option.is-active {
  background: var(--ink);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  isolation: isolate;
  background-image: url("assets/youyi-sourcing-hero.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 24, 28, 0.64), rgba(13, 24, 28, 0.36) 42%, rgba(13, 24, 28, 0.9)),
    linear-gradient(0deg, rgba(13, 24, 28, 0.28), rgba(13, 24, 28, 0.05));
}

.hero-content {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(560px, 1.15fr) minmax(420px, 0.85fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(46px, 6vw, 70px) 0 clamp(34px, 4vw, 54px);
}

.hero-gallery {
  min-width: 0;
  width: calc(100% + ((100vw - min(calc(100vw - 32px), var(--max))) / 2));
  margin-left: calc((100vw - min(calc(100vw - 32px), var(--max))) / -2);
  height: 500px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(13, 24, 28, 0.3);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
}

.hero-gallery-track,
.hero-gallery-group {
  height: 100%;
  display: flex;
}

.hero-gallery-track {
  width: max-content;
  animation: hero-gallery-scroll 30s linear infinite;
}

.hero-gallery-group {
  gap: 14px;
  padding-right: 14px;
}

.hero-gallery img {
  width: 360px;
  height: 100%;
  flex: 0 0 360px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-text {
  max-width: 560px;
  margin-left: auto;
}

.hero-text h1 {
  max-width: 560px;
  font-size: 3.2rem;
}

@keyframes hero-gallery-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-gallery-track {
    animation: none;
  }
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero .eyebrow {
  color: #ffe9a8;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 940px;
  font-size: clamp(2.2rem, 4.8vw, 4.25rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
  font-size: 1.15rem;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: normal;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 12px 24px rgba(24, 32, 36, 0.16);
}

.button-primary {
  background: var(--amber);
  border-color: var(--amber);
}

.button-light {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  backdrop-filter: blur(8px);
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  max-width: 720px;
  margin-top: 36px;
}

.hero-metrics div {
  border-left: 3px solid var(--amber);
  padding: 4px 0 4px 14px;
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: 1.3rem;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.intro-band {
  background: var(--green-deep);
  color: #fff;
}

.section-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.intro-grid {
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.intro-grid p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.text-link {
  color: #ffe9a8;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  white-space: nowrap;
}

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

section[id] {
  scroll-margin-top: 96px;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(31, 130, 145, 0.08), rgba(243, 180, 77, 0.08)),
    #f5f2e8;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.about-layout p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

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

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.categories-page-main {
  min-height: 70vh;
}

.categories-page-main .section-heading {
  margin-bottom: 34px;
}

.card {
  min-height: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 6px 24px rgba(24, 32, 36, 0.06);
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}

.product-search {
  display: grid;
  gap: 14px;
  margin: 0;
}

.product-search-form {
  display: grid;
  gap: 10px;
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 8px 26px rgba(24, 32, 36, 0.07);
}

.nav-product-search {
  position: relative;
  flex: 1 1 280px;
  max-width: 340px;
  min-width: 210px;
  gap: 0;
}

.nav-product-search .product-search-form {
  max-width: none;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.nav-product-search .product-search-row {
  position: relative;
  display: block;
}

.nav-product-search input {
  min-height: 38px;
  padding: 8px 44px 8px 10px;
  font-size: 0.9rem;
}

.nav-product-search .product-search-button {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 30px;
  height: 30px;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: var(--amber);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transform: translateY(-50%);
}

.nav-product-search .product-search-button:hover,
.nav-product-search .product-search-button:focus-visible {
  outline: 3px solid rgba(30, 111, 99, 0.16);
}

.nav-product-search .product-search-button span {
  font-size: 0.95rem;
}

.nav-product-search .product-search-status,
.nav-product-search .product-search-results {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 60;
  background: #fff;
}

.nav-product-search .product-search-status {
  top: calc(100% + 8px);
  display: none;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px;
  box-shadow: 0 14px 34px rgba(24, 32, 36, 0.14);
  font-size: 0.84rem;
}

.nav-product-search.has-query .product-search-status,
.nav-product-search:focus-within .product-search-status {
  display: block;
}

.nav-product-search .product-search-results {
  top: calc(100% + 48px);
  max-height: min(70vh, 520px);
  grid-template-columns: 1fr;
  gap: 8px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: 0 18px 42px rgba(24, 32, 36, 0.16);
}

.nav-product-search:not(.has-query) .product-search-results,
.nav-product-search .product-search-results:empty {
  display: none;
}

.nav-product-search .product-result-card {
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto;
}

.nav-product-search .product-result-media {
  width: 64px;
}

.nav-product-search .product-result-body {
  min-height: 0;
  gap: 4px;
  padding: 9px 10px;
}

.nav-product-search .product-result-title {
  font-size: 0.92rem;
}

.nav-product-search .product-result-meta,
.nav-product-search .product-result-description {
  font-size: 0.78rem;
}

.nav-product-search .product-result-link {
  display: none;
}

.product-search-label {
  font-size: 1rem;
}

.product-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.product-search-button {
  min-width: 118px;
}

.product-search-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.product-search-status.is-error {
  color: var(--coral);
}

.product-search-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-result-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(24, 32, 36, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-result-card:hover,
.product-result-card:focus-visible {
  transform: translateY(-3px);
  outline: none;
  box-shadow: 0 14px 34px rgba(24, 32, 36, 0.16);
}

.product-result-media {
  display: block;
  aspect-ratio: 1 / 1;
  background: #ece8db;
  color: inherit;
  overflow: hidden;
  text-decoration: none;
}

.product-result-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-result-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--green-deep);
  font-size: 2rem;
  font-weight: 900;
}

.product-result-body {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 156px;
  padding: 14px;
}

.product-result-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.product-result-title-link {
  color: inherit;
  text-decoration: none;
}

.product-result-title-link:hover,
.product-result-title-link:focus-visible {
  color: var(--green-deep);
  outline: none;
  text-decoration: underline;
}

.product-result-meta,
.product-result-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-result-price {
  color: var(--teal);
  font-weight: 900;
}

.product-result-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  color: var(--green-deep);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.product-result-link:hover,
.product-result-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.product-result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.search-highlight {
  border-radius: 3px;
  background: rgba(243, 180, 77, 0.42);
  color: inherit;
  padding: 0 2px;
}

.cart-card-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--green-deep);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  padding: 0 10px;
  text-align: center;
}

.cart-card-control {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
}

.cart-card-stepper {
  min-height: 34px;
  display: inline-grid;
  grid-template-columns: 28px 38px 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.cart-card-stepper:focus-within {
  border-color: var(--green);
  outline: 3px solid rgba(30, 111, 99, 0.16);
}

.cart-card-button:hover,
.cart-card-button:focus-visible,
.cart-card-stepper-button:hover,
.cart-card-stepper-button:focus-visible,
.cart-card-remove:hover,
.cart-card-remove:focus-visible {
  border-color: var(--green);
  background: rgba(30, 111, 99, 0.1);
  outline: none;
}

.cart-card-stepper-button,
.cart-card-remove {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--green-deep);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
}

.cart-card-stepper-button {
  width: 28px;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.cart-card-stepper-button:first-child {
  border-right: 1px solid var(--line);
}

.cart-card-stepper-button:last-child {
  border-left: 1px solid var(--line);
}

.cart-card-quantity-input {
  width: 38px;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  padding: 4px 2px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 900;
}

.cart-card-quantity-input:focus {
  border-color: transparent;
  outline: none;
}

.cart-card-quantity-input::-webkit-outer-spin-button,
.cart-card-quantity-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.cart-card-quantity-input {
  appearance: textfield;
}

.cart-card-remove {
  width: 34px;
  padding: 0;
}

.cart-trash-button {
  display: inline-grid;
  place-items: center;
  color: var(--coral);
}

.cart-trash-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.cart-card-remove.cart-trash-button,
.cart-item-remove.cart-trash-button {
  border-color: rgba(217, 79, 61, 0.36);
}

.cart-card-remove.cart-trash-button:hover,
.cart-card-remove.cart-trash-button:focus-visible,
.cart-item-remove.cart-trash-button:hover,
.cart-item-remove.cart-trash-button:focus-visible {
  border-color: var(--coral);
  background: rgba(217, 79, 61, 0.1);
  color: var(--coral);
}

.cat-product-card {
  display: grid;
  gap: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding-bottom: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cat-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(24, 32, 36, 0.12);
}

.cat-product-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cat-product-body {
  display: grid;
  gap: 3px;
  padding: 10px 12px 0;
}

.cat-product-title {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
}

.cat-product-price {
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 900;
}

.cat-product-card .cart-card-control {
  justify-self: start;
  margin: 0 10px;
}

.product-cart-control {
  align-self: stretch;
}

.product-cart-control .cart-card-button {
  min-height: 48px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.product-cart-control .cart-card-stepper {
  min-height: 48px;
  grid-template-columns: 38px 54px 38px;
}

.product-cart-control .cart-card-stepper-button,
.product-cart-control .cart-card-quantity-input,
.product-cart-control .cart-card-remove {
  min-height: 48px;
  font-size: 0.95rem;
}

.product-cart-control .cart-card-stepper-button {
  width: 38px;
}

.product-cart-control .cart-card-quantity-input {
  width: 54px;
}

.product-cart-control .cart-card-remove {
  width: 48px;
}

.search-page {
  background: var(--paper);
}

.search-page-hero {
  padding: 74px 0 86px;
}

.search-page-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.search-page-copy {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 14px;
}

.search-page-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.search-page-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.search-page-back {
  justify-self: start;
  margin-top: 8px;
}

.search-page-search .product-search-form {
  max-width: none;
}

.search-page-search .product-search-row {
  position: relative;
  display: block;
}

.search-page-search input {
  min-height: 52px;
  padding: 12px 58px 12px 14px;
}

.search-page-search .product-search-button {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 38px;
  height: 38px;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: var(--amber);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transform: translateY(-50%);
}

.search-page-search .product-search-button:hover,
.search-page-search .product-search-button:focus-visible {
  outline: 3px solid rgba(30, 111, 99, 0.16);
}

.search-page-search .product-search-button span {
  font-size: 1.06rem;
}

.category-card {
  position: relative;
  min-height: 188px;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--green), var(--amber), var(--coral));
}

.category-card-image {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  padding: 0;
  background-color: var(--muted);
  border: none;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(24,32,36,0.18);
}

.category-card-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(24,32,36,0.7) 100%);
  z-index: 1;
}

.category-card-overlay {
  position: relative;
  z-index: 2;
  padding: 18px 18px 14px;
  color: #fff;
}

.category-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.category-card-desc {
  font-size: 0.82rem;
  margin: 6px 0 0;
  opacity: 0.9;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.category-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-card-link:hover .card {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(24,32,36,0.18);
}

.process-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 6vw, 72px);
}

.sticky-heading {
  position: sticky;
  top: 104px;
  align-self: start;
  margin-bottom: 0;
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-step {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.step-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.process-step p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-dark {
  background: var(--ink);
  color: #fff;
}

.section-dark .eyebrow {
  color: #ffe9a8;
}

.quality-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 36px;
  align-items: center;
}

.quality-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  padding: 24px;
}

.quality-panel ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quality-panel li {
  position: relative;
  padding-left: 26px;
  color: rgba(255, 255, 255, 0.86);
}

.quality-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
}

.about-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(26px, 6vw, 76px);
  align-items: center;
}

.about-mark {
  min-height: 300px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(30, 111, 99, 0.92), rgba(46, 92, 136, 0.88)),
    linear-gradient(90deg, var(--green), var(--blue));
  color: #fff;
  font-size: clamp(2.3rem, 7vw, 5rem);
  font-weight: 900;
  box-shadow: var(--shadow);
}

.contact-section {
  background: #f2eadf;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

html[lang="zh-CN"] .contact-copy h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  white-space: nowrap;
}

.contact-portrait {
  width: min(100%, 280px);
  margin: 18px 0 0;
}

.contact-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 1702 / 1848;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow);
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row.full,
.form-submit,
.form-status {
  grid-column: 1 / -1;
}

label {
  color: #293433;
  font-weight: 800;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfcabf;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

textarea {
  min-height: 132px;
  resize: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(30, 111, 99, 0.16);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.form-status.is-error {
  color: var(--coral);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cart-widget {
  --keyboard-lock-translate-y: 0px;
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 31;
  display: grid;
  justify-items: start;
  transform: translateY(var(--keyboard-lock-translate-y));
}

.cart-guide,
.cart-added-feedback {
  width: min(360px, calc(100vw - 32px));
  position: absolute;
  left: 0;
  bottom: 66px;
  border: 1px solid rgba(30, 111, 99, 0.2);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  padding: 15px 42px 15px 16px;
}

.cart-guide::after,
.cart-added-feedback::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(30, 111, 99, 0.2);
  border-bottom: 1px solid rgba(30, 111, 99, 0.2);
  background: inherit;
  transform: rotate(45deg);
}

.cart-guide p,
.cart-added-feedback {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.5;
}

.cart-guide-close {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
}

.cart-guide-close:hover,
.cart-guide-close:focus-visible {
  background: #f5f2e8;
  color: var(--green-deep);
  outline: none;
}

.cart-added-feedback {
  border-color: rgba(30, 111, 99, 0.32);
  background: #edf8f3;
  color: var(--green-deep);
  padding-right: 16px;
}

.cart-guide[hidden],
.cart-added-feedback[hidden] {
  display: none;
}

.cart-panel {
  width: 380px;
  min-width: 320px;
  max-width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 156px);
  position: absolute;
  left: 0;
  bottom: 62px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(222, 219, 209, 0.95);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transform-origin: left bottom;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.cart-widget.is-open .cart-panel {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.cart-panel-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 16px;
  background: var(--green-deep);
  color: #fff;
}

.cart-kicker {
  margin: 0 0 5px;
  color: #ffe9a8;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-panel h2 {
  font-size: 1.25rem;
}

.cart-panel-actions {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.cart-clear {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0 10px;
  white-space: nowrap;
}

.cart-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
}

.cart-close:hover,
.cart-close:focus-visible,
.cart-clear:hover,
.cart-clear:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.cart-panel-body {
  display: grid;
  gap: 14px;
  overflow: auto;
  padding: 16px 18px 18px;
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-empty {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #f5f2e8;
  color: var(--muted);
  padding: 16px;
  text-align: left;
  font-weight: 700;
}

.cart-empty > p:first-child {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

.cart-empty-intro {
  margin: 14px 0 8px;
  color: var(--green-deep);
  font-size: 0.88rem;
  font-weight: 900;
}

.cart-empty-steps {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 22px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.cart-empty-steps li::marker {
  color: var(--green);
  font-weight: 900;
}

.cart-empty[hidden],
.cart-form[hidden],
.cart-clear[hidden],
.cart-count[hidden] {
  display: none;
}

.cart-item {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}

.cart-item-media {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f5f2e8;
  color: var(--green-deep);
  font-weight: 900;
  text-decoration: none;
}

.cart-item-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}

.cart-item-body {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.cart-item-title {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
}

.cart-item-title:hover,
.cart-item-title:focus-visible {
  color: var(--green-deep);
  outline: none;
  text-decoration: underline;
}

.cart-item-price {
  margin: 0;
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 900;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.cart-quantity-button,
.cart-item-remove {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--green-deep);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.cart-quantity-button {
  width: 32px;
  padding: 0;
}

.cart-quantity-input {
  width: 58px;
  min-height: 32px;
  padding: 4px 6px;
  text-align: center;
}

.cart-item-remove {
  padding: 0 10px;
}

.cart-item-remove.cart-trash-button {
  width: 32px;
  padding: 0;
}

.cart-quantity-button:hover,
.cart-quantity-button:focus-visible,
.cart-item-remove:hover,
.cart-item-remove:focus-visible {
  border-color: var(--green);
  outline: none;
}

.cart-form {
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.cart-form textarea {
  min-height: 86px;
}

.cart-submit {
  width: 100%;
}

.cart-status {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
}

.cart-status.is-error {
  color: var(--coral);
}

.cart-launcher {
  min-width: 118px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  box-shadow: 0 14px 30px rgba(30, 111, 99, 0.28);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.cart-launcher svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.cart-launcher:hover,
.cart-launcher:focus-visible {
  background: var(--green-deep);
  outline: none;
}

.cart-count {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 6px;
}

.chat-widget {
  --keyboard-lock-translate-y: 0px;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  justify-items: end;
  transform: translateY(var(--keyboard-lock-translate-y));
}

.chat-widget.is-open {
  z-index: 1000;
}

  .top-button {
    left: 12px;
    bottom: 76px;
    width: 44px;
    height: 44px;
  }

.chat-panel {
  width: 360px;
  min-width: 320px;
  max-width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - 118px);
  position: absolute;
  right: 0;
  bottom: 66px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(222, 219, 209, 0.95);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transform-origin: right bottom;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.chat-widget.is-open .chat-panel {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-panel-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 16px;
  background: var(--green-deep);
  color: #fff;
}

.chat-kicker {
  margin: 0 0 5px;
  color: #ffe9a8;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.panel-resize-handle {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  cursor: nw-resize;
  z-index: 20;
  background: linear-gradient(135deg, transparent 40%, rgba(0,0,0,0.08) 40%, rgba(0,0,0,0.08) 55%, transparent 55%);
  border-radius: 0 0 5px 0;
  user-select: none;
  touch-action: none;
}

.textarea-resize-wrap {
  position: relative;
  display: block;
  grid-column: 1 / -1;
}

.textarea-resize-handle {
  position: absolute;
  top: 0;
  right: 10px;
  left: 10px;
  height: 10px;
  cursor: ns-resize;
  z-index: 2;
  border-radius: 999px;
  touch-action: none;
}

.textarea-resize-handle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(30, 111, 99, 0.22);
  transform: translateX(-50%);
}

.chat-panel h2 {
  font-size: 1.25rem;
}

.chat-panel-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.chat-panel-actions .chat-status {
  max-width: 160px;
  min-height: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  line-height: 1.25;
  text-align: right;
}

.chat-panel-actions .chat-status:empty {
  display: none;
}

.chat-panel-actions .chat-status.is-error {
  color: #ffe9a8;
}

.chat-header-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
}

.chat-header-button:hover,
.chat-header-button:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.chat-header-button:disabled {
  cursor: default;
  opacity: 0.5;
}

.chat-message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 16px 18px 0;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #f5f2e8;
  border: 2px solid rgba(255, 184, 76, 0.45);
}

.chat-message p {
  margin: 0;
  border-radius: var(--radius);
  background: #f5f2e8;
  color: #293433;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.chat-panel-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.chat-thread {
  display: none;
  flex: 1 1 auto;
  max-height: 218px;
  position: relative;
  min-height: 120px;
  overflow: auto;
  gap: 8px;
  padding: 14px 18px 0;
}

.chat-panel.is-resized .chat-thread {
  max-height: none;
}

.chat-widget.has-conversation .chat-message {
  display: none;
}

.chat-widget.has-conversation .chat-thread {
  display: grid;
  align-content: start;
  grid-auto-rows: min-content;
}

.chat-bubble {
  max-width: 86%;
  width: fit-content;
  display: grid;
  align-self: start;
  justify-self: start;
  gap: 4px;
}

.chat-bubble span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.chat-bubble p {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  border-radius: var(--radius);
  padding: 9px 11px;
  min-height: 38px;
  height: auto;
  overflow-wrap: anywhere;
  font-size: 0.93rem;
}

.chat-bubble.is-visitor {
  justify-self: end;
}

.chat-bubble.is-visitor p {
  background: var(--green);
  color: #fff;
  justify-self: end;
}

.chat-bubble.is-sales {
  max-width: 92%;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
}

.chat-bubble-avatar {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #f5f2e8;
  border: 2px solid rgba(255, 184, 76, 0.45);
}

.chat-bubble-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-deep);
  font-size: 0.9rem;
  font-weight: 900;
}

.chat-bubble-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.chat-bubble.is-sales p {
  background: #f5f2e8;
  color: #293433;
}

.chat-bubble.is-system {
  max-width: 100%;
  justify-self: center;
}

.chat-bubble.is-system p {
  background: transparent;
  color: var(--muted);
  padding: 2px 0;
  text-align: center;
  font-size: 0.82rem;
}

.message-attachment {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.message-attachment img {
  max-height: 150px;
  border: 1px solid rgba(222, 219, 209, 0.9);
  border-radius: var(--radius);
  object-fit: contain;
  background: #fff;
  cursor: zoom-in;
}

.message-attachment img:focus-visible {
  outline: 3px solid rgba(30, 111, 99, 0.22);
}

.image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 16, 18, 0.82);
}

.image-preview-modal img {
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 80px);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  object-fit: contain;
  transform: translate3d(
    var(--image-preview-offset-x, 0),
    var(--image-preview-offset-y, 0),
    0
  ) scale(var(--image-preview-scale, 1));
  transition: transform 160ms ease;
}

.image-preview-modal img.is-zoomed {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.image-preview-modal img.is-dragging {
  cursor: grabbing;
  transition: none;
}

.image-preview-close,
.image-preview-zoom {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
}

.image-preview-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1;
}

.image-preview-controls {
  position: fixed;
  bottom: 18px;
  left: 50%;
  z-index: 1;
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(8, 16, 18, 0.64);
  transform: translateX(-50%);
}

.image-preview-zoom:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.attachment-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--green-deep);
  padding: 0 10px;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.chat-form {
  display: grid;
  gap: 10px;
  padding: 14px 18px 12px;
}

.chat-composer {
  position: relative;
  border: 1px solid #cfcabf;
  border-radius: var(--radius);
  background: #fff;
  padding: 7px;
}

.chat-composer:focus-within {
  border-color: var(--green);
  outline: 3px solid rgba(30, 111, 99, 0.16);
}

.chat-composer .textarea-resize-wrap {
  width: 100%;
  min-width: 0;
}

.chat-composer textarea {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 8px 4px 52px;
}

.chat-composer textarea:focus {
  border-color: transparent;
  outline: 0;
}

.chat-widget.has-conversation #chatName,
.chat-widget.has-conversation #chatContact,
.chat-widget.has-conversation #chatEmail {
  display: none;
}

.chat-tools,
.reply-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-composer .chat-tools {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 2;
}

.emoji-bar {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.emoji-trigger,
.emoji-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font: inherit;
}

.emoji-button {
  width: 32px;
  height: 32px;
  font-size: 1rem;
}

.emoji-trigger {
  min-width: 42px;
  min-height: 34px;
  color: var(--ink);
  font-size: 1.05rem;
}

.emoji-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 40;
  width: min(248px, calc(100vw - 40px));
  max-height: 184px;
  display: none;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 8px;
  box-shadow: var(--shadow);
}

.emoji-bar.is-open .emoji-panel {
  display: grid;
}

.file-tool {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--green-deep);
  padding: 0;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
}

.file-tool svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.emoji-trigger:hover,
.emoji-trigger:focus-visible,
.emoji-button:hover,
.emoji-button:focus-visible,
.file-tool:hover,
.file-tool:focus-within {
  border-color: var(--green);
  outline: none;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.selected-file {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f5f2e8;
  color: #293433;
  padding: 8px 10px;
  font-size: 0.88rem;
}

.selected-file span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.selected-file-preview {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  object-fit: cover;
}

.selected-file[hidden] {
  display: none;
}

.selected-file button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  color: var(--coral);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.chat-form textarea {
  min-height: 96px;
}

.chat-submit {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--ink);
  cursor: pointer;
}

.chat-submit:hover,
.chat-submit:focus-visible {
  background: #e8a636;
  outline: 3px solid rgba(243, 180, 77, 0.25);
}

.chat-submit:disabled {
  cursor: default;
  opacity: 0.5;
}

.chat-submit svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.chat-status {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
}

.chat-status.is-error {
  color: var(--coral);
}

.chat-direct-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding: 0 18px 18px;
}

.chat-widget.has-conversation .chat-direct-actions {
  display: none;
}

.chat-direct-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--green-deep);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.chat-direct-link:hover,
.chat-direct-link:focus-visible {
  border-color: var(--green);
  outline: none;
}

.chat-launcher {
  min-width: 132px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: var(--radius);
  background: var(--coral);
  color: #fff;
  box-shadow: 0 14px 30px rgba(217, 79, 61, 0.3);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.chat-launcher svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.chat-launcher:hover,
.chat-launcher:focus-visible {
  background: #bf3f30;
  outline: none;
}

.chat-page {
  min-height: 100dvh;
  overflow: hidden;
  background: #f5f2e8;
  padding-bottom: 0;
}

.chat-page-header {
  position: fixed;
  inset: 0 0 auto;
}

.chat-page-nav {
  gap: 10px;
  justify-content: flex-start;
  min-height: 72px;
}

.chat-page-nav .brand {
  min-width: 0;
  flex: 1 1 auto;
}

.chat-page-nav .brand span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-page-nav .language-switch {
  flex: 0 0 132px;
}

.chat-page-back {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--green-deep);
  text-decoration: none;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.chat-page-back:hover,
.chat-page-back:focus-visible {
  border-color: var(--teal);
  outline: none;
}

.standalone-chat-shell {
  min-height: 100dvh;
}

.chat-page .cart-widget,
.chat-page .top-button,
.chat-page .chat-launcher,
.chat-page #chatMinimize,
.chat-page .panel-resize-handle {
  display: none;
}

.chat-page .chat-widget {
  position: fixed;
  inset: 72px 0 0;
  z-index: 30;
  display: block;
  transform: none;
}

.chat-page .chat-panel {
  position: static;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 100%;
  min-height: 0;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: none;
}

.chat-page .chat-panel-header {
  padding-top: 14px;
  padding-bottom: 14px;
}

.chat-page .chat-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-page .chat-thread {
  max-height: none;
  min-height: 0;
}

.chat-page .chat-widget.has-conversation .chat-thread {
  flex: 1 1 auto;
}

.chat-page .chat-form {
  flex: 0 0 auto;
}

 
.top-button {
  --keyboard-lock-translate-y: 0px;
  position: fixed;
  left: 22px;
  bottom: 88px;
  z-index: 35;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 10px 32px rgba(243, 180, 77, 0.35);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(12px + var(--keyboard-lock-translate-y))) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, visibility 0.25s ease;
  visibility: hidden;
}

.top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(var(--keyboard-lock-translate-y)) scale(1);
  visibility: visible;
}

.top-button:hover,
.top-button:focus-visible {
  background: #e8a636;
  outline: none;
  box-shadow: 0 14px 36px rgba(243, 180, 77, 0.5);
  transform: translateY(calc(var(--keyboard-lock-translate-y) - 2px)) scale(1.05);
}

.top-button:active {
  transform: translateY(var(--keyboard-lock-translate-y)) scale(0.95);
}

.top-button svg {
  width: 24px;
  height: 24px;
}

.site-footer {
   background: #101819;
   color: #fff;
   padding: 48px 0 0;
 }
 
 .footer-grid {
   display: grid;
   grid-template-columns: 1.25fr 1fr 1fr;
   gap: 40px;
 }
 
 .footer-brand {
   color: #fff;
 }
 
 .footer-tagline {
   max-width: 360px;
   margin: 12px 0 0;
   color: rgba(255, 255, 255, 0.7);
   font-size: 0.92rem;
 }
 
 .footer-heading {
   margin: 0 0 14px;
   color: #fff;
   font-size: 0.85rem;
   font-weight: 800;
   text-transform: uppercase;
   letter-spacing: 0.08em;
 }
 
 .footer-list,
 .footer-social {
   display: grid;
   gap: 10px;
   margin: 0;
   padding: 0;
   list-style: none;
 }
 
 .footer-list li {
   display: flex;
   align-items: center;
   gap: 10px;
   color: rgba(255, 255, 255, 0.72);
   font-size: 0.92rem;
 }

 .footer-list .footer-address-item {
   align-items: flex-start;
 }

 .footer-address-item .footer-icon {
   margin-top: 2px;
 }

 .footer-addresses {
   display: grid;
   gap: 4px;
   line-height: 1.45;
 }
 
 .footer-list a {
   color: #ffe9a8;
   font-weight: 800;
   text-decoration: none;
 }
 
 .footer-list a:hover {
   text-decoration: underline;
 }
 
 .footer-social a {
   display: inline-flex;
   align-items: center;
   gap: 10px;
   color: rgba(255, 255, 255, 0.72);
   font-size: 0.92rem;
   font-weight: 800;
   text-decoration: none;
 }
 
 .footer-social a:hover {
   color: #fff;
 }
 
 .footer-icon {
   width: 20px;
   height: 20px;
   flex-shrink: 0;
   opacity: 0.5;
 }
 
 .footer-social a:hover .footer-icon {
   opacity: 1;
 }
 
 .footer-divider {
   height: 1px;
   background: rgba(255, 255, 255, 0.1);
   margin: 32px 0 0;
 }
 
.footer-bottom {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 16px;
   flex-wrap: wrap;
   padding: 18px 0;
 }
 
 .footer-bottom p {
   margin: 0;
   color: rgba(255, 255, 255, 0.4);
   font-size: 0.84rem;
 }

.cookie-settings {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-settings:hover,
.cookie-settings:focus-visible {
  color: #fff;
}

.analytics-consent {
  position: fixed;
  z-index: 120;
  right: 16px;
  bottom: 84px;
  left: 16px;
  width: min(760px, calc(100vw - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent h2,
.analytics-consent p {
  margin: 0;
}

.analytics-consent h2 {
  font-size: 1rem;
}

.analytics-consent p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.analytics-consent-actions {
  display: flex;
  gap: 8px;
}

.analytics-consent-actions .button {
  min-height: 42px;
  padding: 9px 16px;
}
@media (max-width: 1100px) {
  .hero-content {
    grid-template-columns: minmax(clamp(480px, 55vw, 540px), 1.08fr) minmax(340px, 0.92fr);
    gap: 28px;
  }

  .hero-gallery {
    height: 440px;
  }

  .hero-gallery img {
    width: 340px;
    flex-basis: 340px;
  }

  .hero-text h1 {
    font-size: 2.9rem;
  }
}

@media (max-width: 920px) {

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
  .menu-toggle {
    display: inline-block;
  }

  .nav {
    flex-wrap: wrap;
    min-height: 64px;
    padding: 12px 0;
  }

  .nav-panel {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 12px;
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

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

  .language-switch {
    width: 100%;
  }

  .chat-page-nav {
    flex-wrap: nowrap;
    min-height: 64px;
  }

  .chat-page-back {
    width: 40px;
    height: 40px;
  }

  .chat-page-nav .language-switch {
    flex-basis: 132px;
    width: 132px;
  }

  .chat-page .chat-widget {
    inset: 64px 0 0;
  }

  .language-dropdown-menu {
    right: 1px;
    left: 0;
    width: auto;
  }

  .nav-product-search {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .nav-product-search .product-search-status,
  .nav-product-search .product-search-results {
    position: static;
    margin-top: 8px;
  }

  .hero {
    min-height: 70vh;
    background-position: 58% center;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(13, 24, 28, 0.9), rgba(13, 24, 28, 0.6));
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-text {
    order: 1;
    max-width: 720px;
    margin-left: 0;
  }

  .hero-gallery {
    order: 2;
    height: 320px;
  }

  .hero-gallery img {
    width: 320px;
    flex-basis: 320px;
  }

  .hero-text h1 {
    font-size: 2.75rem;
  }

  .search-page-layout {
    grid-template-columns: 1fr;
  }

  .search-page-copy {
    position: static;
  }

  .card-grid,
  .product-search-results,
  .process-layout,
  .quality-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .category-grid-preview > :nth-child(n + 5) {
    display: none;
  }

  html[lang="zh-CN"] .contact-copy h2 {
    white-space: normal;
  }

  .sticky-heading {
    position: static;
  }

  .quality-layout {
    align-items: start;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .chat-page {
    padding-bottom: 0;
  }

  .site-header {
    z-index: 40;
  }

  .analytics-consent {
    grid-template-columns: 1fr;
    gap: 12px;
    bottom: 84px;
  }

  .analytics-consent-actions {
    justify-content: stretch;
  }

  .analytics-consent-actions .button {
    flex: 1;
  }

  .category-grid-preview {
    grid-template-columns: 1fr;
  }

  .category-grid-preview > :nth-child(n + 3) {
    display: none;
  }

  .hero {
    min-height: auto;
    z-index: 32;
  }

  .hero-content {
    padding-top: 46px;
    padding-bottom: 42px;
  }

  .hero-gallery {
    height: 230px;
  }

  .hero-gallery-group {
    gap: 10px;
    padding-right: 10px;
  }

  .hero-gallery img {
    width: 230px;
    flex-basis: 230px;
  }

  .hero-text h1 {
    font-size: 2.15rem;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 24px;
  }

  .hero-metrics div {
    padding-left: 9px;
  }

  .hero-metrics strong {
    font-size: 1rem;
  }

  .hero-metrics span {
    font-size: 0.76rem;
  }

  .search-page-hero {
    padding: 44px 0 58px;
  }

  .product-search-form {
    padding: 14px;
  }

  .product-search-row {
    grid-template-columns: 1fr;
  }

  .nav-product-search .product-search-row {
    display: block;
  }

  .product-search-button {
    width: 100%;
  }

  .nav-product-search .product-search-button {
    width: 30px;
  }

  .search-page-search .product-search-button {
    width: 38px;
  }

  .intro-grid,
  .footer-grid,
  .inquiry-form {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    padding: 22px 0;
  }

  .text-link {
    white-space: normal;
  }

  .section {
    padding: 56px 0;
  }

  .card {
    min-height: auto;
  }

  .process-step {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .step-number {
    width: 40px;
    height: 40px;
  }

  .about-mark {
    min-height: 220px;
  }

  .chat-widget {
    z-index: 33;
    right: calc(12px + env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: calc(50% + 4px);
  }

  .chat-widget.is-keyboard-locked,
  .cart-widget.is-keyboard-locked,
  .top-button.is-keyboard-locked {
    transition: none;
  }

  .cart-widget {
    z-index: 34;
    right: calc(50% + 4px);
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: calc(12px + env(safe-area-inset-left));
  }

  .cart-guide,
  .cart-added-feedback {
    width: min(360px, calc(100vw - 24px));
    bottom: 66px;
  }

  .cart-panel {
    left: 0;
    bottom: 62px;
    width: calc(100vw - 24px);
    min-width: auto;
    max-width: none;
    max-height: calc(100vh - 150px);
    transform-origin: left bottom;
  }

  .cart-launcher {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    gap: 7px;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .cart-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .cart-item-media {
    width: 58px;
    height: 58px;
  }

  .product-result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-card-button {
    width: 100%;
  }

  .chat-panel {
    right: 0;
    bottom: 66px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 98px);
    min-width: auto;
    max-width: none;
    min-height: auto;
    resize: none;
    transform-origin: center bottom;
  }

  .panel-resize-handle {
    display: none;
  }

  .chat-launcher {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    gap: 7px;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .chat-page .chat-panel {
    width: 100%;
    height: 100%;
    max-height: none;
  }
}

.panel-resize-handle:hover {
  background: linear-gradient(135deg, transparent 40%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.15) 55%, transparent 55%);
}
