/* Shenzhen Ant Nest Intelligent Technology - site styles */
:root {
  --brand: #3893ca;
  --brand-600: #2b83b8;
  --brand-700: #1f6b96;
  --brand-50: #eef7fc;
  --brand-100: #d6ebf7;
  --ink: #0e1a24;
  --ink-2: #1b2a36;
  --muted: #5c6f7e;
  --line: #e2e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f9fb;
  --ok: #1f9d6b;
  --radius: 10px;
  --radius-sm: 8px;
  --maxw: 1160px;
  --shadow: 0 1px 2px rgba(14, 26, 36, .06), 0 8px 24px rgba(14, 26, 36, .06);
  --font: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.16; margin: 0 0 .45em; letter-spacing: 0; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* language switching */
html[data-lang="zh"] .lang-en { display: none !important; }
html[data-lang="en"] .lang-zh { display: none !important; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 80px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 52px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: var(--radius-sm); color: var(--ink-2);
  font-size: 15px; font-weight: 500;
}
.nav a:hover { background: var(--brand-50); color: var(--brand-700); }
.nav a.active { color: var(--brand-700); background: var(--brand-50); }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; margin-left: 8px; background: #fff;
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 12px;
}
.lang-toggle button.on { background: var(--brand); color: #fff; }
.menu-btn { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 11px 20px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 15px; border: 1px solid transparent; transition: .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-700); }
.btn-light { background: #fff; color: var(--brand-700); }
.btn-light:hover { background: var(--brand-50); }
.btn-outline-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ink);
  background: linear-gradient(180deg, #f7f8fa 0%, #eef1f4 100%);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { position: relative; padding: 92px 24px 84px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  color: var(--brand-700); border: 1px solid var(--brand-100); background: #fff; border-radius: 999px;
  padding: 6px 14px; margin: 0 0 22px;
}
.hero h1 { font-size: clamp(32px, 4.6vw, 56px); max-width: 34ch; color: var(--ink); margin-bottom: 20px; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 62ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero .facts div { min-width: 150px; }
.hero .facts b { display: block; color: var(--ink); font-size: 15px; }
.hero .facts span { color: var(--muted); font-size: 13.5px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .kicker { color: var(--brand-700); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 8px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.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);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.icon-badge {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700); margin-bottom: 16px;
}
.icon-badge svg { width: 30px; height: 30px; }

/* feature list */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.checks svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: 2px; }

/* placeholder image slot */
.ph {
  aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px dashed #c6d4de;
  background:
    linear-gradient(135deg, #f2f7fa 0%, #eaf1f6 100%);
  display: grid; place-items: center; text-align: center; color: #8aa0b0;
  font-size: 13px; gap: 6px;
}
.ph svg { width: 34px; height: 34px; color: #a7bccb; }

/* real image slot */
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.shot img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.shot.wide { aspect-ratio: 16 / 9; }
.shot.tall { aspect-ratio: 4 / 3; }
.ph.tall { aspect-ratio: 3 / 4; }
.ph.wide { aspect-ratio: 16 / 9; }

/* product / case cards */
.tile { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.tile .body { padding: 18px 20px 22px; }
.tile h3 { font-size: 17px; margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: 14.5px; margin: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--brand-700); background: var(--brand-50); border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }

/* CTA band */
.cta { background: var(--brand-700); color: #fff; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 44px 24px; }
.cta h2 { color: #fff; margin: 0; font-size: clamp(22px, 2.6vw, 28px); }
.cta p { margin: 4px 0 0; color: #cfe6f2; }
.cta .actions { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brand-100); border-color: var(--brand);
}
.form-note { font-size: 13px; color: var(--muted); }
.form-status { margin-top: 14px; font-size: 14.5px; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #c0392b; }

/* contact info list */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 12px; }
.info-list svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 3px; }
.info-list b { display: block; font-size: 14px; }
.info-list span { color: var(--muted); font-size: 14.5px; }

/* page banner (sub pages) */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding: 56px 24px 44px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); }
.page-hero p { color: var(--muted); max-width: 68ch; margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b7c6d1; padding: 52px 0 26px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .brand img { height: 42px; background: #fff; padding: 6px 9px; border-radius: 8px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer a { color: #b7c6d1; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #8ea1af; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 80px 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 10px 16px 16px; border-bottom: 1px solid var(--line);
    gap: 2px; transform: translateY(-120%); transition: transform .22s ease; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px; }
  .menu-btn { display: inline-grid; place-items: center; margin-left: auto; width: 42px; height: 42px;
    border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
  .lang-toggle { margin: 8px 0 0; align-self: flex-start; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .cta .actions { margin-left: 0; }
  .hero .wrap { padding: 60px 24px 52px; }
  section { padding: 54px 0; }
}
