/* 百格智宠 · 批发询盘站样式
   设计口径：B2B 源头供应站 —— 专业、信息密度高、以询盘转化为目标。
   支持 RTL（阿拉伯语），全部使用 CSS 逻辑属性。 */

:root {
  --ink: #14231f;
  --ink2: #2c4038;
  --muted: #5f736c;
  --muted2: #8b9c96;
  --line: #e4ded6;
  --line2: #efeae3;
  --bg: #ffffff;
  --bg2: #faf8f5;
  --bg3: #f3efe9;
  --brand: #0f766e;
  --brand-d: #0b5c56;
  --brand-l: #e6f3f1;
  --accent: #ef6c1a;
  --accent-l: #fff2e8;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(20, 35, 31, .04), 0 8px 24px rgba(20, 35, 31, .06);
  --shadow-h: 0 2px 6px rgba(20, 35, 31, .06), 0 16px 40px rgba(20, 35, 31, .1);
  --maxw: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans", "Noto Sans Arabic",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[dir="rtl"] body {
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Arabic Typesetting",
    "Geeza Pro", Arial, sans-serif;
  line-height: 1.85;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; font-weight: 700; letter-spacing: -.01em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; line-height: 1.45; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; flex: none; }
.logo .mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, var(--brand), #14a08f);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800;
}
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--muted2); letter-spacing: .02em; margin-top: -3px; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-inline-start: auto; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--ink2); padding: 6px 0; border-bottom: 2px solid transparent; transition: .16s; }
.nav-links a:hover, .nav-links a.on { color: var(--brand); border-bottom-color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--bg2); border: 1px solid var(--line); color: var(--ink2);
  padding: 7px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  font-family: inherit; transition: .16s;
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 132px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 5px;
  box-shadow: var(--shadow-h); display: none; z-index: 90;
}
.lang-menu.open { display: block; }
.lang-menu a { display: block; padding: 8px 11px; border-radius: 7px; font-size: 14px; color: var(--ink2); }
.lang-menu a:hover { background: var(--brand-l); color: var(--brand-d); }
.lang-menu a.on { background: var(--brand-l); color: var(--brand-d); font-weight: 600; }

.hamb { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamb i { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
  font-family: inherit; cursor: pointer; border: 1px solid transparent; transition: .18s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(239, 108, 26, .28); }
.btn-primary:hover { background: #dd5f11; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(239, 108, 26, .34); }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-d); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------- 首屏 ---------- */
.hero { padding: 72px 0 64px; background: linear-gradient(180deg, var(--bg2), #fff); border-bottom: 1px solid var(--line2); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--brand); background: var(--brand-l); padding: 6px 13px; border-radius: 99px;
  letter-spacing: .01em;
}
.hero h1 { font-size: clamp(28px, 3.4vw, 44px); margin: 18px 0 0; text-wrap: balance; }
.hero .sub { font-size: 17px; color: var(--muted); margin-top: 18px; max-width: 620px; }
.hero-btns { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.hero-badges span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); font-weight: 500; }
.hero-badges span::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: var(--brand-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230f766e'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/11px no-repeat;
}
.hero-visual { position: relative; }
.hero-visual .frame {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px;
  box-shadow: var(--shadow-h);
}
.hero-visual img { width: 100%; border-radius: 12px; }
.hero-visual .cap { font-size: 13px; color: var(--muted2); text-align: center; margin-top: 12px; }

/* ---------- 数据条 ---------- */
.stats { background: var(--ink); color: #fff; padding: 30px 0; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats b { display: block; font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stats span { font-size: 13.5px; color: rgba(255, 255, 255, .66); }

/* ---------- 通用区块 ---------- */
.sec { padding: 80px 0; }
.sec-alt { background: var(--bg2); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(24px, 2.4vw, 32px); text-wrap: balance; }
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 16.5px; }
.sec-head.center { margin-inline: auto; text-align: center; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-lead { font-size: 19px; font-weight: 600; color: var(--ink2); margin-bottom: 16px; }
.about-grid p + p { margin-top: 14px; }
.about-grid p { color: var(--muted); }
.about-list { display: grid; gap: 14px; }
.about-list li {
  display: flex; gap: 13px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px 18px;
}
.about-list .ic {
  width: 26px; height: 26px; border-radius: 8px; background: var(--brand-l); flex: none;
  display: grid; place-items: center; color: var(--brand); font-weight: 800; font-size: 13px;
}
.about-list span { font-size: 15px; color: var(--ink2); }

/* ---------- 优势卡 ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: .18s;
}
.card:hover { border-color: #cfd8d5; box-shadow: var(--shadow); }
.card .num {
  width: 38px; height: 38px; border-radius: 11px; background: var(--brand-l); color: var(--brand-d);
  display: grid; place-items: center; font-weight: 800; font-size: 15px; margin-bottom: 16px;
}
.card h3 { font-size: 17.5px; margin-bottom: 9px; }
.card p { font-size: 14.5px; color: var(--muted); }

/* ---------- 分类 ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.cat {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; transition: .18s;
}
.cat:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat .ic {
  width: 44px; height: 44px; border-radius: 13px; background: var(--accent-l); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 15px;
}
.cat h3 { font-size: 16.5px; margin-bottom: 6px; }
.cat p { font-size: 13.5px; color: var(--muted); }
.cat .cnt { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--brand); background: var(--brand-l); padding: 3px 10px; border-radius: 99px; }

/* ---------- 产品网格 ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .18s;
}
.pcard:hover { border-color: #cfd8d5; box-shadow: var(--shadow-h); transform: translateY(-3px); }
.pcard .ph { position: relative; background: var(--bg2); aspect-ratio: 1/1; display: grid; place-items: center; padding: 14px; }
.pcard .ph img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pcard .tag {
  position: absolute; top: 10px; inset-inline-start: 10px; font-size: 11.5px; font-weight: 700;
  background: rgba(255, 255, 255, .92); color: var(--brand-d); padding: 3px 9px; border-radius: 99px;
  border: 1px solid var(--line);
}
.pcard .bd { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; }
.pcard .m { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .02em; margin-bottom: 4px; }
.pcard h3 { font-size: 15px; margin-bottom: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.pcard .meta { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.pcard .moq { font-size: 12.5px; color: var(--brand); font-weight: 600; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }

/* ---------- 筛选 ---------- */
.chips { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 30px; }
.chip {
  padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink2); cursor: pointer; font-family: inherit;
  transition: .16s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- OEM 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.step .n {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-bottom: 14px;
}
.step h3 { font-size: 16px; margin-bottom: 7px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- 产品详情 ---------- */
.crumb { font-size: 13.5px; color: var(--muted2); padding: 20px 0 0; }
.crumb a:hover { color: var(--brand); }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; padding: 34px 0 0; align-items: start; }
.pd-media { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.pd-media img { width: 100%; max-height: 520px; object-fit: contain; mix-blend-mode: multiply; }
.pd-model { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.pd-grid h1 { font-size: 30px; margin: 10px 0 0; }
.pd-cat { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--brand-d); background: var(--brand-l); padding: 4px 12px; border-radius: 99px; font-weight: 600; }
.pd-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.pd-note { margin-top: 20px; padding: 16px 18px; background: var(--accent-l); border-radius: var(--radius-s); font-size: 14px; color: #8a3f0c; }
.pd-note b { display: block; margin-bottom: 4px; }

/* ---------- 产品区提示条：「站上仅为一部分，更多请联系我们」 ---------- */
.notice {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 15px 18px; margin-bottom: 26px;
  background: var(--accent-l); border: 1px solid #f6d8bd; border-radius: var(--radius-s);
}
.notice .ni { flex: none; display: grid; place-items: center; color: var(--accent); }
.notice p { flex: 1 1 240px; margin: 0; font-size: 14.5px; line-height: 1.6; color: #8a3f0c; }
.notice .btn { flex: none; margin-inline-start: auto; }   /* 逻辑属性：RTL 下自动镜像 */
.pd-grid .notice { margin: 20px 0 0; }
.pd-facts { margin-top: 24px; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.pd-facts .row { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 12px 16px; font-size: 14.5px; border-bottom: 1px solid var(--line2); }
.pd-facts .row:last-child { border-bottom: 0; }
.pd-facts .row:nth-child(odd) { background: var(--bg2); }
.pd-facts .k { color: var(--muted); }
.pd-facts .v { color: var(--ink); font-weight: 500; }

/* ---------- 规格块 ---------- */
.blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.block h3 { font-size: 17px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line2); }
.block ol { counter-reset: i; display: grid; gap: 11px; }
.block ol li { position: relative; padding-inline-start: 26px; font-size: 14.5px; color: var(--ink2); counter-increment: i; }
.block ol li::before {
  content: counter(i); position: absolute; inset-inline-start: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.block table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.block table td { padding: 9px 0; border-bottom: 1px solid var(--line2); vertical-align: top; }
.block table tr:last-child td { border-bottom: 0; }
.block table td:first-child { color: var(--muted); width: 46%; padding-inline-end: 12px; }
.block table td:last-child { color: var(--ink); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.faq details { border-bottom: 1px solid var(--line2); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  padding: 20px 24px; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--brand); font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--brand-d); }
.faq .a { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.contact-box .item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line2); }
.contact-box .item:last-of-type { border-bottom: 0; }
.contact-box .ic {
  width: 38px; height: 38px; border-radius: 11px; background: var(--brand-l); color: var(--brand-d);
  display: grid; place-items: center; flex: none;
}
.contact-box .k { font-size: 12.5px; color: var(--muted2); font-weight: 600; letter-spacing: .02em; }
.contact-box .v { font-size: 15px; font-weight: 600; color: var(--ink); word-break: break-all; }
.contact-box .v:hover { color: var(--brand); }

/* ---------- 页脚 ---------- */
.foot { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 56px 0 26px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.foot h4 { color: #fff; font-size: 14px; margin-bottom: 16px; letter-spacing: .04em; text-transform: uppercase; }
.foot a { display: block; padding: 5px 0; color: rgba(255, 255, 255, .72); }
.foot a:hover { color: #fff; }
.foot .brand-blk .logo { color: #fff; margin-bottom: 14px; }
.foot .brand-blk p { font-size: 14px; line-height: 1.75; }
.foot-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, .5);
}

/* ---------- 浮动 WhatsApp ---------- */
.fab {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 22px rgba(37, 211, 102, .42);
  transition: .18s;
}
.fab:hover { transform: scale(1.07); }
.fab svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- 语言切换页 ---------- */
.pick {
  min-height: 100vh; display: grid; place-items: center; background: var(--bg2); padding: 40px 20px;
}
.pick .box {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 44px 40px;
  max-width: 520px; width: 100%; text-align: center; box-shadow: var(--shadow);
}
.pick .box .mark { width: 52px; height: 52px; border-radius: 15px; margin: 0 auto 18px; font-size: 22px; }
.pick h1 { font-size: 24px; margin-bottom: 10px; }
.pick p { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.pick .langs { display: grid; gap: 10px; }
.pick .langs a {
  display: flex; align-items: center; justify-content: space-between; padding: 15px 20px;
  border: 1px solid var(--line); border-radius: 12px; font-size: 16px; font-weight: 600; transition: .16s;
}
.pick .langs a:hover { border-color: var(--brand); background: var(--brand-l); color: var(--brand-d); }
.pick .langs a small { font-weight: 400; color: var(--muted2); font-size: 13px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero h1 { font-size: 36px; }
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .cards3, .blocks { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 68px; inset-inline: 0; background: #fff; padding: 16px 24px 22px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 11px 0; border-bottom: 1px solid var(--line2); }
  .hamb { display: block; margin-inline-start: auto; }
  .nav-cta { margin-inline-start: 0; }
  .hero-grid, .about-grid, .pd-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 44px 0 48px; }
  .sec { padding: 56px 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stats-in { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: 29px; }
  .sec-head h2 { font-size: 25px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 13px; }
  .cats { grid-template-columns: 1fr; gap: 13px; }
  .cards3, .blocks, .steps { grid-template-columns: 1fr; }
  .pcard h3 { font-size: 14px; }
  .pd-facts .row { grid-template-columns: 1fr; gap: 2px; }
  .foot-grid { grid-template-columns: 1fr; }
  .btn { padding: 11px 18px; font-size: 14.5px; }
  .hero-visual .frame { padding: 12px; }
  .pick .box { padding: 32px 22px; }
  .notice { gap: 10px; padding: 14px; }
  .notice p { flex: 1 1 100%; }
  .notice .btn { width: 100%; margin-inline-start: 0; }
}
