: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 {
  display: flex;
  align-items: center;
  gap: 20px;
}

.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 {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(44px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.language-switch button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
}

.language-switch button:last-child {
  border-right: 0;
}

.language-switch button.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.png");
  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.88), rgba(13, 24, 28, 0.5) 48%, rgba(13, 24, 28, 0.1)),
    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;
  padding: clamp(46px, 6vw, 70px) 0 clamp(34px, 4vw, 54px);
}

.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;
}

.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;
}

.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-size: cover;
  background-position: center;
  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-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: 0;
}

.category-card-overlay {
  position: relative;
  z-index: 1;
  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;
}

.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  justify-items: end;
}

  .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-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;
}

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

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

.chat-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--ink);
  font-weight: 900;
}

.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%;
  display: grid;
  align-self: start;
  gap: 4px;
}

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

.chat-bubble p {
  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;
}

.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;
}

.image-preview-close {
  position: fixed;
  top: 18px;
  right: 18px;
  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;
}

.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-widget.has-conversation #chatName,
.chat-widget.has-conversation #chatContact {
  display: none;
}

.chat-tools,
.reply-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.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 {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--green-deep);
  padding: 0 10px;
  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: 100%;
}

.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;
}

 
.top-button {
  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(12px) 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(0) 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(-2px) scale(1.05);
}

.top-button:active {
  transform: translateY(0) 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;
   padding: 18px 0;
 }
 
 .footer-bottom p {
   margin: 0;
   color: rgba(255, 255, 255, 0.4);
   font-size: 0.84rem;
 }
@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 {
    width: 100%;
    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%;
  }

  .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.54));
  }

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

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

  .sticky-heading {
    position: static;
  }

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

@media (max-width: 640px) {
  .hero {
    min-height: auto;
  }

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

  .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;
  }

  .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 {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .chat-panel {
    right: 0;
    bottom: 66px;
    width: 100%;
    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 {
    min-width: 124px;
  }
}

.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%);
}
