body.agreement-page.prohibited-layout,
.agreement-page {
  min-height: 100vh;
  color: #0f172a;
  background: #f2f2f7;
}

.agreement-main {
  min-width: 0;
  padding: 176px 16px 54px;
  background:
    radial-gradient(circle at 16% 8%, rgba(17, 24, 39, 0.08), transparent 28rem),
    radial-gradient(circle at 88% 24%, rgba(245, 158, 11, 0.08), transparent 22rem),
    #f2f2f7;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, Helvetica, sans-serif;
}

.agreement-main *,
.agreement-main *::before,
.agreement-main *::after {
  box-sizing: border-box;
}

.agreement-main p,
.agreement-main h1,
.agreement-main h2,
.agreement-main h3 {
  margin: 0;
}

.agreement-hero {
  position: relative;
  overflow: hidden;
  width: min(1200px, calc(100vw - 32px));
  min-height: 182px;
  margin: 0 auto;
  border-radius: 40px;
  color: #fff;
  background: linear-gradient(135deg, #171717 0%, #25272d 54%, #111827 100%);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.agreement-hero__media {
  position: absolute;
  inset: 0;
}

.agreement-hero__media::before {
  position: absolute;
  top: -80px;
  right: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.2);
  content: "";
  filter: blur(20px);
}

.agreement-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 182px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 34px 40px;
}

.agreement-hero__copy {
  max-width: 720px;
  color: #fff;
  text-align: left;
}

.agreement-hero__copy p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.18em;
}

.agreement-hero__copy h1 {
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.agreement-hero__copy span {
  display: block;
  max-width: 650px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
}

.agreement-hero__aside {
  flex: 0 0 286px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
}

.agreement-hero__dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.18);
  vertical-align: -1px;
}

.agreement-hero__aside strong {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.agreement-hero__aside p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.6;
}

.agreement-content {
  display: grid;
  width: min(1200px, calc(100vw - 32px));
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin: 0 auto;
  padding: 28px 0 0;
}

.agreement-toc {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.agreement-toc a {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.agreement-toc a:hover,
.agreement-toc a:focus-visible {
  color: #111827;
  background: #eef2ff;
  outline: none;
  transform: translateX(2px);
}

.agreement-card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.agreement-card__header {
  padding: 30px 34px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(248, 250, 252, 0.86);
}

.agreement-card__header p {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.agreement-card__header h2 {
  margin-top: 10px;
  color: #111827;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: 0;
}

.agreement-card__header span {
  display: block;
  max-width: 760px;
  margin-top: 12px;
  color: #475569;
  font-size: 15px;
  line-height: 1.8;
}

.agreement-section {
  position: relative;
  display: grid;
  gap: 13px;
  padding: 28px 34px 30px 72px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.62);
  scroll-margin-top: 130px;
}

.agreement-section::before {
  position: absolute;
  top: 30px;
  left: 34px;
  display: flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: #10b981;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12);
  content: "\f00c";
  font-family: FontAwesome;
  font-size: 11px;
}

.agreement-section h3 {
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: 0;
}

.agreement-section p {
  color: #374151;
  font-size: 15px;
  line-height: 1.95;
}

.agreement-notes {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  padding: 30px 34px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 52%, #1e40af 100%);
  scroll-margin-top: 130px;
}

.agreement-notes p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.16em;
}

.agreement-notes h3 {
  margin-top: 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.45;
}

.agreement-notes ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agreement-notes li {
  position: relative;
  padding-left: 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.75;
}

.agreement-notes li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #bfdbfe;
  box-shadow: 0 0 0 5px rgba(191, 219, 254, 0.18);
  content: "";
}

.agreement-page .shipito-bottom-footer {
  margin-top: 0;
}

@media (max-width: 1023px) {
  .agreement-main {
    padding: 112px 12px 32px;
  }

  .agreement-hero,
  .agreement-content {
    width: 100%;
  }

  .agreement-hero {
    min-height: 220px;
    border-radius: 28px;
  }

  .agreement-hero__inner {
    min-height: 220px;
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 22px;
  }

  .agreement-hero__copy h1 {
    font-size: 28px;
  }

  .agreement-hero__copy span {
    font-size: 14px;
    line-height: 1.8;
  }

  .agreement-hero__aside {
    width: 100%;
    flex-basis: auto;
  }

  .agreement-content {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }

  .agreement-toc {
    display: none;
  }

  .agreement-card {
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  .agreement-card__header {
    padding: 24px 22px;
  }

  .agreement-card__header h2 {
    font-size: 21px;
  }

  .agreement-section {
    padding: 26px 22px 26px 58px;
  }

  .agreement-section::before {
    left: 22px;
  }

  .agreement-section h3 {
    font-size: 17px;
  }

  .agreement-section p {
    font-size: 14px;
    line-height: 1.85;
  }

  .agreement-notes {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 22px;
  }

  .agreement-notes h3 {
    font-size: 20px;
  }

  .agreement-notes li {
    font-size: 14px;
  }
}
