/* 恒等软件官网 - 全站样式
   纯 CSS,无外部依赖,适配桌面与移动端 */

:root {
  --primary: #1e3a8a;
  --primary-light: #2563eb;
  --accent: #0ea5e9;
  --ink: #0f172a;
  --body: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --surface: #f8fafc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.brand img { width: 38px; height: 38px; border-radius: 9px; }

.site-nav { display: flex; align-items: center; gap: 4px; }

.site-nav a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--body);
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover { color: var(--primary-light); background: var(--surface); }
.site-nav a.active { color: var(--primary-light); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: 0.2s;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--surface); }
.section-head { max-width: 620px; margin: 0 auto 52px; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-light);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head h2,
.hero h1 {
  color: var(--ink);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.section-head h2 { font-size: 36px; margin-bottom: 16px; }
.section-head p { font-size: 17px; color: var(--body); }

.lead { font-size: 18px; color: var(--body); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--primary-light);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover { background: var(--primary); }
.btn-outline {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: #fff;
}
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 84px;
}

.hero h1 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 22px; }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { margin-bottom: 32px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px;
}

.hero-visual .plot {
  border-radius: 14px;
  overflow: hidden;
  background: #0b1220;
}

.trust-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.trust-row strong { display: block; font-size: 26px; color: var(--ink); font-weight: 750; }
.trust-row span { font-size: 13px; color: var(--muted); }

/* ---------- 特性卡片 ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cbd5e1; }

.icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: var(--primary-light);
  margin-bottom: 20px;
}
.icon-badge svg { width: 26px; height: 26px; }

.card h3 { color: var(--ink); font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 15px; }

/* ---------- 图文分栏 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split h2 { color: var(--ink); font-size: 32px; font-weight: 750; margin-bottom: 18px; line-height: 1.25; }
.split p { margin-bottom: 16px; }

.check-list { list-style: none; margin: 24px 0 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 15px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dbeafe;
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  width: 5px;
  height: 9px;
  border: solid var(--primary-light);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.visual-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 22px;
}

/* ---------- 页面标题区 ---------- */
.page-hero {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  padding: 76px 0 68px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(34px, 4vw, 46px); margin-bottom: 14px; }
.page-hero p { font-size: 18px; max-width: 620px; margin: 0 auto; }

/* ---------- 功能列表 ---------- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-row .card { padding: 28px; }
.feature-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

/* ---------- 时间线 / 关于 ---------- */
.timeline { max-width: 760px; margin: 0 auto; }
.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding-bottom: 36px;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 131px;
  top: 10px;
  bottom: -6px;
  width: 1px;
  background: var(--line);
}
.timeline-item:last-child::before { display: none; }
.timeline-year { font-weight: 700; color: var(--primary-light); font-size: 16px; padding-top: 2px; }
.timeline-body h3 { color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.timeline-dot {
  position: absolute;
  left: 127px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary-light);
  box-shadow: 0 0 0 4px #eff6ff;
}

/* ---------- 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info { list-style: none; }
.contact-info li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.contact-info .icon-badge { margin: 0; flex: 0 0 auto; width: 44px; height: 44px; }
.contact-info strong { display: block; color: var(--ink); font-size: 15px; }
.contact-info span { font-size: 14px; word-break: break-all; }

.notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 20px 22px;
  font-size: 14px;
  color: #92400e;
  margin-top: 28px;
}
.notice strong { color: #78350f; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}
.cta h2 { font-size: 32px; font-weight: 750; margin-bottom: 14px; }
.cta p { color: #dbeafe; font-size: 17px; margin-bottom: 26px; }
.cta .btn { background: #fff; color: var(--primary); }
.cta .btn:hover { background: #f1f5f9; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0b1220;
  color: #94a3b8;
  padding: 56px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { color: #fff; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-footer h4 { color: #e2e8f0; font-size: 14px; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .hero-grid { padding-top: 56px; padding-bottom: 56px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 16px; }
  .section-head h2 { font-size: 28px; }
  .split h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .timeline-item::before, .timeline-dot { display: none; }
  .trust-row { gap: 20px; }
}
