/* ============ Jiaxi Smartlink — global styles ============ */
:root {
  --navy: #0b2136;
  --navy-2: #123049;
  --navy-3: #1b405f;
  --accent: #f5a623;
  --accent-dark: #d98c0a;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #22313f;
  --muted: #5c6b7a;
  --line: #e3e9ef;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 33, 54, .08);
  --max: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  display: flex; align-items: center; gap: 26px;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: .4px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #ffcf6b);
  color: var(--navy); font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.brand small { display: block; font-size: 10px; font-weight: 500; opacity: .65; letter-spacing: 2px; }

.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  padding: 8px 13px; border-radius: 8px; font-size: 14.5px;
  color: #cfdce8; transition: .18s;
}
.nav a:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav a.active { color: var(--accent); font-weight: 600; }

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

.lang-switch {
  display: flex; border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; overflow: hidden; font-size: 12.5px;
}
.lang-switch button {
  background: transparent; color: #cfdce8; border: 0;
  padding: 5px 12px; cursor: pointer; font-family: inherit;
}
.lang-switch button.on { background: var(--accent); color: var(--navy); font-weight: 700; }

.btn {
  display: inline-block; padding: 10px 22px; border-radius: 9px;
  font-weight: 600; font-size: 14.5px; cursor: pointer; border: 0;
  transition: .18s; font-family: inherit;
}
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border: 1.5px solid rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-3); }

.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff;
  background:
    linear-gradient(100deg, rgba(9,26,42,.94) 22%, rgba(9,26,42,.55) 60%, rgba(9,26,42,.25)),
    url("../img/solar-string.jpg") center/cover no-repeat;
  padding: 110px 0 130px;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.18; max-width: 640px; letter-spacing: .3px; }
.hero p.sub { margin: 20px 0 30px; font-size: 17.5px; max-width: 560px; color: #dbe6f0; }
.hero .btn + .btn { margin-left: 12px; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 38px; }
.hero-tags span {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; color: #e8eef4;
}

/* ---------- sections ---------- */
section.block { padding: 76px 0; }
section.block.alt { background: #fff; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.sec-head .kicker {
  color: var(--accent-dark); font-weight: 700; letter-spacing: 2.5px;
  font-size: 12.5px; text-transform: uppercase;
}
.sec-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 10px 0 12px; color: var(--navy); }
.sec-head p { color: var(--muted); }

/* stats */
.stats { background: var(--navy); color: #fff; padding: 46px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stat b { font-size: clamp(26px, 3vw, 38px); color: var(--accent); }
.stat span { display: block; font-size: 13.5px; color: #b9c9d8; margin-top: 4px; }

/* category cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.p-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: .22s; display: flex; flex-direction: column;
}
.p-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(11,33,54,.14); }
.p-card .thumb { height: 210px; overflow: hidden; background: #dfe6ec; }
.p-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.p-card:hover .thumb img { transform: scale(1.05); }
.p-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.p-card h3 { color: var(--navy); font-size: 19px; margin-bottom: 8px; }
.p-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.p-card .more { color: var(--accent-dark); font-weight: 600; font-size: 14px; margin-top: 16px; }
.p-card .more:hover { text-decoration: underline; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.tag-row i {
  font-style: normal; font-size: 11.5px; background: #eef3f8; color: #4b6274;
  border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px;
}

/* feature blocks */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feat {
  background: var(--card); border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow); border-top: 3px solid var(--accent);
}
.feat .ico { font-size: 26px; }
.feat h3 { font-size: 16.5px; color: var(--navy); margin: 12px 0 8px; }
.feat p { font-size: 13.8px; color: var(--muted); }

/* split section (text + image) */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split h2 { color: var(--navy); font-size: clamp(22px, 2.8vw, 30px); margin-bottom: 14px; }
.split p { color: var(--muted); margin-bottom: 12px; }
.check-list { list-style: none; margin: 18px 0 24px; }
.check-list li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--text); font-size: 14.8px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--accent); color: var(--navy);
  font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* spec table */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 14.5px; }
.spec-table th, .spec-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table th { background: var(--navy); color: #fff; font-weight: 600; white-space: nowrap; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td:first-child { font-weight: 600; color: var(--navy); white-space: nowrap; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery img { border-radius: 10px; height: 170px; width: 100%; object-fit: cover; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 30px; font-weight: 800; color: #e7edf3;
  position: absolute; right: 16px; top: 10px;
}
.step h3 { font-size: 16px; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* certs */
.cert-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cert-row span {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 22px; font-weight: 700; color: var(--navy); font-size: 14.5px;
  box-shadow: var(--shadow);
}

/* CTA band */
.cta-band { background: linear-gradient(105deg, var(--navy), var(--navy-3)); color: #fff; padding: 70px 0; text-align: center; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.cta-band p { color: #c8d6e2; max-width: 560px; margin: 0 auto 28px; }

/* ---------- contact / form ---------- */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.info-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 34px 30px; }
.info-card h3 { font-size: 20px; margin-bottom: 18px; }
.info-item { display: flex; gap: 13px; margin-bottom: 20px; font-size: 14.5px; color: #d5e0ea; }
.info-item .ico { font-size: 18px; }
.info-item b { display: block; color: #fff; margin-bottom: 2px; }

.form-card { background: #fff; border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow); }
.form-card h3 { color: var(--navy); font-size: 20px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-field { display: flex; flex-direction: column; gap: 6px; }
.f-field.full { grid-column: 1 / -1; }
.f-field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.f-field input, .f-field select, .f-field textarea {
  border: 1.5px solid var(--line); border-radius: 9px; padding: 11px 13px;
  font-size: 14.5px; font-family: inherit; background: #fbfcfe; transition: .15s;
}
.f-field input:focus, .f-field select:focus, .f-field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.form-msg { margin-top: 16px; padding: 12px 15px; border-radius: 9px; font-size: 14px; display: none; }
.form-msg.ok { display: block; background: #e8f7ee; color: #1c7c40; border: 1px solid #bfe6cd; }
.form-msg.err { display: block; background: #fdecec; color: #b23434; border: 1px solid #f3c6c6; }

/* ---------- footer ---------- */
.site-footer { background: #081827; color: #93a7b8; padding: 54px 0 26px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; margin-bottom: 34px; }
.site-footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 14px; }
.site-footer a { display: block; margin-bottom: 9px; }
.site-footer a:hover { color: var(--accent); }
.footer-brand { font-weight: 700; color: #fff; font-size: 17px; margin-bottom: 10px; }
.copyright { border-top: 1px solid rgba(255,255,255,.09); padding-top: 20px; text-align: center; font-size: 12.8px; color: #6d8296; }

/* products dropdown */
.nav .drop { position: relative; }
.nav .drop > a::after { content: " ▾"; font-size: 11px; }
.drop-menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--navy-2); min-width: 240px; padding: 8px;
  border-radius: 10px; box-shadow: 0 14px 30px rgba(0,0,0,.35);
}
.drop-menu a { display: block; padding: 8px 12px; border-radius: 7px; font-size: 13.5px; white-space: nowrap; }
.drop:hover .drop-menu, .drop.open .drop-menu { display: block; }

/* page hero (inner pages) */
.page-hero {
  background: linear-gradient(100deg, rgba(9,26,42,.95) 25%, rgba(9,26,42,.6)),
    var(--navy-2) center/cover;
  color: #fff; padding: 72px 0;
}
.page-hero h1 { font-size: clamp(26px, 3.6vw, 40px); }
.page-hero p { color: #cdd9e4; margin-top: 12px; max-width: 620px; }
.page-hero .crumb { font-size: 13px; color: #9fb2c2; margin-bottom: 14px; }
.page-hero .crumb a:hover { color: var(--accent); }

/* product detail layout */
.pd-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 38px; align-items: start; }
.pd-grid .main img.hero-img { border-radius: var(--radius); box-shadow: var(--shadow); }
.pd-side { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; position: sticky; top: 90px; }
.pd-side h3 { color: var(--navy); margin-bottom: 14px; font-size: 17px; }
.pd-side ul { list-style: none; }
.pd-side li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.pd-side li:last-child { border: 0; }
.pd-side li b { color: var(--text); text-align: right; }
.pd-side .btn { width: 100%; text-align: center; margin-top: 18px; }

h3.sub-title { color: var(--navy); font-size: 21px; margin: 40px 0 18px; }

/* floating WhatsApp button */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; align-items: center; gap: 9px;
  background: #25d366; color: #fff; font-weight: 700; font-size: 14.5px;
  padding: 12px 18px; border-radius: 999px;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .42);
  transition: .2s;
}
.wa-float:hover { transform: translateY(-3px); background: #1ebe5b; color: #fff; }
.wa-float svg { width: 21px; height: 21px; fill: #fff; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* FAQ accordion */
.faq-list { max-width: 840px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--navy);
  font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-dark); font-size: 20px; font-weight: 800; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 22px 20px; color: var(--muted); font-size: 14.8px; }

/* legal page text */
.legal { max-width: 800px; margin: 0 auto; }
.legal h3 { color: var(--navy); font-size: 18px; margin: 26px 0 10px; }
.legal p { color: var(--muted); margin-bottom: 12px; font-size: 14.8px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .card-grid, .feat-grid, .steps, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-wrap, .pd-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .pd-side { position: static; }

  .nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: var(--navy-2); flex-direction: column; align-items: stretch;
    padding: 12px 18px 18px; gap: 6px; box-shadow: 0 14px 24px rgba(0,0,0,.3);
  }
  .nav.open { display: flex; }
  .drop-menu {
    position: static; display: none; box-shadow: none;
    background: rgba(255,255,255,.05); min-width: 0;
  }
  .drop.open .drop-menu { display: block; }
  .menu-btn { display: block; margin-left: auto; }
  .header-actions { margin-left: 0; }
  .header-inner { gap: 12px; }
}
@media (max-width: 560px) {
  .card-grid, .feat-grid, .steps, .f-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 90px; }
  .hero .btn + .btn { margin-left: 0; margin-top: 10px; }
  .brand small { display: none; }
}
