/* ==========================================================================
   成都鸿盛广达 · SEO/AI Search 2026 design layer
   Scoped to .hsg-home / .hsg-landing so legacy templates stay untouched.
   ========================================================================== */

.hsg-home,
.hsg-landing {
  --hsg-red: #e2231a;
  --hsg-red-dark: #b91c1c;
  --hsg-red-soft: #fff1f0;
  --hsg-ink: #0f172a;
  --hsg-navy: #0b1220;
  --hsg-body: #334155;
  --hsg-muted: #64748b;
  --hsg-line: #e2e8f0;
  --hsg-line-soft: #eef2f7;
  --hsg-bg: #f8fafc;
  --hsg-white: #ffffff;
  --hsg-radius: 16px;
  --hsg-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --hsg-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--hsg-body);
  background: var(--hsg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hsg-home *,
.hsg-home *::before,
.hsg-home *::after,
.hsg-landing *,
.hsg-landing *::before,
.hsg-landing *::after {
  box-sizing: border-box;
}

.hsg-home img,
.hsg-landing img {
  max-width: 100%;
  height: auto;
}

.hsg-home a,
.hsg-landing a {
  color: inherit;
  text-decoration: none;
}

.hsg-home p,
.hsg-home ul,
.hsg-home ol,
.hsg-home h1,
.hsg-home h2,
.hsg-home h3,
.hsg-home h4,
.hsg-landing p,
.hsg-landing ul,
.hsg-landing ol,
.hsg-landing h1,
.hsg-landing h2,
.hsg-landing h3,
.hsg-landing h4 {
  margin: 0;
}

.hsg-home ul,
.hsg-home ol,
.hsg-landing ul,
.hsg-landing ol {
  padding: 0;
  list-style: none;
}

.hsg-container {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.hsg-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Top bar + header
   -------------------------------------------------------------------------- */

.hsg-topbar {
  background: var(--hsg-navy);
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1;
  padding: 9px 0;
}

.hsg-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hsg-topbar strong {
  color: #fff;
  font-weight: 600;
}

.hsg-topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hsg-topbar-links a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.hsg-topbar-links a:hover {
  color: #fff;
}

.hsg-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--hsg-line);
  backdrop-filter: saturate(160%) blur(12px);
}

.hsg-header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 76px;
}

.hsg-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.hsg-home .hsg-brand-logo,
.hsg-landing .hsg-brand-logo {
  height: 36px;
  width: auto;
}

.hsg-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  border-left: 1px solid var(--hsg-line);
  padding-left: 12px;
}

.hsg-brand-text strong {
  font-size: 16px;
  color: var(--hsg-ink);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hsg-brand-text small {
  font-size: 10.5px;
  color: var(--hsg-muted);
  letter-spacing: 0.04em;
  margin-top: 3px;
}

.hsg-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  white-space: nowrap;
}

.hsg-nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 550;
  color: #1e293b;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.hsg-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--hsg-red);
  transition: right 0.22s ease;
}

.hsg-nav a:hover {
  color: var(--hsg-red);
}

.hsg-nav a:hover::after {
  right: 0;
}

.hsg-header-cta {
  flex-shrink: 0;
}

.hsg-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  background: var(--hsg-red);
  color: #fff !important;
  border-radius: 10px;
  padding: 9px 16px;
  line-height: 1.15;
  box-shadow: 0 8px 20px rgba(226, 35, 26, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hsg-phone:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(226, 35, 26, 0.28);
}

.hsg-phone span {
  font-size: 10.5px;
  opacity: 0.9;
  letter-spacing: 0.08em;
}

.hsg-phone strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Buttons / links / chips
   -------------------------------------------------------------------------- */

.hsg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.hsg-btn:hover {
  transform: translateY(-1px);
}

.hsg-btn--primary {
  background: var(--hsg-red);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(226, 35, 26, 0.2);
}

.hsg-btn--primary:hover {
  background: var(--hsg-red-dark);
}

.hsg-btn--ghost {
  background: #fff;
  color: var(--hsg-ink) !important;
  border-color: #cbd5e1;
}

.hsg-btn--ghost:hover {
  border-color: var(--hsg-red);
  color: var(--hsg-red) !important;
}

.hsg-btn--light {
  background: #fff;
  color: var(--hsg-red) !important;
}

.hsg-btn--outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff !important;
}

.hsg-textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hsg-red) !important;
  font-weight: 600;
  font-size: 14px;
}

.hsg-textlink::after {
  content: "›";
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.hsg-textlink:hover::after {
  transform: translateX(3px);
}

.hsg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hsg-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12.5px;
  line-height: 1.2;
  white-space: nowrap;
}

.hsg-chip--red {
  background: var(--hsg-red-soft);
  color: var(--hsg-red-dark);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hsg-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 46px;
  background:
    radial-gradient(900px 420px at 88% 12%, rgba(226, 35, 26, 0.09), transparent 62%),
    radial-gradient(700px 380px at 8% 0%, rgba(15, 23, 42, 0.06), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hsg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
  pointer-events: none;
}

.hsg-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 48px;
  align-items: center;
}

.hsg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--hsg-red-dark);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hsg-kicker::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--hsg-red);
}

.hsg-h1 {
  color: var(--hsg-ink);
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hsg-h1 .hsg-h1-sub {
  display: block;
  margin-top: 10px;
  font-size: 0.56em;
  line-height: 1.35;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0;
}

.hsg-hero-lead {
  max-width: 660px;
  margin: 20px 0 26px;
  color: #475569;
  font-size: 16px;
  line-height: 1.8;
}

.hsg-hero-lead strong {
  color: var(--hsg-ink);
  font-weight: 600;
}

.hsg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hsg-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  color: #334155;
  font-size: 13.5px;
}

.hsg-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hsg-trust li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e8f7ee;
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
}

.hsg-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--hsg-navy);
  color: #e2e8f0;
  padding: 28px;
  box-shadow: var(--hsg-shadow);
}

.hsg-hero-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 35, 26, 0.55), transparent 68%);
  pointer-events: none;
}

.hsg-hero-card-label {
  position: relative;
  color: #fca5a5;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.hsg-hero-card-phone {
  position: relative;
  display: block;
  margin: 10px 0 4px;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.hsg-hero-card-phone small {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hsg-hero-card dl {
  position: relative;
  margin: 20px 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.hsg-hero-card dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.hsg-hero-card dt {
  color: #94a3b8;
  font-size: 12px;
}

.hsg-hero-card dd {
  margin: 0;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.55;
}

.hsg-hero-card-actions {
  position: relative;
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.hsg-hero-card-actions .hsg-btn {
  flex: 1;
  min-height: 42px;
  font-size: 13.5px;
  padding: 0 12px;
}

/* Hero product visual */
.hsg-hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  background: #0b1220;
  box-shadow: var(--hsg-shadow);
  isolation: isolate;
}

.hsg-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  pointer-events: none;
  z-index: 3;
}

.hsg-home .hsg-hero-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hsg-hero-visual-top {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.hsg-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 13, 22, 0.58);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.hsg-hero-badge--red {
  background: rgba(226, 35, 26, 0.92);
  border-color: transparent;
  color: #fff;
}

.hsg-hero-visual-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 24px 20px;
  background: linear-gradient(
    180deg,
    rgba(7, 12, 20, 0) 0%,
    rgba(7, 12, 20, 0.72) 42%,
    rgba(7, 12, 20, 0.96) 100%
  );
}

.hsg-hero-visual-kicker {
  color: #fca5a5;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hsg-hero-visual-title {
  color: #fff;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hsg-hero-visual-meta {
  margin-top: 5px;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.5;
}

.hsg-hero-visual-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.hsg-hero-visual-tags span {
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 10.5px;
  line-height: 1.2;
}

/* Quick links strip */
.hsg-quicklinks {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 44px;
}

.hsg-quicklink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 15px;
  border: 1px solid var(--hsg-line);
  border-radius: 11px;
  background: #fff;
  color: #1e293b !important;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hsg-quicklink::after {
  content: "›";
  color: var(--hsg-red);
  font-size: 18px;
  line-height: 1;
}

.hsg-quicklink:hover {
  border-color: rgba(226, 35, 26, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--hsg-shadow-sm);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.hsg-section {
  padding: 74px 0;
}

.hsg-section--soft {
  background: var(--hsg-bg);
  border-top: 1px solid var(--hsg-line-soft);
  border-bottom: 1px solid var(--hsg-line-soft);
}

.hsg-section-head {
  max-width: 780px;
  margin: 0 auto 38px;
  text-align: center;
}

.hsg-eyebrow {
  display: inline-block;
  color: var(--hsg-red-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hsg-section-head h2 {
  color: var(--hsg-ink);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hsg-section-head p {
  margin-top: 12px;
  color: var(--hsg-muted);
  font-size: 15px;
  line-height: 1.75;
}

/* Keyword / intent cards */
.hsg-kw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hsg-kw-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--hsg-line);
  border-radius: var(--hsg-radius);
  background: #fff;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hsg-kw-card::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  width: 38px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--hsg-red);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hsg-kw-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 35, 26, 0.35);
  box-shadow: var(--hsg-shadow);
}

.hsg-kw-card:hover::before {
  opacity: 1;
}

.hsg-kw-card .hsg-kw-index {
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.hsg-kw-card h3 {
  color: var(--hsg-ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

.hsg-kw-card p {
  margin: 9px 0 18px;
  color: var(--hsg-muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.hsg-kw-card .hsg-textlink {
  margin-top: auto;
}

/* Product category cards */
.hsg-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hsg-product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--hsg-line);
  border-radius: var(--hsg-radius);
  background: #fff;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hsg-product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 35, 26, 0.3);
  box-shadow: var(--hsg-shadow-sm);
}

.hsg-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--hsg-red-soft);
  color: var(--hsg-red);
}

.hsg-icon-box svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hsg-product-card h3 {
  color: var(--hsg-ink);
  font-size: 17px;
  font-weight: 700;
}

.hsg-product-card p {
  color: var(--hsg-muted);
  font-size: 13px;
  line-height: 1.65;
}

.hsg-product-card .hsg-textlink {
  margin-top: auto;
  font-size: 13px;
}

/* Brand matrix */
.hsg-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hsg-brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--hsg-line);
  border-radius: var(--hsg-radius);
  background: #fff;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hsg-brand-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -56px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 35, 26, 0.08), transparent 70%);
  pointer-events: none;
}

.hsg-brand-card:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 35, 26, 0.32);
  box-shadow: var(--hsg-shadow-sm);
}

.hsg-brand-card--featured {
  border-color: rgba(226, 35, 26, 0.38);
  background: linear-gradient(180deg, #fff, #fff8f7);
}

.hsg-brand-en {
  color: var(--hsg-ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}


.hsg-brand-logo-row {
  display: flex;
  align-items: center;
  height: 36px;
  margin-bottom: 2px;
}

.hsg-home .hsg-brand-logo {
  display: block;
  height: 30px;
  width: auto;
  max-width: 172px;
  object-fit: contain;
  object-position: left center;
}

.hsg-brand-cn {
  color: var(--hsg-muted);
  font-size: 13px;
}

.hsg-brand-card p {
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}

.hsg-brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.hsg-brand-tags span {
  padding: 4px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.2;
}

.hsg-brand-card .hsg-textlink {
  margin-top: 6px;
  font-size: 13px;
}

/* AI section */
.hsg-ai {
  position: relative;
  overflow: hidden;
  background: var(--hsg-navy);
  color: #cbd5e1;
  padding: 76px 0;
}

.hsg-ai::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 340px at 12% 0%, rgba(226, 35, 26, 0.24), transparent 62%),
    radial-gradient(600px 300px at 92% 100%, rgba(37, 99, 235, 0.18), transparent 62%);
  pointer-events: none;
}

.hsg-ai .hsg-container {
  position: relative;
}

.hsg-ai-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.hsg-ai-head h2 {
  color: #fff;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.3;
  font-weight: 800;
}

.hsg-ai-head p {
  color: #94a3b8;
  font-size: 14.5px;
  line-height: 1.8;
}

.hsg-ai-head .hsg-eyebrow {
  color: #fca5a5;
}

.hsg-ai-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hsg-ai-card {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--hsg-radius);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hsg-ai-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(226, 35, 26, 0.55);
  transform: translateY(-3px);
}

.hsg-ai-card span {
  color: #fca5a5;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hsg-ai-card h3 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}

.hsg-ai-card p {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.7;
}

.hsg-ai-card ul {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hsg-ai-card li {
  position: relative;
  padding-left: 16px;
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.55;
}

.hsg-ai-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hsg-red);
}

/* Advantages */
.hsg-why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hsg-why-card {
  padding: 24px 22px;
  border-top: 3px solid var(--hsg-red);
  border-radius: 0 0 var(--hsg-radius) var(--hsg-radius);
  background: #fff;
  box-shadow: var(--hsg-shadow-sm);
}

.hsg-why-card b {
  display: block;
  color: #cbd5e1;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hsg-why-card h3 {
  margin: 12px 0 8px;
  color: var(--hsg-ink);
  font-size: 16px;
  font-weight: 700;
}

.hsg-why-card p {
  color: var(--hsg-muted);
  font-size: 13px;
  line-height: 1.7;
}

/* Featured products */
.hsg-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hsg-featured-panel {
  border: 1px solid var(--hsg-line);
  border-radius: var(--hsg-radius);
  background: #fff;
  overflow: hidden;
}

.hsg-featured-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--hsg-line-soft);
  background: #f8fafc;
}

.hsg-featured-head h3 {
  color: var(--hsg-ink);
  font-size: 16px;
  font-weight: 700;
}

.hsg-featured-head a {
  color: var(--hsg-red);
  font-size: 12.5px;
  font-weight: 600;
}

.hsg-featured-list {
  padding: 6px 14px 10px;
}

.hsg-featured-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--hsg-line-soft);
}

.hsg-featured-item:last-child {
  border-bottom: 0;
}

.hsg-featured-item img {
  width: 64px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}

.hsg-featured-item h4 {
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hsg-featured-item .hsg-price {
  display: block;
  margin-top: 4px;
  color: var(--hsg-red);
  font-size: 12px;
  font-weight: 600;
}

/* Service area */
.hsg-area-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}

.hsg-area-copy h2 {
  color: var(--hsg-ink);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.3;
  font-weight: 800;
}

.hsg-area-copy p {
  margin-top: 14px;
  color: var(--hsg-muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.hsg-area-copy .hsg-btn {
  margin-top: 22px;
}

.hsg-area-block {
  padding: 22px;
  border: 1px solid var(--hsg-line);
  border-radius: var(--hsg-radius);
  background: #fff;
}

.hsg-area-block + .hsg-area-block {
  margin-top: 14px;
}

.hsg-area-block h3 {
  color: var(--hsg-ink);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hsg-area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hsg-area-list a,
.hsg-area-list span {
  padding: 5px 9px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  line-height: 1.3;
  transition: background 0.2s ease, color 0.2s ease;
}

.hsg-area-list a:hover {
  background: var(--hsg-red-soft);
  color: var(--hsg-red-dark);
}

/* FAQ */
.hsg-faq {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--hsg-line);
}

.hsg-faq details {
  border-bottom: 1px solid var(--hsg-line);
}

.hsg-faq summary {
  position: relative;
  display: block;
  padding: 18px 42px 18px 0;
  color: var(--hsg-ink);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.hsg-faq summary::-webkit-details-marker {
  display: none;
}

.hsg-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hsg-red);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.hsg-faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.hsg-faq .hsg-faq-a {
  padding: 0 42px 20px 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.8;
}

.hsg-faq .hsg-faq-a p + p {
  margin-top: 8px;
}

/* CTA band */
.hsg-cta {
  position: relative;
  overflow: hidden;
  padding: 58px 0;
  background: linear-gradient(120deg, #e2231a 0%, #b91c1c 58%, #7f1d1d 100%);
  color: #fff;
}

.hsg-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.45;
  pointer-events: none;
}

.hsg-cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.hsg-cta h2 {
  color: #fff;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.35;
}

.hsg-cta p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.hsg-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Landing page
   -------------------------------------------------------------------------- */

.hsg-landing .hsg-hero {
  padding: 44px 0 38px;
}

.hsg-landing .hsg-h1 {
  font-size: clamp(30px, 3.7vw, 44px);
}

.hsg-landing .hsg-hero-lead {
  font-size: 15.5px;
  margin-bottom: 22px;
}

.hsg-breadcrumb {
  padding: 18px 0 0;
  color: #94a3b8;
  font-size: 12.5px;
}

.hsg-breadcrumb a {
  color: #64748b;
}

.hsg-breadcrumb a:hover {
  color: var(--hsg-red);
}

.hsg-breadcrumb span {
  margin: 0 7px;
  color: #cbd5e1;
}

.hsg-answer {
  position: relative;
  margin: 0 0 34px;
  padding: 22px 24px 22px 26px;
  border: 1px solid #fecaca;
  border-left: 4px solid var(--hsg-red);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff7f6, #fff);
}

.hsg-answer h2 {
  color: var(--hsg-ink);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hsg-answer p {
  color: #475569;
  font-size: 14.5px;
  line-height: 1.8;
}

.hsg-answer ul {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
}

.hsg-answer li {
  position: relative;
  padding-left: 15px;
  color: #475569;
  font-size: 13.5px;
  line-height: 1.6;
}

.hsg-answer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hsg-red);
}

.hsg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 38px;
  align-items: start;
  padding-bottom: 64px;
}

.hsg-prose {
  min-width: 0;
}

.hsg-prose h2 {
  margin: 38px 0 14px;
  color: var(--hsg-ink);
  font-size: 25px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hsg-prose h2:first-child {
  margin-top: 0;
}

.hsg-prose h3 {
  margin: 24px 0 10px;
  color: #1e293b;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
}

.hsg-prose p {
  margin: 0 0 14px;
  color: #475569;
  font-size: 15px;
  line-height: 1.85;
}

.hsg-prose ul,
.hsg-prose ol {
  margin: 0 0 16px;
  padding-left: 0;
}

.hsg-prose ul li,
.hsg-prose ol li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: #475569;
  font-size: 14.5px;
  line-height: 1.8;
}

.hsg-prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hsg-red);
}

.hsg-prose ol {
  counter-reset: hsg-ol;
}

.hsg-prose ol li {
  counter-increment: hsg-ol;
  padding-left: 27px;
}

.hsg-prose ol li::before {
  content: counter(hsg-ol);
  position: absolute;
  left: 0;
  top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--hsg-red-soft);
  color: var(--hsg-red-dark);
  font-size: 11px;
  font-weight: 700;
}

.hsg-prose strong {
  color: var(--hsg-ink);
  font-weight: 600;
}

.hsg-prose a {
  color: var(--hsg-red-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hsg-table-wrap {
  margin: 0 0 18px;
  overflow-x: auto;
  border: 1px solid var(--hsg-line);
  border-radius: 12px;
}

.hsg-prose table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 13.5px;
}

.hsg-prose th,
.hsg-prose td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--hsg-line-soft);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.hsg-prose th {
  background: #f8fafc;
  color: #1e293b;
  font-weight: 700;
  white-space: nowrap;
}

.hsg-prose tr:last-child td {
  border-bottom: 0;
}

.hsg-callout {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--hsg-line);
  color: #475569;
  font-size: 13.5px;
  line-height: 1.75;
}

.hsg-callout strong {
  color: var(--hsg-ink);
}

.hsg-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0 0 18px;
}

.hsg-check-list li {
  position: relative;
  padding-left: 22px;
  color: #475569;
  font-size: 13.8px;
  line-height: 1.7;
}

.hsg-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  color: #15803d;
  font-size: 13px;
  font-weight: 800;
}

.hsg-aside {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hsg-aside-card {
  padding: 22px;
  border: 1px solid var(--hsg-line);
  border-radius: var(--hsg-radius);
  background: #fff;
  box-shadow: var(--hsg-shadow-sm);
}

.hsg-aside-card--dark {
  background: var(--hsg-navy);
  border-color: var(--hsg-navy);
  color: #cbd5e1;
}

.hsg-aside-card h3 {
  color: var(--hsg-ink);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hsg-aside-card--dark h3 {
  color: #fff;
}

.hsg-aside-card p {
  color: var(--hsg-muted);
  font-size: 13px;
  line-height: 1.7;
}

.hsg-aside-card--dark p {
  color: #94a3b8;
}

.hsg-aside-phone {
  display: block;
  margin: 4px 0 2px;
  color: var(--hsg-red);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.hsg-aside-card--dark .hsg-aside-phone {
  color: #fff;
}

.hsg-aside-card .hsg-btn {
  width: 100%;
  margin-top: 12px;
  min-height: 42px;
  font-size: 13.5px;
}

.hsg-aside-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 6px;
}

.hsg-aside-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hsg-line-soft);
  color: #334155;
  font-size: 13px;
}

.hsg-aside-links a:last-child {
  border-bottom: 0;
}

.hsg-aside-links a::after {
  content: "›";
  color: var(--hsg-red);
  font-size: 16px;
}

.hsg-aside-links a:hover {
  color: var(--hsg-red);
}

.hsg-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.hsg-related-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--hsg-line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hsg-related-card:hover {
  border-color: rgba(226, 35, 26, 0.4);
  transform: translateY(-2px);
}

.hsg-related-card strong {
  display: block;
  color: var(--hsg-ink);
  font-size: 14px;
  line-height: 1.5;
}

.hsg-related-card span {
  display: block;
  margin-top: 5px;
  color: var(--hsg-muted);
  font-size: 12px;
  line-height: 1.5;
}

.hsg-updated {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--hsg-line);
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.6;
}

.hsg-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 18px;
}

.hsg-tag-list a {
  padding: 5px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  text-decoration: none;
}

.hsg-tag-list a:hover {
  background: var(--hsg-red-soft);
  color: var(--hsg-red-dark);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.hsg-footer {
  background: var(--hsg-navy);
  color: #cbd5e1;
  padding: 54px 0 0;
}

.hsg-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr 0.8fr;
  gap: 34px;
  padding-bottom: 40px;
}

.hsg-footer-brandname {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hsg-footer p {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 6px;
}

.hsg-footer h3 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hsg-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hsg-footer-links a {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
}

.hsg-footer-links a:hover {
  color: #fff;
}

.hsg-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
}

.hsg-footer-bottom a {
  color: #94a3b8;
}

.hsg-footer-bottom a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hsg-nav {
    gap: 15px;
  }

  .hsg-nav a {
    font-size: 13.5px;
  }

  .hsg-brand-text small {
    display: none;
  }

  .hsg-quicklinks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hsg-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hsg-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hsg-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .hsg-container {
    width: min(100% - 32px, 760px);
  }

  .hsg-topbar-links {
    display: none;
  }

  .hsg-header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 9px 0;
    min-height: 0;
  }

  .hsg-brand {
    margin-right: auto;
  }

  .hsg-home .hsg-brand-logo,
  .hsg-landing .hsg-brand-logo {
    height: 30px;
  }

  .hsg-brand-text strong {
    font-size: 14px;
  }

  .hsg-header-cta {
    order: 2;
  }

  .hsg-phone {
    padding: 7px 11px;
  }

  .hsg-phone span {
    display: none;
  }

  .hsg-phone strong {
    font-size: 14px;
  }

  .hsg-nav {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    margin: 0;
    gap: 4px 16px;
    flex-wrap: wrap;
    padding: 2px 0 7px;
  }

  .hsg-nav a {
    font-size: 13px;
    padding: 4px 0;
  }

  .hsg-hero {
    padding: 38px 0 34px;
  }

  .hsg-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hsg-hero-card {
    padding: 22px;
  }

  .hsg-hero-visual {
    aspect-ratio: 4 / 3;
  }

  .hsg-h1 {
    font-size: clamp(28px, 7vw, 40px);
  }

  .hsg-h1 .hsg-h1-sub {
    font-size: 0.62em;
  }

  .hsg-quicklinks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
  }

  .hsg-kw-grid,
  .hsg-brand-grid,
  .hsg-ai-grid,
  .hsg-featured-grid,
  .hsg-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hsg-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hsg-ai-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .hsg-area-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hsg-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hsg-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hsg-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hsg-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .hsg-answer ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .hsg-container {
    width: calc(100% - 28px);
  }

  .hsg-topbar {
    font-size: 11.5px;
    padding: 7px 0;
  }

  .hsg-topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .hsg-brand-text {
    display: none;
  }

  .hsg-hero {
    padding: 30px 0 28px;
  }

  .hsg-hero-visual-bottom {
    padding: 22px 18px 16px;
  }

  .hsg-hero-visual-title {
    font-size: 22px;
  }

  .hsg-hero-visual-meta {
    font-size: 11.5px;
  }

  .hsg-hero-badge {
    font-size: 10px;
    padding: 5px 8px;
  }

  .hsg-kicker {
    font-size: 11px;
    margin-bottom: 14px;
  }

  .hsg-hero-lead {
    font-size: 14.5px;
    line-height: 1.75;
    margin: 16px 0 22px;
  }

  .hsg-hero-actions .hsg-btn {
    flex: 1;
    padding: 0 12px;
    font-size: 13.5px;
  }

  .hsg-trust {
    gap: 8px 12px;
    font-size: 12px;
  }

  .hsg-quicklinks {
    grid-template-columns: minmax(0, 1fr);
  }

  .hsg-section {
    padding: 48px 0;
  }

  .hsg-section-head {
    margin-bottom: 26px;
    text-align: left;
  }

  .hsg-section-head h2 {
    font-size: 24px;
  }

  .hsg-kw-grid,
  .hsg-product-grid,
  .hsg-brand-grid,
  .hsg-ai-grid,
  .hsg-featured-grid,
  .hsg-why-grid,
  .hsg-related {
    grid-template-columns: minmax(0, 1fr);
  }

  .hsg-kw-card {
    min-height: 0;
    padding: 20px;
  }

  .hsg-ai {
    padding: 48px 0;
  }

  .hsg-cta {
    padding: 42px 0;
  }

  .hsg-cta-actions {
    width: 100%;
  }

  .hsg-cta-actions .hsg-btn {
    flex: 1;
  }

  .hsg-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .hsg-footer {
    padding-top: 40px;
  }

  .hsg-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-bottom: 28px;
  }

  .hsg-prose h2 {
    font-size: 22px;
  }

  .hsg-prose h3 {
    font-size: 17px;
  }

  .hsg-prose p,
  .hsg-prose ul li {
    font-size: 14px;
  }

  .hsg-check-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .hsg-answer {
    padding: 18px;
  }

  .hsg-faq summary {
    font-size: 14.5px;
    padding-right: 34px;
  }
}

/* --------------------------------------------------------------------------
   Certificate gallery (backend-managed list)
   -------------------------------------------------------------------------- */

.hsg-cert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}


.hsg-cert-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}

.hsg-cert-track {
  display: flex;
  width: max-content;
  animation: hsg-cert-scroll 75s linear infinite;
}

.hsg-cert-marquee:hover .hsg-cert-track,
.hsg-cert-marquee:focus-within .hsg-cert-track {
  animation-play-state: paused;
}

.hsg-cert-track .hsg-cert-card {
  flex: 0 0 276px;
  width: 276px;
  margin-right: 16px;
}

.hsg-cert-track .hsg-cert-media {
  border-bottom: 0;
}

@keyframes hsg-cert-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .hsg-cert-track .hsg-cert-card {
    flex-basis: 240px;
    width: 240px;
  }
}

@media (max-width: 640px) {
  .hsg-cert-track .hsg-cert-card {
    flex-basis: 220px;
    width: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hsg-cert-track {
    animation: none;
  }
}

.hsg-cert-grid--home {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hsg-cert-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid var(--hsg-line);
  border-radius: var(--hsg-radius);
  background: #fff;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hsg-cert-card:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 35, 26, 0.32);
  box-shadow: var(--hsg-shadow-sm);
}

.hsg-cert-media {
  position: relative;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(226, 35, 26, 0.04), transparent 45%),
    #f8fafc;
}

.hsg-cert-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

.hsg-cert-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #94a3b8;
  text-align: center;
}

.hsg-cert-fallback span {
  font-size: 11px;
  letter-spacing: 0.12em;
}

.hsg-cert-fallback b {
  color: #334155;
  font-size: 15px;
}

.hsg-cert-fallback small {
  font-size: 11px;
  color: #94a3b8;
}

.hsg-cert-card .hsg-cert-body {
  padding: 14px 16px 18px;
}

.hsg-cert-card--home .hsg-cert-body {
  padding: 12px 14px 15px;
}

.hsg-cert-card--home .hsg-cert-group {
  margin-bottom: 5px;
}

.hsg-cert-card--home .hsg-cert-body strong {
  font-size: 14px;
  line-height: 1.45;
}

.hsg-cert-group {
  display: inline-block;
  margin-bottom: 7px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--hsg-red-soft);
  color: var(--hsg-red-dark);
  font-size: 11px;
  line-height: 1.3;
}

.hsg-cert-card .hsg-cert-body strong {
  display: block;
  color: var(--hsg-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.hsg-cert-card .hsg-cert-body p {
  margin-top: 5px;
  color: var(--hsg-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Solution list / detail
   -------------------------------------------------------------------------- */

.hsg-solution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hsg-solution-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--hsg-line);
  border-radius: var(--hsg-radius);
  background: #fff;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hsg-solution-card:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 35, 26, 0.3);
  box-shadow: var(--hsg-shadow-sm);
}

.hsg-solution-media {
  aspect-ratio: 3 / 2;
  background: #0b1220;
}

.hsg-solution-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hsg-solution-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hsg-solution-body h3 {
  color: var(--hsg-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.hsg-solution-body p {
  color: var(--hsg-muted);
  font-size: 13px;
  line-height: 1.7;
}

.hsg-solution-body .hsg-textlink {
  margin-top: auto;
  font-size: 13px;
}

.hsg-post-head {
  padding: 42px 0 30px;
  background:
    radial-gradient(700px 320px at 88% 0%, rgba(226, 35, 26, 0.08), transparent 62%),
    linear-gradient(180deg, #f8fafc, #fff);
  border-bottom: 1px solid var(--hsg-line-soft);
}

.hsg-post-head h1 {
  max-width: 900px;
  color: var(--hsg-ink);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hsg-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  color: #94a3b8;
  font-size: 12.5px;
}

.hsg-post-cover {
  margin: 0 0 26px;
  border-radius: var(--hsg-radius);
  overflow: hidden;
  border: 1px solid var(--hsg-line);
  background: #f8fafc;
}

.hsg-post-cover img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.hsg-cert-cover img {
  max-height: 620px;
  object-fit: contain;
  background: #fff;
}

.hsg-list-hero {
  padding: 46px 0 38px;
  background:
    radial-gradient(760px 340px at 88% 0%, rgba(226, 35, 26, 0.08), transparent 62%),
    linear-gradient(180deg, #f8fafc, #fff);
  border-bottom: 1px solid var(--hsg-line-soft);
}

.hsg-list-hero h1 {
  color: var(--hsg-ink);
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.25;
  font-weight: 800;
}

.hsg-list-hero p {
  max-width: 760px;
  margin-top: 12px;
  color: #475569;
  font-size: 15px;
  line-height: 1.8;
}

.hsg-pagination {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.hsg-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hsg-pagination li a,
.hsg-pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--hsg-line);
  border-radius: 7px;
  background: #fff;
  color: #475569;
  font-size: 13px;
}

.hsg-pagination li a:hover,
.hsg-pagination li.active a,
.hsg-pagination li.active span {
  border-color: var(--hsg-red);
  background: var(--hsg-red);
  color: #fff;
}

@media (max-width: 1080px) {
  .hsg-cert-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hsg-cert-grid--home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hsg-solution-media {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 900px) {
  .hsg-cert-grid,
  .hsg-cert-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hsg-solution-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .hsg-cert-grid,
  .hsg-cert-grid--home {
    grid-template-columns: minmax(0, 1fr);
  }

  .hsg-solution-media {
    aspect-ratio: 3 / 2;
  }

  .hsg-post-head {
    padding: 30px 0 24px;
  }
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.hsg-about-hero {
  padding: 58px 0 52px;
  border-bottom: 1px solid var(--hsg-line-soft);
  background:
    radial-gradient(820px 420px at 88% 0%, rgba(226, 35, 26, 0.08), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hsg-about-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 56px;
  align-items: center;
}

.hsg-about-hero h1 {
  margin: 14px 0 16px;
  color: var(--hsg-ink);
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hsg-about-hero p {
  max-width: 660px;
  color: var(--hsg-muted);
  font-size: 16px;
  line-height: 1.9;
}

.hsg-about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hsg-about-panel {
  padding: 26px 28px;
  border-radius: 18px;
  background: #0f172a;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.hsg-about-stat {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hsg-about-stat:first-child {
  padding-top: 0;
  border-top: 0;
}

.hsg-about-stat:last-child {
  padding-bottom: 0;
}

.hsg-about-stat strong {
  min-width: 54px;
  color: #fff;
  font-size: 21px;
  line-height: 1.3;
}

.hsg-about-stat span {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.65;
}

.hsg-about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 48px;
  align-items: start;
}

.hsg-about-copy h2,
.hsg-about-contact h2 {
  margin: 10px 0 8px;
  color: var(--hsg-ink);
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.hsg-about-copy p {
  margin: 14px 0;
  color: var(--hsg-muted);
  font-size: 15.5px;
  line-height: 1.95;
}

.hsg-about-copy a {
  color: var(--hsg-red);
}

.hsg-about-side {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hsg-about-phone {
  margin: 4px 0 8px !important;
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hsg-about-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.hsg-about-contact > div:first-child > p {
  color: var(--hsg-muted);
  font-size: 15px;
  line-height: 1.9;
}

.hsg-about-contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin-top: 24px;
}

.hsg-about-contact-list > div {
  padding-top: 12px;
  border-top: 1px solid var(--hsg-line-soft);
}

.hsg-about-contact-list span {
  display: block;
  margin-bottom: 5px;
  color: var(--hsg-muted);
  font-size: 12px;
}

.hsg-about-contact-list strong {
  color: var(--hsg-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.hsg-about-contact-list a {
  color: var(--hsg-red);
}

.hsg-about-map-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 30px;
  border-radius: 18px;
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(226, 35, 26, 0.28), transparent 65%),
    #0f172a;
  color: #cbd5e1;
}

.hsg-about-map-card h3 {
  margin: 6px 0 2px;
  color: #fff;
  font-size: 24px;
  line-height: 1.35;
}

.hsg-about-map-card p {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
}

.hsg-about-map-card .hsg-btn {
  margin-top: 10px;
}

@media (max-width: 900px) {
  .hsg-about-hero-inner,
  .hsg-about-intro,
  .hsg-about-contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .hsg-about-side {
    position: static;
  }

  .hsg-about-hero {
    padding: 42px 0 38px;
  }
}

@media (max-width: 640px) {
  .hsg-about-copy h2,
  .hsg-about-contact h2 {
    font-size: 25px;
  }

  .hsg-about-contact-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .hsg-about-panel,
  .hsg-about-map-card {
    padding: 22px;
  }
}

/* --------------------------------------------------------------------------
   Header WeChat QR / floating consultation
   -------------------------------------------------------------------------- */

.hsg-header-cta {
  display: flex;
  align-items: center;
}

.hsg-phone-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 7px 10px 7px 16px;
  background: var(--hsg-red);
  box-shadow: 0 8px 20px rgba(226, 35, 26, 0.22);
}

.hsg-phone-card .hsg-phone {
  align-items: flex-start;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hsg-phone-card .hsg-phone:hover {
  transform: none;
  box-shadow: none;
}

.hsg-header-wechat {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.hsg-header-wechat-link {
  display: flex;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff !important;
  text-decoration: none;
}

.hsg-header-wechat-thumb {
  display: block;
  width: 44px;
  height: 44px;
  padding: 2px;
  border-radius: 5px;
  background: #fff;
  object-fit: contain;
}

.hsg-header-wechat-link span {
  font-size: 9px;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0.92;
}

.hsg-header-wechat-pop {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 130;
  width: 222px;
  padding: 14px;
  border: 1px solid var(--hsg-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.hsg-header-wechat:hover .hsg-header-wechat-pop,
.hsg-header-wechat:focus-within .hsg-header-wechat-pop {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.hsg-header-wechat-pop img {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.hsg-header-wechat-pop strong {
  display: block;
  color: var(--hsg-ink);
  font-size: 13px;
  line-height: 1.4;
}

.hsg-header-wechat-pop small {
  display: block;
  margin-top: 2px;
  color: var(--hsg-muted);
  font-size: 11px;
}

.hsg-phone-btn {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 46px;
  padding: 7px 20px;
  line-height: 1.25;
  text-align: left;
}

.hsg-phone-btn span {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.9;
}

.hsg-phone-btn strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hsg-float-wechat {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #07c160;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(7, 193, 96, 0.32);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hsg-float-wechat:hover {
  background: #06ad56;
  transform: translateY(-2px);
}

.hsg-float-wechat-icon {
  display: flex;
  width: 20px;
  height: 20px;
}

.hsg-float-wechat-icon svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1500px) {
  .hsg-nav {
    gap: 16px;
  }
}

@media (max-width: 1280px) {
  .hsg-header-wechat {
    display: none;
  }

  .hsg-phone-card {
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .hsg-phone-card .hsg-phone {
    align-items: flex-end;
    padding: 9px 16px;
    border-radius: 10px;
    background: var(--hsg-red);
    box-shadow: 0 8px 20px rgba(226, 35, 26, 0.22);
  }
}

@media (max-width: 640px) {
  .hsg-float-wechat {
    right: 14px;
    bottom: 16px;
    padding: 12px;
    border-radius: 50%;
  }

  .hsg-float-wechat-text {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Home hero: copy above, edge-to-edge banner carousel below
   -------------------------------------------------------------------------- */

.hsg-hero {
  padding: 54px 0 0;
}

.hsg-hero-intro {
  position: relative;
  max-width: 980px;
  padding-bottom: 34px;
}

.hsg-hero-banner {
  position: relative;
  width: 100%;
  height: min(36.458vw, 700px);
  overflow: hidden;
  background: #0b1220;
}

.hsg-hero-banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  will-change: opacity;
}

.hsg-hero-banner-slide--1 {
  animation: hsg-banner-a 10s ease-in-out infinite;
}

.hsg-hero-banner-slide--2 {
  animation: hsg-banner-b 10s ease-in-out infinite;
}

@keyframes hsg-banner-a {
  0%, 45% { opacity: 1; }
  55%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes hsg-banner-b {
  0%, 45% { opacity: 0; }
  55%, 95% { opacity: 1; }
  100% { opacity: 0; }
}

.hsg-hero .hsg-quicklinks {
  margin-top: 0;
  padding: 26px 0 46px;
}

@media (max-width: 900px) {
  .hsg-hero-intro {
    padding-bottom: 26px;
  }

  .hsg-hero-banner {
    height: 300px;
  }

  .hsg-hero .hsg-quicklinks {
    padding-bottom: 36px;
  }
}

@media (max-width: 640px) {
  .hsg-hero {
    padding-top: 36px;
  }

  .hsg-hero-banner {
    height: 220px;
  }

  .hsg-hero-banner-slide {
    object-position: 65% center;
  }

  .hsg-hero .hsg-quicklinks {
    padding-top: 20px;
    padding-bottom: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hsg-hero-banner-slide--1 {
    opacity: 1;
    animation: none;
  }

  .hsg-hero-banner-slide--2 {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Product category / detail
   -------------------------------------------------------------------------- */

.hsg-product-hero {
  padding: 46px 0 38px;
  border-bottom: 1px solid var(--hsg-line-soft);
  background:
    radial-gradient(820px 380px at 88% 0%, rgba(226, 35, 26, 0.07), transparent 62%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hsg-product-hero h1 {
  margin: 12px 0 12px;
  color: var(--hsg-ink);
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hsg-product-hero p {
  max-width: 860px;
  color: var(--hsg-muted);
  font-size: 15.5px;
  line-height: 1.85;
}

.hsg-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hsg-product-section {
  padding-top: 38px;
}

.hsg-product-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.hsg-product-side {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hsg-filter-card {
  padding: 18px;
  border: 1px solid var(--hsg-line);
  border-radius: 14px;
  background: #fff;
}

.hsg-filter-card h3 {
  margin: 0 0 12px;
  color: var(--hsg-ink);
  font-size: 14px;
  font-weight: 700;
}

.hsg-filter-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hsg-filter-links a {
  display: block;
  padding: 7px 8px;
  border-radius: 7px;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
  transition: background 0.18s ease, color 0.18s ease;
}

.hsg-filter-links a:hover,
.hsg-filter-links a.is-active {
  background: var(--hsg-red-soft);
  color: var(--hsg-red-dark);
}

.hsg-filter-links--models {
  max-height: 430px;
  overflow-y: auto;
  padding-right: 4px;
}

.hsg-product-results {
  min-width: 0;
}

.hsg-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hsg-catalog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hsg-line);
  border-radius: 14px;
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hsg-catalog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 35, 26, 0.3);
  box-shadow: var(--hsg-shadow-sm);
}

.hsg-catalog-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 12px;
  background: #f8fafc;
}

.hsg-catalog-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hsg-catalog-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 15px 16px;
}

.hsg-catalog-price {
  margin-bottom: 5px;
  color: var(--hsg-red);
  font-size: 14px;
  font-weight: 700;
}

.hsg-catalog-title {
  margin: 0;
  color: var(--hsg-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.hsg-catalog-desc {
  margin: 7px 0 12px;
  color: var(--hsg-muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.hsg-catalog-more {
  margin-top: auto;
  color: var(--hsg-red);
  font-size: 12.5px;
  font-weight: 600;
}

.hsg-product-detail-section {
  padding: 38px 0 44px;
}

.hsg-product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 46px;
  align-items: start;
}

.hsg-product-gallery {
  min-width: 0;
}

.hsg-product-main {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 18px;
  border: 1px solid var(--hsg-line);
  border-radius: 18px;
  background: #fff;
}

.hsg-product-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hsg-product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.hsg-product-thumb {
  width: 76px;
  height: 64px;
  padding: 4px;
  border: 1px solid var(--hsg-line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease;
}

.hsg-product-thumb:hover,
.hsg-product-thumb.is-active {
  border-color: var(--hsg-red);
}

.hsg-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hsg-product-info h1 {
  margin: 12px 0 14px;
  color: var(--hsg-ink);
  font-size: clamp(25px, 2.8vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.hsg-product-detail-desc {
  color: var(--hsg-muted);
  font-size: 15px;
  line-height: 1.85;
}

.hsg-catalog-price-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--hsg-red-soft);
}

.hsg-catalog-price-box span {
  color: var(--hsg-red-dark);
  font-size: 12px;
}

.hsg-catalog-price-box strong {
  color: var(--hsg-red);
  font-size: 28px;
  line-height: 1.2;
}

.hsg-product-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-bottom: 24px;
}

.hsg-product-summary > div {
  padding-top: 10px;
  border-top: 1px solid var(--hsg-line-soft);
}

.hsg-product-summary span {
  display: block;
  margin-bottom: 4px;
  color: var(--hsg-muted);
  font-size: 11.5px;
}

.hsg-product-summary strong {
  display: block;
  color: var(--hsg-ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hsg-product-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 40px;
  align-items: start;
}

.hsg-product-content {
  min-width: 0;
  color: var(--hsg-muted);
  font-size: 14.5px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.hsg-product-content h2 {
  margin: 10px 0 16px;
  color: var(--hsg-ink);
  font-size: 26px;
  line-height: 1.35;
}

.hsg-product-content h3 {
  margin: 22px 0 10px;
  color: var(--hsg-ink);
  font-size: 19px;
}

.hsg-product-content img {
  max-width: 100%;
  height: auto;
}

.hsg-product-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.hsg-product-content td,
.hsg-product-content th {
  padding: 8px 10px;
  border: 1px solid var(--hsg-line-soft);
  vertical-align: top;
}

.hsg-spec-card {
  padding: 20px;
  border: 1px solid var(--hsg-line);
  border-radius: 14px;
  background: #fff;
}

.hsg-spec-card h2 {
  margin: 0 0 14px;
  color: var(--hsg-ink);
  font-size: 18px;
}

.hsg-spec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hsg-spec-list > div {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--hsg-line-soft);
}

.hsg-spec-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hsg-spec-list span {
  display: block;
  margin-bottom: 3px;
  color: var(--hsg-muted);
  font-size: 11px;
}

.hsg-spec-list strong {
  display: block;
  color: var(--hsg-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

@media (max-width: 1080px) {
  .hsg-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hsg-product-layout,
  .hsg-product-detail-grid,
  .hsg-product-content-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hsg-product-side {
    position: static;
  }

  .hsg-product-hero {
    padding: 36px 0 30px;
  }
}

@media (max-width: 640px) {
  .hsg-catalog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hsg-product-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .hsg-product-main {
    aspect-ratio: 1 / 1;
  }

  .hsg-product-thumb {
    width: 64px;
    height: 54px;
  }
}

/* --------------------------------------------------------------------------
   Product mega menu
   -------------------------------------------------------------------------- */

.hsg-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.hsg-nav-caret {
  display: inline-block;
  margin-left: 4px;
  color: #94a3b8;
  font-size: 9px;
  transform: translateY(-1px);
}

.hsg-nav-mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 140;
  width: 620px;
  padding: 14px;
  border: 1px solid var(--hsg-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.hsg-nav-item--products:hover .hsg-nav-mega,
.hsg-nav-item--products:focus-within .hsg-nav-mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.hsg-nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}

.hsg-nav-mega-grid a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--hsg-ink) !important;
  font-size: 13px;
  line-height: 1.4;
  transition: background 0.16s ease;
}

.hsg-nav-mega-grid a::after {
  display: none !important;
}

.hsg-nav-mega-grid a:hover {
  background: var(--hsg-red-soft);
}

.hsg-nav-mega-grid strong {
  color: var(--hsg-ink);
  font-size: 13px;
  font-weight: 650;
}

.hsg-nav-mega-grid span {
  color: var(--hsg-muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.hsg-nav-mega-foot {
  margin-top: 8px;
  padding: 10px 11px 2px;
  border-top: 1px solid var(--hsg-line-soft);
}

.hsg-nav-mega-foot a {
  color: var(--hsg-red) !important;
  font-size: 12.5px;
  font-weight: 600;
}

.hsg-nav-mega-foot a::after {
  display: none !important;
}

@media (max-width: 1280px) {
  .hsg-nav-mega {
    width: 540px;
  }
}

/* Product list pagination (PbootCMS page:bar outputs spans, not li) */
.hsg-pagination ul {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
  justify-content: center;
}

.hsg-pagination .page-status {
  margin-right: 10px;
  color: var(--hsg-muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.hsg-pagination .page-numbar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hsg-pagination .page-index a,
.hsg-pagination .page-pre a,
.hsg-pagination .page-next a,
.hsg-pagination .page-last a,
.hsg-pagination .page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--hsg-line);
  border-radius: 6px;
  background: #fff;
  color: #475569;
  font-size: 12.5px;
  line-height: 1;
}

.hsg-pagination .page-num-current {
  border-color: var(--hsg-red);
  background: var(--hsg-red);
  color: #fff !important;
}

.hsg-pagination a:hover {
  border-color: var(--hsg-red);
  color: var(--hsg-red);
}

.hsg-pagination .page-pre a[href="javascript:;"] {
  border-color: var(--hsg-line-soft);
  color: #cbd5e1;
}

@media (max-width: 640px) {
  .hsg-pagination ul {
    gap: 4px;
  }

  .hsg-pagination .page-status {
    width: 100%;
    margin: 0 0 4px;
    text-align: center;
  }

  .hsg-pagination .page-index a,
  .hsg-pagination .page-pre a,
  .hsg-pagination .page-next a,
  .hsg-pagination .page-last a,
  .hsg-pagination .page-num {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    font-size: 11.5px;
  }
}

/* Homepage core product cards */
.hsg-core-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.hsg-core-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hsg-line);
  border-radius: 16px;
  background: #fff;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.hsg-core-card:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 35, 26, 0.3);
  box-shadow: var(--hsg-shadow-sm);
}

.hsg-core-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.hsg-core-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.hsg-core-card:hover .hsg-core-media img {
  transform: scale(1.035);
}

.hsg-core-body {
  padding: 16px 20px 20px;
}

.hsg-core-kicker {
  display: block;
  color: var(--hsg-red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hsg-core-body h3 {
  margin: 6px 0 8px;
  color: var(--hsg-ink);
  font-size: 20px;
  line-height: 1.35;
}

.hsg-core-body p {
  color: var(--hsg-muted);
  font-size: 13px;
  line-height: 1.7;
}

.hsg-core-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--hsg-red);
  font-size: 13px;
  font-weight: 600;
}

.hsg-product-grid--compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1080px) {
  .hsg-product-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hsg-core-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hsg-core-media {
    height: 300px;
  }

  .hsg-product-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hsg-core-media {
    height: 220px;
  }

  .hsg-product-grid--compact {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Product mega menu channel row */
.hsg-nav-mega-channel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 6px;
  padding: 10px 11px 0;
  border-top: 1px solid var(--hsg-line-soft);
  font-size: 11.5px;
}

.hsg-nav-mega-channel span {
  color: var(--hsg-muted);
}

.hsg-nav-mega-channel a {
  color: var(--hsg-red) !important;
  font-size: 11.5px;
  font-weight: 600;
}

.hsg-nav-mega-channel a::after {
  display: none !important;
}

.hsg-product-channel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  font-size: 12.5px;
}

.hsg-product-channel-links a {
  color: var(--hsg-red);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   News center
   -------------------------------------------------------------------------- */

.hsg-news-hero {
  padding: 46px 0 38px;
  border-bottom: 1px solid var(--hsg-line-soft);
  background:
    radial-gradient(820px 380px at 88% 0%, rgba(226, 35, 26, 0.07), transparent 62%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hsg-news-hero h1 {
  margin: 12px 0;
  color: var(--hsg-ink);
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.3;
}

.hsg-news-hero p {
  max-width: 820px;
  color: var(--hsg-muted);
  font-size: 15.5px;
  line-height: 1.85;
}

.hsg-news-section {
  padding-top: 32px;
}

.hsg-news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.hsg-news-tabs a {
  padding: 8px 14px;
  border: 1px solid var(--hsg-line);
  border-radius: 999px;
  color: #475569;
  font-size: 13px;
  line-height: 1.2;
  transition: all 0.18s ease;
}

.hsg-news-tabs a:hover {
  border-color: var(--hsg-red);
  color: var(--hsg-red);
}

.hsg-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.hsg-news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hsg-line);
  border-radius: 14px;
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hsg-news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 35, 26, 0.3);
  box-shadow: var(--hsg-shadow-sm);
}

.hsg-news-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 13px;
}

.hsg-news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hsg-news-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 15px 16px 17px;
}

.hsg-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--hsg-muted);
  font-size: 11.5px;
}

.hsg-news-body h2 {
  margin: 7px 0 7px;
  color: var(--hsg-ink);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
}

.hsg-news-body p {
  margin-bottom: 12px;
  color: var(--hsg-muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.hsg-news-more {
  margin-top: auto;
  color: var(--hsg-red);
  font-size: 12.5px;
  font-weight: 600;
}

.hsg-news-detail {
  max-width: 980px;
  padding-top: 38px;
  padding-bottom: 48px;
}

.hsg-news-article {
  max-width: 860px;
  margin: 0 auto;
}

.hsg-news-header h1 {
  margin: 10px 0 12px;
  color: var(--hsg-ink);
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.4;
}

.hsg-news-header .hsg-news-meta {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hsg-line-soft);
}

.hsg-news-cover {
  margin: 24px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
}

.hsg-news-cover img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
}

.hsg-news-content {
  color: #334155;
  font-size: 15px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.hsg-news-content p {
  margin: 14px 0;
}

.hsg-news-content h2 {
  margin: 28px 0 12px;
  color: var(--hsg-ink);
  font-size: 23px;
  line-height: 1.4;
}

.hsg-news-content h3 {
  margin: 22px 0 10px;
  color: var(--hsg-ink);
  font-size: 18px;
}

.hsg-news-content img {
  max-width: 100%;
  height: auto;
}

.hsg-news-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.hsg-news-content td,
.hsg-news-content th {
  padding: 8px 10px;
  border: 1px solid var(--hsg-line-soft);
}

.hsg-news-nextprev {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--hsg-line-soft);
  font-size: 13px;
  line-height: 1.7;
}

.hsg-news-nextprev span {
  display: block;
  margin-bottom: 4px;
  color: var(--hsg-muted);
  font-size: 11px;
}

.hsg-news-nextprev a {
  color: var(--hsg-ink);
}

.hsg-news-nextprev a:hover {
  color: var(--hsg-red);
}

.hsg-news-back {
  margin-top: 28px;
  text-align: center;
}

@media (max-width: 1080px) {
  .hsg-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hsg-news-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hsg-news-nextprev {
    grid-template-columns: minmax(0, 1fr);
  }

  .hsg-news-detail {
    padding-top: 26px;
  }
}

/* News cards: editorial text-first layout */
.hsg-news-card {
  border-top: 3px solid var(--hsg-red);
}

.hsg-news-body {
  padding: 20px 20px 22px;
}

.hsg-news-cat {
  color: var(--hsg-red);
  font-weight: 600;
}

.hsg-news-body h2 {
  font-size: 17px;
}

.hsg-news-detail {
  padding-top: 34px;
}

/* Mobile polish */
.hsg-cert-marquee {
  scroll-margin-top: 90px;
}

@media (max-width: 640px) {
  .hsg-about-hero h1 {
    font-size: clamp(24px, 6.5vw, 30px);
    line-height: 1.25;
    letter-spacing: -0.01em;
  }

  .hsg-core-media {
    height: 240px;
  }
}

@media (max-width: 900px) {
  .hsg-header {
    position: relative;
    top: auto;
  }
}



/* Mobile quicklinks: horizontal scroll chips */
@media (max-width: 900px) {
  .hsg-quicklinks {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 12px;
    padding: 4px 0 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent 100%);
  }

  .hsg-quicklinks::-webkit-scrollbar {
    display: none;
  }

  .hsg-quicklink {
    flex: 0 0 auto;
    min-height: 0;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    scroll-snap-align: start;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  }

  .hsg-quicklink::after {
    font-size: 15px;
  }
}


/* Mobile footer: simple title links */
.hsg-footer-mobile-nav {
  display: none;
}

@media (max-width: 900px) {
  .hsg-footer-grid {
    gap: 0;
    padding-bottom: 22px;
  }

  .hsg-footer-col {
    display: none;
  }

  .hsg-footer-address,
  .hsg-footer-email {
    display: none;
  }

  .hsg-footer-mobile-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
  }

  .hsg-footer-mobile-nav a {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
  }

  .hsg-footer-mobile-nav a:hover {
    color: #fff;
  }
}

/* Mobile back-to-top */
.hsg-back-top {
  display: none;
  position: fixed;
  right: 22px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 96;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.hsg-back-top svg {
  width: 20px;
  height: 20px;
}

.hsg-back-top:hover {
  background: #0f172a;
}

.hsg-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hsg-back-top {
    display: flex;
  }
}
