:root {
  --orange: #ff6a00;
  --orange-dark: #e55f00;
  --orange-soft: #fff4ec;
  --ink: #222;
  --muted: #666;
  --line: #e8e8e8;
  --bg: #f5f5f5;
  --paper: #fff;
  --teal: #0c6f78;
  --wa: #25d366;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(0,0,0,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 118px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1200px, calc(100% - 2rem)); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--orange); margin: 0 0 .5rem;
}
.section { padding: 2.75rem 0; }
.section-head { margin-bottom: 1.5rem; }
.section-head h2 { margin: 0 0 .4rem; font-size: clamp(1.35rem, 2.5vw, 1.75rem); }

/* Topbar */
.topbar {
  background: #1a1a1a; color: #ddd; font-size: .82rem;
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; min-height: 36px; flex-wrap: wrap; padding: .35rem 0;
}
.topbar-right { display: flex; align-items: center; gap: .85rem; }
.top-link { color: #ffc299; font-weight: 600; }
.top-link:hover { color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: .85rem 1rem; align-items: center;
  padding: .75rem 0;
}
/* logo img size set with hero logo block */
.search-box {
  display: grid;
  grid-template-columns: minmax(130px, 168px) 1fr auto;
  border: 2px solid var(--orange);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  min-height: 44px;
}
.search-cat {
  border: 0; border-right: 1px solid var(--line);
  padding: 0 .65rem; background: #fafafa; color: var(--ink);
  min-width: 0;
  max-width: none;
  width: 100%;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
}
.search-box input {
  border: 0; padding: 0 1rem; min-width: 0; outline: none;
}
.search-btn {
  border: 0; background: var(--orange); color: #fff;
  font-weight: 700; padding: 0 1.25rem; cursor: pointer;
}
.search-btn:hover { background: var(--orange-dark); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-nav {
  display: flex; align-items: center; gap: 1rem;
  font-size: .9rem; font-weight: 600;
}
.header-nav a {
  color: var(--muted);
  white-space: nowrap;
}
.header-nav a:hover { color: var(--orange); }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  width: 40px; height: 40px; border-radius: 8px; cursor: pointer;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: .35rem;
  padding: .5rem 1rem 1rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile-nav:not([hidden]) { display: flex; }
.mobile-nav a {
  padding: .7rem .85rem;
  border-radius: 10px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
}
.mobile-nav a:hover { background: var(--orange-soft); color: var(--orange); }
.footer-nav {
  display: flex; flex-wrap: wrap; gap: .75rem 1.1rem;
  margin-top: .75rem;
}
.footer-nav a {
  color: #ccc; font-size: .88rem; font-weight: 600;
}
.footer-nav a:hover { color: #ffb380; }
.footer-addr {
  margin: .45rem 0 0;
  font-size: .82rem;
  line-height: 1.45;
  color: #999;
  max-width: 36rem;
}
.footer-legal {
  text-align: right;
  max-width: 22rem;
}
.footer-legal .copy { margin: 0; }
.footer-legal-note {
  margin: .35rem 0 0;
  font-size: .75rem;
  line-height: 1.4;
  color: #777;
}
@media (max-width: 720px) {
  .footer-legal { text-align: left; max-width: none; }
}

/* sticky header 锚点不被挡住 */
#about, #products, #process, #contact, #why {
  scroll-margin-top: 140px;
}
.nav-cats-wrap { position: relative; }
.nav-cats-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: .65rem .9rem;
  margin: 0 0 .6rem;
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
  cursor: pointer;
}
.nav-cats-toggle:hover { border-color: var(--orange); }
.nav-cats-caret { transition: transform .2s ease; }
.nav-cats-toggle[aria-expanded="true"] .nav-cats-caret { transform: rotate(180deg); }
.nav-cats {
  display: flex; gap: .35rem; flex-wrap: wrap;
  padding: 0 0 .7rem;
}
.nav-cats[hidden] { display: none; }
.nav-cat-btn {
  border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: .35rem .8rem;
  font-size: .82rem; font-weight: 600; color: var(--muted);
  cursor: pointer; white-space: nowrap;
}
.nav-cat-btn:hover, .nav-cat-btn.active {
  border-color: var(--orange); color: var(--orange); background: var(--orange-soft);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; border-radius: 999px; font-weight: 700;
  padding: .55rem 1.1rem; border: 1px solid transparent; cursor: pointer;
  transition: .15s ease;
}
.btn-orange { background: var(--orange); color: #fff !important; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink) !important; }
.btn-outline:hover { border-color: var(--orange); color: var(--orange) !important; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-sm { font-size: .85rem; padding: .4rem .9rem; }
.btn-lg { padding: .75rem 1.35rem; font-size: .95rem; }
.btn-block { width: 100%; min-height: 48px; }

/* Lang */
.lang-dropdown { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: .35rem;
  background: transparent; border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: 999px; padding: .2rem .55rem; cursor: pointer;
}
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  min-width: 160px; padding: .35rem; box-shadow: var(--shadow);
  list-style: none; margin: 0; z-index: 60;
}
.lang-menu[hidden] { display: none; }
.lang-option {
  width: 100%; display: flex; gap: .5rem; align-items: center;
  border: 0; background: transparent; padding: .5rem .6rem;
  border-radius: 8px; cursor: pointer; color: var(--ink); text-align: left;
}
.lang-option:hover, .lang-option.active { background: var(--orange-soft); color: var(--orange); }
.lang-code { font-weight: 800; font-size: .78rem; min-width: 1.75em; }
.lang-name { font-size: .85rem; }

/* Hero */
.hero-b2b {
  position: relative;
  background: #1a1a1a;
  color: #fff; padding: 2.75rem 0 3rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .42;
  filter: saturate(1.05) brightness(.72);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(10,10,10,.92) 0%, rgba(20,12,4,.78) 48%, rgba(30,16,6,.55) 100%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
}
.logo img,
.logo .logo-mascot {
  /* 32.jpg 橙色六边形 Y + YUNJI */
  height: 112px;
  width: auto;
  max-width: min(180px, 40vw);
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
@media (min-width: 900px) {
  .logo img,
  .logo .logo-mascot {
    height: 132px;
    max-width: 200px;
  }
}
@media (max-width: 560px) {
  .logo img,
  .logo .logo-mascot {
    height: 88px;
    max-width: 140px;
  }
}
.about { background: #fff; }
.about-head { max-width: 48rem; margin-bottom: 1.75rem; }
.about-head .lead { font-size: 1.05rem; line-height: 1.65; }
.about-split {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: start;
}
.about-copy h3 {
  margin: 1.35rem 0 .45rem; font-size: 1.05rem; color: var(--ink);
}
.about-copy h3:first-child { margin-top: 0; }
.about-copy p { margin: 0 0 .35rem; color: var(--muted); line-height: 1.6; }
.about-steps {
  margin: .4rem 0 0; padding-left: 1.15rem; color: var(--muted); line-height: 1.65;
}
.about-steps li { margin-bottom: .35rem; }
.about-steps strong { color: var(--ink); }
.about-bullets {
  margin: .4rem 0 0; padding-left: 1.15rem; color: var(--muted); line-height: 1.65;
}
.about-bullets li { margin-bottom: .3rem; }
.about-aside { display: grid; gap: 1rem; }
.about-media {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); min-height: 260px;
  box-shadow: var(--shadow);
}
.about-media > img:first-child {
  width: 100%; height: 100%; min-height: 280px; object-fit: cover;
}
.about-media-side {
  position: absolute; right: .75rem; bottom: .75rem;
  width: 42%; max-width: 200px; aspect-ratio: 4/3;
  object-fit: cover; border-radius: 12px;
  border: 3px solid #fff; box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.about-meta { margin: 0; }
.about-aside .btn { justify-self: start; }
@media (max-width: 960px) {
  .about-split { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .about-split { grid-template-columns: 1fr; }
}
.hero-copy h1 {
  margin: 0 0 .85rem; font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  line-height: 1.2; letter-spacing: -.02em;
}
.hero-copy .lead { color: rgba(255,255,255,.78); margin: 0 0 1.25rem; max-width: 36rem; }
.hero-copy .eyebrow { color: #ffb380; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1.1rem; }
.hero-pills {
  list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem;
}
.hero-pills li {
  font-size: .78rem; font-weight: 600;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: .3rem .7rem; color: rgba(255,255,255,.85);
}
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
}
.stat-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 1rem 1.05rem;
}
.stat-card strong {
  display: block; font-size: 1.35rem; color: #ffb380; margin-bottom: .25rem;
}
.stat-card span { font-size: .82rem; color: rgba(255,255,255,.7); }

/* Supplier */
.supplier-strip { background: #fff; border-bottom: 1px solid var(--line); }
.supplier-inner {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 0;
}
.supplier-badge {
  background: var(--orange-soft); color: var(--orange);
  font-weight: 800; font-size: .75rem; letter-spacing: .04em;
  text-transform: uppercase; padding: .4rem .7rem; border-radius: 8px;
}
.supplier-inner p { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }

/* Catalog */
.catalog { padding-top: 1.75rem; }
.catalog-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 1.25rem; align-items: start;
}
.cat-sidebar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .6rem; position: sticky; top: calc(var(--header-h) + 12px);
}
.cat-side-btn {
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: .65rem .75rem; border-radius: 8px; cursor: pointer;
  font-size: .88rem; font-weight: 600; color: var(--muted);
}
.cat-side-btn:hover, .cat-side-btn.active {
  background: var(--orange-soft); color: var(--orange);
}
.catalog-toolbar {
  display: flex; flex-wrap: wrap; align-items: end; gap: .75rem 1.25rem;
  margin-bottom: 1rem;
}
.catalog-toolbar h2 { margin: 0; flex: 1; font-size: 1.25rem; }
.catalog-toolbar .muted { margin: 0; font-size: .9rem; }
.sort-row { display: flex; align-items: center; gap: .45rem; font-size: .88rem; color: var(--muted); }
.sort-row select {
  border: 1px solid var(--line); border-radius: 8px; padding: .35rem .5rem; background: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover {
  box-shadow: var(--shadow); transform: translateY(-2px); border-color: #ffd0a8;
}
.product-thumb {
  aspect-ratio: 1;
  display: grid; place-items: center;
  font-size: 2.6rem;
  background: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 8px;
}
.product-thumb .thumb-emoji { line-height: 1; }
.product-thumb .hs-tag {
  position: absolute; left: .55rem; top: .55rem; z-index: 1;
  font-size: .68rem; font-weight: 700; letter-spacing: .02em;
  background: rgba(0,0,0,.7); color: #fff; padding: .2rem .45rem; border-radius: 6px;
}
.product-body { padding: .9rem 1rem 1.05rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-body h3 {
  margin: 0; font-size: .95rem; line-height: 1.35; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.product-body .desc {
  margin: 0; font-size: .8rem; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price-row { margin-top: .35rem; }
.price-row .price {
  font-size: 1.2rem; font-weight: 800; color: var(--orange);
}
.price-row .price small { font-size: .75rem; font-weight: 600; color: var(--muted); }
.price-row .moq {
  font-size: .8rem; color: var(--muted); margin-top: .15rem;
}
.card-actions {
  display: flex; gap: .45rem; margin-top: auto; padding-top: .65rem;
}
.card-actions .btn { flex: 1; font-size: .82rem; padding: .5rem .4rem; border-radius: 8px; }
.empty-hint {
  text-align: center; padding: 2rem; color: var(--muted); background: #fff;
  border: 1px dashed var(--line); border-radius: 12px;
}

/* Why / process */
.why { background: #fff; }
.why-grid, .process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem;
}
.why-card, .step {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.15rem 1.1rem;
}
.why-card h3, .step h3 { margin: 0 0 .4rem; font-size: 1rem; }
.why-card p, .step p { margin: 0; font-size: .88rem; color: var(--muted); }
.step-num {
  font-size: 1.5rem; font-weight: 800; color: #ffd0a8; line-height: 1; margin-bottom: .4rem;
}
.process { background: var(--orange-soft); }

/* About */
.about { background: #fff; }
.meta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.25rem;
}
.meta-grid div {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .85rem 1rem;
}
.meta-grid dt { font-size: .75rem; font-weight: 700; color: var(--muted); margin-bottom: .2rem; }
.meta-grid dd { margin: 0; font-weight: 600; font-size: .9rem; }

/* Contact */
.contact { background: var(--bg); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 1.75rem; align-items: start;
}
.contact-points { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .7rem; }
.contact-points li {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem;
  display: grid; gap: .2rem;
}
.contact-points a { color: var(--orange); font-weight: 700; }
.quote-form {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.35rem; display: grid; gap: .85rem; box-shadow: var(--shadow);
}
.field { display: grid; gap: .3rem; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: .65rem .75rem;
  background: #fafafa; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--orange); background: #fff;
  box-shadow: 0 0 0 3px rgba(255,106,0,.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-note { margin: 0; font-size: .8rem; color: var(--muted); }

/* Footer */
.site-footer {
  background: #1a1a1a; color: #aaa; padding: 1.75rem 0;
  border-top: 3px solid var(--orange);
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: end;
}
.footer-inner strong { color: #fff; }
.footer-inner p { margin: .3rem 0 0; font-size: .88rem; }
.copy { font-size: .82rem !important; }

/* WA float */
.wa-float {
  position: fixed; z-index: 60; right: 1.1rem; bottom: 1.1rem;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff !important;
  box-shadow: 0 12px 28px rgba(37,211,102,.35);
  transition: transform .2s, background .2s;
}
.wa-float:hover { transform: translateY(-2px); background: #1ebe57; }

body.lang-switching { opacity: .92; transition: opacity .15s; }

@media (max-width: 960px) {
  .header-row { grid-template-columns: auto 1fr auto; }
  .header-nav { display: none; }
  .search-box { grid-column: 1 / -1; order: 3; grid-template-columns: 1fr auto; }
  .search-cat { display: none; }
  /* 手机：分类默认折叠成一行，点击展开 */
  .nav-cats-toggle { display: flex; }
  .nav-cats { flex-wrap: wrap; }
  .nav-cat-btn { white-space: nowrap; }
  .hero-grid, .catalog-layout, .contact-grid, .why-grid, .process-grid, .meta-grid, .field-row {
    grid-template-columns: 1fr;
  }
  .cat-sidebar {
    position: static; display: flex; gap: .35rem; overflow-x: auto; padding: .5rem;
  }
  .cat-side-btn { white-space: nowrap; width: auto; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: inline-grid; place-items: center; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .container { width: min(100% - 1.25rem, 1200px); }
}
