:root {
  --navy: #0e2a47;
  --navy-2: #143a5f;
  --ink: #1c2833;
  --muted: #5d6b7a;
  --line: #e2e8ee;
  --bg: #f6f8fa;
  --white: #ffffff;
  --accent: #d97b29;
  --accent-dark: #b96416;
  --ok: #1d8a4e;
  --err: #c0392b;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(14, 42, 71, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; color: var(--ink); }
p { margin: 0 0 1em; }

.container { width: min(1400px, 94%); margin: 0 auto; }
.section { padding: 72px 0; }
.section.alt { background: var(--bg); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--muted); font-size: 17px; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #c9d6e2;
  font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #e8eef4; }
.topbar .left span { margin-right: 18px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 44px; height: 44px; flex: none; }
.logo-name { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: 0.02em; }
.logo-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 10px 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  border-radius: 6px;
}
.site-nav a:hover { color: var(--accent); background: var(--bg); }
.site-nav a.active { color: var(--accent); }
.site-nav a.nav-cta { background: var(--navy); color: #fff; margin-left: 8px; }
.site-nav a.nav-cta:hover { background: var(--navy-2); color: #fff; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(rgba(10, 30, 52, 0.72), rgba(10, 30, 52, 0.72)), url("../img/factory.jpg") center / cover no-repeat;
  padding: 120px 0 130px;
}
.hero h1 { color: #fff; font-size: 44px; max-width: 640px; margin-bottom: 16px; }
.hero p.lead { font-size: 19px; color: #d7e2ec; max-width: 560px; margin-bottom: 32px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 28px; margin-top: 48px; flex-wrap: wrap; }
.hero-badges .b { border-left: 3px solid var(--accent); padding-left: 12px; }
.hero-badges .b strong { display: block; font-size: 22px; }
.hero-badges .b span { font-size: 13px; color: #b9c8d6; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(rgba(10, 30, 52, 0.78), rgba(10, 30, 52, 0.78)), url("../img/workshop.jpg") center / cover no-repeat;
  color: #fff;
  padding: 68px 0;
}
.page-hero h1 { color: #fff; font-size: 36px; margin-bottom: 6px; }
.page-hero p { color: #c4d2df; margin: 0; max-width: 640px; }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card .body { padding: 20px 22px 24px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card .cat { font-size: 12px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.card p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.card .more { font-weight: 700; font-size: 14px; }

.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.value-card .ico { font-size: 26px; margin-bottom: 12px; }
.value-card h3 { font-size: 17px; }
.value-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Split (about teaser) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split .checklist { list-style: none; padding: 0; margin: 18px 0 26px; }
.split .checklist li { padding: 7px 0 7px 30px; position: relative; color: var(--muted); }
.split .checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 6px;
  color: var(--accent); font-weight: 800;
}

/* ---------- Stats band ---------- */
.stats { background: var(--navy); color: #fff; padding: 56px 0; }
.stats .grid-4 { gap: 16px; }
.stat { text-align: center; padding: 10px; }
.stat strong { font-size: 40px; display: block; color: #fff; }
.stat span { color: #a9bdd0; font-size: 14px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: step; }
.process .step { text-align: center; padding: 18px 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.process .step b { display: block; width: 34px; height: 34px; line-height: 34px; border-radius: 50%; background: var(--navy); color: #fff; margin: 0 auto 10px; }
.process .step span { font-size: 13.5px; color: var(--muted); }

/* ---------- Filter chips ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Product modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10, 25, 40, 0.55);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: 12px; max-width: 880px; width: 100%;
  max-height: 88vh; overflow: auto; position: relative;
}
.modal .close {
  position: absolute; top: 12px; right: 14px; border: none; background: #fff;
  font-size: 22px; cursor: pointer; color: var(--muted); width: 36px; height: 36px; border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12); z-index: 2;
}
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-grid img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.modal-grid .info { padding: 34px 34px 30px; }
.modal-grid h3 { font-size: 24px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0 20px; }
.spec-table td { border: 1px solid var(--line); padding: 8px 12px; }
.spec-table td:first-child { background: var(--bg); font-weight: 600; width: 40%; color: var(--navy); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field label em { color: var(--err); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.form-msg { padding: 12px 16px; border-radius: 6px; font-size: 14.5px; margin-bottom: 18px; display: none; }
.form-msg.ok { display: block; background: #e8f6ee; color: var(--ok); border: 1px solid #bfe6cf; }
.form-msg.err { display: block; background: #fdeeec; color: var(--err); border: 1px solid #f3c4bc; }

.otp-row { display: flex; gap: 10px; }
.otp-row input { flex: 1; }
.otp-row .btn { white-space: nowrap; padding: 11px 16px; font-size: 14px; }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: start; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 20px; }
.info-card h3 { font-size: 17px; margin-bottom: 10px; }
.info-card p { color: var(--muted); margin: 0; font-size: 15px; }
.info-card a { color: var(--accent); font-weight: 600; }

/* ---------- Account ---------- */
.account-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: start; }
.wechat-btn {
  width: 100%; padding: 12px; border-radius: 6px; border: 1px solid #2aae67;
  background: #fff; color: #1d8a4e; font-weight: 700; cursor: pointer; font-size: 15px;
}
.wechat-btn:hover { background: #f2fbf6; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.inquiry-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; background: #fff; }
.inquiry-item .row1 { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inquiry-item .prod { font-weight: 700; color: var(--navy); }
.inquiry-item .date { font-size: 13px; color: var(--muted); }
.inquiry-item .msg { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #fdf1e5; color: var(--accent-dark); }

.file-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 2px; font-size: 14.5px; }
.file-item:last-child { border-bottom: none; }
.file-item a { color: var(--accent); font-weight: 600; white-space: nowrap; }

.empty-note { color: var(--muted); font-size: 14.5px; background: var(--bg); border: 1px dashed var(--line); padding: 18px; border-radius: var(--radius); text-align: center; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 64px 0; }
.cta-band .inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #a9bdd0; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1f36; color: #93a7ba; padding: 56px 0 0; font-size: 14.5px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: #93a7ba; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--accent); }
.site-footer .about p { margin: 0; }
.site-footer .contact-line { padding: 3px 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 18px 0; font-size: 13px; color: #6d8298; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-layout, .account-layout { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(3, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 52px 0; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    border-bottom: 1px solid var(--line); padding: 10px 4%;
    box-shadow: 0 14px 24px rgba(14, 42, 71, 0.1);
  }
  .site-nav.open { display: flex; }
  .site-nav a.nav-cta { margin-left: 0; }
}
