/* ===== xigeer.net v2 — design tokens ===== */
:root {
  --brand: #0a5fa3;
  --brand-dark: #074a7d;
  --accent: #1a90d8;
  --warm: #ff8a3d;
  --ink: #14202b;
  --ink-2: #33475b;
  --muted: #6b7b8b;
  --bg: #f7fafc;
  --surface: #ffffff;
  --line: #e3eaf0;
  --ok: #22a06b;
  --warn: #d99e2b;
  --err: #c8344d;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(10,40,80,0.06), 0 1px 3px rgba(10,40,80,0.04);
  --shadow-md: 0 6px 18px rgba(10,40,80,0.08), 0 2px 6px rgba(10,40,80,0.04);
  --shadow-lg: 0 18px 40px rgba(10,40,80,0.10);
  --maxw: 1200px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-weight: 700; color: var(--ink); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-2); }

/* ===== top bar ===== */
.topbar {
  background: var(--ink);
  color: #cbd5e0;
  font-size: 13px;
  line-height: 1.2;
}
.topbar .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.topbar a { color: #cbd5e0; }
.topbar a:hover { color: #fff; }
.topbar .meta { display: flex; flex-wrap: wrap; gap: 18px; }
.topbar .meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ===== nav ===== */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 24px;
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav .brand img { height: 38px; width: auto; }
.nav .brand .sub { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav ul li a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--ink-2);
  border-radius: 8px;
  font-weight: 500;
  font-size: 14.5px;
}
.nav ul li a:hover { background: var(--bg); color: var(--ink); }
.nav ul li a.active { background: rgba(10,95,163,0.08); color: var(--brand); }
.nav .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav .actions a.quote {
  background: var(--warm);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 0 rgba(0,0,0,.06);
}
.nav .actions a.quote:hover { background: #ee7726; color: #fff; }

/* ===== hero ===== */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(26,144,216,0.18), transparent 50%),
    linear-gradient(135deg, #0a2540 0%, #154679 45%, #1a90d8 100%);
  color: #fff;
  padding: 80px 24px 90px;
}
.hero .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; }
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9ec4e6;
  background: rgba(255,255,255,0.08);
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 500;
  margin-bottom: 22px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero h1 {
  color: #fff;
  margin: 0 0 22px;
}
.hero h1 .highlight {
  background: linear-gradient(120deg, #ffd699 0%, #ffba6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--warm);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,138,61,0.4);
}
.btn-primary:hover { background: #ee7726; transform: translateY(-1px); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.btn-line {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--line);
}
.btn-line:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.hero .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.18);
  max-width: 720px;
}
.hero .stats .stat b {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.hero .stats .stat span { color: rgba(255,255,255,0.75); font-size: 13px; }
@media (max-width: 720px) {
  .hero .stats { grid-template-columns: repeat(2, 1fr); }
}

.hero .visual {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(8px);
}
.hero .visual h4 { color: #9ec4e6; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; }
.hero .visual ul { list-style: none; padding: 0; margin: 0; }
.hero .visual li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  align-items: center;
}
.hero .visual li:last-child { border-bottom: 0; }
.hero .visual li .ok { color: #6fdda3; font-weight: 700; }

/* ===== sections ===== */
section {
  padding: 70px 24px;
}
section .wrap { max-width: var(--maxw); margin: 0 auto; }
section.alt { background: var(--surface); }
section.dark { background: var(--ink); color: #fff; }
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }
section.dark p { color: rgba(255,255,255,0.7); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow {
  color: var(--brand);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  margin-bottom: 12px;
}
.section-head h2 { margin: 0 0 12px; }
.section-head p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ===== product grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.product-card .img {
  aspect-ratio: 4/3;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-card .img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.product-card .img .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,138,61,0.92);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 1.05rem; margin: 0 0 8px; }
.product-card .meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.product-card .desc { color: var(--ink-2); font-size: 14px; margin: 0 0 16px; flex: 1; }
.product-card .actions { display: flex; gap: 8px; }
.product-card .actions a { flex: 1; text-align: center; font-size: 13.5px; padding: 9px 12px; border-radius: 6px; font-weight: 600; }
.product-card .actions a.outline { border: 1.5px solid var(--line); color: var(--brand); }
.product-card .actions a.outline:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.product-card .actions a.filled { background: var(--brand); color: #fff; }
.product-card .actions a.filled:hover { background: var(--brand-dark); }

/* ===== system stack ===== */
.systems {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.system-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.system-card .num {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.system-card h4 { margin: 0 0 8px; font-size: 1rem; }
.system-card p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ===== about card ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
}
.about-grid .text h2 { margin-bottom: 16px; }
.about-grid .text .lede { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 24px; }
.about-grid .features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.about-grid .features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-2);
}
.about-grid .features li::before { content: "✓"; color: var(--brand); font-weight: 700; flex-shrink: 0; }
.about-grid .visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-grid .visual img { width: 100%; height: 100%; object-fit: cover; }

/* ===== customers ===== */
.customers {
  background: var(--surface);
  padding: 50px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.customers .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 40px;
}
@media (max-width: 720px) {
  .customers .wrap { grid-template-columns: 1fr; gap: 24px; }
}
.customers h3 { margin: 0; font-size: 1rem; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.customers .logos { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.customers .logos .logo {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  filter: grayscale(1);
  opacity: 0.7;
  transition: opacity 0.2s, filter 0.2s;
}
.customers .logos .logo:hover { opacity: 1; filter: grayscale(0); }
.customers .logos .logo img { max-height: 100%; max-width: 130px; }

/* ===== contact CTA ===== */
.cta-section {
  background: linear-gradient(135deg, #0a2540 0%, #154679 100%);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}
.cta-section h2 { color: #fff; margin: 0 0 12px; }
.cta-section p { color: rgba(255,255,255,0.85); max-width: 580px; margin: 0 auto 28px; font-size: 1.05rem; }
.cta-section .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-section .btn-primary { padding: 16px 28px; font-size: 16px; }

/* ===== footer ===== */
footer {
  background: var(--ink);
  color: #b6c5d3;
  padding: 60px 24px 24px;
}
footer .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) {
  footer .wrap { grid-template-columns: 1fr 1fr; }
}
footer .col h5 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  margin: 0 0 16px;
}
footer .col ul { list-style: none; padding: 0; margin: 0; }
footer .col li { padding: 4px 0; }
footer .col li a { color: #b6c5d3; font-size: 14px; }
footer .col li a:hover { color: #fff; }
footer .brand-block .brand { color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: 8px; }
footer .brand-block .desc { color: #93a3b3; font-size: 13.5px; line-height: 1.6; margin: 0 0 16px; }
footer .brand-block .contact-line { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin-bottom: 8px; }
footer .brand-block .contact-line b { color: #fff; }
footer .meta-bar {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 13px;
  color: #93a3b3;
}

/* ===== WhatsApp floating button ===== */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  z-index: 100;
  animation: pulse 2s ease-in-out infinite;
}
.wa-fab:hover { transform: scale(1.06); color: #fff; }
.wa-fab svg { width: 28px; height: 28px; fill: currentColor; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 8px 24px rgba(37,211,102,0.7); }
}

/* ===== chatbot launcher ===== */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 92px;
  background: var(--brand);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 100;
  border: 0;
  cursor: pointer;
  font-size: 24px;
}
.chat-fab:hover { background: var(--brand-dark); transform: scale(1.05); }

/* ===== product detail page ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-top: 30px;
}
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; }
}
.product-detail .gallery .main {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-bottom: 12px;
}
.product-detail .gallery .main img { max-height: 100%; max-width: 100%; }
.product-detail .gallery .thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.product-detail .gallery .thumbs .thumb {
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: 6px;
  aspect-ratio: 1/1;
  cursor: pointer;
  overflow: hidden;
}
.product-detail .gallery .thumbs .thumb:hover, .product-detail .gallery .thumbs .thumb.active { border-color: var(--brand); }
.product-detail .gallery .thumbs .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.product-detail .info .crumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.product-detail .info .crumbs a { color: var(--muted); }
.product-detail .info h1 { font-size: 1.8rem; margin: 0 0 8px; }
.product-detail .info .model { color: var(--brand); font-weight: 600; font-size: 14px; margin-bottom: 18px; letter-spacing: 0.04em; text-transform: uppercase; }
.product-detail .info .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.product-detail .info .badges span { padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.product-detail .info .badges span.hot { background: rgba(34,160,107,0.1); color: var(--ok); border-color: rgba(34,160,107,0.2); }
.product-detail .info .spec-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 20px 0; }
.product-detail .info .spec-table .row { display: grid; grid-template-columns: 220px 1fr; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.product-detail .info .spec-table .row:nth-child(even) { background: var(--bg); }
.product-detail .info .spec-table .row:last-child { border-bottom: 0; }
.product-detail .info .spec-table .row b { color: var(--ink); font-weight: 600; }
.product-detail .info .spec-table .row span { color: var(--ink-2); }
@media (max-width: 720px) {
  .product-detail .info .spec-table .row { grid-template-columns: 1fr; gap: 4px; padding: 10px 14px; }
  .product-detail .info .spec-table .row b { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
}
.product-detail .info .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.product-detail .info .actions .btn { padding: 12px 20px; font-size: 14px; }

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--line);
  margin: 40px 0 24px;
}
.tabs button {
  background: transparent;
  border: 0;
  padding: 12px 20px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-size: 15px;
}
.tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.tabs button:hover { color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel h3 { margin-top: 0; }
.tab-panel ul { padding-left: 22px; }
.tab-panel ul li { margin-bottom: 8px; }

/* ===== breadcrumbs (used on sections) ===== */
.page-hero {
  background:
    linear-gradient(120deg, rgba(10,95,163,0.06), rgba(26,144,216,0.03));
  padding: 50px 24px 40px;
  border-bottom: 1px solid var(--line);
}
.page-hero .wrap { max-width: var(--maxw); margin: 0 auto; }
.page-hero .crumbs { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.page-hero .crumbs a { color: var(--muted); }
.page-hero h1 { margin: 0 0 8px; }
.page-hero p { max-width: 700px; color: var(--ink-2); }
