/* ============================================================
   XinXie EP — Overseas B2B Site
   Target markets: Southeast Asia & South Africa
   ============================================================ */
:root {
  --navy: #0b2340;
  --navy-2: #103459;
  --teal: #1e78d7;
  --teal-dark: #1668b8;
  --amber: #f5a623;
  --bg: #f5f7fa;
  --card: #ffffff;
  --ink: #1d2b3a;
  --muted: #5b6b7b;
  --line: #e3e9ef;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(11, 35, 64, 0.08);
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Top bar (light, like CN site) ---------- */
.topbar {
  background: #f2f4f6;
  color: #6b7683;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  padding: 7px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: #4a90d9; }

/* ---------- Header main (white band: logo left, hotline right) ---------- */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(11,35,64,.10);
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo img {
  height: 64px;
  width: auto;
  background: none;
  border-radius: 0;
  padding: 0;
}
.logo-text b {
  display: block;
  font-size: 22px;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: .5px;
}
.logo-text small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  letter-spacing: .2px;
}
.logo-text small:first-of-type { color: #3a4a5a; font-weight: 600; }
.hotline { text-align: right; white-space: nowrap; }
.hotline-label {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 2px;
}
.hotline-num {
  font-size: 27px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 1px;
  text-decoration: none;
}
.hotline-num:hover { color: var(--teal); text-decoration: none; }

/* ---------- Main nav (dark bar, active = blue) ---------- */
.main-nav { background: #23282d; }
.nav-wrap { display: flex; align-items: center; }
.nav-links { display: flex; flex: 1; list-style: none; gap: 0; }
.nav-links a {
  display: block;
  color: #dfe6ec;
  padding: 14px 30px;
  border-radius: 0;
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover {
  background: #2f363d;
  color: #fff;
  text-decoration: none;
}
.nav-links a.active {
  background: var(--teal);
  color: #fff;
}
.nav-cta {
  background: var(--teal);
  color: #fff !important;
}
.nav-cta:hover { background: var(--teal-dark) !important; }

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: #23282d;
  font-size: 26px;
  cursor: pointer;
}

/* ---------- Hero (full-width photo slideshow + overlay, like CN site) ---------- */
.hero {
  background: #0a1c34;
  color: #fff;
  padding: 90px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: 46px;
  line-height: 1.15;
  letter-spacing: 1px;
  max-width: 820px;
  margin-bottom: 6px;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.hero .hero-sub {
  font-size: 17px;
  color: #b9cde0;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-ribbon {
  display: inline-block;
  background: linear-gradient(100deg, #1e78d7, #2f8fe8);
  color: #fff;
  font-weight: 600;
  font-size: 19px;
  padding: 13px 34px 13px 26px;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
  margin-bottom: 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.hero-checks {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
  max-width: 640px;
}
.hero-checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 17px;
  color: #eaf2fa;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.hero-checks .chk {
  flex: 0 0 26px; height: 26px;
  border: 2px solid #4da3ec;
  background: rgba(30,120,215,.35);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 14px;
  margin-top: 1px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-ghost { background: rgba(0,169,157,.12); color: var(--teal-dark); border: 1.5px solid var(--teal); }

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 46px;
}
.hero-stats .stat b { font-size: 26px; display: block; color: #fff; }
.hero-stats .stat span { font-size: 13px; color: #9fc2d8; letter-spacing: .5px; }

/* ---------- Section base ---------- */
section.block { padding: 72px 0; }
section.block.alt { background: #fff; }
.sec-head { max-width: 720px; margin-bottom: 42px; }
.sec-head .kicker {
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sec-head h2 { font-size: 30px; color: var(--navy); line-height: 1.25; }
.sec-head p { color: var(--muted); margin-top: 10px; }

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

.prod-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(11,35,64,.14); }
.prod-card .thumb {
  height: 190px;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
  background: #fff;
}
.prod-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.prod-card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.prod-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.prod-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.prod-card .meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--teal-dark);
  font-weight: 600;
}
.prod-card .link { margin-top: 14px; font-weight: 600; }

.t-teal  { background: linear-gradient(135deg, #0e7d8c, #00a99d); }
.t-navy  { background: linear-gradient(135deg, #0b2340, #2a5a8c); }
.t-amber { background: linear-gradient(135deg, #c97b12, #f5a623); }
.t-slate { background: linear-gradient(135deg, #455a6e, #7a93a8); }
.t-green { background: linear-gradient(135deg, #2e7d46, #55a868); }
.t-purple{ background: linear-gradient(135deg, #4a3b8c, #7a68c4); }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; display: grid; gap: 14px; }
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feature-list .dot {
  flex: 0 0 26px; height: 26px;
  border-radius: 50%;
  background: rgba(0,169,157,.12);
  color: var(--teal-dark);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 13px;
  margin-top: 2px;
}

/* ---------- Markets ---------- */
.market-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.badge {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  color: var(--navy);
  font-weight: 600;
  box-shadow: var(--shadow);
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
table.spec { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
table.spec th, table.spec td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.spec thead th { background: var(--navy); color: #fff; font-weight: 600; white-space: nowrap; }
table.spec tbody tr:last-child td { border-bottom: none; }
table.spec tbody tr:nth-child(even) { background: #f7fafc; }

/* ---------- Product detail section ---------- */
.prod-detail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; margin-bottom: 34px; }
.prod-detail h3 { color: var(--navy); font-size: 24px; margin-bottom: 4px; }
.prod-detail .sub { color: var(--teal-dark); font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.prod-detail p.desc { color: var(--muted); margin-bottom: 20px; }
.prod-detail .cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 26px; align-items: start; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .18s ease;
}
.gallery img:hover { transform: scale(1.02); }
.gallery figcaption {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  gap: 18px;
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
}
.step b { color: var(--navy); display: block; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Form ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 14px; color: var(--navy); display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fbfcfe;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

.contact-cols { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; align-items: start; }
.info-card { background: var(--navy); color: #e8f1f7; border-radius: var(--radius); padding: 30px; }
.info-card h3 { color: #fff; margin-bottom: 18px; }
.info-card .row { display: flex; gap: 12px; margin-bottom: 14px; font-size: 15px; }
.info-card .row .ico { color: var(--teal); font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--navy), var(--teal-dark));
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { font-size: 28px; margin-bottom: 12px; }
.cta-band p { color: #c9e6e2; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9fb8cb; padding: 48px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 15px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #9fb8cb; }
.site-footer a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .prod-detail .cols, .contact-cols { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--navy-2);
    flex-direction: column;
    padding: 14px 20px 20px;
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
  }
  .nav-links.open { display: flex; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 24px; }
  section.block { padding: 52px 0; }
}
/* ---------- Featured case photo ---------- */
.case-photo { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 28px rgba(11,35,64,.18); }
.case-photo img { width: 100%; height: 420px; object-fit: cover; display: block; transition: transform .4s ease; }
.case-photo:hover img { transform: scale(1.03); }
@media (max-width: 640px) { .case-photo img { height: 220px; } }

/* Clickable category badges (projects page) */
a.badge {
  text-decoration: none;
  display: inline-block;
  transition: border-color .2s, color .2s, transform .2s;
}
a.badge:hover {
  border-color: #0d9488;
  color: #0d9488;
  transform: translateY(-2px);
}

/* ---------- Hot keywords + search bar (like CN site) ---------- */
.hotbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.hotbar-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hot-kw { font-size: 14px; color: var(--muted); }
.hot-kw a {
  color: var(--ink);
  margin-right: 14px;
  white-space: nowrap;
}
.hot-kw a:hover { color: var(--teal); }
.hot-search { display: flex; }
.hot-search input {
  width: 240px;
  padding: 9px 14px;
  border: 1.5px solid var(--line);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 14px;
  background: #fbfcfe;
}
.hot-search button {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 0 18px;
  cursor: pointer;
  font-size: 16px;
}
.hot-search button:hover { background: var(--teal-dark); }

/* ---------- Responsive overrides for new header/hero ---------- */
@media (max-width: 960px) {
  .hero h1 { font-size: 36px; }
  .hotline-num { font-size: 22px; }
  .logo-text small:last-of-type { display: none; }
}
@media (max-width: 640px) {
  .header-main { padding: 10px 20px; flex-wrap: wrap; }
  .logo img { height: 48px; }
  .logo-text b { font-size: 18px; }
  .logo-text small:first-of-type { display: none; }
  .hotline { display: none; }
  .main-nav { position: relative; }
  .nav-links a { padding: 13px 20px; }
  .hero { padding: 56px 0 64px; background-position: center; }
  .hero h1 { font-size: 27px; }
  .hero-ribbon { font-size: 15px; padding: 10px 24px 10px 18px; }
  .hero-checks li { font-size: 15px; }
}

/* ---------- Hero background slideshow ---------- */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,28,52,.88) 0%, rgba(9,28,52,.62) 45%, rgba(9,28,52,.22) 100%);
}
@media (max-width: 640px) {
  .hero-slide::after {
    background: linear-gradient(180deg, rgba(9,28,52,.55), rgba(9,28,52,.82));
  }
}
