/* Titan POS 官网 — 共用样式表
   品牌色取自 App 图标渐变色 (#22A0BE → #1E90A8 → #156475)，跟四端 App 视觉保持一致 */

:root {
  --primary: #1E90A8;
  --primary-light: #22A0BE;
  --primary-dark: #156475;
  --accent: #F5A623;
  --accent-dark: #D98C12;
  --bg: #FFFFFF;
  --bg-alt: #F4F9FA;
  --bg-dark: #103A44;
  --text: #1F2D33;
  --text-muted: #64777D;
  --border: #E3EBED;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(21, 100, 117, 0.08);
  --max-width: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 6px 18px rgba(245, 166, 35, .35);
}
.btn-primary:hover { box-shadow: 0 8px 22px rgba(245, 166, 35, .45); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.65);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-ghost {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: .5px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--bg-alt);
  color: var(--primary-dark);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn-primary { padding: 10px 22px; font-size: 14px; }
.nav-tel {
  font-size: 13px;
  color: var(--text-muted);
}
.nav-tel strong { color: var(--primary-dark); font-size: 15px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  color: #fff;
  padding: 76px 0 90px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  background: rgba(255,255,255,.16);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero h1 span { color: #FFE1A8; }
.hero p {
  font-size: 16px;
  color: rgba(255,255,255,.88);
  max-width: 480px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stats div { min-width: 80px; }
.hero-stats strong { display: block; font-size: 26px; font-weight: 800; }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.75); }

/* ---------- 页面通用横幅（非首页） ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 56px 0 64px;
  text-align: center;
}
.page-hero .hero-eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 15px; color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto; }

/* ---------- 设备模型占位图 ---------- */
.mockup {
  position: relative;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.25));
}
.mockup-note {
  position: absolute;
  bottom: -34px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}

/* ---------- Section 通用 ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary);
  background: rgba(30,144,168,.08);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; color: var(--text); }
.section-head p { color: var(--text-muted); 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(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-muted); }
.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* ---------- 四端矩阵 ---------- */
.platform-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(30,144,168,.08);
  padding: 4px 12px;
  border-radius: 999px;
  width: fit-content;
}
.platform-card h3 { font-size: 18px; font-weight: 800; }
.platform-card ul { margin-top: 6px; }
.platform-card li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 4px 0 4px 18px;
  position: relative;
}
.platform-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
}

/* ---------- 对比表 ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
th, td { padding: 14px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
th { background: var(--bg-alt); font-weight: 700; color: var(--text); }
td { color: var(--text-muted); }
tr:last-child td { border-bottom: none; }
.tick { color: var(--primary); font-weight: 800; }

/* ---------- 场景/方案 卡片 ---------- */
.scenario {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.scenario:last-child { border-bottom: none; }
.scenario.reverse .scenario-visual { order: 2; }
.scenario-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  background: rgba(245,166,35,.12);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.scenario h3 { font-size: 24px; font-weight: 800; margin-bottom: 14px; }
.scenario p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 18px; }
.scenario ul li {
  font-size: 14px;
  color: var(--text);
  padding: 6px 0 6px 26px;
  position: relative;
}
.scenario ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 5px;
  color: var(--primary);
  font-weight: 800;
}
.scenario-visual {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 30px;
}

/* ---------- CTA 条 ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: 20px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.82); font-size: 14.5px; }
.cta-band .btn-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 下载页 ---------- */
.download-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.download-card .card-icon { margin: 0 auto 16px; }
.download-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.download-card p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 20px; min-height: 42px; }
.qr-box {
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 8px;
}

/* ---------- 学堂 ---------- */
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-thumb {
  height: 140px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}
.article-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.article-cat {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.article-body h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; line-height: 1.5; }
.article-body p { font-size: 13px; color: var(--text-muted); flex: 1; }
.article-meta {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.notice-box {
  background: #FFF7E8;
  border: 1px solid #F5DFAE;
  color: #8A6212;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13.5px;
  margin-bottom: 40px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.8; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13.5px; color: rgba(255,255,255,.6); transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-contact li { font-size: 13.5px; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.footer-contact strong { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 360px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .scenario { grid-template-columns: 1fr; }
  .scenario.reverse .scenario-visual { order: 0; }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions .nav-tel { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .hero h1 { font-size: 30px; }
  .hero { padding: 52px 0 64px; }
  section { padding: 56px 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
}
