/* PosApp 企业官网 样式 */
:root {
  --brand: #1d4ed8;
  --brand-dark: #1e3a8a;
  --brand-light: #eff6ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --ok: #16a34a;
  --warn: #d97706;
  --err: #dc2626;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.3; }
p { margin: 0 0 12px; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s ease;
  text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-outline:hover { background: var(--brand-light); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 66px;
}
.logo { display: flex; align-items: baseline; gap: 8px; }
.logo-mark {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .5px;
}
.logo-sub { font-size: 13px; color: var(--muted); }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 15px;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active { color: var(--brand); border-bottom-color: var(--brand); }

.header-tel { padding: 8px 16px; font-size: 14px; }

.nav-toggle {
  display: none;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
}

/* ---------- 首屏 ---------- */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #1d4ed8 100%);
  color: #fff;
  padding: 76px 0 70px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 44px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 18px;
}
.hero h1 { font-size: 40px; font-weight: 700; }
.hero .lead { font-size: 16px; color: rgba(255,255,255,.86); margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }

.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-size: 20px; }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.72); }

.hero-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  padding: 22px;
}
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.stat-list li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255,255,255,.2);
  font-size: 14px;
}
.stat-list li:last-child { border-bottom: none; }
.stat-list b { font-size: 16px; }
.stat-list .ok { color: #6ee7b7; }
.stat-list .warn { color: #fcd34d; }
.stat-list .err { color: #fca5a5; }
.card-foot { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.6); }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 22px; }
.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;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.section-alt .card { background: #fff; }
.card h3 { font-size: 18px; color: var(--brand-dark); }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.card-mini h3 { font-size: 16px; }

/* ---------- 联系我们 ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 34px;
  align-items: start;
}
.contact-info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.info-item { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.info-item:last-of-type { border-bottom: none; }
.info-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.info-value { font-size: 19px; font-weight: 600; color: var(--brand); }
.info-value:hover { text-decoration: underline; }

.qr-box {
  margin-top: 22px;
  text-align: center;
  padding: 18px;
  background: var(--brand-light);
  border-radius: var(--radius);
}
.qr-img {
  width: 168px;
  height: 168px;
  margin: 0 auto 12px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}
.qr-text { font-size: 14px; color: var(--brand-dark); font-weight: 500; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color .2s ease;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}
.form-tip { margin-top: 12px; font-size: 14px; min-height: 20px; }
.form-tip.ok { color: var(--ok); }
.form-tip.err { color: var(--err); }
.form-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding: 40px 0 30px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 26px;
}
.footer-brand .logo-mark { color: #fff; margin-bottom: 6px; }
.footer-brand p { font-size: 14px; }
.footer-contact p { font-size: 14px; margin: 0 0 6px; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-copy { font-size: 13px; }
.footer-copy .muted { color: rgba(255,255,255,.5); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .header-tel { display: none; }
  .hero { padding: 52px 0 46px; }
  .hero h1 { font-size: 29px; }
  .hero-stats { gap: 22px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 24px; }
}
