/* ZESHAN 泽汕电器 - B2B Foreign Trade Site Styles */
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --blue: #1d4e89;
  --accent: #f26419;
  --accent-2: #f28c28;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #22303f;
  --muted: #5b6b7b;
  --line: #e3e8ee;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(11, 37, 69, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 2px;
  white-space: nowrap;
}
.logo small { font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.main-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.main-nav a {
  color: var(--text);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
}
.main-nav a:hover { background: var(--bg); color: var(--accent); }
.main-nav a.active { color: var(--accent); font-weight: 700; }
.lang-switch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px;
  font-size: 13px;
  display: flex;
  gap: 2px;
  white-space: nowrap;
}
.lang-switch a { padding: 3px 10px; border-radius: 999px; color: var(--muted); }
.lang-switch a.on { background: var(--navy); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; font-size: 18px; cursor: pointer; color: var(--navy); }

/* ---------- mobile-only language switch (always visible) ---------- */
.lang-switch-mobile { display: none; }
@media (max-width: 640px) {
  .lang-switch-mobile {
    display: flex;
    margin-left: auto;
    padding: 3px 4px;
  }
  .lang-switch-mobile a { padding: 5px 12px; font-size: 14px; font-weight: 600; }
  .main-nav .lang-switch { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue) 100%);
  color: #fff;
  padding: 72px 20px 84px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { font-size: 40px; line-height: 1.25; margin-bottom: 18px; font-weight: 800; }
.hero h1 em { color: var(--accent-2); font-style: normal; }
.hero p.lead { font-size: 18px; color: #d7e0ec; margin-bottom: 28px; max-width: 560px; }
.hero-img {
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  background: #fff;
  padding: 14px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-ghost { border: 2px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { color: #fff; border-color: var(--accent-2); }

/* ---------- Sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 64px 20px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head .kicker {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 13px;
  text-transform: uppercase;
}
.section-head h2 { font-size: 32px; color: var(--navy); margin: 8px 0 12px; }
.section-head p { color: var(--muted); }
.bg-white { background: #fff; }

/* stats band */
.stats {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}
.stat b { font-size: 34px; color: var(--accent); display: block; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 14px; }

/* product category cards */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(11,37,69,.14); }
.cat-card .thumb { background: #fff; padding: 18px; display: flex; align-items: center; justify-content: center; min-height: 230px; }
.cat-card .thumb img { max-height: 200px; object-fit: contain; }
.cat-card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.cat-card h3 { color: var(--navy); font-size: 19px; margin-bottom: 6px; }
.cat-card .en { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.cat-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.cat-card .models { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: #eef3f9;
  color: var(--navy-2);
  border-radius: 5px;
  padding: 2px 9px;
  font-size: 12.5px;
  font-family: Consolas, monospace;
}
.more-link { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--accent); }

/* scenario cards */
.scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.scene {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}
.scene .ico { font-size: 30px; margin-bottom: 12px; }
.scene h3 { color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.scene p { color: var(--muted); font-size: 14px; }

/* feature list */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 40px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .n {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.feature h3 { color: var(--navy); font-size: 17px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* product sections on products page */
.prod-block { margin-bottom: 56px; }
.prod-block-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.prod-block-head h2 { color: var(--navy); font-size: 26px; }
.prod-block-head .en { color: var(--accent); font-weight: 700; font-size: 15px; }
.prod-block > .desc { color: var(--muted); max-width: 900px; margin-bottom: 22px; }
.prod-layout { display: grid; grid-template-columns: 340px 1fr; gap: 30px; align-items: start; }
.prod-photo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.prod-photo img { max-height: 320px; object-fit: contain; }
table.spec {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 14.5px;
}
table.spec th, table.spec td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
table.spec th { background: var(--navy); color: #fff; font-weight: 600; white-space: nowrap; }
table.spec td:first-child { background: #f0f4f9; color: var(--navy); font-weight: 600; white-space: nowrap; width: 130px; }
.spec-note { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px; box-shadow: var(--shadow); }
.faq-item h3 { color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.faq-item p { color: var(--muted); font-size: 15px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color: #fff;
  text-align: center;
  padding: 56px 20px;
}
.cta-band h2 { font-size: 28px; margin-bottom: 10px; }
.cta-band p { color: #cfd9e6; margin-bottom: 24px; }

/* contact / form */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 18px; }
.info-card h3 { color: var(--navy); margin-bottom: 12px; font-size: 17px; }
.info-card p, .info-card li { color: var(--muted); font-size: 15px; }
.info-card ul { list-style: none; }
.info-card li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.info-card li:last-child { border-bottom: 0; }
form.rfq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
form.rfq label { display: block; font-weight: 600; color: var(--navy); margin: 14px 0 6px; font-size: 14.5px; }
form.rfq input, form.rfq select, form.rfq textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 15px;
  font-family: inherit;
  background: #fbfcfe;
}
form.rfq input:focus, form.rfq select:focus, form.rfq textarea:focus { outline: 2px solid rgba(242,140,40,.35); border-color: var(--accent-2); }
form.rfq .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-tip { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* footer */
.site-footer { background: var(--navy); color: #b9c6d6; margin-top: 0; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 48px 20px 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer a { color: #b9c6d6; }
.site-footer a:hover { color: var(--accent-2); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; font-size: 14.5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 20px; text-align: center; font-size: 13px; color: #8fa1b5; }

/* breadcrumb */
.crumbs { font-size: 13.5px; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--muted); }

/* page hero (inner pages) */
.page-hero { background: linear-gradient(120deg, var(--navy), var(--blue)); color: #fff; padding: 44px 20px 40px; }
.page-hero .inner { max-width: 1180px; margin: 0 auto; }
.page-hero h1 { font-size: 32px; margin-bottom: 6px; }
.page-hero p { color: #cfd9e6; max-width: 820px; }
.page-hero .crumbs a, .page-hero .crumbs { color: #9fb2c8; }

/* timeline */
.timeline { position: relative; margin: 20px 0 0; padding-left: 26px; border-left: 3px solid var(--line); }
.timeline .t-item { position: relative; padding-bottom: 22px; }
.timeline .t-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline b { color: var(--navy); }
.timeline p { color: var(--muted); font-size: 14.5px; }

/* responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .prod-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 12px 20px 18px;
    box-shadow: 0 12px 20px rgba(0,0,0,.08);
  }
  .main-nav.open { display: flex; }
  .cat-grid, .scene-grid { grid-template-columns: 1fr; }
  form.rfq .row { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; }
}
