:root {
  --ink: #111;
  --muted: #78756f;
  --line: #e7e4de;
  --bg: #fbfaf8;
  --card: #fff;
  --accent: #1f6f4a;
  --wa: #25d366;
  --max: 1240px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Arial, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- top strip ---------- */
.strip {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 12px;
}

/* ---------- language switch ---------- */
.head-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-sel {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2378756f'/%3E%3C/svg%3E") no-repeat right 9px center;
  color: var(--ink);
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 9px 26px 9px 12px;
  border-radius: 3px;
  cursor: pointer;
  max-width: 128px;
}
.lang-sel:hover { border-color: #c9c4ba; }
.lang-sel:focus { outline: 2px solid #d9d4c9; outline-offset: 1px; }

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 250, 248, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  letter-spacing: .22em;
  white-space: nowrap;
}
nav.cats { display: flex; gap: 22px; margin-left: 26px; }
nav.cats a {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
nav.cats a:hover, nav.cats a.on { color: var(--ink); border-color: var(--ink); }
.head-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--wa);
  color: #04331a;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.head-wa:hover { filter: brightness(.95); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  background: #14110e;
  color: #fff;
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}
.hero-in { position: relative; padding: 70px 0; max-width: 620px; }
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.12;
  margin: 0 0 16px;
}
.hero p { color: #d8d4cc; font-size: 15px; line-height: 1.7; margin: 0 0 28px; }
.hero .row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: .18s;
}
.btn-wa { background: var(--wa); color: #04331a; }
.btn-wa:hover { transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- section ---------- */
.section { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 26px;
  margin: 0;
}
.section-head span { color: var(--muted); font-size: 13px; }

/* ---------- filters ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .05em;
}
.chip:hover { border-color: #c9c4ba; color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
}
.card-img {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f1efea;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.05); }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  letter-spacing: .12em;
  padding: 4px 8px;
  text-transform: uppercase;
}
.card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card-code {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
  line-height: 1.2;
}
.card-name {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
}
.card-price { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; margin-top: auto; }
.card-price small { font-weight: 400; color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.card-price2 { font-size: 12px; color: #5f5b55; line-height: 1.5; }
.card-price2 small { color: #a09a91; font-size: 10px; }
.card-off {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(17, 17, 17, .82);
  color: #fff;
  font-size: 11px;
  letter-spacing: .04em;
  padding: 3px 7px;
  border-radius: 2px;
}
.card-cta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .06em;
  border-radius: 3px;
}
.card-cta:hover { background: var(--wa); border-color: var(--wa); color: #04331a; }

/* ---------- wholesale strip ---------- */
.strip-dark {
  background: #14110e;
  color: #fff;
  padding: 54px 0;
  text-align: center;
}
.strip-dark h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 12px;
}
.strip-dark p { color: #b9b4ab; font-size: 14px; line-height: 1.8; max-width: 620px; margin: 0 auto 26px; }

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust div {
  border: 1px solid var(--line);
  background: #fff;
  padding: 22px 18px;
  text-align: center;
}
.trust b { display: block; font-size: 13px; margin-bottom: 6px; }
.trust small { color: var(--muted); font-size: 12px; line-height: 1.6; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 110px;
  font-size: 13px;
  color: var(--muted);
}
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--ink); }

/* ---------- floating whatsapp ---------- */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--wa);
  color: #04331a;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.fab:hover { transform: translateY(-2px); }
.fab svg { flex: none; }

/* ---------- product page ---------- */
.crumb { font-size: 12px; color: var(--muted); padding: 20px 0 0; letter-spacing: .05em; }
.crumb a:hover { color: var(--ink); }

.pd {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  padding: 28px 0 60px;
}
.pd-img { border: 1px solid var(--line); background: #f1efea; position: relative; }
.pd-img > img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs .thumb {
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  width: 78px;
  height: 78px;
  overflow: hidden;
  opacity: .65;
}
.thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .thumb.on, .thumbs .thumb:hover { opacity: 1; border-color: var(--ink); }

.pd-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--muted);
  border: 1px dashed var(--line);
  padding: 7px 12px;
  margin-bottom: 14px;
}
.pd-code button {
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 0;
}
.pd h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.2;
  margin: 0 0 14px;
}
.pd-price { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.pd-price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.pd-wholesale {
  display: inline-block;
  background: #f2f7f3;
  border: 1px solid #d6e6db;
  color: var(--accent);
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 3px;
  margin: 10px 0 22px;
}
.opt { margin-bottom: 18px; }
.opt-label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.opt-vals { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-vals button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 16px;
  font-size: 13px;
  border-radius: 3px;
}
.opt-vals button.on { border-color: var(--ink); background: var(--ink); color: #fff; }

.pd-cta { display: grid; gap: 10px; margin: 26px 0 22px; }
.pd-cta .btn-wa { justify-content: center; padding: 17px; font-size: 15px; }
.pd-cta .alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-cta .alt a {
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
  padding: 13px;
  font-size: 13px;
  border-radius: 3px;
}
.pd-cta .alt a:hover { border-color: var(--ink); }

.spec { border-top: 1px solid var(--line); padding-top: 18px; }
.spec li {
  list-style: none;
  font-size: 13.5px;
  line-height: 1.85;
  color: #3d3a35;
  padding-left: 18px;
  position: relative;
}
.spec li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 5px;
  height: 5px;
  background: var(--ink);
  border-radius: 50%;
}
.spec ul { margin: 0; padding: 0; }

/* ---------- mobile bottom bar ---------- */
.mbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  gap: 10px;
}
.mbar a {
  flex: 1;
  text-align: center;
  padding: 13px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 3px;
  background: var(--wa);
  color: #04331a;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .pd { grid-template-columns: 1fr; gap: 28px; }
  nav.cats { display: none; }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .head-in { height: 58px; gap: 12px; }
  .logo { font-size: 17px; letter-spacing: .16em; }
  .head-wa span { display: none; }
  .head-wa { padding: 9px 12px; }
  .lang-sel { max-width: 96px; font-size: 12px; padding: 8px 22px 8px 9px; }
  .hero { min-height: 380px; }
  .fab { display: none; }
  .mbar { display: flex; }
  .section { padding: 38px 0; }
  .card-cta { display: none; }
}

/* ---------- 小工具类 ---------- */
.spec .muted { margin-top: 14px; color: #78756f; }

/* ---------- 阿拉伯语 RTL ---------- */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .head-right { margin-left: 0; margin-right: auto; }
html[dir="rtl"] nav.cats { margin-left: 0; margin-right: 26px; }
html[dir="rtl"] .lang-sel {
  background-position: left 9px center;
  padding: 9px 12px 9px 26px;
}
html[dir="rtl"] .badge { left: auto; right: 10px; }
html[dir="rtl"] .fab { right: auto; left: 18px; }
html[dir="rtl"] .hero-in { text-align: right; }
html[dir="rtl"] .spec li { padding-left: 0; padding-right: 18px; }
html[dir="rtl"] .spec li::before { left: auto; right: 0; }
html[dir="rtl"] .section-head,
html[dir="rtl"] .foot-in { direction: rtl; }
html[dir="rtl"] .pd-code { direction: ltr; justify-content: flex-end; }
html[dir="rtl"] .card-code { letter-spacing: 0; }


/* ---------- 阶梯价 ---------- */
.tiers {
  border: 1px solid var(--line);
  background: #fff;
  margin: 18px 0 14px;
}
.tier-head {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 9px 14px;
  background: #faf9f6;
  border-bottom: 1px solid var(--line);
}
.tier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.tier-row:last-child { border-bottom: 0; }
.tier-row.hot { background: #f3f9f5; }
.tier-row b { font-size: 17px; letter-spacing: -.01em; }
.tier-row em { font-style: normal; color: var(--accent); font-size: 12px; margin-left: 6px; font-weight: 700; }
.tier-row small { color: var(--muted); font-size: 11px; }

.pd-promo {
  background: #fff6e8;
  border: 1px solid #f0dcbd;
  color: #8a5a00;
  font-size: 12.5px;
  line-height: 1.6;
  padding: 10px 12px;
  border-radius: 3px;
  margin-bottom: 20px;
}

/* ---------- 首页优惠块 ---------- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 780px;
  margin: 0 auto 22px;
}
.promo-card {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 4px;
  padding: 18px 16px;
  text-align: center;
}
.promo-card b { display: block; color: #fff; font-size: 16px; margin-bottom: 5px; }
.promo-card span { color: #b5b0a7; font-size: 12px; line-height: 1.5; }
.promo-note {
  display: inline-block;
  font-size: 12.5px;
  color: #f3e6cf;
  border: 1px dashed rgba(255, 255, 255, .28);
  padding: 8px 14px;
  border-radius: 3px;
  margin-bottom: 22px;
}

@media (max-width: 720px) {
  .promo-grid { grid-template-columns: 1fr; gap: 8px; max-width: 360px; }
  .promo-card { padding: 13px 12px; }
  .promo-card b { font-size: 15px; }
  .tier-row { padding: 11px 12px; font-size: 13px; }
  .tier-row b { font-size: 16px; }
  .thumbs .thumb { width: 62px; height: 62px; }
  .card-price2 { font-size: 11px; }
}

/* ---------- 搜索 ---------- */
.catalog-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.catalog-bar .filters { margin-bottom: 0; flex: 1 1 auto; }
.q {
  flex: 0 0 220px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  letter-spacing: .02em;
}
.q::placeholder { color: #a9a49c; }
.q:focus { outline: none; border-color: #c9c4ba; }
@media (max-width: 720px) {
  .catalog-bar { gap: 10px; }
  .q { flex: 1 1 100%; }
}

/* ---------- 搜索无结果 ---------- */
.no-result {
  grid-column: 1 / -1;
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 手机滑动指示点 ---------- */
.dots {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  display: none;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.is-touch .dots { display: flex; }
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .65);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
  transition: width .2s, background .2s;
}
.dot.on { background: #fff; width: 16px; border-radius: 3px; }

/* ---------- 加入询价单按钮 ---------- */
.card-add {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font-size: 19px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s, background .15s, color .15s;
}
.card:hover .card-add, .card-add:focus { opacity: 1; }
@media (hover: none) { .card-add { opacity: 1; } }
.card-add.added { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn-add-inq {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 3px;
  cursor: pointer;
}
.btn-add-inq:hover { background: var(--ink); color: #fff; }
.btn-add-inq.added { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- 批发价锁定 ---------- */
.ws-lock { filter: blur(5px); user-select: none; display: inline-block; transition: filter .25s; }
body.ws-revealed .ws-lock { filter: none; }
.reveal-btn {
  width: 100%;
  margin: -4px 0 18px;
  padding: 9px 12px;
  border: 1px dashed var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12.5px;
  border-radius: 3px;
  cursor: pointer;
}
.reveal-btn:hover { color: var(--ink); border-color: #c9c4ba; }

/* ---------- 询价单 ---------- */
.inq-bar { position: fixed; left: 18px; bottom: 18px; z-index: 70; display: none; }
.inq-bar.on { display: block; }
.inq-btn {
  display: flex; align-items: center; gap: 9px;
  background: var(--ink); color: #fff;
  border: 0; border-radius: 999px;
  padding: 13px 20px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  cursor: pointer;
}
.inq-btn:hover { transform: translateY(-1px); }
.inq-count {
  background: var(--wa); color: #04331a;
  border-radius: 999px; min-width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
}

.inq-modal {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(17, 17, 17, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.inq-card {
  background: #fff; border-radius: 8px;
  width: 100%; max-width: 420px;
  padding: 18px;
  font-size: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.inq-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.inq-x { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.inq-list { max-height: 320px; overflow: auto; border-top: 1px solid var(--line); }
.inq-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.inq-code { font-size: 12px; letter-spacing: .08em; color: var(--muted); width: 92px; flex: none; }
.inq-meta { flex: 1; font-size: 12.5px; color: #4a4742; }
.inq-del { border: 0; background: none; color: #b3261e; font-size: 12px; cursor: pointer; }
.inq-foot { display: flex; gap: 8px; margin-top: 14px; }
.inq-send { flex: 1; text-align: center; background: var(--wa); color: #04331a; font-weight: 700; padding: 13px; border-radius: 4px; }
.inq-clear { border: 1px solid var(--line); background: #fff; padding: 13px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.inq-hint { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; }

.inq-toast {
  position: fixed; left: 50%; bottom: 96px;
  transform: translate(-50%, 10px);
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 999px;
  font-size: 13px; opacity: 0; z-index: 95;
  transition: opacity .2s, transform .2s;
}
.inq-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .inq-bar { left: 12px; right: 12px; bottom: 72px; }
  .inq-btn { width: 100%; justify-content: center; }
}

/* ---------- 信任区 ---------- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.proof {
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.proof img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #efece6; }
.proof-body { padding: 14px 16px 16px; }
.proof b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.proof span { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
@media (max-width: 720px) {
  .proof-grid { grid-template-columns: 1fr; gap: 12px; }
  .proof img { aspect-ratio: 16/9; }
}
