/* 友汇官网样式 —— 纯静态，无外部依赖（不引 CDN，离线也能看） */
:root {
  --brand: #2180fe;
  --brand-dark: #1666d6;
  --brand-light: #eaf2ff;
  --ink: #1a2233;
  --ink-2: #3d4757;
  --gray: #667085;
  --line: #e6eaf2;
  --bg-soft: #f5f7fb;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(20, 40, 90, .08);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span.sub { font-weight: 400; font-size: 12px; color: var(--gray); margin-left: 2px; }
nav.links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
nav.links a { color: var(--ink-2); font-size: 15px; }
nav.links a:hover, nav.links a.on { color: var(--brand); }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px;
  background: var(--brand); color: #fff !important; font-size: 15px; font-weight: 600;
  border: 0; cursor: pointer; transition: .18s;
}
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: #fff; color: var(--brand) !important; border: 1px solid var(--brand); }
.btn.ghost:hover { background: var(--brand-light); }
.btn.sm { padding: 9px 18px; font-size: 14px; }

.menu-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 24px; color: var(--ink); cursor: pointer; }

/* ---------- 英雄区 ---------- */
.hero {
  background: linear-gradient(180deg, #eef5ff 0%, #f8fbff 60%, #fff 100%);
  padding: 72px 0 56px;
}
.hero .cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.tagline {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--brand-light); color: var(--brand); font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: 42px; line-height: 1.28; margin: 0 0 18px; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 17px; color: var(--ink-2); margin: 0 0 30px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 38px; }
.hero .facts b { display: block; font-size: 22px; color: var(--ink); }
.hero .facts span { font-size: 13px; color: var(--gray); }

/* 手机外框 */
.phone {
  width: 300px; margin: 0 auto; padding: 12px; border-radius: 38px;
  background: #101828; box-shadow: 0 24px 60px rgba(20, 40, 90, .22);
}
.phone img { border-radius: 28px; width: 100%; }

/* ---------- 通用区块 ---------- */
section { padding: 68px 0; }
section.soft { background: var(--bg-soft); }
h2.title { font-size: 30px; margin: 0 0 10px; letter-spacing: -.3px; }
p.subtitle { color: var(--gray); margin: 0 0 40px; font-size: 16px; }
.center { text-align: center; }
.center p.subtitle { margin-left: auto; margin-right: auto; max-width: 620px; }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 22px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: .18s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d8e3f7; }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-light);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px;
}
.card h3 { font-size: 17px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--gray); font-size: 14.5px; line-height: 1.7; }

/* ---------- 双栏图文 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split ul.ticks { list-style: none; padding: 0; margin: 22px 0 0; }
.split ul.ticks li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink-2); }
.split ul.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff;
  font-size: 12px; line-height: 20px; text-align: center; font-weight: 700;
}

/* ---------- 流程 ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.step:last-child { border-bottom: 0; }
.step .n {
  flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.step h4 { margin: 4px 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--gray); font-size: 14.5px; }

/* ---------- 截图带 ---------- */
.shots { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.shots figure { margin: 0; text-align: center; }
.shots figcaption { margin-top: 12px; color: var(--gray); font-size: 14px; }
.shots .phone { width: 260px; }

/* ---------- 下载卡 ---------- */
.apk-meta { color: var(--brand); font-size: 13.5px; font-weight: 600; margin: 6px 0 0; }
.apk-hint { color: var(--gray); font-size: 12.5px; margin: 12px 0 0; line-height: 1.6; }

/* ---------- 表格（公司信息） ---------- */
table.info { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.info th, table.info td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
table.info th { width: 190px; background: var(--bg-soft); font-weight: 600; color: var(--ink-2); }
table.info tr:last-child th, table.info tr:last-child td { border-bottom: 0; }

/* ---------- CTA 条 ---------- */
.cta-band {
  background: linear-gradient(120deg, #2180fe, #4aa0ff); border-radius: 18px;
  color: #fff; padding: 42px 44px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
}
.cta-band h3 { margin: 0 0 6px; font-size: 24px; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .btn { background: #fff; color: var(--brand) !important; margin-left: auto; }

/* ---------- 正文（法律条款） ---------- */
.doc { max-width: 820px; margin: 0 auto; }
.doc h1 { font-size: 30px; margin: 0 0 6px; }
.doc .meta { color: var(--gray); font-size: 14px; margin-bottom: 34px; }
.doc h2 { font-size: 19px; margin: 34px 0 10px; }
.doc h3 { font-size: 16px; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--ink-2); font-size: 15.5px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .note { background: var(--bg-soft); border-left: 3px solid var(--brand); padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: 14.5px; color: var(--gray); }

/* ---------- 页脚 ---------- */
footer.site { background: #101828; color: #c3cbd8; font-size: 14px; padding: 54px 0 28px; margin-top: 0; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
footer.site h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
footer.site a { color: #c3cbd8; display: block; margin-bottom: 9px; }
footer.site a:hover { color: #fff; }
footer.site .brand { color: #fff; }
footer.site .brand span.sub { color: #8f9bad; }
footer.site .about { line-height: 1.8; color: #98a2b3; font-size: 13.5px; }
footer.site .bottom {
  border-top: 1px solid #24303f; margin-top: 38px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: #98a2b3; font-size: 13px;
}
footer.site .bottom a { display: inline; margin-bottom: 0; color: #98a2b3; }
footer.site .bottom a:hover { color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero .cols, .split { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 34px; }
  .grid.c4, .grid.c3 { grid-template-columns: repeat(2, 1fr); }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .phone { width: 258px; }
}
@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .hero .facts { grid-template-columns: 1fr; gap: 14px; }
  .nav { height: 60px; gap: 12px; }
  nav.links {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px 22px;
    flex-direction: column; align-items: flex-start; gap: 16px;
  }
  nav.links.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 28px; }
  .grid.c4, .grid.c3, .grid.c2 { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  h2.title { font-size: 24px; }
  .cta-band { padding: 30px 26px; }
  .cta-band .btn { margin-left: 0; }
  footer.site .cols { grid-template-columns: 1fr; }
  table.info th { width: 110px; }
}
