/* =========================================================
   Magotan Huihong International Trade Co., Ltd.
   Industrial corporate website — bilingual (zh / en)
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --bg-dark: #0a2540;
  --bg-dark-2: #0e2f54;
  --ink: #0a2540;
  --ink-soft: #4b5b73;
  --ink-mute: #7b8aa1;
  --line: #e4e9f2;
  --brand: #f59e0b;
  --brand-deep: #d97706;
  --accent: #0a2540;
  --whatsapp: #25d366;
  --shadow-sm: 0 4px 18px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 12px 36px rgba(10, 37, 64, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, 0.16);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --gap: 28px;
  --ease: cubic-bezier(.4,.0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* ===== Typography ===== */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section__lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 720px;
}
.section__head { text-align: center; margin-bottom: 56px; }
.section__head .section__lede { margin-inline: auto; }
.section__head--light .eyebrow { color: var(--brand); }
.section__head--light .section__title { color: #fff; }
.section__head--light .section__lede { color: rgba(255,255,255,0.78); }

.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%); color: #fff; }
.section--accent { background: linear-gradient(180deg, #fff8ec 0%, #fff 100%); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s var(--ease);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: var(--ink); }
.btn--primary:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { color: var(--ink); border-color: var(--ink); background: #fff; }
.btn--ghost-light:hover { background: var(--ink); color: #fff; }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #1ebe57; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ===== Icons (CSS-only) ===== */
.ico { width: 16px; height: 16px; display: inline-block; flex: none; }
.ico-phone { background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.86 19.86 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.86 19.86 0 0 1 2.12 4.18 2 2 0 0 1 4.11 0h3a2 2 0 0 1 2 1.72c.13.96.37 1.9.7 2.8a2 2 0 0 1-.45 2.11L8 8a16 16 0 0 0 6 6l1.36-1.36a2 2 0 0 1 2.11-.45c.9.33 1.84.57 2.8.7A2 2 0 0 1 22 16.92Z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.86 19.86 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.86 19.86 0 0 1 2.12 4.18 2 2 0 0 1 4.11 0h3a2 2 0 0 1 2 1.72c.13.96.37 1.9.7 2.8a2 2 0 0 1-.45 2.11L8 8a16 16 0 0 0 6 6l1.36-1.36a2 2 0 0 1 2.11-.45c.9.33 1.84.57 2.8.7A2 2 0 0 1 22 16.92Z'/></svg>") center/contain no-repeat; }
.ico-mail { background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm0 2v.4l8 5 8-5V6H4Zm16 2.6-7.4 4.6a1 1 0 0 1-1.2 0L4 8.6V18h16V8.6Z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm0 2v.4l8 5 8-5V6H4Zm16 2.6-7.4 4.6a1 1 0 0 1-1.2 0L4 8.6V18h16V8.6Z'/></svg>") center/contain no-repeat; }
.ico-user { background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4Zm0 2c-3.33 0-10 1.67-10 5v3h20v-3c0-3.33-6.67-5-10-5Z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4Zm0 2c-3.33 0-10 1.67-10 5v3h20v-3c0-3.33-6.67-5-10-5Z'/></svg>") center/contain no-repeat; }
.ico-pin { background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z'/></svg>") center/contain no-repeat; }
.ico-wa { width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M.057 24l1.687-6.163a11.867 11.867 0 0 1-1.587-5.946C.16 5.335 5.495 0 12.05 0a11.82 11.82 0 0 1 8.413 3.488 11.82 11.82 0 0 1 3.48 8.414c-.003 6.557-5.34 11.892-11.893 11.892a11.9 11.9 0 0 1-5.688-1.448L.057 24Zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884a9.86 9.86 0 0 0 1.51 5.26l.241.383-1 3.646 3.738-.978Zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.71.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413Z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M.057 24l1.687-6.163a11.867 11.867 0 0 1-1.587-5.946C.16 5.335 5.495 0 12.05 0a11.82 11.82 0 0 1 8.413 3.488 11.82 11.82 0 0 1 3.48 8.414c-.003 6.557-5.34 11.892-11.893 11.892a11.9 11.9 0 0 1-5.688-1.448L.057 24Zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884a9.86 9.86 0 0 0 1.51 5.26l.241.383-1 3.646 3.738-.978Zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.71.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413Z'/></svg>") center/contain no-repeat; }
.ico-cert { width: 22px; height: 22px; background: var(--brand-deep); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3Zm-1 14-4-4 1.4-1.4L11 13.2l5.6-5.6L18 9l-7 7Z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3Zm-1 14-4-4 1.4-1.4L11 13.2l5.6-5.6L18 9l-7 7Z'/></svg>") center/contain no-repeat; }
.ico-weld { width: 22px; height: 22px; background: var(--brand-deep); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13 2 4 14h6l-1 8 9-12h-6l1-8Z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13 2 4 14h6l-1 8 9-12h-6l1-8Z'/></svg>") center/contain no-repeat; }
.ico-qc { width: 22px; height: 22px; background: var(--brand-deep); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2Zm-1 14-4-4 1.4-1.4L11 13.2l5.6-5.6L18 9l-7 7Z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2Zm-1 14-4-4 1.4-1.4L11 13.2l5.6-5.6L18 9l-7 7Z'/></svg>") center/contain no-repeat; }
.ico-ship { width: 22px; height: 22px; background: var(--brand-deep); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 4h13a3 3 0 0 1 3 3v3l3 2v8H2v-8l3-2V6a2 2 0 0 1-2-2Zm2 0v2h11V4H5Z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 4h13a3 3 0 0 1 3 3v3l3 2v8H2v-8l3-2V6a2 2 0 0 1-2-2Zm2 0v2h11V4H5Z'/></svg>") center/contain no-repeat; }

/* ===== Top bar ===== */
.topbar {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 10px 0;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.topbar__contact a:hover { color: var(--brand); }
.topbar__lang { display: flex; align-items: center; gap: 6px; }
.lang-btn { color: rgba(255,255,255,0.7); padding: 4px 10px; border-radius: 999px; font-size: 13px; transition: all .2s; }
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: var(--brand); color: var(--ink); }
.lang-sep { color: rgba(255,255,255,0.4); }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 30px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark {
  width: 48px; height: 48px;
  background: #fff7ed;
  border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid #fde6c1;
}
.brand__cn { font-weight: 700; font-size: 17px; color: var(--ink); line-height: 1.2; }
.brand__en { font-size: 12px; color: var(--ink-mute); letter-spacing: 0.02em; }

.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: all .25s;
}
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
.nav__cta { background: var(--brand); color: var(--ink) !important; font-weight: 600; }
.nav__cta:hover { background: var(--brand-deep); color: #fff !important; }

.burger { display: none; width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 5px; padding: 6px; }
.burger span { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 100px;
  background:
    radial-gradient(ellipse at top right, #fff7ed 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, #f0f4fa 0%, transparent 60%),
    #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10,37,64,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,37,64,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.hero__pill {
  display: inline-block;
  padding: 6px 14px;
  background: #fff7ed;
  border: 1px solid #fde6c1;
  color: var(--brand-deep);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero__title > span { display: block; }
.hero__title-accent {
  background: linear-gradient(90deg, var(--brand-deep) 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede { font-size: 18px; color: var(--ink-soft); margin-bottom: 32px; max-width: 600px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 50px; }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero__stats li { display: flex; flex-direction: column; gap: 4px; }
.hero__stats strong { font-size: 28px; font-weight: 700; color: var(--brand-deep); }
.hero__stats span { font-size: 13px; color: var(--ink-mute); }

.hero__visual { position: relative; display: grid; gap: 20px; }
.hero__card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
}
.hero__card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero__card--small { transform: translateX(40px); max-width: 75%; justify-self: end; }
.hero__card--small img { aspect-ratio: 16/10; }
.hero__chip {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(10,37,64,0.92);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* ===== Trust ===== */
.trust { background: var(--bg-dark); color: #fff; padding: 36px 0; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust__item { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; }
.trust__item .ico { width: 26px; height: 26px; background: var(--brand); }

/* ===== Two column (about / contact) ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.two-col--contact { gap: 60px; align-items: stretch; }
.two-col__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.two-col__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(10,37,64,0.9);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.checklist { margin-top: 24px; display: grid; gap: 14px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-size: 16px;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  background: var(--brand);
  color: var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 700;
}

/* ===== Product grid ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .35s var(--ease);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__body { padding: 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product-card__body h3 { font-size: 20px; font-weight: 700; color: var(--ink); }
.product-card__body p { font-size: 14px; color: var(--ink-soft); flex: 1; }
.taglist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.taglist li {
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-alt);
  color: var(--ink-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ===== App grid ===== */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.app-card {
  background: #fff;
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: all .3s var(--ease);
}
.app-card:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.app-card__icon {
  width: 48px; height: 48px;
  background: #fff7ed;
  color: var(--brand-deep);
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.app-card__icon svg { width: 26px; height: 26px; }
.app-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.app-card p { font-size: 14px; color: var(--ink-soft); }

/* ===== Factory gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
  margin-bottom: 70px;
}
.gallery__item { overflow: hidden; border-radius: var(--radius); position: relative; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--lg { grid-column: span 2; grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

.strength-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.12); }
.strength__num {
  font-family: "Inter", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
}
.strength h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.strength p { font-size: 14px; color: rgba(255,255,255,0.78); }

/* ===== Contact ===== */
.contact-list { margin: 32px 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ico { width: 22px; height: 22px; color: var(--brand-deep); margin-top: 4px; }
.contact-list__label { font-size: 13px; color: var(--ink-mute); margin-bottom: 2px; }
.contact-list__value { font-size: 16px; color: var(--ink); font-weight: 500; }
.contact-list__value a { color: var(--ink); border-bottom: 1px dashed var(--brand); }
.contact-list__value a:hover { color: var(--brand-deep); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.contact-card {
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: #fff;
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  top: -50%; right: -50%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
  opacity: 0.18;
  pointer-events: none;
}
.contact-card__title { font-size: 18px; font-weight: 700; margin-bottom: 22px; position: relative; }
.contact-card__qr {
  background: #fff;
  padding: 14px;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 0 0 8px rgba(255,255,255,0.08);
  position: relative;
}
.contact-card__qr img { width: 220px; height: 220px; object-fit: contain; display: block; }
.contact-card__caption { font-size: 13px; color: rgba(255,255,255,0.8); margin-bottom: 26px; position: relative; }
.contact-card__list {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 20px;
  display: grid;
  gap: 12px;
  position: relative;
}
.contact-card__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.contact-card__list span { color: rgba(255,255,255,0.7); }
.contact-card__list strong { color: #fff; font-weight: 500; }

/* ===== Footer ===== */
.footer { background: #061a31; color: rgba(255,255,255,0.78); padding: 70px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.brand--footer .brand__cn, .brand--footer .brand__en { color: #fff; }
.brand--footer .brand__en { color: rgba(255,255,255,0.6); }
.footer__about { margin-top: 16px; font-size: 14px; line-height: 1.7; max-width: 320px; }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 600; }
.footer ul { display: grid; gap: 10px; font-size: 14px; }
.footer ul a:hover, .footer li:hover { color: var(--brand); }
.footer__bar { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; font-size: 13px; }
.footer__bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__meta { color: rgba(255,255,255,0.5); }

/* ===== Language switch animation ===== */
[data-zh], [data-en] { transition: opacity 0.2s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__card--small { transform: none; max-width: 100%; justify-self: stretch; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .strength-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 70px 0; }
  .nav { position: fixed; top: 78px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; gap: 4px; border-bottom: 1px solid var(--line); transform: translateY(-150%); transition: transform .35s var(--ease); z-index: 99; }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 12px 14px; }
  .burger { display: flex; }
  .product-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .strength-grid { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; gap: 14px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 30px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery__item--lg { grid-column: span 2; grid-row: span 1; }
  .gallery__item--wide { grid-column: span 2; }
  .contact-card { padding: 26px 20px; }
  .contact-card__qr img { width: 180px; height: 180px; }
  .topbar__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .topbar__contact { gap: 14px; font-size: 12px; }
  .brand__cn { font-size: 15px; }
  .brand__en { font-size: 11px; }
}


/* =========================================================
   Floating Chat Widget
   ========================================================= */
#mh-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mh-chat__btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
  z-index: 2;
}
.mh-chat__btn:hover { transform: scale(1.06); box-shadow: 0 14px 36px rgba(37, 211, 102, 0.6); }
.mh-chat__btn.hide { opacity: 0; transform: scale(0.5); pointer-events: none; }

.mh-chat__btn-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: mh-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes mh-pulse {
  0% { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.mh-chat__panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(10, 37, 64, 0.22);
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  overflow: hidden;
}
.mh-chat__panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mh-chat__head {
  background: linear-gradient(135deg, #0a2540 0%, #163b6b 100%);
  color: #fff;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.mh-chat__title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.mh-chat__sub { font-size: 12px; color: rgba(255,255,255,0.78); line-height: 1.5; }
.mh-chat__close {
  background: rgba(255,255,255,0.15);
  width: 30px; height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid; place-items: center;
  flex: none;
  transition: background 0.2s;
}
.mh-chat__close:hover { background: rgba(255,255,255,0.3); }

.mh-chat__body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }

.mh-chat__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f6f8fc;
  color: #0a2540;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.mh-chat__item:hover { background: #eaf0f9; transform: translateX(2px); }
.mh-chat__item-text { flex: 1; min-width: 0; }
.mh-chat__item-title { font-size: 14px; font-weight: 600; line-height: 1.2; }
.mh-chat__item-hint { font-size: 12px; color: #7b8aa1; margin-top: 2px; }
.mh-chat__arrow { color: #7b8aa1; font-size: 16px; }

.mh-chat__item-ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex: none;
  color: #fff;
}
.mh-chat__item-ico--wa { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); }
.mh-chat__item-ico--mail { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.mh-chat__item-ico--wechat { background: linear-gradient(135deg, #1aad19 0%, #128c1a 100%); }

.mh-chat__qr {
  display: none;
  padding: 12px;
  background: #f6f8fc;
  border-radius: 12px;
  text-align: center;
}
.mh-chat__qr.open { display: block; }
.mh-chat__qr img {
  width: 200px; height: 200px;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  border: 1px solid #e4e9f2;
}
.mh-chat__qr-cap { margin-top: 8px; font-size: 12px; color: #4b5b73; }

.mh-chat__foot {
  font-size: 12px;
  color: #7b8aa1;
  text-align: center;
  padding: 8px 4px 2px;
  border-top: 1px dashed #e4e9f2;
  margin-top: 4px;
  padding-top: 12px;
}

@media (max-width: 480px) {
  #mh-chat { right: 16px; bottom: 16px; }
  .mh-chat__panel { width: calc(100vw - 32px); right: 0; }
  .mh-chat__btn { width: 54px; height: 54px; }
}
