/* ==========================================================================
   JOINHAND · Xiamen Joinhand Ship Equipment Engineering Co., Ltd.
   Marine smart-ship solutions — site stylesheet
   Palette: deep navy / ocean blue / cyan accent  (matches brochure identity)
   ========================================================================== */

:root {
  --navy-950: #04121f;
  --navy-900: #061c33;
  --navy-800: #0a2a4a;
  --navy-700: #0e3a63;
  --navy-600: #14507f;
  --blue-500: #0f6bb8;
  --blue-400: #2b8bd4;
  --cyan-400: #29b5e8;
  --cyan-300: #6fd2f2;
  --sand-100: #f4f8fb;
  --sand-200: #e7eff6;
  --line-200: #d5e2ee;
  --text-900: #10243a;
  --text-600: #45607c;
  --text-400: #7b93aa;
  --white: #ffffff;
  --amber-400: #f5a623;
  --ok-500: #1e9e6a;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-s: 0 1px 3px rgba(6, 28, 51, 0.08), 0 4px 14px rgba(6, 28, 51, 0.06);
  --shadow-m: 0 6px 24px rgba(6, 28, 51, 0.14);
  --shadow-l: 0 18px 50px rgba(4, 18, 31, 0.35);
  --font-sans: "Segoe UI", "Helvetica Neue", Roboto, Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-900);
  background: var(--white);
}

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

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 28, 51, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(111, 210, 242, 0.18);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(4, 18, 31, 0.45); }

.header-inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name .en { font-weight: 700; letter-spacing: 0.12em; font-size: 17px; color: #fff; }
.brand-name .zh { font-size: 12px; color: var(--cyan-300); letter-spacing: 0.34em; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 6px; list-style: none; }
.main-nav a {
  color: #cfe3f4; font-weight: 600; font-size: 15px;
  padding: 10px 14px; border-radius: 8px;
}
.main-nav a:hover { color: #fff; background: rgba(111, 210, 242, 0.12); text-decoration: none; }
.main-nav a[aria-current="page"] { color: #fff; background: rgba(41, 181, 232, 0.18); }

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

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid rgba(111, 210, 242, 0.4); border-radius: 999px; padding: 3px;
  font-size: 13px; font-weight: 600;
}
.lang-switch span { color: #fff; padding: 4px 10px; border-radius: 999px; }
.lang-switch a { color: var(--cyan-300); padding: 4px 10px; border-radius: 999px; }
.lang-switch a:hover { background: rgba(111, 210, 242, 0.15); text-decoration: none; color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--cyan-400), var(--blue-500)); color: #fff; box-shadow: 0 6px 18px rgba(21, 106, 168, 0.4); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(21, 106, 168, 0.5); }
.btn-outline { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }
.btn-ghost { border-color: var(--line-200); color: var(--navy-800); background: #fff; }
.btn-ghost:hover { border-color: var(--blue-400); color: var(--blue-500); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid rgba(111, 210, 242, 0.4);
  border-radius: 8px; padding: 9px 11px; cursor: pointer;
}
.nav-toggle svg { display: block; stroke: #fff; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; color: #fff;
  background: var(--navy-900);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(4, 18, 31, 0.92) 8%, rgba(6, 28, 51, 0.72) 45%, rgba(6, 28, 51, 0.28) 100%),
    radial-gradient(120% 90% at 85% 10%, rgba(41, 181, 232, 0.25), transparent 55%);
}
.hero-inner { position: relative; padding: 104px 0 88px; max-width: 720px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan-300); margin-bottom: 20px;
}
.hero-kicker::before { content: ""; width: 34px; height: 2px; background: var(--cyan-400); }
.hero h1 {
  font-size: clamp(34px, 5vw, 56px); line-height: 1.12; letter-spacing: -0.01em;
  font-weight: 800; margin-bottom: 20px;
}
.hero h1 .accent { color: var(--cyan-300); }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: #d9e8f5; max-width: 580px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  position: relative; border-top: 1px solid rgba(111, 210, 242, 0.25);
  background: rgba(4, 18, 31, 0.55);
}
.hero-stats .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding-top: 26px; padding-bottom: 26px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 30px; font-weight: 800; color: #fff; line-height: 1.1; }
.stat b em { font-style: normal; color: var(--cyan-300); font-size: 20px; }
.stat span { font-size: 13.5px; color: #a9c6dd; letter-spacing: 0.02em; }

/* ------------------------------------------------------------ sections */
.section { padding: 84px 0; }
.section.alt { background: var(--sand-100); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-500);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; font-weight: 800; color: var(--navy-900); letter-spacing: -0.01em; }
.section-head p { margin-top: 14px; color: var(--text-600); font-size: 17px; }

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

.icon-card {
  background: #fff; border: 1px solid var(--line-200); border-radius: var(--radius-m);
  padding: 28px 26px; box-shadow: var(--shadow-s);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.icon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--cyan-300); }
.icon-card .glyph {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(41, 181, 232, 0.14), rgba(15, 107, 184, 0.14));
}
.icon-card .glyph svg { width: 28px; height: 28px; stroke: var(--blue-500); }
.icon-card h3 { font-size: 18px; font-weight: 700; color: var(--navy-900); margin-bottom: 8px; }
.icon-card h3 small { display: block; font-size: 13px; font-weight: 600; color: var(--text-400); margin-top: 2px; letter-spacing: 0.04em; }
.icon-card p { font-size: 14.5px; color: var(--text-600); }

/* value cards on dark */
.dark-panel {
  background:
    radial-gradient(90% 120% at 90% 0%, rgba(41, 181, 232, 0.18), transparent 55%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #fff; border-radius: var(--radius-l);
  padding: 46px 44px;
}
.dark-panel h2, .dark-panel h3 { color: #fff; }
.dark-panel .kicker { color: var(--cyan-300); }

/* platform stack */
.platform { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 46px; align-items: center; }
.layer-stack { display: flex; flex-direction: column; gap: 10px; }
.layer {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(111, 210, 242, 0.28);
  border-radius: 12px; padding: 14px 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.layer:hover { background: rgba(41, 181, 232, 0.14); transform: translateX(6px); }
.layer .no {
  font-size: 12px; font-weight: 800; color: var(--cyan-300);
  border: 1px solid rgba(111, 210, 242, 0.5); border-radius: 999px;
  width: 30px; height: 30px; display: grid; place-items: center; flex-shrink: 0;
}
.layer b { font-size: 15.5px; display: block; }
.layer span { font-size: 13px; color: #a9c6dd; }
.platform-copy p { color: #c4d9ea; margin-bottom: 14px; font-size: 15.5px; }
.platform-copy h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; font-weight: 800; }
.check-list { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: #d9e8f5; font-size: 15px; }
.check-list svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 3px; stroke: var(--cyan-400); }

/* product cards */
.product-card {
  background: #fff; border: 1px solid var(--line-200); border-radius: var(--radius-m);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-s); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.product-card figure {
  position: relative; aspect-ratio: 4 / 3; background: var(--sand-200);
  overflow: hidden;
}
.product-card figure img { width: 100%; height: 100%; object-fit: cover; }
.product-card figure .ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background:
    radial-gradient(80% 90% at 70% 15%, rgba(41, 181, 232, 0.25), transparent 60%),
    linear-gradient(150deg, var(--navy-800), var(--navy-600));
}
.product-card figure .ph svg { width: 72px; height: 72px; stroke: rgba(111, 210, 242, 0.85); }
.product-card .badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(6, 28, 51, 0.82); color: var(--cyan-300);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.product-card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card h3 { font-size: 17px; font-weight: 700; color: var(--navy-900); line-height: 1.3; }
.product-card h3 small { display: block; font-size: 13px; color: var(--text-400); font-weight: 600; margin-top: 3px; }
.product-card p { font-size: 14px; color: var(--text-600); flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12px; font-weight: 600; color: var(--navy-700);
  background: var(--sand-200); border: 1px solid var(--line-200);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.chip.std { color: #0a5; border-color: rgba(30, 158, 106, 0.3); background: rgba(30, 158, 106, 0.08); }

/* spec tables inside details */
.spec-details { border: 1px solid var(--line-200); border-radius: 12px; background: #fff; overflow: hidden; }
.spec-details summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 15px 20px; font-weight: 700; color: var(--navy-800); font-size: 14.5px;
  background: var(--sand-100);
}
.spec-details summary::-webkit-details-marker { display: none; }
.spec-details summary .tw { transition: transform 0.2s ease; color: var(--blue-500); font-size: 13px; }
.spec-details[open] summary .tw { transform: rotate(180deg); }
.spec-table-wrap { overflow-x: auto; }
table.spec { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.spec th, table.spec td { text-align: left; padding: 10px 20px; border-bottom: 1px solid var(--sand-200); vertical-align: top; }
table.spec th { color: var(--text-600); font-weight: 600; white-space: nowrap; width: 1%; background: #fff; }
table.spec td { color: var(--text-900); }
table.spec tr:last-child td { border-bottom: none; }

/* category section nav */
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.cat-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--navy-700);
  background: #fff; border: 1.5px solid var(--line-200);
  padding: 9px 16px; border-radius: 999px;
}
.cat-nav a:hover { border-color: var(--cyan-400); color: var(--blue-500); text-decoration: none; }
.cat-nav a .n {
  font-size: 11px; color: var(--cyan-400); font-weight: 800;
}

.cat-section { padding: 34px 0 10px; }
.cat-section + .cat-section { border-top: 1px dashed var(--line-200); }
.cat-title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.cat-title h2 { font-size: 25px; font-weight: 800; color: var(--navy-900); }
.cat-title span { font-size: 14px; color: var(--text-400); font-weight: 600; letter-spacing: 0.05em; }
.cat-desc { color: var(--text-600); font-size: 15px; max-width: 760px; margin-bottom: 26px; }

/* feature split (lightning protection etc.) */
.feature-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.feature-split .copy h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--navy-900); margin-bottom: 14px; }
.feature-split .copy p { color: var(--text-600); margin-bottom: 16px; }
.feature-split figure {
  border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-m);
  border: 1px solid var(--line-200);
}
.feature-split figure img {
  width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}

.mini-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.mini-card {
  background: #fff; border: 1px solid var(--line-200); border-left: 3px solid var(--cyan-400);
  border-radius: 10px; padding: 14px 16px;
}
.mini-card b { display: block; font-size: 14.5px; color: var(--navy-900); margin-bottom: 3px; }
.mini-card span { font-size: 13px; color: var(--text-600); }

/* timeline */
.timeline { position: relative; margin-top: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--cyan-400), var(--blue-500));
}
.tl-item { position: relative; padding: 0 0 26px 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 4px solid var(--blue-500);
}
.tl-item b { display: block; color: var(--blue-500); font-size: 14px; margin-bottom: 2px; }
.tl-item h4 { font-size: 16px; color: var(--navy-900); margin-bottom: 4px; }
.tl-item p { font-size: 14px; color: var(--text-600); }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 40px; }
.contact-card {
  background: #fff; border: 1px solid var(--line-200); border-radius: var(--radius-m);
  padding: 28px; box-shadow: var(--shadow-s);
}
.contact-card h3 { font-size: 18px; color: var(--navy-900); margin-bottom: 4px; }
.contact-card .sub { font-size: 13px; color: var(--text-400); margin-bottom: 16px; letter-spacing: 0.04em; }
.contact-card dl { display: grid; gap: 12px; }
.contact-card .row { display: flex; gap: 12px; font-size: 14.5px; }
.contact-card .row svg { width: 18px; height: 18px; stroke: var(--blue-500); flex-shrink: 0; margin-top: 3px; }
.contact-card .row b { color: var(--text-600); font-weight: 600; min-width: 64px; }
.contact-card .row a { word-break: break-all; }

.form-panel {
  background: #fff; border: 1px solid var(--line-200); border-radius: var(--radius-l);
  padding: 40px; box-shadow: var(--shadow-s); max-width: 860px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy-800); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 14.5px; color: var(--text-900);
  border: 1.5px solid var(--line-200); border-radius: 10px;
  padding: 11px 14px; background: var(--sand-100);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan-400); background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--text-400); margin-top: 14px; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(90% 130% at 12% 0%, rgba(41, 181, 232, 0.22), transparent 55%),
    linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff; border-radius: var(--radius-l);
  padding: 52px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 8px; }
.cta-band p { color: #c4d9ea; font-size: 15.5px; max-width: 560px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy-950); color: #a9c6dd; margin-top: 90px; }
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding: 60px 0 46px;
}
.footer-brand .brand-name .en { font-size: 16px; }
.footer-brand p { font-size: 13.5px; margin-top: 16px; color: #7b93aa; max-width: 300px; }
.site-footer h4 {
  color: #fff; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 16px; font-weight: 700;
}
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer ul a { color: #a9c6dd; font-size: 14px; }
.site-footer ul a:hover { color: var(--cyan-300); }
.footer-contact li { display: flex; gap: 10px; font-size: 13.5px; color: #a9c6dd; }
.footer-contact svg { width: 16px; height: 16px; stroke: var(--cyan-400); flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(111, 210, 242, 0.15);
  padding: 20px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: #7b93aa;
}

/* page hero (subpages) */
.page-hero {
  background:
    radial-gradient(90% 140% at 88% 0%, rgba(41, 181, 232, 0.25), transparent 55%),
    linear-gradient(150deg, var(--navy-950), var(--navy-800));
  color: #fff; padding: 72px 0 60px;
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: #c4d9ea; max-width: 640px; font-size: 16.5px; }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: #7b93aa; margin-bottom: 22px; }
.breadcrumb a { color: var(--cyan-300); }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .platform { grid-template-columns: 1fr; }
  .feature-split { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-900); border-bottom: 1px solid rgba(111, 210, 242, 0.2);
    padding: 12px 24px 20px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .header-actions .btn-quote { display: none; }
  .hero-inner { padding: 72px 0 60px; }
  .hero-stats .container { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 26px; }
  .dark-panel { padding: 32px 24px; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .mini-cards { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .brand-name .zh { letter-spacing: 0.18em; }
  .section { padding: 60px 0; }
}
