body.agreement-page.prohibited-layout,
.agreement-page {
  background: #f6f6f6;
  color: #30343b;
  min-height: 100vh;
}

.agreement-main {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

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

.agreement-hero {
  min-height: 220px;
  overflow: hidden;
  position: relative;
}

.agreement-hero__media {
  background:
    linear-gradient(135deg, rgba(82, 97, 121, 0.96), rgba(112, 130, 153, 0.92)),
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 18rem),
    radial-gradient(circle at 82% 12%, rgba(255, 214, 143, 0.24), transparent 12rem);
  inset: 0;
  position: absolute;
}

.agreement-hero__media::before,
.agreement-hero__media::after {
  content: "";
  position: absolute;
  transform: rotate(-8deg);
}

.agreement-hero__media::before {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  height: 240px;
  right: 80px;
  top: -72px;
  width: 360px;
}

.agreement-hero__media::after {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  height: 180px;
  right: 220px;
  top: 30px;
  width: 180px;
}

.agreement-hero__inner {
  margin: 0 auto;
  min-height: 220px;
  padding: 38px 0 84px;
  position: relative;
  width: 1200px;
  z-index: 1;
}

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

.agreement-hero__copy p {
  color: rgba(255, 245, 225, 0.92);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.24em;
  line-height: 1.6;
  margin: 0 0 12px;
}

.agreement-hero__copy h1 {
  color: #ffffff;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

.agreement-hero__copy span {
  color: rgba(255, 255, 255, 0.86);
  display: block;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.9;
  margin-top: 16px;
}

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

.agreement-toc {
  background: #ffffff;
  border: 1px solid #e3e6eb;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(49, 54, 62, 0.06);
  display: grid;
  gap: 2px;
  padding: 14px;
  position: sticky;
  top: 118px;
}

.agreement-toc a {
  border-radius: 6px;
  color: #536072;
  display: block;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 12px;
  text-decoration: none;
}

.agreement-toc a:hover,
.agreement-toc a:focus-visible {
  background: #edf3ff;
  color: #315a9f;
  outline: none;
}

.agreement-card {
  background: #ffffff;
  border: 1px solid #e3e6eb;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(49, 54, 62, 0.08);
  overflow: hidden;
}

.agreement-card__header {
  background: linear-gradient(135deg, #4778c8, #315a9f);
  color: #ffffff;
  padding: 32px 36px;
}

.agreement-card__header p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 10px;
}

.agreement-card__header h2 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.agreement-card__header span {
  color: rgba(255, 255, 255, 0.86);
  display: block;
  font-size: 15px;
  line-height: 1.9;
  margin-top: 14px;
}

.agreement-section {
  border-bottom: 1px solid #e7e9ee;
  padding: 34px 36px 30px;
  scroll-margin-top: 130px;
}

.agreement-section:last-child {
  border-bottom: 0;
}

.agreement-section h3 {
  color: #2f3135;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 18px;
}

.agreement-section p {
  color: #555f6d;
  font-size: 16px;
  line-height: 1.9;
  margin: 0 0 14px;
}

.agreement-section p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1023px) {
  .agreement-hero__inner {
    padding: 38px 16px 72px;
    width: min(1200px, calc(100vw - 32px));
  }

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

  .agreement-hero__copy span {
    font-size: 15px;
  }

  .agreement-content {
    grid-template-columns: 1fr;
    padding: 34px 16px 52px;
    width: 100%;
  }

  .agreement-toc {
    display: none;
  }

  .agreement-card__header,
  .agreement-section {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 640px) {
  .agreement-hero {
    min-height: 210px;
  }

  .agreement-hero__inner {
    min-height: 210px;
    padding: 30px 16px 56px;
  }

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

  .agreement-card__header {
    padding: 24px 20px;
  }

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

  .agreement-section {
    padding: 28px 20px 24px;
  }

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

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