/* ============================================================
   HAOAO Pet — Static Multi-language Manufacturer Site
   Brand: deep green #1B4D2E  |  Accent: warm sand gold
   Supports LTR + RTL (Arabic)
   ============================================================ */

:root {
  --green-900: #143a23;
  --green-800: #1B4D2E;
  --green-700: #236138;
  --green-600: #2E5E2E;
  --green-100: #e4efe7;
  --sand: #c9a24b;
  --sand-soft: #f3e9d4;
  --ink: #1f2a24;
  --ink-soft: #4d5b53;
  --paper: #ffffff;
  --bg: #f6f8f7;
  --line: #e3e9e5;
  --danger: #c0392b;
  --shadow: 0 10px 30px rgba(20, 58, 35, 0.08);
  --radius: 14px;
  --maxw: 1180px;
  --nav-h: 156px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* 移动端适配兜底：禁止整页横向溢出，长词/长链接自动换行 */
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-break: break-word;
}

img { max-width: 100%; display: block; }
a { color: var(--green-800); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--green-900); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: var(--paper); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .eyebrow {
  display: inline-block; color: var(--sand); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; font-size: 13px; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(26px, 3vw, 36px); }
.section-head p { color: var(--ink-soft); }

/* ---- Brand sub-directory (product center) ---- */
.brand-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 0; font: inherit;
}
.brand-badge {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 18px;
  background: var(--green-700);
  border: 3px solid transparent;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  transition: transform .15s ease, border-color .15s ease;
}
.brand-badge-all { background: var(--green-800); font-size: 16px; }
.brand-badge-logo { background: #fff; overflow: hidden; width: 56px; height: 56px; border-radius: 10px; padding: 0; }
.brand-badge-logo img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 6px; box-sizing: border-box; }
.brand-item:hover .brand-badge { transform: translateY(-2px); }
.brand-item.active .brand-badge { border-color: var(--green-800); }
.brand-item .bname { font-size: 12px; color: var(--ink-soft); }
.brand-item.active .bname { color: var(--green-800); font-weight: 700; }
.p-brand { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; }
.p-brand .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- Mission statement ---------- */
.mission {
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 800;
  color: var(--green-800);
  letter-spacing: .02em;
  padding: 18px 0 6px;
}
[dir="rtl"] .mission { letter-spacing: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: .2s; text-decoration: none;
}
.btn-primary { background: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-700); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--green-800); border-color: var(--green-800); }
.btn-ghost:hover { background: var(--green-100); text-decoration: none; }
.btn-light { background: #fff; color: var(--green-800); }
.btn-light:hover { background: var(--sand-soft); text-decoration: none; }

/* ---------- Header / Nav ---------- */
#site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); position: relative; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--green-900); font-size: 19px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px; background: var(--green-800);
  color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 900;
}
.brand .logo-img { height: 138px; width: auto; max-width: 720px; display: block; filter: invert(1); }
.brand small { display: block; font-size: 10px; letter-spacing: .18em; color: var(--ink-soft); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  padding: 9px 14px; border-radius: 9px; color: var(--ink); font-weight: 600; font-size: 15px;
}
.nav-links a:hover { background: var(--green-100); text-decoration: none; }
.nav-links a.active { color: var(--green-800); background: var(--green-100); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-select {
  position: relative;
}
.lang-select select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 30px 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.lang-select select option { color: var(--ink); background: #fff; }
.lang-select::after {
  content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--ink-soft); font-size: 11px;
}
.hamburger { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--green-900); }

/* 首页：导航与 Hero 深绿一体化 */
body[data-page="home"] #site-header {
  background: linear-gradient(135deg, var(--green-900), var(--green-700) 70%);
  border-bottom: none; backdrop-filter: none;
}
body[data-page="home"] #site-header .brand,
body[data-page="home"] #site-header .brand small { color: #fff; }
body[data-page="home"] #site-header .nav-links a { color: rgba(255,255,255,.92); }
body[data-page="home"] #site-header .nav-links a:hover { background: rgba(255,255,255,.14); }
body[data-page="home"] #site-header .nav-links a.active { background: rgba(255,255,255,.18); color: #fff; }
body[data-page="home"] #site-header .lang-select select { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
body[data-page="home"] #site-header .lang-select select option { color: var(--ink); background: #fff; }
body[data-page="home"] #site-header .lang-select::after { color: rgba(255,255,255,.8); }
body[data-page="home"] #site-header .hamburger { color: #fff; }
/* logo 在深绿底上加白色圆角衬底，保证清晰度 */
body[data-page="home"] #site-header .brand .logo-img { padding: 0; filter: none; }

/* ---------- Hero (左文右图，与深绿导航融为一体) ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(201,162,75,.35), transparent 60%),
    linear-gradient(135deg, var(--green-900), var(--green-700) 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .15;
  background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero .container { position: relative; padding: 48px 20px 76px; }
.hero .eyebrow { color: var(--sand-soft); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.hero h1 { color: #fff; font-size: clamp(28px, 4.2vw, 50px); max-width: 92%; }
.hero p.lead { color: rgba(255,255,255,.9); font-size: clamp(16px, 1.6vw, 19px); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* 左文右图布局 */
.hero-grid { display: grid; grid-template-columns: 42% 58%; gap: 40px; align-items: center; }
.hero-left { min-width: 0; }
.hero-right { position: relative; }
.hero-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.35); display: block; }
/* Hero 轮播图（纯 CSS 自动切换，无需 JS，SEO/子目录页同样生效） */
.hero-carousel { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.hero-carousel .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: heroFade 24s infinite; }
.hero-carousel .slide:nth-child(1) { animation-delay: 0s; }
.hero-carousel .slide:nth-child(2) { animation-delay: 6s; }
.hero-carousel .slide:nth-child(3) { animation-delay: 12s; }
.hero-carousel .slide:nth-child(4) { animation-delay: 18s; }
@keyframes heroFade { 0% { opacity: 0; } 3% { opacity: 1; } 22% { opacity: 1; } 25% { opacity: 0; } 100% { opacity: 0; } }
/* Hero 品牌 logo（放大版，左上角，深绿底/图片上用白色版保证清晰） */
.hero-logo { position: absolute; left: 18px; top: 18px; width: 156px; height: auto; z-index: 3; filter: drop-shadow(0 5px 14px rgba(0,0,0,.5)); }
.hero-badge {
  position: absolute; right: -14px; bottom: -14px; width: 116px; height: 116px; border-radius: 50%;
  background: var(--sand); color: var(--green-900);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 11px; font-weight: 800; letter-spacing: 1px; line-height: 1.5;
  box-shadow: 0 8px 22px rgba(0,0,0,.25); animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -54px; position: relative; z-index: 2; }
.stat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; box-shadow: var(--shadow);
}
.stat-card .num { font-size: 30px; font-weight: 800; color: var(--green-800); }
.stat-card .lbl { color: var(--ink-soft); font-size: 14px; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20,58,35,.12); }

.feature { text-align: center; }
.feature .ic {
  width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 14px;
  background: var(--green-100); color: var(--green-800); display: grid; place-items: center; overflow: hidden;
}
.feature .ic img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ---------- Product cards ---------- */
.product-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.product-thumb {
  height: auto; aspect-ratio: 1 / 1; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  overflow: hidden;
}
.product-thumb svg { width: 78px; height: 78px; opacity: .92; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* 有图时改用白底，contain 完整显示整张图（含 800×800 方图），letterbox 不露绿底 */
.product-thumb.has-img { background: #fff; padding: 6px; box-sizing: border-box; }
.product-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { font-size: 18px; margin: 0; }
.product-body .desc { color: var(--ink-soft); font-size: 14px; flex: 1; }
.spec { font-size: 13px; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 10px; }
.product-body .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- Value proposition (首页) ---------- */
.value-grid { display: grid; grid-template-columns: 34% 66%; gap: 34px; align-items: center; }
.value-left h2 { font-size: clamp(24px, 3vw, 34px); color: var(--green-900); margin: 0 0 14px; }
.value-left .rule { width: 46px; height: 3px; background: var(--sand); margin: 0 0 16px; }
.value-left p { color: var(--ink-soft); margin: 0 0 22px; max-width: 360px; }
.value-cta { border-color: var(--green-700); color: var(--green-700); }
.value-cta:hover { background: var(--green-100); }
.value-pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pill { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; text-align: center; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.pill:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20,58,35,.12); }
.pill .ic { width: 66px; height: 66px; border-radius: 50%; background: var(--green-700); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 14px; box-shadow: 0 10px 22px rgba(20,58,35,.30); }
.pill .ic svg { width: 28px; height: 28px; }
.pill b { display: block; color: var(--green-900); font-size: 15px; margin-bottom: 4px; }
.pill small { color: var(--ink-soft); font-size: 12.5px; line-height: 1.5; display: block; }

/* 区块标题左标题右链接（产品区等） */
.sec-head.split { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; max-width: none; margin-bottom: 30px; }
.sec-head.split h2 { font-size: clamp(26px, 3vw, 36px); color: var(--green-900); margin: 0; }
.view-all { color: var(--green-700); font-weight: 700; font-size: 14px; white-space: nowrap; }

/* 产品卡分类标签（首页产品网格） */
.p-cat { position: absolute; left: 10px; top: 10px; background: var(--sand); color: #3a2e10; font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 999px; z-index: 2; }

/* ---------- News ---------- */
.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
/* 新闻缩略图：固定 1:1 正方形（以最左卡片为标准尺寸），原图无论比例都用 cover 裁切填满，保证所有卡片同尺寸 */
.news-thumb { position: relative; width: 100%; aspect-ratio: 1 / 1; background: linear-gradient(135deg, var(--green-100), var(--sand-soft)); display: block; color: var(--green-800); overflow: hidden; }
.news-thumb.has-img { height: auto; }
.news-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-modal-img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 10px; margin: 0 0 18px; }
/* 详情画廊：所有图统一固定高度 + cover，避免原图比例不一导致大小参差 */
.news-modal-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.news-modal-gallery .news-modal-img { object-fit: cover; max-height: none; height: 240px; margin: 0; background: #f4f6f3; border-radius: 10px; }
.news-body { padding: 18px 20px; }
.news-meta { font-size: 12.5px; color: var(--sand); font-weight: 700; letter-spacing: .04em; }
.news-body h3 { font-size: 17px; margin: 6px 0; }
.news-body p { color: var(--ink-soft); font-size: 14px; }

/* ---------- News article detail modal ---------- */
.news-card.has-detail { cursor: pointer; }
.news-more { display: inline-block; margin-top: 10px; color: var(--green-800); font-size: 14px; font-weight: 700; }
.news-modal-mask { position: fixed; inset: 0; background: rgba(12, 32, 20, .58); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 24px 16px; }
.news-modal-mask.open { display: flex; }
.news-modal { background: var(--paper); border-radius: var(--radius); max-width: 760px; width: 100%; max-height: 84vh; overflow-y: auto; position: relative; padding: 38px 42px 30px; box-shadow: 0 24px 60px rgba(12, 32, 20, .3); }
.news-modal-close { position: absolute; top: 10px; inset-inline-end: 14px; background: none; border: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink-soft); padding: 4px 8px; }
.news-modal-close:hover { color: var(--green-800); }
.news-modal-content h2 { font-size: 21px; margin: 8px 0 18px; line-height: 1.5; }
.news-modal-content .news-meta { display: block; margin-bottom: 4px; }
.news-modal-content p { color: var(--ink); line-height: 1.95; font-size: 15.5px; margin: 0 0 15px; text-align: justify; }
@media (max-width: 720px) {
  .news-modal { padding: 30px 22px 24px; }
  .news-modal-content h2 { font-size: 18px; }
  .news-modal-content p { font-size: 14.5px; }
}
.read-more { font-weight: 700; font-size: 14px; }

/* ---------- Timeline ---------- */
.timeline { max-width: 760px; margin: 0 auto; border-inline-start: 3px solid var(--green-100); padding-inline-start: 26px; }
.tl-item { position: relative; padding-bottom: 28px; }
.tl-item::before {
  content: ""; position: absolute; inset-inline-start: -34px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--green-800); border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--green-100);
}
.tl-item .yr { font-weight: 800; color: var(--green-800); }
.tl-item p { color: var(--ink-soft); margin: 4px 0 0; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; }
.contact-info li { list-style: none; margin-bottom: 16px; display: flex; gap: 12px; }
.contact-info .ic { color: var(--green-800); flex: none; }
.contact-info strong { display: block; color: var(--green-900); }
.contact-info span { color: var(--ink-soft); }
.contact-info li div span { white-space: pre-line; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 15px;
  font-family: inherit; background: #fff; color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green-100); border-color: var(--green-800); }
.field .err { color: var(--danger); font-size: 12.5px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err { display: block; }
.form-note { font-size: 13px; color: var(--ink-soft); }
.form-success {
  display: none; background: var(--green-100); color: var(--green-900);
  border: 1px solid var(--green-800); border-radius: 10px; padding: 14px 16px; font-weight: 600; margin-top: 14px;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
#site-footer { background: var(--green-900); color: rgba(255,255,255,.82); padding: 48px 0 26px; margin-top: 20px; }
#site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
#site-footer a { color: rgba(255,255,255,.82); }
#site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 26px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 30px; padding-top: 18px; font-size: 13px; color: rgba(255,255,255,.6); text-align: center; }

/* ---------- Breadcrumb / page hero ---------- */
.page-hero { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #fff; padding: 56px 0 48px; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.page-hero p { color: rgba(255,255,255,.88); max-width: 640px; }

/* ---------- OEM / ODM page ---------- */
.oem-step { text-align: left; }
.oem-step-n { display: block; font-size: 34px; font-weight: 800; color: var(--green-800); opacity: .22; line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.oem-step h3 { font-size: 18px; }
.oem-step p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.cta-band { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #fff; padding: 64px 0; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); }
.cta-band p { color: rgba(255,255,255,.88); max-width: 620px; margin: 14px auto 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: -30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-img { aspect-ratio: 1 / 1; }
  .value-grid { grid-template-columns: 1fr; gap: 24px; }
  .value-pills { grid-template-columns: repeat(2, 1fr); }
  /* 平板/窄屏（721–980px）：logo 与导航栏适度收缩，避免 138px 过大 */
  .nav-inner { height: 92px; }
  .brand .logo-img { height: 78px; max-width: 400px; }
}
@media (max-width: 720px) {
  .nav-inner { height: 72px; }
  .brand .logo-img { height: 56px; max-width: 200px; }
  .nav-links {
    position: absolute; top: 72px; inset-inline: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px; gap: 2px; display: none;
    box-shadow: 0 12px 24px rgba(0,0,0,.10); z-index: 60;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; color: var(--ink); }
  /* 展开后的下拉菜单固定用白底深字，覆盖首页的"白字"规则，避免白屏 */
  body[data-page="home"] #site-header .nav-links a { color: var(--ink); }
  body[data-page="home"] #site-header .nav-links a:hover { background: var(--green-100); }
  body[data-page="home"] #site-header .nav-links a.active { background: var(--green-100); color: var(--green-800); }
  .hamburger { display: block; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-badge { width: 92px; height: 92px; font-size: 9px; right: -8px; bottom: -8px; }
  .hero-logo { width: 116px; left: 12px; top: 12px; }
  .value-pills { grid-template-columns: 1fr 1fr; }
}

/* ---------- RTL adjustments ---------- */
[dir="rtl"] body { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, var(--font); }
[dir="rtl"] .hero::before { background-position: 100% 0; }

/* sub-category row (litter) */
.sub-item {
  background: none; border: none; cursor: pointer; font: inherit;
  font-size: 15px; color: var(--ink-soft); padding: 4px 2px;
  border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.sub-item:hover { color: var(--green-800); }
.sub-item.active { color: var(--green-800); font-weight: 700; border-bottom-color: var(--green-800); }

/* ---------- 产品多图画廊 ---------- */
.product-thumb { position: relative; }
.p-imgcount {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
}
.gal-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15, 25, 19, .88);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.gal-mask.open { display: flex; }
.gal-box { max-width: 920px; width: 100%; }
.gal-close {
  display: block; margin: 0 0 10px auto;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .15); color: #fff;
  border: none; font-size: 20px; cursor: pointer;
}
.gal-close:hover { background: rgba(255, 255, 255, .3); }
.gal-main { position: relative; display: flex; align-items: center; justify-content: center; }
.gal-main img {
  max-width: 100%; max-height: 70vh; object-fit: contain;
  border-radius: 12px; background: #fff; display: block;
}
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: #1c2b22;
  border: none; font-size: 24px; line-height: 1; cursor: pointer;
}
.gal-nav:hover { background: #fff; }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }
.gal-thumbs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.gal-thumbs img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
  cursor: pointer; opacity: .55; border: 2px solid transparent;
}
.gal-thumbs img.on { opacity: 1; border-color: var(--sand); }

/* ---------- About Us: 两个并排 1:1 轮播相册 ---------- */
.about-albums {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* 工厂图片 / 装箱图片 左右并排一行 */
  gap: 28px;
  margin-bottom: 40px;
}
.about-album {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-album-head {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--sand);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 4px;
}
/* 每个相册：一次显示 1 张（1:1 正方形）的轮播，其余通过切换 / 圆点 / 自动轮播呈现 */
.about-album-view {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
}
.about-album-track {
  display: flex;
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.about-album-frame {
  flex: 0 0 100%;
  display: flex;
}
.about-album-cell {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1 / 1;           /* 单张 1:1 正方形 */
  overflow: hidden;
  cursor: pointer;
}
.about-album-cell + .about-album-cell { border-left: 2px solid #fff; }
.about-album-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.about-album-cell:hover img { transform: scale(1.05); }
.about-album-cell.empty { cursor: default; background: rgba(255,255,255,.08); }
.about-album-placeholder {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  display: grid; place-items: center;
  padding: 24px;
  text-align: center;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--sand);
  opacity: .9;
}
.about-album-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: none; cursor: pointer;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  color: var(--green-800);
  font-size: 24px; line-height: 1;
  box-shadow: 0 4px 12px rgba(12,32,20,.18);
  transition: background .15s ease, transform .15s ease;
}
.about-album-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.about-album-nav.prev { left: 10px; }
.about-album-nav.next { right: 10px; }
.about-album-dots {
  display: flex; gap: 8px; justify-content: center;
}
.about-album-dot {
  width: 9px; height: 9px; padding: 0;
  border: none; border-radius: 50%; cursor: pointer;
  background: var(--green-100);
  transition: background .15s ease, transform .15s ease;
}
.about-album-dot.active { background: var(--green-800); transform: scale(1.25); }

@media (max-width: 720px) {
  .about-albums { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Image gallery (certificates / OEM showcase) ---------- */
.gallery-card { cursor: pointer; }
.gallery-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.gallery-card:hover .gallery-thumb img { transform: scale(1.04); }
/* 证书为竖版文档，完整显示不裁切（区别于普通产品图 cover） */
#certificates-grid .gallery-thumb img { object-fit: contain; padding: 10px; }
#certificates-grid .gallery-card:hover .gallery-thumb img { transform: scale(1.0); }
/* OEM 产品展示现为 5 张，改用自适应列（桌面一行 5 张，窄屏换行），不动其他 grid-4 区块 */
#oem-gallery { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px 10px;
  font-size: 13px; color: #fff;
  background: linear-gradient(transparent, rgba(12, 32, 20, .62));
  text-align: center;
}

/* ---------- Image lightbox (enlarge + download) ---------- */
.lightbox-mask {
  position: fixed; inset: 0;
  background: rgba(12, 32, 20, .78);
  display: none; align-items: center; justify-content: center;
  z-index: 1100; padding: 24px 16px;
}
.lightbox-mask.open { display: flex; }
.lightbox-box { position: relative; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox-img { max-width: 92vw; max-height: 78vh; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.lightbox-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; color: #fff;
  font-size: 34px; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.lightbox-close:hover { color: var(--sand-soft); }
.lightbox-dl { align-self: center; }

/* WhatsApp 浮动按钮（全站，后台除外） */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
  z-index: 1200; transition: transform .2s ease;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 720px) {
  .wa-fab { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .wa-fab svg { width: 27px; height: 27px; }
}
