/* Scratch点酷网用户协议页面 v1.5.4 */

.dianku-agreement-main {
  min-width: 320px;
  overflow: hidden;
  padding: 1px 0 52px;
  background:
    radial-gradient(circle at 21px 21px, rgba(85, 136, 245, 0.07) 0 2px, transparent 3px) 0 0 / 42px 42px,
    linear-gradient(180deg, #fff9ed 0%, #fffdf8 56%, #f4f9ff 100%);
}

.dianku-agreement-page {
  --agreement-ink: #292b4a;
  --agreement-muted: #686b82;
  --agreement-blue: #5588f5;
  --agreement-blue-dark: #3764d2;
  --agreement-blue-soft: #edf3ff;
  --agreement-yellow: #ffc94f;
  --agreement-mint: #45caa4;
  --agreement-paper: #fffefb;
  --agreement-line: #e6daca;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 34px;
  color: var(--agreement-ink);
  font-family: "Nunito", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.82;
}

.dianku-agreement-page,
.dianku-agreement-page * {
  box-sizing: border-box;
}

.agreement-hero {
  position: relative;
  overflow: hidden;
  padding: 42px clamp(28px, 6vw, 72px);
  border: 3px solid var(--agreement-ink);
  border-radius: 28px 25px 30px 24px;
  background:
    radial-gradient(circle at 68px 68px, rgba(255, 255, 255, 0.82) 0 4px, transparent 5px) 0 0 / 68px 68px,
    linear-gradient(135deg, #f3f7ff 0%, #edf3ff 54%, #e2f9f1 100%);
  box-shadow: 8px 9px 0 rgba(41, 43, 74, 0.11);
  text-align: center;
}

.agreement-hero::before,
.agreement-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.agreement-hero::before {
  top: -150px;
  left: -125px;
  width: 320px;
  height: 320px;
  background: rgba(255, 201, 79, 0.43);
}

.agreement-hero::after {
  right: -120px;
  bottom: -170px;
  width: 340px;
  height: 340px;
  background: rgba(85, 136, 245, 0.13);
}

.agreement-kicker,
.agreement-hero h1,
.agreement-hero > p,
.agreement-dates {
  position: relative;
  z-index: 1;
}

.agreement-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 13px;
  color: #2d6a59;
  border: 2px solid #68bca4;
  border-radius: 11px 14px 10px 13px;
  background: #effff9;
  box-shadow: 3px 4px 0 rgba(46, 138, 112, 0.12);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.agreement-hero h1 {
  margin: 17px 0 10px;
  color: var(--agreement-ink);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.agreement-hero > p {
  max-width: 760px;
  margin: 0 auto;
  color: #5f6279;
  font-size: 16px;
  font-weight: 700;
}

.agreement-dates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 18px;
  color: #74778e;
  font-size: 13px;
  font-weight: 700;
}

.agreement-document {
  width: min(1040px, calc(100% - 40px));
  margin: 30px auto 0;
  padding: clamp(26px, 4vw, 50px) clamp(24px, 5vw, 62px);
  border: 2px solid var(--agreement-ink);
  border-radius: 24px 21px 25px 22px;
  background: var(--agreement-paper);
  box-shadow: 7px 8px 0 rgba(41, 43, 74, 0.09);
}

.agreement-intro {
  margin-bottom: 10px;
  padding: 20px 22px;
  border: 2px solid #b9caee;
  border-radius: 16px 14px 17px 13px;
  background: var(--agreement-blue-soft);
}

.agreement-intro strong {
  display: block;
  margin-bottom: 7px;
  color: var(--agreement-blue-dark);
  font-size: 18px;
  font-weight: 900;
}

.agreement-intro p,
.agreement-section p {
  margin: 0;
}

.agreement-section {
  padding: 30px 0 27px;
  border-bottom: 1px dashed var(--agreement-line);
}

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

.agreement-section h2 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 14px;
  color: var(--agreement-ink);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.agreement-section h2 span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  color: #fff;
  border: 2px solid var(--agreement-ink);
  border-radius: 10px 12px 9px 11px;
  background: var(--agreement-blue);
  box-shadow: 3px 3px 0 rgba(41, 43, 74, 0.13);
  font-size: 14px;
  font-weight: 900;
}

.agreement-section ol,
.agreement-section ul {
  margin: 0;
  padding-left: 1.45em;
}

.agreement-section li {
  margin: 8px 0;
  padding-left: 0.25em;
  color: #56596f;
}

.agreement-section li::marker {
  color: var(--agreement-blue-dark);
  font-weight: 800;
}

.agreement-emphasis {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 5px solid var(--agreement-yellow);
  border-radius: 5px 14px 14px 5px;
  background: #fff8dd;
}

.agreement-emphasis strong {
  display: block;
  margin-bottom: 8px;
  color: #6f5412;
  font-weight: 900;
}

.agreement-emphasis li {
  color: #645c48;
}

@media (max-width: 767px) {
  .dianku-agreement-main {
    padding-bottom: 34px;
  }

  .dianku-agreement-page {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
    font-size: 15px;
    line-height: 1.76;
  }

  .agreement-hero {
    padding: 31px 18px;
    border-width: 2px;
    border-radius: 20px 18px 22px 17px;
    box-shadow: 5px 6px 0 rgba(41, 43, 74, 0.1);
  }

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

  .agreement-hero > p {
    font-size: 14px;
  }

  .agreement-dates {
    flex-direction: column;
    gap: 2px;
  }

  .agreement-document {
    width: 100%;
    margin-top: 20px;
    padding: 24px 18px;
    border-width: 2px;
    border-radius: 18px 16px 19px 15px;
    box-shadow: 5px 6px 0 rgba(41, 43, 74, 0.08);
  }

  .agreement-intro {
    padding: 17px 16px;
  }

  .agreement-section {
    padding: 25px 0 22px;
  }

  .agreement-section h2 {
    align-items: flex-start;
    font-size: 19px;
  }
}

@media print {
  .dianku-agreement-main {
    padding: 0;
    background: #fff;
  }

  .dianku-agreement-page {
    width: 100%;
    padding: 0;
    color: #111;
  }

  .agreement-hero,
  .agreement-document {
    border-color: #bbb;
    box-shadow: none;
  }

  .agreement-section {
    break-inside: avoid;
  }
}
