/* =========================================================
   北京玛斯莱特科技有限公司 · 官网设计系统
   现代改版 — 科技蓝 (Tech-Blue)
   设计稿：玛斯莱特官网首页-现代改版 (Ardot)
   说明：所有设计变量集中在 :root，组件复用同一套类名，
        保证首页与内页视觉一致、可直接部署。
   ========================================================= */

/* ---------- 设计变量 (Design Tokens) ---------- */
:root {
  /* 品牌色 */
  --brand-600: #0A4D9C;          /* 主品牌蓝 */
  --brand-700: #08407F;
  --brand-500: #0D5CB5;
  --brand-300: #4F8FD6;
  --brand-100: #E3EDF8;
  --cyan-500: #15A9BC;           /* 强调青 */
  --cyan-600: #1190A1;
  --cyan-100: #DCF2F5;

  /* 中性 / 文本 */
  --ink: #0F1B2D;               /* 主标题深色 */
  --text: #475569;              /* 正文 */
  --muted: #64748B;             /* 次要文字 */
  --line: #E5EAF1;              /* 描边 */
  --line-strong: #D4DCE8;

  /* 背景 */
  --bg: #F4F7FB;                /* 页面底色 */
  --bg-alt: #F0F4F9;            /* 交替区块 */
  --bg-alt-2: #EDF2F8;
  --surface: #FFFFFF;           /* 卡片 */

  /* 深色区 (Hero / CTA / Footer) */
  --dark: #071220;
  --grad-hero: linear-gradient(135deg, #051F4F 0%, #0D5CB5 100%);
  --grad-cta: linear-gradient(120deg, #062A52 0%, #0A4D9C 55%, #15A9BC 120%);

  /* 字体 */
  --font-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "Montserrat", "Noto Sans SC", sans-serif;

  /* 圆角 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* 阴影 */
  --sh-sm: 0 1px 2px rgba(15, 27, 45, 0.06), 0 1px 3px rgba(15, 27, 45, 0.05);
  --sh-md: 0 4px 14px rgba(15, 27, 45, 0.07), 0 2px 6px rgba(15, 27, 45, 0.05);
  --sh-lg: 0 18px 48px rgba(8, 33, 64, 0.14);
  --sh-brand: 0 12px 30px rgba(10, 77, 156, 0.22);

  /* 布局 */
  --container: 1200px;
  --gutter: 24px;
  --section-y: 96px;
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.25; }

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: 64px; }

/* 区块标题 */
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand-600);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--cyan-500);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-top: 14px;
  letter-spacing: -0.01em;
}
.section-sub {
  margin-top: 14px;
  font-size: 17px;
  color: var(--muted);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding-inline: 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: var(--sh-brand); }
.btn--primary:hover { background: var(--brand-700); transform: translateY(-2px); }
.btn--cyan { background: var(--cyan-500); color: #fff; box-shadow: 0 12px 26px rgba(21, 169, 188, 0.28); }
.btn--cyan:hover { background: var(--cyan-600); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.45); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn--outline { background: #fff; color: var(--brand-600); border: 1.5px solid var(--line-strong); }
.btn--outline:hover { border-color: var(--brand-600); transform: translateY(-2px); }
.btn--sm { height: 40px; padding-inline: 18px; font-size: 14px; }

/* =========================================================
   头部 / 导航
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  box-shadow: var(--sh-sm);
  flex: none;
  overflow: hidden;
}
.brand__logo { width: 100%; height: 100%; object-fit: contain; }
.brand__name { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }
.brand__name small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.16em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover { color: var(--brand-600); background: var(--brand-100); }
.nav a.active { color: var(--brand-600); font-weight: 600; }

.header__cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--brand-100);
  color: var(--brand-600);
  place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  /* 细微光晕，增强科技感 */
  content: "";
  position: absolute;
  top: -200px; right: -120px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(21, 169, 188, 0.30), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-block: 84px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cyan-100);
  text-transform: uppercase;
}
.hero__eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--cyan-500);
}
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-top: 20px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #6FE0EE, #9FE3FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__trust {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 16px; height: 16px; color: var(--cyan-500); }

/* Hero 右侧监控面板 */
.monitor {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-xl);
  padding: 22px;
  backdrop-filter: blur(6px);
  box-shadow: var(--sh-lg);
}
.monitor__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.monitor__title { font-size: 15px; font-weight: 600; color: #fff; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #C8F7E4;
  background: rgba(34, 197, 140, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 5px 11px;
  border-radius: 999px;
}
.status-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22);
}
.monitor__chart {
  background: rgba(3, 14, 30, 0.4);
  border-radius: var(--r-md);
  padding: 16px 14px 8px;
}
.monitor__chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-sm);
  padding: 12px;
  text-align: center;
}
.chip__label { font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.chip__value {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
  line-height: 1.1;
}
.chip__value small { font-size: 12px; font-weight: 600; color: var(--cyan-100); margin-left: 2px; }

/* =========================================================
   数据条 (Stats)
   ========================================================= */
.stats {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-block: 40px;
}
.stat { text-align: center; padding: 8px 12px; }
.stat__num {
  font-family: var(--font-num);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  color: var(--brand-600);
  line-height: 1;
}
.stat__num span { color: var(--cyan-500); }
.stat__label { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* =========================================================
   产品 Bento 网格
   ========================================================= */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--sh-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--brand-100); }
.card--wide { grid-column: span 2; }
.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--brand-100);
  color: var(--brand-600);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon--cyan { background: var(--cyan-100); color: var(--cyan-600); }
.card__title { font-size: 19px; font-weight: 600; }
.card__desc { margin-top: 10px; font-size: 14.5px; color: var(--muted); flex: 1; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-size: 12.5px;
  color: var(--brand-600);
  background: var(--brand-100);
  padding: 4px 10px;
  border-radius: 999px;
}
.more-row { margin-top: 36px; text-align: center; }

/* =========================================================
   解决方案
   ========================================================= */
.solution__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.solution__list { margin-top: 24px; display: grid; gap: 14px; }
.solution__list li {
  display: flex;
  gap: 12px;
  font-size: 15.5px;
  color: var(--text);
}
.check {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--cyan-100);
  color: var(--cyan-600);
  display: grid; place-items: center;
  margin-top: 2px;
}
.check svg { width: 14px; height: 14px; }
.solution__diagram {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--sh-sm);
}

/* =========================================================
   优势
   ========================================================= */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.adv {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--sh-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.adv:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.adv__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--grad-hero);
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.adv__icon svg { width: 24px; height: 24px; }
.adv__title { font-size: 17px; font-weight: 600; }
.adv__desc { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* =========================================================
   案例
   ========================================================= */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.case__media {
  height: 168px;
  background: var(--grad-hero);
  position: relative;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, 0.92);
}
.case__media svg { width: 64px; height: 64px; opacity: 0.9; }
.case__media .case__tag {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(21, 169, 188, 0.85);
  padding: 4px 12px;
  border-radius: 999px;
}
.case__body { padding: 22px; }
.case__title { font-size: 18px; font-weight: 600; }
.case__desc { margin-top: 8px; font-size: 14px; color: var(--muted); }
.case__meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
}
.case__meta b { color: var(--brand-600); font-family: var(--font-num); font-size: 15px; }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  background: var(--grad-cta);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  bottom: -160px; left: 50%;
  transform: translateX(-50%);
  width: 520px; height: 320px;
  background: radial-gradient(circle, rgba(21, 169, 188, 0.35), transparent 60%);
}
.cta__inner { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); }
.cta p { margin-top: 12px; color: rgba(255, 255, 255, 0.85); font-size: 16px; }
.cta__actions { margin-top: 28px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* =========================================================
   页脚
   ========================================================= */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  padding-block: 60px 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer .brand__name { color: #fff; }
.footer__about { margin-top: 16px; font-size: 14px; max-width: 320px; line-height: 1.8; }
.footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer__col a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.66);
  transition: color 0.15s ease;
}
.footer__col a:hover { color: var(--cyan-100); }
.footer__bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================================
   内页模板 (通用)
   ========================================================= */
.page-hero {
  background: var(--grad-hero);
  color: #fff;
  padding-block: 64px;
}
.page-hero .eyebrow { color: var(--cyan-100); }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); margin-top: 14px; }
.page-hero p { margin-top: 14px; color: rgba(255, 255, 255, 0.82); max-width: 640px; }

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a:hover { color: var(--brand-600); }

.prose { max-width: 820px; }
.prose h2 { font-size: 24px; margin-top: 36px; }
.prose h3 { font-size: 19px; margin-top: 26px; }
.prose p { margin-top: 14px; font-size: 16px; }
.prose ul.ticks { margin-top: 16px; display: grid; gap: 12px; }
.prose ul.ticks li { display: flex; gap: 12px; }

/* 信息卡网格 (内页复用) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

/* =========================================================
   联系页 (表单 + 信息)
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-sm);
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(10, 77, 156, 0.12);
}
.contact__info {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.contact__info-title { font-size: 18px; margin-bottom: 18px; }
.info-list { display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; color: var(--text); }
.info-list li b { color: var(--ink); }
.info-list .card__icon { margin-bottom: 0; flex: none; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .solution__grid { grid-template-columns: 1fr; gap: 36px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --section-y: 64px; }
  .nav, .header__cta .btn--outline { display: none; }
  .nav-toggle { display: grid; }
  .header__inner { height: 60px; }
  .brand { gap: 9px; min-width: 0; }
  .brand__mark { width: 34px; height: 34px; border-radius: 9px; }
  .brand__name { font-size: 15px; line-height: 1.15; white-space: nowrap; }
  .brand__name small { display: none; }
  .header__cta .btn--primary { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 18px;
    gap: 4px;
    box-shadow: var(--sh-md);
  }
  .nav.open a { padding: 12px 14px; }
  .hero__inner { padding-block: 56px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
  .adv-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .cta { padding: 40px 24px; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* 可访问性：减少动画 */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
