/* ==========================================================================
   Xiamen Speedup Trading — front-end stylesheet
   Design language mirrors the original shoesbywholesale.com layout:
   white 95px header, 16:9 hero slider, PRODUCT tabs, dark supply-chain band,
   ABOUT US split + stats, SALES NETWORK, NEWS grid, navy subscribe band,
   charcoal footer.
   ========================================================================== */

:root {
  --blue: #0b50f2;
  --blue-dark: #0a45d0;
  --navy: #10224f;
  --ink: #111111;
  --body: #333333;
  --muted: #6b7280;
  --soft: #f7f8fb;
  --line: #e6e8ec;
  --dark: #1b1b1b;
  --container: 1200px;
  --header-h: 95px;
  --radius: 6px;
  --gut: 48px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.85;
  color: var(--body);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gut); }
.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; }
/* 无障碍跳转链接：用 clip 隐藏而不是 left:-9999px（RTL 页面会把文档撑宽、初始视口落到空白区） */
.skip { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; margin: 0; clip: auto; background: #fff; padding: 8px 14px; z-index: 999; box-shadow: 0 4px 16px rgba(0,0,0,.15); border-radius: 8px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #fff;
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 2px 14px rgba(0, 0, 0, .08); }
.header-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.brand { flex: 0 0 auto; display: flex; align-items: center; }
.brand img { height: 40px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: stretch; }
.main-nav a {
  display: block;
  padding: 0 26px;
  line-height: var(--header-h);
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--blue); }
.main-nav a.is-active { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.burger { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: #222; margin: 4px 0; }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; padding: 8px 0 18px; }
.mobile-nav ul { padding: 0 24px; }
.mobile-nav a { display: block; padding: 12px 0; font-size: 15px; border-bottom: 1px solid #f1f2f5; }
.mobile-nav-foot { padding: 16px 24px 0; display: flex; gap: 16px; align-items: center; }

/* language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: #fff;
  color: #333;
  font-size: 12px;
  cursor: pointer;
}
.lang-btn:hover { border-color: var(--blue); color: var(--blue); }
.lang-btn .globe { opacity: .8; }
.lang-current { letter-spacing: .06em; font-weight: 600; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 176px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(16, 24, 40, .14);
  padding: 6px;
  z-index: 120;
}
.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
}
.lang-item:hover { background: var(--soft); }
.lang-item.is-active { color: var(--blue); }
.lang-code { font-weight: 700; font-size: 11px; letter-spacing: .06em; width: 22px; }
.lang-name { flex: 1; }

/* ---------------------------------------------------------------- hero */
.hero-slider { position: relative; background: #eef1f5; }
.hero-slide { display: none; }
.hero-slide.is-active { display: block; }
.hero-slide img { width: 100%; height: auto; display: block; }
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 38px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.hero-dots button {
  width: 13px;
  height: 4px;
  border: 0;
  border-radius: 4px;
  background: rgba(230, 230, 230, .4);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, width .2s ease;
}
.hero-dots button.is-active { background: #fff; width: 26px; }

/* ------------------------------------------------------- section basics */
.sec { padding: 62px 0 0; }
.sec-title {
  font-size: 26px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink);
}

/* product band */
.sec-product { position: relative; padding: 72px 0 0; overflow: hidden; }
.p-tabs { display: flex; flex-wrap: wrap; margin-top: 40px; }
.p-tab {
  position: relative;
  padding: 14px 0 16px;
  margin-right: 64px;
  border: 0;
  background: none;
  font-size: 17px;
  color: #333;
  cursor: pointer;
}
.p-tab:hover { color: var(--blue); }
.p-tab.is-active { color: var(--blue); }
.p-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue);
}

.p-slider { position: relative; margin-top: 61px; }
.p-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.p-card { text-align: center; display: block; }
.p-card figure { margin: 0; }
.p-card img { width: 320px; height: 320px; margin: 0 auto; object-fit: contain; }
.p-card .sku {
  display: block;
  margin-top: 43px;
  font-size: 12px;
  letter-spacing: 2.4px;
  color: #8a8f98;
  text-transform: uppercase;
}
.p-card:hover .sku { color: var(--blue); }
.p-arrow {
  /* 原站的左右箭头是 0 尺寸的隐藏节点，这里保持一致：不显示 */
  display: none;
  position: absolute;
  top: 34%;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #666;
  cursor: pointer;
  place-items: center;
  font-size: 15px;
  z-index: 3;
}
.p-arrow:hover { border-color: var(--blue); color: var(--blue); }
.p-arrow.prev { left: -18px; }
.p-arrow.next { right: -18px; }
.p-empty { color: var(--muted); }

/* PRODUCT 区块底部蓝色拱形 + Learn more（对应原站的大椭圆过渡） */
.p-arc {
  position: relative;
  height: 150px;
  margin-top: 62px;
}
.p-arc::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1050px;
  width: 1610px;
  height: 1200px;
  margin-left: -805px;
  border-radius: 50%;
  background: #0d4ff5;
}
.p-arc a {
  position: absolute;
  left: 50%;
  top: 34px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 14px;
  letter-spacing: .4px;
  z-index: 2;
}
.p-arc a i {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
}

/* -------------------------------------------------------- dark band */
.band-dark {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 634px;
  color: #fff;
  background: #0a1622 center / cover no-repeat;
  isolation: isolate;
}
.band-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 12, 22, .78) 0%, rgba(4, 12, 22, .45) 60%, rgba(4, 12, 22, .3) 100%);
  z-index: -1;
}
.band-dark-in { padding: 122px var(--gut) 0; }
.band-dark h2 {
  color: #fff;
  font-size: 24px;
  line-height: 1.5;
  max-width: 430px;
}
.band-dark p {
  margin-top: 18px;
  max-width: 592px;
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .9);
}
.dark-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
  padding: 0 var(--gut) 92px;
}
.dark-tab {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 84px;
  padding: 0 26px;
  border: 0;
  background: rgba(12, 24, 38, .66);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease;
}
.dark-tab.is-active { background: var(--blue); }
.dark-tab:hover { background: rgba(13, 79, 245, .82); }
.dark-tab .num { font-size: 25px; font-weight: 700; letter-spacing: 1px; }
.dark-tab .lbl { font-size: 18px; }

/* tab panels */
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ------------------------------------------------------------- about */
.sec-about {
  background: #f7f8fb url("/assets/img/about-bg.jpg") center / cover no-repeat;
}
.about-in {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
  padding: 78px var(--gut) 0;
}
.about-copy .sec-title { margin-bottom: 22px; }
.about-copy p { max-width: 430px; font-size: 14px; line-height: 1.95; color: #41454d; }
.about-copy p + p { margin-top: 14px; }
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 11px 22px;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-size: 14px;
}
.btn-arrow:hover { background: var(--blue-dark); }
.about-media img { width: 100%; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 58px var(--gut) 63px;
}
.stat strong { display: block; font-size: 46px; line-height: 1.1; font-weight: 700; color: #16181d; }
.stat strong em { font-style: normal; font-size: 20px; font-weight: 700; vertical-align: super; margin-left: 2px; }
.stat span { display: block; margin-top: 8px; font-size: 15px; color: #41454d; }

/* ---------------------------------------------------------- network */
.sec-network {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 800px;
  padding: 90px 0;
  overflow: hidden;
}
/* 点阵世界地图：大幅、偏右、出血到右边缘（与原站一致） */
.sec-network::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1750px;
  height: 893px;
  margin-left: -600px;
  transform: translateY(-50%);
  background: url("/assets/img/map-world.jpg") center / contain no-repeat;
  z-index: 0;
  pointer-events: none;
}
.network-in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 660px 1fr;
  gap: 40px;
  align-items: center;
}
.network-copy .sec-title { margin-bottom: 20px; }
.network-copy > p { max-width: 640px; font-size: 17px; line-height: 1.85; color: #4a4f57; }
.n-tabs { display: flex; gap: 34px; margin-top: 34px; }
.n-tab {
  padding: 0 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 17px;
  color: #333;
  cursor: pointer;
}
.n-tab.is-active { color: var(--blue); border-color: var(--blue); }
.n-panel { display: none; }
.n-panel.is-active { display: block; }
.n-note { margin-top: 18px; max-width: 520px; font-size: 12px; line-height: 1.85; color: #6b7280; }
.network-media { display: none; }

/* ------------------------------------------------------------- news */
.sec-news { background: var(--soft); padding: 124px 0 65px; }
.news-feature {
  display: grid;
  grid-template-columns: 393px 1fr;
  margin-top: 31px;
  min-height: 269px;
}
.nf-media { display: flex; }
.nf-media img { width: 100%; height: 100%; min-height: 269px; object-fit: cover; }
.nf-copy {
  background: var(--blue);
  color: #fff;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nf-copy h3 { color: #fff; font-size: 17px; }
.nf-copy p { margin-top: 14px; font-size: 12px; line-height: 1.9; color: rgba(255, 255, 255, .92); }
.nf-copy .nf-more { margin-top: 20px; font-size: 12px; color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.news-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 40px; }
.news-card { background: #fff; min-height: 270px; padding: 34px 30px; display: flex; flex-direction: column; }
.news-card h3 { font-size: 17px; line-height: 1.55; }
.news-card p { margin-top: 12px; font-size: 13px; line-height: 1.85; color: #6b7280; flex: 1; }
.news-card time { display: none; }
.news-card:hover h3 { color: var(--blue); }

/* -------------------------------------------------------- subscribe */
.band-sub {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #0c1725 center / cover no-repeat;
  isolation: isolate;
}
.band-sub::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 20, 34, .55) 0%, rgba(9, 20, 34, .18) 55%, rgba(9, 20, 34, 0) 100%);
  z-index: 0;
}
.band-sub-in { padding: 95px var(--gut) 90px; }
.band-sub h2 { color: #fff; font-size: 30px; letter-spacing: 1.2px; text-transform: uppercase; }
.band-sub .band-sub-in { position: relative; z-index: 1; }
.band-sub p { margin-top: 10px; font-size: 12px; color: rgba(255, 255, 255, .82); }
.sub-form {
  display: grid;
  grid-template-columns: 426fr 395fr 243fr;
  gap: 28px;
  margin-top: 28px;
  align-items: start;
}
.sub-form input {
  height: 44px;
  width: 100%;
  padding: 0 14px;
  border: 0;
  border-radius: 3px;
  font-size: 13px;
  color: #222;
}
.sub-form input::placeholder { color: #8b8b8b; }
.sub-form .btn-sub {
  height: 44px;
  border: 0;
  border-radius: 3px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.sub-form .btn-sub:hover { background: var(--blue-dark); }
.sub-form .form-msg { grid-column: 1 / -1; font-size: 13px; margin: 0; }
.form-msg.ok { color: #8ef0b0; }
.form-msg.err { color: #ffb4b4; }

/* ----------------------------------------------------------- footer */
.site-footer { background: var(--dark); color: #c9ccd1; padding: 62px 0; }
.footer-in {
  display: grid;
  grid-template-columns: 300px 1fr 200px;
  gap: 40px;
  align-items: start;
  padding-bottom: 0;
}
.footer-brand img { height: 40px; width: auto; }
.social { display: flex; gap: 8px; margin-top: 22px; }
.social .soc {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2c2c2c;
  color: #d8dade;
  display: grid;
  place-items: center;
}
.social .soc:hover { background: var(--blue); color: #fff; }
.footer-info p { font-size: 14px; line-height: 2.1; color: #b9bdc4; }
.footer-info .fi { display: inline-block; width: 18px; color: #8d9299; font-size: 12px; }
.footer-info a:hover { color: #fff; }
.footer-nav ul { display: grid; gap: 8px; }
.footer-nav a { font-size: 14px; color: #e6e7ea; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: none; }
.footer-bottom p { font-size: 12px; color: #8d9299; }

section[id], div[id] { scroll-margin-top: 105px; }

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 30px;
  bottom: 34px;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 80;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue-dark); }

/* ------------------------------------------------------ page banner */
.page-banner {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(9, 22, 40, .58); z-index: -1; }
.page-banner h1, .page-banner h2 {
  color: #fff;
  font-size: 28px;
  letter-spacing: 6px;
  text-transform: uppercase;
  text-align: center;
  padding: 0 24px;
}
.page-banner p { color: rgba(255, 255, 255, .86); font-size: 14px; text-align: center; margin-top: 10px; }
.page-banner-in { text-align: center; padding: 40px 0; }

/* breadcrumbs */
.crumbs { padding: 16px 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #8a8f98; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #c3c7cd; }
.crumbs a { color: #5b6068; }
.crumbs a:hover { color: var(--blue); }

/* ------------------------------------------------ inner page shell
   .ip-* = inner page。容器 1140 / 1440 视口下左右各 150，与原站一致。 */
.section-head { margin-bottom: 8px; }
.section-sub { margin-top: 10px; max-width: 720px; color: var(--muted); font-size: 14px; }
.section-soft { background: var(--soft); }
.section { padding: 62px 0; }

.ip-wrap { width: min(1140px, 100% - 48px); margin: 0 auto; }
.ip-banner { position: relative; margin: 0 7px; height: 516px; overflow: hidden; background: #f2f3f5; }
.ip-banner img { width: 100%; height: 100%; object-fit: cover; object-position: left center; display: block; }
[dir="rtl"] .ip-banner img { object-position: right center; }
.ip-banner-copy { position: absolute; left: 5.1%; top: 30px; right: 46%; }
.ip-banner-copy h1 {
  font-size: clamp(40px, 7.5vw, 108px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -2px;
  color: #1a7fd4;
}
.ip-rule { display: block; width: 66px; height: 3px; background: #d7a066; margin: 8px 0 24px; }
.ip-banner-copy .cat-hero-sub { font-size: clamp(15px, 1.7vw, 24px); color: #2a2f37; letter-spacing: -.2px; }
.ip-banner-copy .cat-hero-note { font-size: clamp(13px, 1.35vw, 19px); color: #8f969e; margin-top: 10px; }

/* --------------------------------------------------------- about page */
.ip-band { background: #f7f8fb; padding: 90px 0 0; }
.ip-h1 {
  font-size: 36px;
  line-height: 54px;
  font-weight: 700;
  color: #101010;
  letter-spacing: 0;
  text-transform: uppercase;
}
[dir="rtl"] .ip-h1 { text-transform: none; }
.ip-copy { margin-top: 21px; }
.ip-copy p { font-size: 13px; line-height: 19.5px; color: #212121; }
.ip-copy p + p { margin-top: 20px; }
.ip-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 21px;
  margin-top: 51px;
  width: min(1116px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.ip-photos img { width: 100%; height: 326px; object-fit: cover; display: block; }

.ip-stats { background: #f7f8fb; padding: 66px 0 130px; }
.ip-stats-row.stats-row { grid-template-columns: repeat(4, 1fr); padding: 0; }
.ip-stats .stat { text-align: center; }
.ip-stats .stat strong { font-size: 58px; line-height: 87px; font-weight: 700; color: #333; letter-spacing: 0; }
.ip-stats .stat strong em { font-size: 28px; line-height: 42px; font-weight: 400; color: #101010; font-style: normal; margin-left: 3px; }
.ip-stats .stat span { display: block; font-size: 18px; line-height: 27px; color: #101010; margin-top: 0; }

.ip-certs { background: #fff; padding: 91px 0 140px; }
.ip-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(1118px, 100%);
  margin: 53px auto 0;
}
.ip-tab {
  font-size: 24px;
  line-height: 36px;
  color: #333;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
  font-family: inherit;
}
.ip-tab:hover { color: var(--blue); }
.ip-tab.is-on { color: var(--blue); border-bottom-color: var(--blue); }
.ip-pane { margin-top: 19px; }
.ip-pane[hidden] { display: none; }
.ip-pane img { width: 100%; max-width: 1135px; height: auto; display: block; margin: 0 auto; }

.ip-banner--cat { height: 522px; }

/* ------------------------------------------------------ products page */
.cat-layout {
  display: grid;
  grid-template-columns: 188px 784px;
  justify-content: space-between;
  width: min(1040px, 100% - 48px);
  padding: 43px 0 70px;
}
.cat-side { font-size: 14px; }
.cat-search { position: relative; }
.cat-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #8d949c; }
.cat-search input {
  width: 193px;
  height: 40px;
  border: 0;
  border-radius: 20px;
  background: #f4f4f5;
  padding: 0 14px 0 38px;
  font-size: 13px;
  color: #333;
  font-family: inherit;
}
.cat-search input::placeholder { color: #9aa0a8; }
.cat-search input:focus { outline: 2px solid rgba(11, 80, 242, .28); outline-offset: 1px; }

.cat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: #333;
  text-align: left;
  cursor: pointer;
  margin-top: 29px;
}
.cat-heading--sub { margin-top: 0; padding: 18px 0; border-top: 1px solid #ececec; font-size: 16px; }
.cat-heading--sub:first-of-type { margin-top: 30px; }
.cat-heading i { font-style: normal; font-weight: 400; color: #8d949c; font-size: 15px; }

/* ---- 目录筛选项（Style / ArtNo / Sole …）---- */
.cat-filters { margin: 0; border: 0; }
.cat-f-body { padding: 2px 0 12px; }
.cat-f-opt { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 15px; line-height: 1.45; color: #333; cursor: pointer; }
.cat-f-opt:hover { color: var(--blue); }
.cat-f-n { margin-left: auto; padding: 0 6px 0 8px; font-style: normal; font-size: 12px; line-height: 1.7; color: #9aa1aa; }
.cat-f-opt.is-off { color: #b9bec6; cursor: default; }
.cat-f-opt.is-off:hover { color: #b9bec6; }
.cat-f-opt.is-off input { border-color: #e3e6ea; background: #f7f8fa; cursor: default; }
.cat-f-opt.is-off .cat-f-n { color: #c6cad1; }
.cat-g-n { font-style: normal; font-size: 12px; color: #9aa1aa; }
.cat-f-opt input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 15px;
  height: 15px;
  margin: 3px 0 0;
  border: 1px solid #c9ccd2;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: background .15s, border-color .15s;
}
.cat-f-opt input:checked { background: var(--blue); border-color: var(--blue); }
.cat-f-opt input:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cat-f-opt input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.cat-f-opt.is-hidden { display: none; }
.cat-f-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 6px 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 15px;
  color: #333;
  cursor: pointer;
}
.cat-f-more:hover { color: var(--blue); }
.cat-f-more svg { transition: transform .2s; }
.cat-f-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.cat-f-clear { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--blue); text-decoration: underline; }
.cat-f-apply {
  margin-top: 12px;
  padding: 9px 18px;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
.cat-num { font-style: normal; font-weight: 400; font-size: 14px; color: #8d949c; margin-left: 8px; }

.cat-tree { margin-top: 18px; padding: 0; list-style: none; }
.cat-g { position: relative; }
.cat-g + .cat-g { margin-top: 11px; }
.cat-g-h {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  line-height: 21px;
  color: #333;
  padding: 0;
  max-width: 157px;
}
.cat-g-h:hover { color: var(--blue); }
.cat-g-h.is-on { color: var(--blue); }
.cat-subs { margin: 11px 0 0 19px; padding: 0; list-style: none; }
.cat-subs[hidden] { display: none; }
.cat-subs li + li { margin-top: 11px; }
.cat-subs a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  line-height: 21px;
  color: #333;
}
.cat-subs a:hover, .cat-subs a.is-on { color: var(--blue); }
.cat-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #c6c9cd;
  background: #fff;
}
.cat-g-h.is-on .cat-dot, .cat-subs a.is-on .cat-dot { border-color: var(--blue); box-shadow: inset 0 0 0 3px var(--blue); }
.cat-tog {
  position: absolute;
  right: 0;
  top: 0;
  width: 18px;
  height: 21px;
  line-height: 21px;
  padding: 0;
  border: 0;
  background: none;
  color: #5f656d;
  font-size: 17px;
  font-family: inherit;
  cursor: pointer;
}
.cat-tog:hover { color: var(--blue); }

.cat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; height: 36px; }
.cat-head h2 { font-size: 24px; line-height: 36px; font-weight: 700; color: #333; letter-spacing: 0; }
.cat-sort { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 21px; color: #333; padding-top: 7px; }
.cat-sort select {
  border: 0;
  background: none;
  font-size: 14px;
  color: #333;
  font-family: inherit;
  padding: 0 4px 0 0;
  cursor: pointer;
}
.cat-sort select:focus-visible { outline: 2px solid rgba(11, 80, 242, .3); }

.prod-grid { display: grid; grid-template-columns: repeat(3, 231px); gap: 65px 45px; margin-top: 22px; justify-content: space-between; }
.prod-card { text-align: center; }
.prod-media { width: 231px; height: 231px; background: #fff; }
.prod-media img { width: 100%; height: 100%; object-fit: contain; }
.prod-sku {
  margin-top: 28px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  color: #000;
  text-transform: none;
}
.prod-card:hover .prod-sku { color: var(--blue); }
.prod-body h3, .prod-hl, .prod-body .link-arrow { display: none; }

/* pagination */
.pg { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 46px; font-size: 13px; color: #6b7280; }
.pg a, .pg .pg-n {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e4e8;
  background: #fff;
  color: #3c4149;
  font-size: 13px;
}
.pg a:hover { border-color: var(--blue); color: var(--blue); }
.pg .is-on { border-color: var(--blue); color: var(--blue); }
.pg .pg-arrow.is-off { color: #b7bcc4; pointer-events: none; }
.pg .pg-gap { padding: 0 2px; color: #9aa0a8; }
.pg-total, .pg-to { margin: 0 6px; white-space: nowrap; }
.pg-input { width: 46px; height: 28px; border: 1px solid #e2e4e8; text-align: center; font-size: 13px; font-family: inherit; }
.pg-go {
  height: 28px;
  padding: 0 12px;
  border: 1px solid #e2e4e8;
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  color: #3c4149;
  cursor: pointer;
}
.pg-go:hover { border-color: var(--blue); color: var(--blue); }
.empty { color: var(--muted); padding: 40px 0; }

/* -------------------------------------------------- product detail */
.pd-section { padding: 46px 0 30px; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.pd-gallery .pd-main { background: #f8f8f9; }
.pd-gallery .pd-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumbs button { width: 62px; height: 62px; border: 1px solid var(--line); background: #fff; padding: 2px; cursor: pointer; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.pd-copy h1 { font-size: 24px; letter-spacing: .3px; }
.pd-copy .prod-sku { margin: 8px 0 18px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 14px; vertical-align: top; }
.spec-table tr:nth-child(odd) { background: #f7f8fb; }
.spec-table th { width: 150px; font-weight: 700; color: #2a2f37; }
.spec-table td { color: #4a4f57; }
.pd-cta { display: flex; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-ghost { border-color: var(--line); color: #41454d; background: #fff; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }

.pd-notice { margin-top: 26px; border-left: 3px solid var(--blue); background: #f7f8fb; padding: 14px 16px; font-size: 12px; color: #6b7280; }
.pd-notice strong { color: #2a2f37; }

.pd-detail { display: grid; gap: 18px; margin-top: 46px; }
.pd-detail img { width: 100%; }

.pack-sec { padding: 56px 0; background: #fff; }
.pack-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 26px; }
.pack-icon { display: flex; gap: 14px; align-items: flex-start; }
.pack-icon .ico { width: 46px; height: 46px; flex: 0 0 46px; color: var(--blue); }
.pack-icon h3 { font-size: 14px; letter-spacing: .6px; text-transform: uppercase; }
.pack-icon p { font-size: 12.5px; color: #6b7280; margin-top: 4px; }
.pack-shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.pack-shots img { width: 100%; height: 150px; object-fit: cover; }

.pack-spec { margin-top: 34px; }
.pack-spec h3 { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; text-align: center; }
.pack-spec-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.pack-spec-row div { border: 1px solid var(--line); background: #fff; padding: 12px; text-align: center; font-size: 12px; color: #4a4f57; }
.pack-spec-row img { width: 100%; height: 96px; object-fit: contain; }

.faq-sec { background: var(--soft); padding: 60px 0 70px; }
.faq-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.faq-head h2 { font-size: 26px; letter-spacing: 1.2px; }
.faq-tags { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 16px; font-size: 11px; color: #6b7280; }
.faq-tags span { display: flex; align-items: center; gap: 6px; }
.faq-list { margin-top: 30px; display: grid; gap: 22px; }
.faq-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.faq-item .qn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}
.faq-item h3 { font-size: 14.5px; }
.faq-item p { margin-top: 6px; font-size: 13px; color: #6b7280; line-height: 1.9; }

/* ------------------------------------------------------- contact page */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; padding: 56px var(--gut) 40px; }
.contact-info h2 { font-size: 26px; letter-spacing: 1px; margin-bottom: 30px; }
.info-list { display: grid; gap: 30px; }
.info-list li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: center; }
.info-ico {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
}
.info-ico svg { width: 24px; height: 24px; }
.info-list h3 { font-size: 16px; margin-bottom: 4px; }
.info-list p { font-size: 14px; color: #5b6068; }
.map-card { margin: 34px 0 0; border: 1px solid var(--line); overflow: hidden; }
.map-card img { width: 100%; height: 330px; object-fit: cover; }
.map-card figcaption { font-size: 12px; color: #6b7280; padding: 10px 12px; background: #f7f8fb; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.map-card figcaption a { color: var(--blue); }

.contact-form-wrap h2 { font-size: 20px; }
.contact-form-wrap > p { margin-top: 8px; font-size: 13px; color: #6b7280; }
.contact-form { margin-top: 22px; display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; color: #41454d; }
.contact-form input, .contact-form textarea {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid rgba(11, 80, 242, .25); border-color: var(--blue); }
.hp { position: absolute; left: -9999px; }

/* ------------------------------------------------------------- blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: #fff; }
.post-card-link { display: block; height: 100%; }
.post-media img { width: 100%; height: 210px; object-fit: cover; }
.post-body { padding: 20px 22px 24px; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #9aa0a8; }
.tag { display: inline-block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); background: rgba(11, 80, 242, .08); padding: 2px 8px; border-radius: 3px; }
.post-body h3, .post-body h2 { font-size: 17px; line-height: 1.5; margin-top: 10px; }
.post-body p { margin-top: 10px; font-size: 13px; color: #6b7280; }
.post-card:hover h3, .post-card:hover h2 { color: var(--blue); }
.post-list { display: grid; gap: 26px; }
.post-card.wide .post-card-link { display: grid; grid-template-columns: 380px 1fr; gap: 26px; align-items: stretch; background: #fff; }
.post-card.wide .post-media img { height: 100%; min-height: 220px; }
.link-arrow { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--blue); }

.article .container.narrow { max-width: 860px; }
.article-head { padding: 20px 0 24px; }
.article-head h1 { font-size: 30px; line-height: 1.35; margin-top: 12px; }
.article-head .lead { margin-top: 12px; color: #5b6068; font-size: 15px; }
.article-meta { margin-top: 14px; font-size: 12px; color: #9aa0a8; display: flex; gap: 8px; align-items: center; }
.article-cover img { width: 100%; }
.article-body { padding: 28px 0 10px; font-size: 15px; line-height: 1.95; color: #333; }
.article-body h2 { font-size: 22px; margin: 32px 0 12px; }
.article-body h3 { font-size: 18px; margin: 26px 0 10px; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; list-style: disc; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--blue); text-decoration: underline; }
.article-body img { margin: 18px 0; }
.article-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0 50px; border-top: 1px solid var(--line); margin-top: 20px; font-size: 13px; }
.share { display: flex; align-items: center; gap: 10px; color: #6b7280; }
.share a { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; }

/* ---------------------------------------------------------- 404 page */
.notfound { padding: 90px 0 110px; text-align: center; }
.notfound .code { font-size: 72px; font-weight: 700; color: var(--blue); line-height: 1; }
.notfound h1 { font-size: 24px; margin: 12px 0; }

/* --------------------------------------------------------- RTL tweaks */
[dir="rtl"] .main-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .footer-info .fi { margin-left: 4px; }
[dir="rtl"] .spec-table th, [dir="rtl"] .spec-table td { text-align: right; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .p-arrow.prev { left: auto; right: -18px; }
[dir="rtl"] .p-arrow.next { right: auto; left: -18px; }
[dir="rtl"] .page-banner h1, [dir="rtl"] .page-banner h2 { letter-spacing: 0; }
[dir="rtl"] .pd-notice { border-left: 0; border-right: 3px solid var(--blue); }
[dir="rtl"] .contact-form input, [dir="rtl"] .contact-form textarea, [dir="rtl"] .filter-search input { text-align: right; }

/* -------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .main-nav a { padding: 0 16px; }
  .p-arrow.prev { left: 0; }
  .p-arrow.next { right: 0; }
}

@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .main-nav { display: none; }
  .burger { display: block; }
  .mobile-nav:not([hidden]) { display: block; }
  .header-actions { margin-left: auto; }
  .brand img { height: 34px; }

  .about-in, .network-in, .split, .pd-grid, .contact-wrap, .news-feature, .footer-in {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 26px; padding: 40px var(--gut) 50px; }
  .p-track { grid-template-columns: repeat(2, 1fr); }
  .news-row, .prod-grid, .post-grid, .photo-strip, .pack-icons, .pack-shots, .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sub-form { grid-template-columns: 1fr; }
  .cat-layout { grid-template-columns: 1fr; gap: 34px; width: min(100% - 48px, 784px); }
  /* 移动端侧栏放到商品列表上方，否则要滑过 20 个产品才够得着筛选 */
  .cat-side { order: -1; }
  .cat-filters .cat-heading--sub:first-of-type { margin-top: 8px; }
  .cat-f-opt { font-size: 14px; padding: 6px 0; }
  .prod-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
  .prod-media { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .cat-heading { margin-top: 22px; }
  .ip-banner { height: clamp(220px, 46vw, 420px); }
  .ip-banner-copy { right: 8%; top: 18px; }
  .ip-rule { margin: 6px 0 14px; }
  .ip-band { padding-top: 54px; }
  .ip-photos { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .ip-photos img { height: 200px; }
  .ip-stats { padding: 40px 0 70px; }
  .ip-certs { padding-top: 54px; }
  .ip-tabs { margin-top: 32px; }
  .sec-network { min-height: 0; padding: 64px 0 70px; }
  .sec-network::before {
    width: 1100px;
    height: 561px;
    margin-left: -420px;
    opacity: .55;
  }
  .network-in { grid-template-columns: 1fr; gap: 0; }
  .network-copy > p, .n-note { max-width: none; }
  .post-card.wide .post-card-link { grid-template-columns: 1fr; }
  .faq-head { flex-direction: column; gap: 20px; }
}

@media (max-width: 640px) {
  .sec-title { font-size: 21px; }
  .band-dark h2 { font-size: 21px; }
  .band-dark-in { padding: 56px var(--gut) 0; }
  .dark-tabs { grid-template-columns: 1fr; gap: 6px; padding: 0 var(--gut) 44px; }
  .dark-tab { height: 64px; padding: 0 18px; }
  .dark-tab .num { font-size: 20px; }
  .dark-tab .lbl { font-size: 16px; }
  .band-dark { min-height: 0; }
  .band-dark-in { padding: 56px var(--gut) 32px; }
  .band-dark p { font-size: 13px; max-width: none; }
  .band-dark h2 { max-width: none; }
  .p-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .p-card { flex: 0 0 82%; scroll-snap-align: center; }
  .p-arrow { display: none; }
  .p-slider { margin-top: 24px; }
  .p-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .p-card .sku { margin-top: 22px; }
  .p-arc { height: 110px; margin-top: 40px; }
  .p-arc::before { width: 1200px; height: 900px; margin-left: -600px; bottom: -790px; }
  .p-arc a { top: 22px; font-size: 13px; }
  .p-tabs { flex-wrap: nowrap; overflow-x: auto; margin-right: -24px; padding-right: 24px; }
  .p-tab { margin-right: 26px; font-size: 15px; white-space: nowrap; }
  .news-row, .prod-grid, .post-grid, .photo-strip, .pack-icons, .pack-shots, .cert-grid, .pack-spec-row, .field-row {
    grid-template-columns: 1fr;
  }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .ip-h1 { font-size: 24px; line-height: 34px; }
  .ip-copy p { font-size: 13px; }
  .ip-photos { grid-template-columns: 1fr; }
  .ip-photos img { height: 220px; }
  .ip-tab { font-size: 15px; line-height: 26px; }
  .ip-banner-copy h1 { letter-spacing: -1px; }
  .ip-stats-row.stats-row { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .ip-stats .stat strong { font-size: 38px; line-height: 54px; }
  .ip-stats .stat strong em { font-size: 18px; line-height: 28px; }
  .ip-stats .stat span { font-size: 13px; line-height: 20px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .stat strong { font-size: 32px; }
  .stat strong em { font-size: 15px; }
  .stat span { font-size: 13px; }
  .band-sub h2 { font-size: 22px; }
  .page-banner { min-height: 190px; }
  .page-banner h1 { font-size: 20px; letter-spacing: 3px; }
  .article-head h1 { font-size: 23px; }
  .pd-copy h1 { font-size: 20px; }
  .spec-table th { width: 110px; }
}

/* ------------------------------------------------------ online chat widget */
#sdchat { position: fixed; right: 20px; bottom: 24px; z-index: 99998; font-family: var(--font); }
#sdchat-fab {
  width: 58px; height: 58px; border: 0; border-radius: 50%;
  background: var(--blue); color: #fff; cursor: pointer;
  box-shadow: 0 6px 18px rgba(11, 80, 242, .45);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
#sdchat-fab:hover { transform: scale(1.06); }
#sdchat-fab.is-open { transform: scale(.92); }
#sdchat-panel[hidden] { display: none !important; }
#sdchat-panel {
  position: absolute; right: 0; bottom: 70px; width: 340px;
  max-width: calc(100vw - 40px); height: 480px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
  display: flex; flex-direction: column;
}
.sdchat-head { background: var(--blue); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.sdchat-avatar { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; letter-spacing: .02em; flex: none; }
.sdchat-head-t { flex: 1; min-width: 0; }
.sdchat-name { font-weight: 800; font-size: 15px; }
.sdchat-status { font-size: 11px; opacity: .92; display: flex; align-items: center; gap: 5px; }
.sdchat-status i { width: 7px; height: 7px; border-radius: 50%; background: #7cff8f; display: inline-block; }
#sdchat-close { background: none; border: 0; color: #fff; cursor: pointer; font-size: 18px; line-height: 1; padding: 4px; }
.sdchat-tabs { display: flex; border-bottom: 1px solid #eee; }
.sdchat-tab { flex: 1; padding: 10px; border: 0; background: none; cursor: pointer; font: 700 13px var(--font); color: #999; border-bottom: 2px solid transparent; }
.sdchat-tab.is-on { color: var(--blue); border-bottom-color: var(--blue); }
.sdchat-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.sdchat-body[hidden] { display: none !important; }
.sdchat-body[data-body="contact"] { display: block; overflow-y: auto; padding: 16px; }
.sdchat-msgs { flex: 1; overflow-y: auto; padding: 14px; background: #f7f8fb; }
.sdchat-msg { display: flex; margin-bottom: 10px; }
.sdchat-msg.visitor { justify-content: flex-end; }
.sdchat-bubble { max-width: 78%; border-radius: 14px; padding: 8px 12px; font-size: 13px; line-height: 1.5; background: #fff; color: #1a1a1a; border: 1px solid #e7eaf1; }
.sdchat-msg.visitor .sdchat-bubble { background: var(--blue); color: #fff; border-color: var(--blue); margin-left: auto; }
.sdchat-msg.bot .sdchat-bubble { background: #eef3ff; color: #1e3a8a; border-color: #dbe6ff; }
.sdchat-who { font-size: 10px; opacity: .65; margin-bottom: 2px; }
.sdchat-inputrow { padding: 10px; border-top: 1px solid #eee; display: flex; gap: 8px; background: #fff; }
#sdchat-input { flex: 1; border: 1px solid #e3e6ee; border-radius: 20px; padding: 9px 14px; font: 13px var(--font); outline: none; min-width: 0; }
#sdchat-input:focus { border-color: var(--blue); }
#sdchat-send { width: 38px; height: 38px; flex: none; border: 0; border-radius: 50%; background: var(--blue); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#sdchat-send:hover { background: var(--blue-dark); }
.sdchat-tip { margin: 0 0 14px; font-size: 13px; color: #666; }
.sdchat-chans { display: grid; grid-template-columns: 1fr; gap: 9px; }
.sdchat-chan { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #e7eaf1; border-radius: 12px; text-decoration: none; color: #333; min-width: 0; }
.sdchat-chan-tx { display: grid; min-width: 0; }
.sdchat-chan-tx b { font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.sdchat-chan-tx em { font-style: normal; font-size: 10.5px; color: #8a92a2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdchat-chan:hover { border-color: var(--blue); text-decoration: none; }
.sdchat-chan-ic { width: 32px; height: 32px; border-radius: 8px; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.sdchat-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid #eee; font-size: 12px; color: #999; display: grid; gap: 4px; }
#sdchat-qr { position: absolute; right: 0; bottom: 70px; width: 340px; max-width: calc(100vw - 40px); background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .22); padding: 20px; text-align: center; }
#sdchat-qr[hidden] { display: none; }
.sdchat-qr-head { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; font-size: 14px; color: #222; }
#sdchat-qr img { width: 200px; height: 200px; object-fit: contain; border: 1px solid #eee; border-radius: 12px; }
#sdchat-qr p { margin: 12px 0 0; font-size: 12px; color: #999; }
#sdchat-qr-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; cursor: pointer; font-size: 16px; color: #999; }

/* 客服浮窗出现后，返回顶部按钮上移避让 */
body.has-chat .to-top { bottom: 96px; }

@media (max-width: 640px) {
  #sdchat { right: 14px; bottom: 16px; }
  #sdchat-panel { height: min(480px, calc(100vh - 90px)); }
  body.has-chat .to-top { bottom: 88px; }
}
.sdchat-hours { display: block; margin-top: 5px; font-size: 11.5px; color: #9aa1af; }

/* product rich description (admin editor) */
.pd-desc { margin-top: 26px; padding-top: 22px; border-top: 1px solid #e7eaf1; font-size: 14px; line-height: 1.8; color: #3a3f4a; }
.pd-desc h2 { font-size: 18px; margin: 18px 0 8px; }
.pd-desc h3 { font-size: 15px; margin: 14px 0 6px; }
.pd-desc p { margin: 0 0 10px; }
.pd-desc img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0; }
.pd-desc a { color: var(--blue); text-decoration: underline; }
.pd-desc ul, .pd-desc ol { padding-left: 22px; margin: 0 0 10px; }
.pd-desc blockquote { margin: 12px 0; padding: 8px 16px; border-left: 3px solid var(--blue); background: #f6f8fd; }
