:root {
  --ink: #182a40;
  --blue: #1765dc;
  --blue-dark: #104ea9;
  --muted: #64758b;
  --line: #dbe6f3;
  --bg: #f4f8fd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
.agreement-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}
.agreement-nav {
  width: min(980px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.agreement-brand { display: flex; align-items: center; gap: 10px; color: #182a40; font-size: 17px; font-weight: 800; }
.brand-mark {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 10px 10px 10px 3px;
  color: white;
  background: linear-gradient(135deg, #2a83f6, #1256bf);
  font-size: 18px;
}
.agreement-tools { display: flex; align-items: center; gap: 17px; color: var(--blue); font-size: 14px; font-weight: 700; }
.agreement-tools a:hover { color: var(--blue-dark); }
.agreement-page { width: min(900px, calc(100% - 40px)); margin: 42px auto 58px; }
.agreement-document {
  padding: clamp(28px, 6vw, 68px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(37, 83, 132, .07);
}
p.p1 {
  margin: 0 0 32px !important;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit !important;
  font-size: clamp(28px, 4vw, 37px) !important;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.03em;
}
p.p2, p.p4 {
  margin: 0 0 13px !important;
  color: #35465b;
  font-family: inherit !important;
  font-size: 16px !important;
  line-height: 1.9;
  text-align: justify !important;
}
p.p3 {
  margin: 33px 0 15px !important;
  padding-left: 13px;
  border-left: 4px solid var(--blue);
  color: var(--ink);
  font-family: inherit !important;
  font-size: 20px !important;
  font-weight: 800;
  line-height: 1.45;
}
b { color: #1e3450; }
.agreement-footer { padding: 30px 20px 37px; color: #8292a7; text-align: center; font-size: 12px; }

@media (max-width: 560px) {
  .agreement-nav, .agreement-page { width: min(100% - 30px, 900px); }
  .agreement-nav { min-height: 61px; }
  .agreement-brand { font-size: 15px; }
  .agreement-tools { gap: 11px; font-size: 13px; }
  .agreement-tools .download-link { display: none; }
  .agreement-page { margin: 22px auto 36px; }
  .agreement-document { border-radius: 15px; }
  p.p2, p.p4 { font-size: 15px !important; line-height: 1.85; }
  p.p3 { margin-top: 28px !important; font-size: 18px !important; }
}

@media print {
  body { background: #fff; }
  .agreement-header, .agreement-footer { display: none; }
  .agreement-page { width: auto; margin: 0; }
  .agreement-document { padding: 0; border: 0; box-shadow: none; }
}
