/* ============================================================
   青岛惠团猫科技有限公司 · 官网共享样式
   设计语言：现代科技蓝 / 卡片化 / 响应式 / 无障碍
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  /* 品牌色 */
  --brand: #2563eb;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --indigo: #4f46e5;
  --cyan: #06b6d4;
  --accent: #22d3ee;

  /* 渐变 */
  --grad-brand: linear-gradient(135deg, #2563eb 0%, #4f46e5 55%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
  --grad-dark: linear-gradient(160deg, #0b1220 0%, #111c33 100%);

  /* 中性色 */
  --ink: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-softer: #f1f5f9;

  /* 半径 / 阴影 */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, .10), 0 8px 10px -6px rgba(15, 23, 42, .06);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, .18);

  --container: 1200px;
  --header-h: 68px;

  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI",
          system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* 焦点可见（无障碍） */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--grad { background: var(--grad-soft); }

/* ---------- 文字与标题 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: #e0ecff;
  padding: 6px 14px;
  border-radius: var(--r-pill);
}
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 17px; }
.lead { color: var(--muted); font-size: 17px; }

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 10px 24px -8px rgba(37, 99, 235, .55);
}
.btn--primary:hover { box-shadow: 0 16px 30px -8px rgba(37, 99, 235, .6); }
.btn--ghost {
  color: var(--brand-700);
  background: #fff;
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brand); }
.btn--light {
  color: var(--brand-700);
  background: #fff;
}
.btn--outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); }
.btn--lg { padding: 16px 34px; font-size: 16px; }

/* ---------- 头部 / 导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
}
.brand .logo {
  width: 36px; height: 36px;
  flex: none;
}
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted-2); letter-spacing: .04em; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-links a {
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--brand-700); background: #eef4ff; }
.nav-links a.is-active { color: var(--brand-700); background: #e0ecff; font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s, opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* 移动端抽屉 */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: #fff;
  padding: 24px 20px 40px;
  transform: translateX(100%);
  transition: transform .28s ease;
  z-index: 99;
  overflow-y: auto;
}
body.nav-open .mobile-menu { transform: translateX(0); }
.mobile-menu a {
  display: block;
  padding: 15px 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.is-active { color: var(--brand-700); }
.mobile-menu .btn { width: 100%; margin-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grad-dark);
  color: #fff;
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 360px at 80% -10%, rgba(37, 99, 235, .45), transparent 60%),
    radial-gradient(700px 340px at 10% 20%, rgba(6, 182, 212, .28), transparent 60%);
}
.hero .container { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  margin: 18px 0 20px;
  line-height: 1.12;
}
.hero p.lead { color: #cbd5e1; font-size: 18px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-tags span {
  font-size: 13px;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
/* Hero 视觉卡 */
.hero-visual { position: relative; }
.hero-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg);
  padding: 22px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-card .row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.hero-card .row:last-child { border-bottom: 0; }
.hero-card .row b { font-size: 20px; }
.hero-card .row span { color: #cbd5e1; font-size: 14px; }
.pill-up { color: #4ade80; font-weight: 700; font-size: 14px; }
.pill-dn { color: #f87171; font-weight: 700; font-size: 14px; }
.float-badge {
  position: absolute;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 600;
}
.float-badge .n { display: block; font-size: 22px; color: var(--brand-700); }
.float-badge.b1 { top: -22px; right: 8px; }
.float-badge.b2 { bottom: -18px; left: -14px; }

/* ---------- 统计条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .num {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .label { color: var(--muted); margin-top: 6px; font-size: 15px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.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(--r-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c7dbff; }
.card .ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  color: var(--brand-700);
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--brand-700); font-weight: 600; font-size: 14px; }
.card .more svg { transition: transform .2s; }
.card:hover .more svg { transform: translateX(4px); }

/* 业务卡片（带编号） */
.feature {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px 28px;
  overflow: hidden;
}
.feature::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  background: var(--grad-soft);
  border-radius: 50%;
  opacity: .6;
}
.feature .step { font-size: 14px; font-weight: 800; color: var(--brand-700); }
.feature h3 { font-size: 20px; margin: 8px 0 12px; position: relative; }
.feature p { color: var(--muted); position: relative; }
.feature ul.ticks { margin-top: 16px; position: relative; }
.feature ul.ticks li { display: flex; gap: 9px; align-items: flex-start; padding: 5px 0; color: var(--muted); font-size: 14.5px; }
.feature ul.ticks li svg { flex: none; margin-top: 3px; color: var(--brand); }

/* ---------- 深色 CTA 区 ---------- */
.cta-dark {
  position: relative;
  background: var(--grad-dark);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 56px;
  overflow: hidden;
  text-align: center;
}
.cta-dark::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(37,99,235,.4), transparent 60%);
}
.cta-dark .container, .cta-dark > * { position: relative; }
.cta-dark h2 { font-size: clamp(24px, 3.5vw, 36px); margin-bottom: 14px; }
.cta-dark p { color: #cbd5e1; margin-bottom: 28px; font-size: 17px; }

/* ---------- 时间线（关于页） ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--brand), var(--cyan));
}
.tl-item { position: relative; padding: 0 0 34px 26px; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
  box-shadow: 0 0 0 4px #dbeafe;
}
.tl-item .year { font-weight: 800; color: var(--brand-700); }
.tl-item h4 { font-size: 18px; margin: 4px 0 6px; }
.tl-item p { color: var(--muted); }

/* ---------- 价值列表 ---------- */
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li svg { flex: none; margin-top: 4px; color: var(--brand); }
.checklist li b { font-weight: 700; }
.checklist li span { color: var(--muted); }

/* ---------- 新闻卡 ---------- */
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-thumb { height: 168px; background: var(--grad-brand); position: relative; overflow: hidden; }
.news-thumb span {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.92); font-size: 40px; font-weight: 800; opacity: .55;
}
.news-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-meta { font-size: 13px; color: var(--muted-2); display: flex; gap: 12px; }
.news-body h3 { font-size: 18px; line-height: 1.4; }
.news-body p { color: var(--muted); font-size: 14.5px; flex: 1; }
.news-body .more { color: var(--brand-700); font-weight: 600; font-size: 14px; }

/* ---------- 表单（联系页） ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field label .req { color: #ef4444; }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px #dbeafe;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--muted-2); }
.form-ok {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: #ecfdf5; color: #047857;
  border: 1px solid #a7f3d0; font-size: 14px; font-weight: 600;
}
.form-ok.show { display: block; }

/* 联系信息卡 */
.contact-info { display: grid; gap: 14px; }
.contact-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.contact-item .ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand-700); }
.contact-item b { font-size: 15px; }
.contact-item span { color: var(--muted); font-size: 14.5px; display: block; }
.map-wrap {
  margin-top: 18px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-softer);
  aspect-ratio: 16 / 9;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- 面包屑 ---------- */
.breadcrumb { padding: 18px 0; font-size: 14px; color: var(--muted-2); }
.breadcrumb a:hover { color: var(--brand-700); }

/* ---------- 页脚 ---------- */
.site-footer { background: #0b1220; color: #cbd5e1; padding: 60px 0 28px; margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
}
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #94a3b8; }
.footer-about p { color: #94a3b8; margin-top: 14px; font-size: 14.5px; max-width: 320px; }
.footer-col h5 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; color: #94a3b8; font-size: 14.5px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-contact span { display: block; padding: 5px 0; color: #94a3b8; font-size: 14.5px; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: 13.5px; color: #94a3b8;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 占位 / 提示 ---------- */
.placeholder-note {
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted-2);
  background: #fffbeb;
  border: 1px dashed #fcd34d;
  padding: 10px 14px;
  border-radius: var(--r-sm);
}

/* ---------- 进入动画（仅在 JS 可用时隐藏，保证无 JS 也可读） ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 下载变话APP 浮动提示按钮（占位） ---------- */
.fab-download {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 14px 30px -8px rgba(37, 99, 235, .6);
  transition: transform .18s ease, box-shadow .18s ease;
}
.fab-download:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -8px rgba(37, 99, 235, .65); }
.fab-download svg { width: 20px; height: 20px; }

/* 轻量提示条 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  z-index: 200;
  background: #0b1220;
  color: #fff;
  padding: 13px 20px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 420px) {
  .fab-download { right: 14px; bottom: 14px; padding: 11px 16px; font-size: 14px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 460px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-dark { padding: 40px 28px; }
}
@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .nav-links, .nav-cta .btn:not(.nav-toggle) { display: none; }
  .nav-toggle { display: inline-flex; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .cta-dark { padding: 32px 22px; }
}
@media (max-width: 420px) {
  .hero { padding: 64px 0 80px; }
  .brand small { display: none; }
}
