/* ==========================================================================
   优联胜 H5 — mobile-first design system
   Scope: corporate / product / solution content only.
   Excluded by design: cart, checkout, login, account centre.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --red: #da251d;
  --red-700: #b81b15;
  --red-soft: #fdeceb;
  --ink: #12161c;
  --ink-2: #414b57;
  --muted: #7b8694;
  --line: #e6e9ee;
  --line-strong: #d5dae1;
  --bg: #f4f6f8;
  --bg-soft: #fafbfc;
  --dark: #0c1014;
  --dark-2: #171c22;
  --white: #fff;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 26px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 16px -8px rgba(16, 24, 40, .12);
  --shadow-md: 0 18px 40px -22px rgba(16, 24, 40, .35);

  --app-max: 560px;
  --hdr-h: 56px;
  --tab-h: 58px;

  --font: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: #e8ebef;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.app {
  position: relative;
  width: 100%;
  max-width: var(--app-max);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .04), 0 40px 90px -40px rgba(15, 23, 42, .45);
}

main { display: block; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 8px); }
body.has-cta main { padding-bottom: calc(var(--tab-h) + 82px + env(safe-area-inset-bottom)); }

/* ---------- 2. Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
}
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: #fff; }

.h1 { font-size: clamp(28px, 7.6vw, 36px); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; }
.h2 { font-size: 23px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.h3 { font-size: 17px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.text-muted { color: var(--muted); }
.ic {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic--sm { width: 16px; height: 16px; }
.ic--lg { width: 28px; height: 28px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.link-more .ic { width: 15px; height: 15px; color: var(--red); transition: transform .25s var(--ease); }
.link-more:hover .ic { transform: translateX(3px); }

/* ---------- 3. Header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--hdr-h);
  padding: 0 16px 0 18px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.hdr.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(15, 23, 42, .4); }
.hdr__logo img { width: 96px; height: auto; }
.hdr__actions { display: flex; align-items: center; gap: 2px; }
.hdr__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--red);
  border-radius: 0 2px 2px 0;
  transition: width .1s linear;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--bg); color: var(--red); }

/* ---------- 4. Bottom tab bar ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  max-width: var(--app-max);
  transform: translateX(-50%);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--line);
}
.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0 2px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .01em;
  color: #929caa;
  transition: color .2s;
}
.tab .ic { width: 21px; height: 21px; }
.tab.is-active { color: var(--red); font-weight: 700; }
.tab.is-active::before {
  content: "";
  position: absolute;
  top: -7px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
}
.tab__badge {
  position: absolute;
  top: 2px;
  right: 22%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}

/* ---------- 5. Buttons / chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.btn:active { transform: scale(.975); }
.btn .ic { width: 17px; height: 17px; }
.btn--primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 14px 26px -14px rgba(218, 37, 29, .85);
}
.btn--primary:hover { background: var(--red-700); }
.btn--dark { color: #fff; background: var(--ink); }
.btn--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
}
.btn--line { color: var(--ink); border: 1px solid var(--line-strong); background: #fff; }
.btn--block { width: 100%; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 12.5px; }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 20px 10px;
  margin: 0 -20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  height: 34px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: all .2s;
}
.chip.is-active { color: #fff; background: var(--ink); border-color: var(--ink); font-weight: 600; }
.chip:hover:not(.is-active) { border-color: var(--line-strong); }

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.tag--red { background: var(--red-soft); color: var(--red); }
.tag--dark { background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(6px); }

/* ---------- 6. Section scaffolding ---------- */
.sec { padding: 32px 20px; }
.sec--tight { padding-top: 22px; }
.sec--flush { padding-inline: 0; }
.sec--soft { background: var(--bg-soft); }
.sec--dark { background: var(--dark); color: #fff; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.sec__head p.lead { margin-top: 8px; }
.sec__head--center { display: block; text-align: center; }
.sec__head--center .eyebrow { justify-content: center; }

.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 20px 8px;
  margin: 0 -20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack > * + * { margin-top: 12px; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  height: clamp(500px, 74svh, 620px);
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}
.hero__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide {
  position: relative;
  display: flex;
  flex: 0 0 100%;
  align-items: flex-end;
  padding: 30px 22px 54px;
  scroll-snap-align: center;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
}
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 11, 15, .5) 0%, rgba(8, 11, 15, .12) 34%, rgba(8, 11, 15, .55) 64%, rgba(8, 11, 15, .95) 100%),
    linear-gradient(90deg, rgba(8, 11, 15, .5), transparent 72%);
}
.hero__content { max-width: 430px; }
.hero__content .h1 { margin-bottom: 12px; }
.hero__content .lead {
  max-width: 380px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, .78);
  font-size: 13.5px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__dots {
  position: absolute;
  left: 22px;
  bottom: 24px;
  z-index: 5;
  display: flex;
  gap: 6px;
}
.hero__dot {
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .32);
  transition: width .3s var(--ease), background .3s;
}
.hero__dot.is-active { width: 30px; background: #fff; }
.hero__count {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 5;
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .6);
}
.hero__count b { color: #fff; font-size: 13px; }

/* ---------- 8. Quick entries ---------- */
.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 18px 12px 6px;
  background: #fff;
}
.quick__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  border-radius: var(--r-md);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background .2s, color .2s;
}
.quick__item:hover { background: var(--bg); color: var(--red); }
.quick__ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  transition: background .2s, color .2s, transform .2s;
}
.quick__item:hover .quick__ico { background: var(--red-soft); color: var(--red); transform: translateY(-2px); }
.quick__ico .ic { width: 21px; height: 21px; }

/* ---------- 9. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stats__cell { padding: 18px 16px; background: var(--dark); }
.stats__num {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
}
.stats__num span { font-size: 14px; font-weight: 600; color: var(--red); }
.stats__label { margin-top: 7px; font-size: 11.5px; color: rgba(255, 255, 255, .58); }

/* ---------- 10. Cards ---------- */
.card {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }

.pcard { width: 196px; flex: none; }
.pcard__media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 10px;
  background: linear-gradient(180deg, #fbfcfd, #f2f4f7);
}
.pcard__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__body { padding: 12px 13px 14px; }
.pcard__name { font-size: 13px; font-weight: 600; line-height: 1.35; }
.pcard__meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 7px; font-size: 10.5px; color: var(--muted); }
.pcard__meta .ic { width: 14px; height: 14px; color: var(--red); }

.grid-products { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-products .pcard { width: auto; }
.grid-products .pcard__name { min-height: 35px; }

/* feature card */
.feature-card {
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.feature-card__ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: #fff;
  color: var(--red);
  box-shadow: var(--shadow-sm);
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }

/* solution card */
.scard {
  position: relative;
  flex: none;
  width: 268px;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}
.scard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.scard:hover img { transform: scale(1.05); }
.scard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 15, 0) 30%, rgba(8, 11, 15, .55) 62%, rgba(8, 11, 15, .94) 100%);
}
.scard__body { position: absolute; inset: auto 0 0; z-index: 2; padding: 16px; }
.scard__kicker { margin-bottom: 6px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .64); }
.scard__title { font-size: 16px; font-weight: 700; line-height: 1.32; }
.scard__foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11px; color: rgba(255, 255, 255, .72); }
.scard__foot .ic { width: 13px; height: 13px; }

/* video card */
.vcard { flex: none; width: 268px; }
.vcard__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-md);
  background: #111;
}
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.vcard:hover .vcard__media img { transform: scale(1.04); }
.vcard__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--red);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .6);
}
.vcard__play .ic { width: 18px; height: 18px; margin-left: 2px; }
.vcard__dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .72);
  font-size: 10px;
  font-weight: 600;
  color: #fff;
}
.vcard__title { margin-top: 10px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.vcard__meta { margin-top: 4px; font-size: 10.5px; color: var(--muted); }

/* ---------- 11. News ---------- */
.news-feature { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--dark); color: #fff; }
.news-feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; opacity: .9; }
.news-feature__body { padding: 16px 18px 18px; }
.news-feature__meta { display: flex; gap: 10px; margin-bottom: 8px; font-size: 10.5px; color: rgba(255, 255, 255, .58); }
.news-feature h3 { font-size: 16px; line-height: 1.38; }
.news-item { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-item__body { min-width: 0; flex: 1; }
.news-item__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 10.5px; color: var(--muted); }
.news-item h3 { font-size: 13.5px; font-weight: 600; line-height: 1.45; transition: color .2s; }
.news-item:hover h3 { color: var(--red); }
.news-item__thumb { flex: none; width: 96px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--bg); }
.news-item__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 12. CTA banner ---------- */
.cta {
  position: relative;
  margin: 8px 20px 32px;
  padding: 30px 24px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(120deg, #12161c, #20262e 60%, #2a1010);
  color: #fff;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  z-index: -1;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(218, 37, 29, .7), transparent 68%);
  filter: blur(6px);
}
.cta h2 { max-width: 280px; }
.cta p { max-width: 300px; margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .66); }
.cta .btn { margin-top: 20px; }

/* ---------- 13. Footer ---------- */
.ftr { padding: 30px 20px calc(22px + env(safe-area-inset-bottom)); background: #0c1014; color: rgba(255, 255, 255, .62); }
.ftr__brand img { width: 104px; }
.ftr__tagline { max-width: 300px; margin-top: 14px; font-size: 12px; line-height: 1.7; }
.ftr__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 18px; margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .09); }
.ftr__col h4 { margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.ftr__col li + li { margin-top: 7px; }
.ftr__col a { font-size: 12px; transition: color .2s; }
.ftr__col a:hover { color: #fff; }
.ftr__contact li { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.6; }
.ftr__contact .ic { width: 14px; height: 14px; margin-top: 3px; color: var(--red); }
.ftr__social { display: flex; gap: 8px; margin-top: 14px; }
.ftr__social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  color: #fff;
  transition: background .2s, border-color .2s;
}
.ftr__social a:hover { background: var(--red); border-color: var(--red); }
.ftr__social .ic { width: 15px; height: 15px; }
.ftr__legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .09); font-size: 10.5px; line-height: 1.7; color: rgba(255, 255, 255, .4); }
.ftr__legal a { text-decoration: underline; text-underline-offset: 2px; }
.ftr__legal p + p { margin-top: 4px; }

/* ---------- 14. Page hero (inner pages) ---------- */
.phero {
  position: relative;
  padding: 34px 20px 30px;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
  isolation: isolate;
}
.phero--img { padding: 44px 20px 34px; }
.phero__bg { position: absolute; inset: 0; z-index: -2; background-position: center; background-size: cover; }
.phero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 11, 15, .55), rgba(8, 11, 15, .9));
}
.phero h1 { margin-bottom: 10px; }
.phero p { max-width: 420px; font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, .7); }
.phero__crumb { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 10.5px; letter-spacing: .04em; color: rgba(255, 255, 255, .48); }
.phero__crumb .ic { width: 12px; height: 12px; }

/* ---------- 15. Products page ---------- */
.filterbar {
  position: sticky;
  top: var(--hdr-h);
  z-index: 40;
  padding: 14px 20px 8px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  transition: border-color .2s, background .2s;
}
.searchbox:focus-within { border-color: var(--ink); background: #fff; }
.searchbox .ic { width: 17px; height: 17px; color: var(--muted); }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.searchbox input::placeholder { color: #a3adba; font-size: 13px; }
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.searchbox__clear { display: grid; place-items: center; width: 22px; height: 22px; color: var(--muted); }

.result-meta { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 12px; font-size: 11.5px; color: var(--muted); }
.result-meta b { color: var(--ink); font-weight: 600; }

.empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
}
.empty .ic { width: 34px; height: 34px; margin: 0 auto 12px; color: var(--line-strong); }
.empty h3 { margin-bottom: 6px; color: var(--ink); }
.empty p { font-size: 12.5px; }
.empty .btn { margin-top: 16px; }

/* ---------- 16. Product detail ---------- */
.gallery { position: relative; background: linear-gradient(180deg, #fff, #f2f4f7); }
.gallery__main {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / .86;
  padding: 22px;
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__badges { position: absolute; left: 16px; top: 16px; display: flex; gap: 6px; }
.gallery__thumbs { display: flex; gap: 8px; padding: 0 20px 16px; overflow-x: auto; scrollbar-width: none; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb { flex: none; width: 64px; height: 52px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__thumb.is-active { border-color: var(--red); }

.pd__head { padding: 22px 20px 18px; border-bottom: 1px solid var(--line); }
.pd__series { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.pd__title { margin-top: 8px; }
.pd__sub { margin-top: 10px; font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }
.pd__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th, .spec-table td { padding: 11px 0; text-align: left; vertical-align: top; }
.spec-table th { width: 42%; padding-right: 14px; font-weight: 500; color: var(--muted); }
.spec-table td { font-weight: 600; }

.bullets { display: grid; gap: 10px; }
.bullets li { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.bullets .ic { width: 15px; height: 15px; margin-top: 2px; color: var(--red); }

.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.variant {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 11.5px;
  color: var(--ink-2);
}

.cta-bar {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  z-index: 65;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: var(--app-max);
  transform: translateX(-50%);
  padding: 10px 16px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.cta-bar__hint { flex: 1; min-width: 0; font-size: 10.5px; line-height: 1.4; color: var(--muted); }
.cta-bar__hint b { display: block; font-size: 12px; color: var(--ink); }
.cta-bar .btn { flex: none; }

/* ---------- 17. Solutions page ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 17px 0;
  text-align: left;
}
.acc__idx { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--red); }
.acc__label { flex: 1; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.acc__ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); color: var(--ink); transition: transform .3s var(--ease), background .2s, color .2s; }
.acc__item.is-open .acc__ico { transform: rotate(45deg); background: var(--red); color: #fff; }
.acc__ico .ic { width: 13px; height: 13px; }
.acc__panel { overflow: hidden; height: 0; transition: height .34s var(--ease); }
.acc__inner { padding: 0 0 18px; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.acc__links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.acc__link { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: var(--ink-2); }
.acc__link .ic { width: 12px; height: 12px; color: var(--red); }

/* ---------- 18. About ---------- */
.about-hero { position: relative; isolation: isolate; padding: 42px 20px 34px; background: var(--dark); color: #fff; }
.about-hero__bg { position: absolute; inset: 0; z-index: -2; background-position: center; background-size: cover; opacity: .5; }
.about-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 11, 15, .72), rgba(8, 11, 15, .94)); }
.about-hero .lead { margin-top: 14px; color: rgba(255, 255, 255, .74); font-size: 12.5px; }
.about-hero .lead + .lead { margin-top: 10px; }

.split { display: grid; gap: 16px; }
.figure { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--bg); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--widescreen img { aspect-ratio: 16 / 9; }
.figure__cap { position: absolute; left: 14px; bottom: 12px; padding: 4px 9px; border-radius: 6px; background: rgba(8, 11, 15, .62); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .04em; backdrop-filter: blur(4px); }

.gallery-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.gallery-strip img { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 8px; }

.quote-card { padding: 24px 20px; border-radius: var(--r-lg); background: var(--bg-soft); border: 1px solid var(--line); }
.quote-card .ic { width: 24px; height: 24px; color: var(--red); }
.quote-card blockquote { margin: 12px 0 0; font-size: 15px; font-weight: 600; line-height: 1.55; letter-spacing: -.01em; }
.quote-card cite { display: block; margin-top: 12px; font-size: 11px; font-style: normal; color: var(--muted); }

.timeline { position: relative; margin-top: 4px; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 8px; width: 1px; background: var(--line-strong); }
.timeline__item { position: relative; padding-bottom: 20px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ""; position: absolute; left: -22px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--red); }
.timeline__year { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--red); }
.timeline__title { margin-top: 3px; font-size: 14px; font-weight: 600; }
.timeline__desc { margin-top: 3px; font-size: 12px; color: var(--ink-2); }

.join-banner {
  position: relative;
  display: block;
  margin: 0 20px 34px;
  padding: 34px 24px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(115deg, #171c22, #242a32);
  color: #fff;
}
.join-banner__big {
  position: absolute;
  right: -6px;
  bottom: -16px;
  font-size: 66px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .9;
  color: rgba(218, 37, 29, .92);
  opacity: .9;
  pointer-events: none;
}
.join-banner h2 { position: relative; font-size: 26px; line-height: 1.15; }
.join-banner p { position: relative; max-width: 200px; margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, .62); }
.join-banner .btn { position: relative; margin-top: 18px; }

/* ---------- 19. Video page ---------- */
.vfilter { display: flex; gap: 18px; padding: 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.vfilter::-webkit-scrollbar { display: none; }
.vtab { position: relative; flex: none; padding: 13px 0; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.vtab.is-active { color: var(--ink); }
.vtab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); border-radius: 2px; }

.vlist { display: grid; gap: 20px; }
.vitem__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #111; }
.vitem__media img { width: 100%; height: 100%; object-fit: cover; }
.vitem__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--red); transition: transform .25s var(--ease); }
.vitem:hover .vitem__play { transform: translate(-50%, -50%) scale(1.07); }
.vitem__play .ic { width: 20px; height: 20px; margin-left: 2px; }
.vitem__title { margin-top: 11px; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.vitem__meta { margin-top: 4px; font-size: 11px; color: var(--muted); }

/* ---------- 20. Article ---------- */
.article { padding: 26px 20px 34px; }
.article__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 11px; color: var(--muted); }
.article h1 { font-size: 23px; line-height: 1.3; letter-spacing: -.02em; }
.article__body { margin-top: 20px; font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }
.article__body p + p { margin-top: 14px; }
.article__body h2 { margin: 24px 0 10px; font-size: 17px; color: var(--ink); }
.article__body ul { display: grid; gap: 8px; margin: 12px 0; padding-left: 0; }
.article__body li { position: relative; padding-left: 16px; }
.article__body li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.article__body img { width: 100%; border-radius: var(--r-md); margin: 18px 0; }
.article__lead { padding: 16px 0 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.7; color: var(--ink); }
.share-row { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.share-row .icon-btn { width: 34px; height: 34px; border: 1px solid var(--line); }

/* ---------- 21. Contact ---------- */
.office { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.office__btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 16px; text-align: left; }
.office__pin { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--red-soft); color: var(--red); }
.office__pin .ic { width: 17px; height: 17px; }
.office__name { flex: 1; font-size: 13.5px; font-weight: 600; }
.office__name small { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 400; color: var(--muted); }
.office__chev { transition: transform .3s var(--ease); color: var(--muted); }
.office.is-open .office__chev { transform: rotate(180deg); }
.office__panel { display: none; padding: 0 16px 16px 62px; font-size: 12px; line-height: 1.7; color: var(--ink-2); }
.office.is-open .office__panel { display: block; }
.office__line { display: flex; gap: 8px; margin-top: 5px; }
.office__line .ic { width: 13px; height: 13px; margin-top: 3px; color: var(--muted); flex: none; }
.office__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.office__links a { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 10.5px; font-weight: 600; }
.office__links .ic { width: 12px; height: 12px; color: var(--red); }

.channels { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.channel { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 15px 6px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; font-size: 10.5px; font-weight: 600; text-align: center; transition: border-color .2s, color .2s; }
.channel:hover { border-color: var(--red); color: var(--red); }
.channel .ic { width: 19px; height: 19px; color: var(--red); }

.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field > label { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.field > label span { color: var(--red); }
.input, .textarea, .select {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-size: 16px;
  outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 108px; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18, 22, 28, .06); }
.input.is-error, .textarea.is-error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(218, 37, 29, .08); }
.field__error { display: none; font-size: 10.5px; color: var(--red); }
.field.has-error .field__error { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8694' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.filebox { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 13px; border: 1px dashed var(--line-strong); border-radius: 11px; background: var(--bg-soft); cursor: pointer; }
.filebox .ic { width: 17px; height: 17px; color: var(--red); flex: none; }
.filebox span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--muted); }
.filebox input { display: none; }
.consent { display: flex; align-items: flex-start; gap: 9px; font-size: 11px; line-height: 1.55; color: var(--muted); }
.consent input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--red); }
.form-success {
  display: none;
  padding: 20px;
  border: 1px solid #cfe8d8;
  border-radius: var(--r-md);
  background: #f2fbf5;
  text-align: center;
}
.form-success.is-visible { display: block; }
.form-success .ic { width: 30px; height: 30px; margin: 0 auto 8px; color: #1f9254; }
.form-success h3 { font-size: 15px; }
.form-success p { margin-top: 4px; font-size: 12px; color: #4a6b57; }

.map-hint { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg); font-size: 11.5px; color: var(--ink-2); }
.map-hint .ic { width: 18px; height: 18px; color: var(--red); flex: none; }
.map-hint a { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 22. Download ---------- */
.dl-item { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dl-item:last-child { border-bottom: 0; }
.dl-item__ico { display: grid; place-items: center; width: 38px; height: 44px; border-radius: 7px; background: var(--red-soft); color: var(--red); flex: none; }
.dl-item__ico .ic { width: 18px; height: 18px; }
.dl-item__body { flex: 1; min-width: 0; }
.dl-item__body h3 { font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.dl-item__body p { margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.dl-item__dl { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); flex: none; }
.dl-item__dl:hover { border-color: var(--red); color: var(--red); }
.dl-item__dl .ic { width: 15px; height: 15px; }

/* ---------- 23. Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 110; pointer-events: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(6, 9, 13, .55); opacity: 0; transition: opacity .35s; backdrop-filter: blur(2px); }
.drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(88%, 400px);
  padding: 18px 22px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: #0d1116;
  color: #fff;
  transform: translateX(100%);
  transition: transform .42s var(--ease);
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drawer__top img { width: 92px; }
.drawer__close { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .07); color: #fff; }
.drawer__nav { display: grid; }
.drawer__link { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.drawer__link em { font-size: 9.5px; font-style: normal; font-weight: 700; letter-spacing: .1em; color: var(--red); }
.drawer__link span { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.drawer__link .ic { width: 15px; height: 15px; margin-left: auto; align-self: center; color: rgba(255, 255, 255, .35); }
.drawer__foot { margin-top: auto; padding-top: 24px; }
.drawer__foot p { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .4); }
.drawer__contact { display: grid; gap: 6px; margin: 10px 0 16px; font-size: 13px; }
.drawer__contact a { display: flex; align-items: center; gap: 8px; }
.drawer__contact .ic { width: 14px; height: 14px; color: var(--red); }

/* ---------- 24. Search sheet ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: flex;
  flex-direction: column;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.sheet.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.sheet__top { display: flex; align-items: center; gap: 10px; padding: 12px 14px 10px 18px; border-bottom: 1px solid var(--line); }
.sheet__top .searchbox { flex: 1; background: var(--bg); }
.sheet__body { flex: 1; overflow-y: auto; padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); }
.sheet__label { margin-bottom: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sheet__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.sheet__results { display: grid; gap: 8px; }
.sresult { display: flex; align-items: center; gap: 12px; padding: 9px; border: 1px solid var(--line); border-radius: var(--r-md); }
.sresult img { width: 52px; height: 44px; object-fit: contain; mix-blend-mode: multiply; background: var(--bg); border-radius: 7px; }
.sresult__body { min-width: 0; flex: 1; }
.sresult__body h3 { font-size: 12.5px; font-weight: 600; }
.sresult__body p { font-size: 10.5px; color: var(--muted); }
.sresult .ic { width: 15px; height: 15px; color: var(--red); }

/* ---------- 25. Video modal ---------- */
.vmodal { position: fixed; inset: 0; z-index: 130; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 6, 9, .94); }
.vmodal.is-open { display: flex; }
.vmodal__box { width: 100%; max-width: 520px; }
.vmodal__close { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; }
.vmodal video { width: 100%; border-radius: var(--r-md); background: #000; }
.vmodal__title { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .8); text-align: center; }

/* ---------- 26. Toast / back to top ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + 88px + env(safe-area-inset-bottom));
  z-index: 140;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(90%, 420px);
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(16, 20, 26, .94);
  color: #fff;
  font-size: 12px;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
body.has-cta .toast { bottom: calc(var(--tab-h) + 132px + env(safe-area-inset-bottom)); }
.toast .ic { width: 15px; height: 15px; color: #6ee7a8; }

.to-top {
  position: fixed;
  left: max(16px, calc(50% - var(--app-max) / 2 + 16px));
  bottom: calc(var(--tab-h) + 18px + env(safe-area-inset-bottom));
  z-index: 55;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s;
  box-shadow: var(--shadow-sm);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top .ic { width: 16px; height: 16px; transform: rotate(-90deg); }

/* ---------- 27. Visitor chat ---------- */
.chat-fab {
  position: fixed;
  right: max(16px, calc(50% - var(--app-max) / 2 + 16px));
  bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom));
  z-index: 75;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 16px 30px -12px rgba(218, 37, 29, .75);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: transform .25s var(--ease), opacity .25s, visibility .25s, background .2s;
}
.chat-fab.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
body.has-cta .chat-fab { bottom: calc(var(--tab-h) + 76px + env(safe-area-inset-bottom)); }
.chat-fab:hover { background: var(--red-700); transform: translateY(-2px); }
.chat-fab .ic { width: 23px; height: 23px; }
.chat.is-open .chat-fab { opacity: 0; pointer-events: none; }
.chat-fab__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
}

.chat-panel {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 96;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--app-max);
  height: min(92svh, 760px);
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 -30px 70px -30px rgba(8, 12, 18, .55);
  transform: translate(-50%, 104%);
  transition: transform .42s var(--ease);
}
.chat-panel.is-open { transform: translate(-50%, 0); }

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 11px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.chat-head__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.chat-head__meta { flex: 1; min-width: 0; }
.chat-head__name { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.chat-head__status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
}
.chat-head__status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c3cad4;
}
.chat-head__status.is-online .dot { background: #21a366; box-shadow: 0 0 0 3px rgba(33, 163, 102, .12); }
.chat-head__status.is-waiting .dot { background: #e0a008; box-shadow: 0 0 0 3px rgba(224, 160, 8, .12); }
.chat-head__close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ink-2);
  flex: none;
}
.chat-head__close:hover { background: var(--bg); }

.chat-picker {
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  bottom: 0;
  z-index: 6;
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--line);
}
.chat-picker.is-open { display: flex; }
.chat-picker__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px 11px 18px;
  border-bottom: 1px solid var(--line);
}
.chat-picker__head b { display: block; font-size: 13.5px; }
.chat-picker__head small { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); }
.chat-picker__head .chat-head__close { margin-left: auto; }
.chat-picker__list { flex: 1; overflow-y: auto; padding: 8px 12px 20px; }
.chat-picker__item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-align: left;
  transition: background .2s, border-color .2s;
}
.chat-picker__item:hover { background: var(--bg-soft); border-color: var(--line); }
.chat-picker__item img {
  width: 56px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg);
  mix-blend-mode: multiply;
  flex: none;
}
.chat-picker__body { min-width: 0; flex: 1; }
.chat-picker__body b { display: block; font-size: 12.5px; line-height: 1.35; }
.chat-picker__body small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.chat-picker__item .ic { width: 16px; height: 16px; color: var(--red); }

.chat-product {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 230px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.chat-product:hover { border-color: var(--red); box-shadow: var(--shadow-sm); }
.chat-product img {
  width: 58px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg);
  mix-blend-mode: multiply;
  flex: none;
}
.chat-product__body { min-width: 0; flex: 1; }
.chat-product__body em {
  display: block;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}
.chat-product__body b {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.chat-product__body span { display: block; margin-top: 3px; font-size: 9.5px; color: var(--muted); }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 6px;
  background: #f5f6f8;
  overscroll-behavior: contain;
}
.chat-msgs { display: flex; flex-direction: column; }
.cmsg { display: flex; align-items: flex-end; gap: 7px; margin-bottom: 10px; }
.cmsg--visitor { justify-content: flex-end; }
.cmsg--system { justify-content: center; }
.cmsg__avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
  flex: none;
  margin-bottom: 2px;
}
.cmsg__stack { max-width: 80%; }
.cmsg__bubble {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  background: #fff;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  word-break: break-word;
  white-space: pre-wrap;
}
.cmsg--visitor .cmsg__bubble {
  border-color: var(--ink);
  border-radius: 14px;
  border-bottom-right-radius: 4px;
  background: var(--ink);
  color: #fff;
}
.cmsg--system .cmsg__stack { max-width: 92%; }
.cmsg--system .cmsg__bubble {
  padding: 2px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
}
.cmsg__img {
  display: block;
  max-width: 210px;
  max-height: 240px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg);
}
.cmsg__time { margin-top: 4px; font-size: 9px; color: var(--muted); }
.cmsg--visitor .cmsg__time { text-align: right; }

.chat-emoji {
  display: none;
  max-height: 186px;
  overflow-y: auto;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  background: #fff;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  overscroll-behavior: contain;
}
.chat-emoji.is-open { display: grid; }
.chat-emoji button {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 8px;
  font-size: 21px;
  line-height: 1;
  transition: background .15s;
}
.chat-emoji button:hover { background: var(--bg); }
.chat-emoji button img { width: 24px; height: 24px; display: block; }
.chat-emoji-btn { line-height: 1; }
.chat-emoji-btn .chat-emoji-img { width: 24px; height: 24px; display: block; }

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0 10px;
}
.chat-quick button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 10.5px;
  color: var(--ink-2);
  transition: border-color .2s, color .2s;
}
.chat-quick button:hover { border-color: var(--red); color: var(--red); }

.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 9px 10px 7px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-attach, .chat-send {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: none;
  transition: background .2s, color .2s, opacity .2s;
}
.chat-attach { background: var(--bg); color: var(--ink-2); }
.chat-attach:hover { background: var(--line); }
.chat-attach .ic { width: 18px; height: 18px; }
.chat-form textarea {
  flex: 1;
  min-height: 38px;
  max-height: 96px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--bg-soft);
  font-size: 16px;
  line-height: 1.4;
  resize: none;
  outline: 0;
  transition: border-color .2s, background .2s;
}
.chat-form textarea:focus { border-color: var(--ink); background: #fff; }
.chat-send { background: var(--red); color: #fff; }
.chat-send:hover { background: var(--red-700); }
.chat-send:disabled { background: #c9cfd8; box-shadow: none; }
.chat-send .ic { width: 17px; height: 17px; }
.chat-foot {
  padding: 0 14px calc(9px + env(safe-area-inset-bottom));
  background: #fff;
  font-size: 9px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}
.chat-offline-note {
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-2);
  text-align: center;
}

@media (max-width: 380px) {
  .chat-fab { width: 48px; height: 48px; }
  .chat-panel { height: 94svh; }
}

/* ---------- 28. Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 28. Wide screens: keep a phone-like frame ---------- */
@media (min-width: 600px) {
  body { padding: 0; background: radial-gradient(1200px 600px at 50% -10%, #f7f8fa, #e6e9ee 60%); }
  .app { min-height: 100vh; }
  .tabbar { border-radius: 0; box-shadow: 0 -10px 30px -24px rgba(15, 23, 42, .4); }
  .to-top { left: max(16px, calc(50% - var(--app-max) / 2 + 16px)); }
}

@media (max-width: 359px) {
  .h1 { font-size: 26px; }
  .hero__content .lead { font-size: 12.5px; }
  .stats__num { font-size: 26px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- 29. Page articles ---------- */
.page-article { display: grid; gap: 18px; }
.page-article .article-h2 { margin-top: 10px; }
.page-article .article-h3 { margin-top: 8px; }
.page-article .article-p { font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.page-article .article-figure { margin: 4px 0; border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.page-article .article-figure img { width: 100%; display: block; }
.page-article .article-figure figcaption { padding: 8px 12px; font-size: 11px; color: var(--muted); }
.page-article .article-video video { width: 100%; display: block; background: #000; border-radius: var(--radius); }
.page-article .article-video figcaption { padding: 8px 2px; font-size: 11px; color: var(--muted); }
.page-article .article-quote { padding: 18px; border-left: 3px solid var(--red); background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; }
.page-article .article-quote blockquote { font-size: 15px; line-height: 1.7; font-weight: 600; }
.page-article .article-quote cite { display: block; margin-top: 10px; font-size: 11px; color: var(--muted); font-style: normal; }
.page-article .article-cta { padding: 20px; border-radius: var(--radius); background: var(--bg); }
.page-article .article-cta p { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }

.msg-emoji { width: 18px; height: 18px; display: inline-block; vertical-align: -4px; }

/* ---------- 30. Product pagination ---------- */
.prod-pager { display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; margin-top: 24px; }
.prod-pager[hidden] { display: none !important; }
.prod-pager__btn { min-width: 36px; height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.prod-pager__btn:hover:not(:disabled) { background: var(--bg); }
.prod-pager__btn.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.prod-pager__btn:disabled { opacity: .38; cursor: default; }
.prod-pager__ellipsis { min-width: 24px; text-align: center; color: var(--muted); font-size: 12px; }
