:root {
  --container: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: #ffffff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}
.top-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.96);
}
.top-nav-inner {
  display: flex;
  height: 60px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
}
.top-brand,
.fs-brand {
  display: flex;
  align-items: center;
  margin-left: 16px;
}
.top-brand img {
  display: block;
  width: auto;
  height: 28px;
}
.nav-menu,
.fs-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-menu a,
.fs-menu a {
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  transition: color .2s ease;
}
.nav-menu a:hover,
.fs-menu a:hover { color: #0f172a; }
.nav-actions,
.fs-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 16px;
}
.nav-light, .nav-primary,
.fs-btn-light, .fs-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  transition: all .3s ease;
}
.nav-light,
.fs-btn-light {
  border: 1px solid #e2e8f0;
  color: #334155;
  background: #ffffff;
}
.nav-light:hover,
.fs-btn-light:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.nav-primary,
.fs-btn-primary {
  font-weight: 600;
  color: #fff;
  background: #2563eb;
}
.nav-primary:hover,
.fs-btn-primary:hover {
  background: #3b82f6;
  transform: scale(1.03);
}
.agreement-shell { width:min(1120px, calc(100% - 48px)); margin: 40px auto 72px; }
.agreement-card { border:1px solid #e5e7eb; border-radius:16px; background:#fff; padding:40px; }
.agreement-head { margin-bottom: 32px; padding-bottom: 24px; border-bottom:1px solid #e5e7eb; }
.agreement-eyebrow { margin:0; font-size:12px; font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:#2563eb; }
.agreement-title { margin:16px 0 0; font-size:40px; line-height:1.15; letter-spacing:-0.03em; }
.agreement-prose { font-size:15px; line-height:2; color:#475569; }
.agreement-prose h2 { margin:40px 0 0; font-size:28px; line-height:1.2; font-weight:600; letter-spacing:-0.02em; color:#111827; }
.agreement-prose h2:first-child { margin-top:0; }
.agreement-prose h3 { margin:28px 0 0; font-size:20px; line-height:1.6; font-weight:600; color:#111827; }
.agreement-prose p { margin:16px 0; }
.agreement-prose ol { margin:16px 0; padding-left:24px; }
.agreement-prose li { margin:8px 0; }
.agreement-prose strong { font-weight:600; color:#111827; }
.footer {
  position: relative;
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #25282f;
  color: #ffffff;
}
.footer-company-banner {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  transform: translateY(-50%);
}
.footer-company-banner span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: #25282f;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 1fr 0.9fr;
  gap: 48px 28px;
  align-items: start;
}
.footer h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
}
.footer-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.footer-list a,
.footer-list span {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.62);
}
.footer-list a:hover {
  color: #ffffff;
}
.footer-actions {
  display: grid;
  gap: 16px;
  justify-items: start;
}
.footer-pill-primary,
.footer-pill-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.footer-pill-primary {
  background: #4f7cff;
  color: #ffffff;
}
.footer-pill-primary:hover {
  background: #678fff;
}
.footer-pill-secondary {
  background: #ffffff;
  border: 1px solid #78a4ff;
  color: #4f7cff;
}
.footer-pill-secondary:hover {
  background: #eff4ff;
}
.footer-bottom {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.footer-brand-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 0;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
}
.footer-brand img {
  width: auto;
  height: 26px;
  display: block;
}
.footer-social {
  padding: 0;
  border: 0;
  font: inherit;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}
.footer-social:hover {
  transform: scale(1.05);
}
.footer-social > img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.footer-qr {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  width: 148px;
  height: 148px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}
.footer-qr img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
.footer-social:hover .footer-qr {
  display: flex;
}
.footer-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58);
}
.footer-meta-row svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  margin-top: 28px;
  font-size: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.42);
}
.footer-legal a { color:inherit; transition:color .2s ease; }
.footer-legal a:hover { color:rgba(255,255,255,.6); }
.footer-legal a.footer-police,
.footer-police { display:inline-flex; align-items:center; gap:6px; }
.footer-legal a.footer-police img,
.footer-police img { width:16px; height:16px; object-fit:contain; display:block; }
.footer-locale { position:relative; }
.footer-locale-trigger { display:inline-flex; align-items:center; gap:8px; color:rgba(255,255,255,.58); background:transparent; border:0; padding:0; font:inherit; cursor:pointer; }
.footer-locale-trigger:hover { color:rgba(255,255,255,.8); }
.footer-locale-menu { position:absolute; right:0; bottom:calc(100% + 12px); display:none; min-width:124px; padding:8px; border-radius:16px; background:#fff; box-shadow:0 14px 30px rgba(15,23,42,.18); }
.footer-locale.open .footer-locale-menu { display:block; }
.footer-locale-option { display:block; width:100%; padding:8px 12px; border:0; border-radius:12px; background:transparent; font:inherit; font-size:14px; text-align:left; cursor:pointer; color:#1f2937; }
.footer-locale-option.active { color:#4f7cff; }
.footer-locale-option:hover { background:#f5f7ff; }
@media (max-width: 1023px) {
  .agreement-shell, .footer-bottom { width: calc(100% - 48px); }
  .fs-menu { display:none; }
  .agreement-card { padding:28px 24px; }
  .agreement-title { font-size:32px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-actions { justify-self: start; }
  .footer-brand-row { flex-direction:column; align-items:flex-start; }
  .footer-meta-row { justify-content:flex-start; }
}
@media (max-width: 640px) {
  .agreement-shell, .footer-bottom { width: calc(100% - 32px); }
  .top-nav-inner { padding: 0 16px; }
  .top-brand { margin-left: 0; }
  .fs-actions { margin-right: 0; }
  .agreement-shell { margin:24px auto 48px; }
  .agreement-card { padding:24px 20px; border-radius:24px; }
  .agreement-title { font-size:28px; }
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-actions-spaced { margin-top: 16px; }
.footer-contact-line { display: inline-flex; align-items: center; gap: 8px; }
