/* =========================================================
   Aiverson Technology — 独立站样式
   品牌红 #D8382A · 浅底 #F7F6F2 · 墨色 #16171C
   ========================================================= */

:root {
  --red: #d8382a;
  --red-dark: #b52a1e;
  --red-soft: #fdf1ef;
  --ink: #16171c;
  --ink-2: #2b2d34;
  --gray: #6f747f;
  --gray-2: #9aa0aa;
  --line: #e7e5de;
  --bg: #f7f6f2;
  --card: #ffffff;
  --ok: #1e8e5a;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 2px 10px rgba(22, 23, 28, .05), 0 12px 34px rgba(22, 23, 28, .07);
  --shadow-hover: 0 4px 14px rgba(22, 23, 28, .08), 0 18px 44px rgba(22, 23, 28, .12);
  --maxw: 1180px;
  --ff: "Inter", "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

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

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  height: 66px; display: flex; align-items: center; gap: 26px;
}
.logo-link { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-link img { height: 30px; width: auto; }

.main-nav { display: flex; gap: 4px; margin-inline-start: 8px; }
.main-nav a {
  padding: 8px 13px; border-radius: 9px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--red-soft); color: var(--red); }
.main-nav a.on { color: var(--red); }

.header-spacer { flex: 1; }

/* 语言切换 */
.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: #fff;
  padding: 7px 12px; border-radius: 9px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.lang-btn:hover { border-color: var(--gray-2); }
.lang-btn .caret { font-size: 9px; color: var(--gray); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); min-width: 150px; padding: 6px;
  display: none; z-index: 70;
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
}
.lang-menu a:hover { background: var(--bg); }
.lang-menu a.on { color: var(--red); font-weight: 700; }
.lang-menu .short {
  font-size: 11px; color: var(--gray-2); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 6px;
}

/* CTA 按钮（头部） */
.header-cta {
  background: var(--red); color: #fff !important;
  padding: 9px 18px !important; border-radius: 9px !important;
  font-weight: 700 !important; white-space: nowrap;
}
.header-cta:hover { background: var(--red-dark) !important; color: #fff !important; }
.header-cta.wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366 !important; box-shadow: 0 6px 16px rgba(37, 211, 102, .3);
}
.header-cta.wa:hover { background: #1eb257 !important; }
.header-cta.wa svg { width: 17px; height: 17px; fill: #fff; }

/* 移动端汉堡 */
.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  width: 40px; height: 40px; border-radius: 9px; cursor: pointer;
  font-size: 18px; color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1b1c22 0%, #26282f 55%, #3a2c2a 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 380px at 82% 18%, rgba(216, 56, 42, .30), transparent 62%),
    radial-gradient(520px 300px at 8% 92%, rgba(216, 56, 42, .14), transparent 60%);
  pointer-events: none;
}
.hero-in {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: 84px 22px 92px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(216, 56, 42, .16); border: 1px solid rgba(216, 56, 42, .5);
  color: #ffb4aa; font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  padding: 6px 14px; border-radius: 999px; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 50px); line-height: 1.16;
  margin: 20px 0 0; font-weight: 800; letter-spacing: -.01em;
}
.hero h1 em { color: #ff6a58; font-style: normal; }
.hero .hero-sub {
  margin-top: 18px; font-size: 17px; color: #c9cbd2; max-width: 34em;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-tags span {
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06);
  padding: 7px 14px; border-radius: 9px; font-size: 13.5px; color: #e6e7ea;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 11px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(216, 56, 42, .34); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255, 255, 255, .32); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--red); color: var(--red); }

.hero-visual { position: relative; }
.hero-visual .machine {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .12);
}
.hero-visual .machine img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero-badge {
  position: absolute; inset-inline-end: -8px; bottom: 22px;
  background: #fff; color: var(--ink); border-radius: 14px;
  padding: 12px 18px; box-shadow: var(--shadow-hover);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 10px;
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(30, 142, 90, .16); }

/* ---------- 通用区块 ---------- */
.section { padding: 76px 0; }
.section.tight { padding: 56px 0; }
.section.alt { background: #fff; border-block: 1px solid var(--line); }

.sec-head { text-align: center; max-width: 700px; margin: 0 auto 46px; }
.sec-head .kicker {
  color: var(--red); font-weight: 800; font-size: 12.5px;
  letter-spacing: .18em; text-transform: uppercase;
}
.sec-head h2 { font-size: clamp(25px, 3.2vw, 36px); margin: 10px 0 12px; font-weight: 800; letter-spacing: -.01em; }
.sec-head p { color: var(--gray); font-size: 16.5px; margin: 0; }

/* ---------- 数字条 ---------- */
.stats { background: #fff; border-block: 1px solid var(--line); }
.stats-in {
  max-width: var(--maxw); margin: 0 auto; padding: 30px 22px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center;
}
.stats-in .v { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--red); }
.stats-in .l { font-size: 13.5px; color: var(--gray); margin-top: 3px; }

/* ---------- 价值卡 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #dcd9d0; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--red-soft);
  color: var(--red); display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 15px;
}
.card h3 { margin: 0 0 8px; font-size: 17.5px; font-weight: 700; }
.card p { margin: 0; color: var(--gray); font-size: 14.8px; }

/* ---------- 产品卡 ---------- */
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.prod-card .ph { background: #fafaf8; border-bottom: 1px solid var(--line); }
.prod-card .ph img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.prod-card .bd { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.prod-card .nm { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.prod-card .nm h3 { margin: 0; font-size: 19px; font-weight: 800; }
.chip {
  font-size: 11px; font-weight: 700; color: var(--red);
  background: var(--red-soft); border: 1px solid #f6cdc7;
  padding: 2.5px 9px; border-radius: 999px; white-space: nowrap;
}
.chip.dark { color: #fff; background: var(--ink); border-color: var(--ink); }
.prod-card .ds { color: var(--gray); font-size: 14.5px; margin: 9px 0 14px; flex: 1; }
.prod-card .specs { font-size: 13.2px; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 12px; }
.prod-card .specs div { display: flex; justify-content: space-between; gap: 12px; padding: 2.5px 0; }
.prod-card .specs b { color: var(--gray); font-weight: 600; white-space: nowrap; }
.prod-card .lnk {
  margin-top: 16px; color: var(--red); font-weight: 700; font-size: 14.5px;
  display: inline-flex; align-items: center; gap: 6px;
}
.prod-card .lnk:hover { text-decoration: underline; }

/* 徽标（旗舰） */
.flag {
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  background: var(--ink); color: #fff; padding: 3px 10px; border-radius: 6px;
}

/* ---------- 详情页 ---------- */
.pd-hero { background: #fff; border-bottom: 1px solid var(--line); }
.pd-in {
  max-width: var(--maxw); margin: 0 auto; padding: 54px 22px 60px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center;
}
.pd-in .ph { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.pd-in .ph img { width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.pd-in h1 { font-size: clamp(28px, 3.6vw, 40px); margin: 8px 0 12px; font-weight: 800; }
.pd-in .lead { color: var(--gray); font-size: 16.5px; margin: 0 0 22px; }
.pd-feats { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.pd-feats li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; }
.pd-feats .tick {
  flex-shrink: 0; width: 21px; height: 21px; border-radius: 50%;
  background: var(--red-soft); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; margin-top: 2px;
}

/* 参数表 */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.spec-table th, .spec-table td {
  padding: 13px 18px; text-align: start; font-size: 14.5px; border-bottom: 1px solid var(--line);
}
.spec-table thead th { background: var(--ink); color: #fff; font-weight: 700; font-size: 13.5px; letter-spacing: .04em; }
.spec-table tbody th { font-weight: 600; color: var(--gray); width: 34%; background: #fbfaf8; }
.spec-table td { font-weight: 600; color: var(--ink); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.tbl-scroll { overflow-x: auto; border-radius: var(--radius); }

/* ---------- 行业 ---------- */
.ind-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.ind-card .em { font-size: 27px; margin-bottom: 12px; }
.ind-card h3 { margin: 0 0 7px; font-size: 17px; font-weight: 700; }
.ind-card p { margin: 0; color: var(--gray); font-size: 14.4px; }
.ind-card::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0;
  width: 3px; background: var(--red); opacity: 0; transition: opacity .18s;
}
.ind-card:hover::before { opacity: 1; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: st; display: grid; gap: 16px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; display: flex; gap: 18px; align-items: flex-start;
}
.step .n {
  counter-increment: st; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 12px; background: var(--red-soft);
  color: var(--red); font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.step .n::before { content: counter(st); }
.step h3 { margin: 2px 0 5px; font-size: 16.5px; }
.step p { margin: 0; color: var(--gray); font-size: 14.5px; }

.f-note { font-size: 12.8px; color: var(--gray-2); margin-top: 10px; }

/* ---------- 直达联系（无表单） ---------- */
.btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 8px 22px rgba(37, 211, 102, .32); }
.btn-wa:hover { background: #1eb257; transform: translateY(-1px); }
.btn-mail { background: var(--ink); color: #fff; box-shadow: 0 8px 22px rgba(22, 23, 28, .22); }
.btn-mail:hover { background: #000; transform: translateY(-1px); }

.chan-grid { grid-template-columns: repeat(2, 1fr); }
.chan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 15px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.chan:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #dcd9d0; }
.chan-h { display: flex; gap: 14px; align-items: flex-start; }
.chan-h .ico {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.chan-h .ico svg { width: 25px; height: 25px; }
.chan.wa .ico { background: #e7f9ef; } .chan.wa .ico svg { fill: #1eb257; }
.chan.mail .ico { background: var(--red-soft); } .chan.mail .ico svg { fill: var(--red); }
.chan.wx .ico { background: #eaf4ff; } .chan.wx .ico svg { fill: #2f6fb5; }
.chan.tel .ico { background: #eef1f8; } .chan.tel .ico svg { fill: #3f4a6b; }
.chan h3 { margin: 0 0 6px; font-size: 18px; }
.chan p { margin: 0; color: var(--gray); font-size: 14.6px; }
.chan-v {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #faf9f6; border: 1px dashed var(--line); border-radius: 11px;
  padding: 11px 14px; font-weight: 700; font-size: 15px; direction: ltr;
}
.chan-v > span { word-break: break-all; }
.copy-btn {
  font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 11px; cursor: pointer; white-space: nowrap; transition: .15s;
}
.copy-btn:hover { border-color: #25d366; color: #1eb257; }
.copy-btn.done { border-color: #c8e9d9; background: #eef8f2; color: var(--ok); }
.chan-note { font-size: 13px; color: var(--gray-2); margin: 0; }
.chan .btn { width: 100%; margin-top: auto; }
.chan-note a { color: var(--red); font-weight: 600; }

.save-band {
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow);
}
.save-band h3 { margin: 0 0 8px; font-size: clamp(19px, 2.2vw, 23px); }
.save-band p { margin: 0; color: var(--gray); font-size: 15px; max-width: 52em; }
.vcard-link { color: #ff6a58; }

/* ---------- 悬浮直达按钮 ---------- */
.float-stack {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 80;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.wa-float, .mail-float {
  position: static; display: flex; align-items: center; gap: 10px;
  border-radius: 999px; padding: 12px 20px 12px 15px;
  font-weight: 700; font-size: 14.5px; color: #fff;
  transition: transform .16s, box-shadow .16s;
}
.wa-float { background: #25d366; box-shadow: 0 10px 28px rgba(37, 211, 102, .42); }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(37, 211, 102, .5); }
.mail-float { background: var(--ink); box-shadow: 0 10px 28px rgba(22, 23, 28, .34); }
.mail-float:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(22, 23, 28, .42); }
.wa-float svg, .mail-float svg { width: 21px; height: 21px; fill: #fff; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: #b9bcc4; margin-top: 76px; }
.footer-in {
  max-width: var(--maxw); margin: 0 auto; padding: 52px 22px 30px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px;
}
.footer-in img { height: 28px; margin-bottom: 14px; }
.footer-in h4 { color: #fff; font-size: 14px; margin: 0 0 12px; letter-spacing: .05em; }
.footer-in a { display: block; padding: 4px 0; font-size: 14px; color: #b9bcc4; }
.footer-in a:hover { color: #fff; }
.footer-in p { font-size: 13.8px; line-height: 1.7; margin: 0; }
.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .1);
  max-width: var(--maxw); margin: 0 auto; padding: 18px 22px 26px;
  font-size: 12.8px; color: #8b8f99; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ---------- RTL（阿拉伯语） ---------- */
[dir="rtl"] body, [dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea, [dir="rtl"] button {
  font-family: "Segoe UI", "Noto Naskh Arabic", "Arabic Typesetting", Tahoma, var(--ff);
}
[dir="rtl"] .main-nav, [dir="rtl"] .hero-tags { flex-direction: row; }

/* ---------- 简体中文 ---------- */
[lang="zh"] body, [lang="zh"] input, [lang="zh"] select, [lang="zh"] textarea, [lang="zh"] button {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Source Han Sans SC", "Inter", "Segoe UI", Arial, sans-serif;
}
[lang="zh"] h1, [lang="zh"] h2, [lang="zh"] h3 { letter-spacing: 0; }
[lang="zh"] .hero h1 { line-height: 1.28; }
[lang="zh"] .hero-sub, [lang="zh"] .lead { line-height: 1.85; }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-in, .pd-in { grid-template-columns: 1fr; gap: 34px; padding-top: 56px; padding-bottom: 60px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .chan-grid { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }

  .main-nav {
    position: absolute; top: 66px; inset-inline: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 12px 18px 16px; gap: 2px;
    display: none; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; font-size: 15.5px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  /* 移动端保留 WhatsApp 直达入口，只收成图标 */
  .header-cta.wa { display: inline-flex !important; padding: 9px 11px !important; }
  .header-cta.wa .cta-label { display: none; }
}
@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-2, .chan-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .hero-in { padding: 46px 20px 56px; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .footer-in { grid-template-columns: 1fr; gap: 22px; }
  .save-band { padding: 24px 20px; }
  .chan { padding: 22px 20px; }
  .float-stack { inset-inline-end: 14px; bottom: 14px; gap: 8px; }
  .wa-float, .mail-float { padding: 13px; border-radius: 50%; }
  .wa-float span, .mail-float span { display: none; }
}
