:root {
  --bg: #f6f7f9;
  --bg-elev: #ffffff;
  --bg-elev-2: #ffffff;
  --line: rgba(18, 22, 33, 0.09);
  --line-strong: rgba(18, 22, 33, 0.16);
  --text: #171a21;
  --muted: #5d6673;
  --muted-2: #98a0ac;
  --accent: #4c68bb;
  --accent-soft: rgba(96, 124, 210, 0.12);
  --warm: #4c68bb;
  --warm-soft: rgba(96, 124, 210, 0.12);
  --gradient: linear-gradient(135deg, #607cd2 0%, #9db4ec 100%);
  --shadow-lg: 0 24px 60px -18px rgba(23, 26, 33, 0.28);
  --shadow-md: 0 10px 30px -8px rgba(23, 26, 33, 0.18);
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  font-size: 15px;
}

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

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

/* ---------------- NAV ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(246, 247, 249, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.brand img { border-radius: 8px; filter: drop-shadow(0 2px 4px rgba(23, 26, 33, 0.22)); }
.brand-name { color: var(--text); }
.brand-name, .footer-left { font-weight: 600; }
.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 38px;
  padding: 0 12px;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font);
  transition: border-color .15s ease, color .15s ease;
}
.lang:hover { color: var(--text); border-color: var(--line-strong); }
.lang-sep { opacity: .4; }
.lang-cur { color: var(--text); font-weight: 600; }
/* 顶栏语言切换按钮阴影与下载按钮同几何 */
.lang { box-shadow: 0 6px 24px -6px rgba(23, 26, 33, 0.16); }
/* 顶栏内按钮与语言切换按钮统一高度，视觉对齐 */
.nav-right .btn { height: 38px; padding: 0 18px; border-radius: 10px; }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
  font-family: var(--font);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 24px -6px rgba(96, 124, 210, 0.55);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(18, 22, 33, 0.05); border-color: rgba(18, 22, 33, 0.26); }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.arrow { font-weight: 400; opacity: .9; transition: transform .12s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 500px at 80% 0%, var(--warm-soft), transparent 60%),
    radial-gradient(700px 500px at 10% 30%, var(--accent-soft), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(18, 22, 33, 0.03);
  margin-bottom: 22px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.hero-title {
  font-size: 48px;
  line-height: 1.12;
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 560px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
/* 次级按钮与左侧主按钮同尺寸阴影（几何一致，颜色中性） */
.hero-cta .btn-ghost { box-shadow: 0 6px 24px -6px rgba(23, 26, 33, 0.16); }
.hero-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 13px;
}
.hero-tags li::before {
  content: "✦";
  color: var(--accent);
  margin-right: 8px;
}

/* hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.hero-tiger {
  width: 360px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(23, 26, 33, 0.20)) drop-shadow(0 22px 46px rgba(23, 26, 33, 0.28));
  z-index: 1;
  position: relative;
}
.hero-card {
  position: absolute;
  right: 0;
  bottom: 10px;
  width: 318px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 3;
}
/* HuMD 应用界面微缩模型（hero 卡内容 = 应用本体） */
.hmd-app { padding: 0 !important; overflow: hidden; }
.hmd-title {
  position: relative;
  display: flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.hmd-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 600;
  font-size: 10.5px;
  color: var(--text);
}
.hmd-win { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.hmd-win i { width: 9px; height: 9px; border: 1px solid rgba(18, 22, 33, 0.22); border-radius: 2px; }
.hmd-win i.win-close { border: none; border-radius: 999px; background: rgba(214, 56, 80, 0.55); width: 8px; height: 8px; }
.hmd-main { display: flex; height: 196px; }
.hmd-side {
  width: 88px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  background: #f8f8fa;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hmd-switch {
  display: flex;
  align-items: center;
  height: 20px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f1f2f5;
  font-size: 9.5px;
}
.hmd-switch span { flex: 1; text-align: center; color: var(--muted-2); }
.hmd-switch span.on {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1px;
  border-radius: 5px;
  background: var(--bg-elev);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
  color: var(--text);
  font-weight: 600;
}
.hmd-item {
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hmd-item.on { background: var(--bg-elev); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.hmd-edit { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hmd-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  padding: 5px 10px;
  font-size: 10px;
  color: var(--text);
  border-right: 1px solid var(--line);
  box-shadow: inset 0 -2px 0 #607cd2;
}
.hmd-tab .dot { width: 5px; height: 5px; border-radius: 999px; background: #607cd2; }
.hmd-doc { flex: 1; padding: 10px 14px; overflow: hidden; }
.hmd-h1 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.hmd-h2 { font-size: 12px; font-weight: 700; color: var(--text); margin: 8px 0 4px; }
.hmd-p { font-size: 10.5px; color: var(--text); opacity: .82; margin-bottom: 5px; }
.hmd-code {
  display: inline-block;
  font-family: Consolas, monospace;
  font-size: 10px;
  color: #8ba3e0;
  background: #f3f6ff;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.hmd-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  height: 20px;
  padding: 0 10px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--muted-2);
}
.hmd-status .hmd-src { color: #607cd2; font-weight: 600; }

/* ---------------- HIGHLIGHTS ---------------- */
.highlights { padding: 36px 0 64px; }
.hi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.hi-card {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.hi-ico {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 12px;
}
.hi-ico svg, .feat-ico svg, .sc-emoji svg { width: 20px; height: 20px; }
.hi-card h3 { margin: 0 0 6px; font-size: 15px; }
.hi-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

/* ---------------- SECTION ---------------- */
.section { padding: 80px 0; }
.section-alt { background: #eef0f4; }
.section-cta {
  background:
    radial-gradient(600px 400px at 80% 80%, rgba(96, 124, 210, 0.1), transparent 70%),
    radial-gradient(600px 400px at 10% 100%, rgba(96, 124, 210, 0.1), transparent 70%);
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.section-head p { margin: 0; color: var(--muted); font-size: 16px; }

/* features grid */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feat {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  transition: border-color .2s ease, transform .2s ease;
}
.feat:hover {
  border-color: rgba(96, 124, 210, 0.45);
  transform: translateY(-2px);
}
.feat-ico {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--accent);
}
.feat h3 { margin: 0 0 6px; font-size: 16px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; }

/* scenarios */
.sc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.sc {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.sc-emoji { font-size: 22px; margin-bottom: 10px; color: var(--accent); }
.sc h3 { margin: 0 0 4px; font-size: 14px; }
.sc p { margin: 0; color: var(--muted); font-size: 13px; }

/* faq — 与上方功能/场景区同宽同卡型（两列卡片，窄屏单列），视觉统一 */
.faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.faq details {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 18px;
  transition: border-color .2s ease;
}
.faq details:hover { border-color: var(--line-strong); }
.faq details[open] { border-color: rgba(96, 124, 210, 0.35); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  color: var(--muted);
  transition: transform .2s ease, color .2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after {
  content: "−";
  color: var(--accent);
}
.faq details p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* download */
.dl-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.dl-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}
.dl-list li {
  font-size: 14px;
  color: var(--muted);
}
.dl-list li b { color: var(--text); font-weight: 600; margin-right: 8px; }
.dl-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.dl-card {
  background: transparent;
  border: none;
  padding: 0;
  text-align: center;
}
.dl-card img {
  width: 230px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 3px 8px rgba(23, 26, 33, 0.18)) drop-shadow(0 16px 34px rgba(23, 26, 33, 0.26));
}
.dl-caption { color: var(--muted); font-size: 13px; }

/* footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-left { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.footer-left img { filter: drop-shadow(0 1px 3px rgba(23, 26, 33, 0.20)); }
.footer-right { display: inline-flex; align-items: center; gap: 10px; }
.dot-sep { color: var(--muted-2); }

/* 宽屏：虎宝与对话卡左右并排、不重叠（窄屏仍用绝对定位叠放，见 media 上限规则） */
@media (min-width: 961px) {
  .hero-visual { min-height: 0; gap: 14px; }
  .hero-tiger { width: 258px; }
  .hero-card {
    position: static;
    width: 286px;
    margin: 0;
  }
  .hero-title { font-size: 42px; }
}

/* responsive */
@media (max-width: 960px) {
  .hero { padding: 56px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: 36px; }
  .hero-visual { min-height: 320px; }
  .hero-tiger { width: 220px; }
  .hero-card { position: relative; right: auto; bottom: auto; margin: -40px auto 0; }
  .hi-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .sc-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
  .section-head h2 { font-size: 28px; }
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .hi-grid, .feat-grid, .sc-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 30px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .nav-cta { display: none; }
}