/* ==========================================================================
   Shenzhen HONGSHENGYE Technology Co.,Ltd - gd-hsy.com
   Global stylesheet (assets/css/style.css)
   Theme: professional white + blue
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --blue-900: #0b2545;
  --blue-800: #103b74;
  --blue-700: #1559b3;
  --blue-600: #1c6fe0;
  --blue-500: #3d8bef;
  --blue-100: #e8f0fc;
  --blue-50:  #f5f9ff;

  --ink:      #152033;
  --muted:    #5b6b83;
  --line:     #dfe7f2;
  --white:    #ffffff;
  --bg-soft:  #f7fafd;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 2px 8px rgba(11, 37, 69, .05);
  --shadow:    0 6px 18px rgba(11, 37, 69, .08), 0 2px 6px rgba(11, 37, 69, .05);
  --shadow-lg: 0 18px 40px rgba(11, 37, 69, .14);

  --container: 1180px;
  --header-h: 74px;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "PingFang SC",
          "Microsoft YaHei", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-600); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.22; color: var(--blue-900); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.3rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--blue-700);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding: clamp(56px, 6vw, 96px) 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section--blue {
  background: linear-gradient(160deg, var(--blue-900), var(--blue-800) 55%, var(--blue-700));
  color: #eaf2fd;
}
.section--blue h2, .section--blue h3 { color: #fff; }
.section--blue p { color: #cbdcf3; }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 3vw, 46px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 14px;
}
.section--blue .eyebrow { color: #dbe9ff; background: rgba(255, 255, 255, .14); }

.lead { font-size: 1.06rem; color: var(--muted); }
.section--blue .lead { color: #cbdcf3; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue-700);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  font-size: .97rem;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease,
              color .16s ease, border-color .16s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--blue-600); }
.btn--primary:hover { --btn-bg: var(--blue-700); }
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--blue-700);
  border-color: var(--blue-600);
  box-shadow: none;
}
.btn--outline:hover { --btn-bg: var(--blue-50); --btn-fg: var(--blue-800); }
.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--blue-800);
}
.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .6);
  box-shadow: none;
}
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, .12); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: .88rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease, background-color .2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow); background: rgba(255, 255, 255, .98); }

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 208px; height: auto; }
.brand-text { display: none; }

.top-nav { display: flex; align-items: center; gap: 6px; }
.top-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  transition: background-color .16s ease, color .16s ease;
}
.top-nav a:hover { background: var(--blue-50); color: var(--blue-700); }
.top-nav a.is-active { color: var(--blue-700); background: var(--blue-100); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle .bars { position: relative; width: 20px; height: 2px; background: var(--blue-900); border-radius: 2px; display: block; }
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--blue-900);
  border-radius: 2px;
  transition: transform .2s ease, top .2s ease;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.site-header.nav-open .nav-toggle .bars { background: transparent; }
.site-header.nav-open .nav-toggle .bars::before { top: 0; transform: rotate(45deg); }
.site-header.nav-open .nav-toggle .bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 460px at 88% -10%, rgba(61, 139, 239, .22), transparent 70%),
    linear-gradient(180deg, var(--blue-50), #fff 80%);
  border-bottom: 1px solid var(--line);
  padding: clamp(44px, 5vw, 84px) 0 clamp(40px, 5vw, 72px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--blue-600); }
.hero .lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 60ch; }
.hero .btn-row { margin-top: 26px; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-badges li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--blue-900);
}
.hero-badges .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 0 0 4px var(--blue-100);
  flex: none;
}

/* ---------- Trust strip ---------- */
.trust-strip { padding: 26px 0; background: var(--blue-900); color: #d7e5f8; }
.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 30px;
  font-size: .93rem;
  font-weight: 600;
}
.trust-strip span { color: #8fb6e8; font-weight: 700; margin-right: 6px; }

/* ---------- Product cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #c6dcf7; }
.card-media { position: relative; background: var(--blue-50); }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, .94);
  color: var(--blue-800);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.feature-list { display: grid; gap: 8px; margin-top: 2px; }
.feature-list li {
  position: relative;
  padding-left: 24px;
  font-size: .9rem;
  color: var(--ink);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: .55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}
.card-actions { margin-top: auto; padding-top: 8px; }

/* ---------- About ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}
.split--flip .split-media { order: 2; }
.split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.fact {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-600);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.fact strong { display: block; font-size: 1.35rem; color: var(--blue-800); line-height: 1.2; }
.fact span { font-size: .85rem; color: var(--muted); }

/* ---------- OEM / ODM ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 34px;
  counter-reset: step;
}
.step {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: #9dc4f5;
  margin-bottom: 10px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: .92rem; margin: 0; }

.oem-panel {
  margin-top: 34px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
}
.oem-panel h3 { margin-bottom: 14px; }
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 26px;
}
.check-grid li {
  position: relative;
  padding-left: 28px;
  font-size: .94rem;
  color: #dbe9ff;
}
.check-grid li::before {
  content: "";
  position: absolute;
  left: 0; top: .35em;
  width: 16px; height: 9px;
  border-left: 2.5px solid #7fb4f2;
  border-bottom: 2.5px solid #7fb4f2;
  transform: rotate(-45deg);
}

/* ---------- Quote ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}
.quote-aside ul { display: grid; gap: 14px; margin-top: 22px; }
.quote-aside li { display: flex; gap: 12px; font-size: .95rem; color: var(--muted); }
.quote-aside .num {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: .82rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 32px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--blue-900); }
.field .req { color: #c0392b; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fdfefe;
  width: 100%;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(61, 139, 239, .18);
  outline: none;
}
.field .error {
  font-size: .8rem;
  color: #c0392b;
  min-height: 1em;
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #e07b70; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}
.form-note { font-size: .82rem; color: var(--muted); max-width: 46ch; margin: 0; }

.form-status {
  margin-top: 16px;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .92rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-ok { background: #eaf7ee; border: 1px solid #bfe3cc; color: #1e6b3a; }
.form-status.is-warn { background: #fff6e6; border: 1px solid #f3d9a8; color: #8a5a12; }
.form-status.is-error { background: #fdecea; border: 1px solid #f3c2bb; color: #a02b1f; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { font-size: 1rem; margin-bottom: 8px; }
.contact-card p { font-size: .93rem; color: var(--muted); margin: 0; }
.contact-card a { font-weight: 600; word-break: break-word; }
.contact-card .placeholder-flag {
  display: inline-block;
  margin-top: 10px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a5a12;
  background: #fff6e6;
  border: 1px solid #f3d9a8;
  border-radius: 999px;
  padding: 3px 10px;
}

.map-placeholder {
  margin-top: 26px;
  border: 1px dashed #c6dcf7;
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(45deg, #f5f9ff, #f5f9ff 14px, #eef5fe 14px, #eef5fe 28px);
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.map-placeholder p { color: var(--muted); font-size: .92rem; max-width: 44ch; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-900);
  color: #b9cfe9;
  padding: 50px 0 26px;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #d7e5f8; }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 9px; }
.site-footer .footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.site-footer .footer-brand img { width: 190px; background: #fff; border-radius: 10px; padding: 6px; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: .85rem;
  color: #9ab4d3;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--blue-600);
  background: var(--white);
  color: var(--blue-700);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .brand img { width: 176px; }
  .hero-grid, .split, .quote-grid { grid-template-columns: 1fr; }
  .split--flip .split-media { order: 0; }
  .hero-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .brand-text { display: none; }

  .top-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 22px 26px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-header.nav-open .top-nav { opacity: 1; transform: none; pointer-events: auto; }
  .top-nav a { padding: 13px 14px; font-size: 1rem; }
  .header-actions .btn--quote { display: none; }
  .top-nav .nav-cta { display: block; margin-top: 10px; }
  .top-nav .nav-cta .btn { width: 100%; }
}

@media (min-width: 901px) {
  .top-nav .nav-cta { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding-inline: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .form-foot .btn, .header-actions .btn { width: auto; }
  .hero-badges { gap: 10px 16px; }
  .trust-strip ul { flex-direction: column; gap: 8px; }
  .to-top { right: 14px; bottom: 14px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .to-top, .form-card, .map-placeholder { display: none !important; }
  body { color: #000; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
