/* NEWCORDER — NVH integrator. Light page, navy text, EN/中文. */

:root {
  --bg: #f3f7fc;
  --bg-card: #ffffff;
  --bg-soft: #e7f1fb;
  --line: #d5e4f2;
  --heading: #0e3f73;
  --text: #1b3a56;
  --muted: #2a4a68;
  --accent: #1565b8;
  --accent-deep: #0e4f96;
  --warm: #9a3412;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(26, 79, 139, 0.08);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
  --nav-h: 78px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--warm); }

h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 0.55em;
}

h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
h3 { font-size: 1.08rem; }

p { margin: 0 0 0.9em; color: var(--text); }

.container {
  width: min(100% - 2.4rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(26, 79, 139, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--nav-h);
}

.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.32rem 0.42rem;
  border-radius: 8px;
}

ul.clean { margin: 0.2rem 0 1rem; padding-left: 1.15rem; }
ul.clean li { margin: 0.28rem 0; color: var(--text); }

.nav-links a:hover,
.nav-links a.active {
  background: var(--bg-soft);
  color: var(--accent-deep);
}

.nav-actions { margin-left: auto; flex-shrink: 0; display: flex; align-items: center; gap: 0.45rem; }

html[data-lang="en"] .zh { display: none !important; }
html[data-lang="zh"] .en { display: none !important; }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--heading);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.38rem 0.62rem;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }

.menu-cta { display: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--heading);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-warm { background: var(--warm); color: #fff; }
.btn-warm:hover { color: #fff; filter: brightness(0.95); }
.btn-ghost {
  background: #fff;
  color: var(--heading);
  border-color: #b9d4ee;
}
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.88rem; }

.hero {
  position: relative;
  min-height: 420px;
  color: #fff;
  background: #1a4f8b center/cover no-repeat;
  display: grid;
  align-items: end;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 32, 58, 0.94) 0%, rgba(8, 32, 58, 0.9) 42%, rgba(8, 32, 58, 0.5) 68%, rgba(8, 32, 58, 0.28) 100%);
}

.hero .eyebrow { color: #ffe8c7; }

.hero .container { position: relative; z-index: 1; padding: 3.2rem 0 2.4rem; }
.hero h1, .hero p { color: #fff; }
.hero p { max-width: 40rem; font-size: 1.05rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.1rem; }

.section { padding: 3rem 0; }
.section-alt { background: #fff; }

.section-head { max-width: 46rem; margin-bottom: 1.4rem; }
.section-head p { color: var(--muted); }

.eyebrow {
  color: var(--warm);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.grid-3, .grid-4, .grid-2 {
  display: grid;
  gap: 1rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.brand-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.brand-logo {
  display: block;
  width: 100%;
  height: 52px;
  object-fit: contain;
  object-position: center;
  margin: 0.2rem 0 0.85rem;
}

.client-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.35rem 1.8rem;
}
.client-wall img {
  width: 148px;
  height: 58px;
  object-fit: contain;
  object-position: center;
}

.card, .product {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1rem 1.1rem;
}

.product img, .shot {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: transparent;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.shot-wide {
  width: 100%;
  border-radius: 12px;
  max-height: 420px;
  object-fit: contain;
  background: #f7fbff;
}

.product .sku {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin-bottom: 0.35rem;
}

.product p, .card p { color: var(--muted); font-size: 0.94rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}
.gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.page-hero {
  background: linear-gradient(180deg, #e8f3fd, var(--bg));
  padding: 2rem 0 0.4rem;
}
.page-hero p { color: var(--muted); max-width: 46rem; }

.breadcrumb { color: var(--muted); font-size: 0.86rem; margin-bottom: 0.4rem; }
.breadcrumb a { color: var(--accent-deep); }

.spec {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.spec th, .spec td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.spec th { color: var(--heading); width: 42%; background: #f5faff; font-weight: 650; }

.note {
  background: #fff7ef;
  border: 1px solid #f3d7bc;
  color: #8a4b12;
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.2rem;
  align-items: start;
}
.qr { width: 180px; height: auto; border-radius: 8px; border: 1px solid var(--line); }

.site-footer {
  background: #e8f2fb;
  color: var(--heading);
  padding: 1.6rem 0 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.site-footer p { color: var(--muted); margin: 0.2rem 0; }
.site-footer a { color: var(--accent-deep); }

@media (max-width: 900px) {
  .grid-3, .grid-4, .gallery, .brand-row { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-actions { display: flex; margin-left: auto; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0; right: 0; top: var(--nav-h);
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1rem 0.9rem;
  }
  .nav-links.open .menu-cta { display: block; margin-top: 0.45rem; }
  .nav-links.open .menu-cta .btn { display: inline-flex; }
  .site-header { position: sticky; }
  .nav { position: relative; }
}
