:root {
  color-scheme: light;
  --paper: #f3efe4;
  --paper-bright: #fffdf7;
  --ink: #17211d;
  --ink-soft: #34413b;
  --muted: #66706a;
  --line: #c8c9bd;
  --mint: #9df3c7;
  --mint-deep: #16734b;
  --coral: #ff806d;
  --coral-soft: #ffd7cf;
  --yellow: #f5da72;
  --focus: #087f5b;
  --display: "Arial Black", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --body: "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --utility: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(23, 33, 29, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 29, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--paper-bright);
  background: var(--ink);
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-frame {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.page-frame::before,
.page-frame::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.page-frame::before {
  top: -160px;
  right: -120px;
  width: 420px;
  height: 280px;
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.page-frame::after {
  bottom: 6%;
  left: -120px;
  width: 250px;
  height: 74px;
  background: var(--coral);
  border: 2px solid var(--ink);
  transform: rotate(13deg);
}

.site-header,
main,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 24px;
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--paper-bright);
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--coral);
  transform: rotate(-4deg);
}

.brand-mark span {
  font: 900 24px/1 var(--display);
  transform: rotate(4deg);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong,
.brand-copy small,
.privacy-badge,
.kicker,
.section-kicker,
.tag-topline,
.tag-code,
.tag-foot,
.card-label,
.card-path,
.site-footer {
  font-family: var(--utility);
}

.brand-copy strong {
  font-size: 13px;
  letter-spacing: 0.12em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(255, 253, 247, 0.82);
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.status-dot,
.mini-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: #20c879;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.62fr);
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
  min-height: 610px;
  padding: 78px 0 86px;
}

.kicker,
.section-kicker {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.kicker span {
  display: inline-block;
  margin-right: 10px;
  padding: 6px 9px;
  color: var(--paper-bright);
  background: var(--ink);
  border-radius: 2px;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: var(--display);
}

h1 {
  margin: 24px 0 0;
  font-size: clamp(52px, 7vw, 91px);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 1.04;
}

h1 em {
  display: inline-block;
  position: relative;
  margin-top: 10px;
  padding: 0.02em 0.16em 0.08em 0.12em;
  font-style: normal;
  background: var(--coral);
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(-1deg);
}

.hero-lead {
  max-width: 650px;
  margin: 35px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 20px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.button-primary {
  min-width: 188px;
  background: var(--mint);
  box-shadow: 5px 5px 0 var(--ink);
}

.button-quiet {
  border-color: transparent;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.button:hover {
  transform: translate(-2px, -2px);
}

.button-primary:hover {
  box-shadow: 7px 7px 0 var(--ink);
}

.server-tag {
  position: relative;
  padding: 42px 30px 26px;
  background: var(--paper-bright);
  border: 2px solid var(--ink);
  box-shadow: 11px 12px 0 var(--ink);
  transform: rotate(1.5deg);
}

.server-tag::after {
  position: absolute;
  right: -18px;
  bottom: 54px;
  width: 38px;
  height: 88px;
  content: "";
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-left: 0;
}

.tape {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 142px;
  height: 38px;
  background: rgba(157, 243, 199, 0.88);
  border: 1px dashed rgba(23, 33, 29, 0.56);
  transform: translateX(-50%) rotate(-2deg);
}

.tag-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 13px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--ink);
}

.tag-code {
  padding: 3px 6px;
  color: var(--paper-bright);
  background: var(--ink);
  letter-spacing: 0;
}

.tag-title {
  margin: 22px 0;
  font: 900 clamp(38px, 4.4vw, 58px)/0.86 var(--display);
  letter-spacing: -0.07em;
}

.tag-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.tag-list div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.tag-list dt,
.tag-list dd {
  margin: 0;
  font-size: 12px;
}

.tag-list dt {
  color: var(--muted);
}

.tag-list dd {
  font-family: var(--utility);
  font-weight: 700;
  text-align: right;
}

.mini-dot {
  margin-right: 6px;
}

.barcode {
  height: 42px;
  margin-top: 24px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 5px,
    var(--ink) 5px 6px,
    transparent 6px 10px,
    var(--ink) 10px 14px,
    transparent 14px 17px
  );
}

.tag-foot {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-align: center;
}

.services {
  padding: 84px 0 36px;
  border-top: 2px solid var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 410px);
  align-items: end;
  gap: 40px;
  margin-bottom: 32px;
}

.section-heading h2,
.access-note h2 {
  margin: 8px 0 0;
  font-size: clamp(32px, 4.3vw, 50px);
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.section-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 235px;
  padding: 25px;
  overflow: hidden;
  text-decoration: none;
  background: rgba(255, 253, 247, 0.92);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.service-card-featured {
  background: var(--mint);
}

.service-card:hover {
  box-shadow: 8px 8px 0 var(--ink);
  transform: translate(-3px, -3px);
}

.card-label {
  justify-self: start;
  align-self: start;
  padding: 6px 9px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--mint);
  border: 1px solid var(--ink);
}

.service-card-featured .card-label,
.card-label-ink {
  color: var(--paper-bright);
  background: var(--ink);
}

.card-label-coral {
  background: var(--coral-soft);
}

.card-label-yellow {
  background: var(--yellow);
}

.card-arrow {
  font: 700 27px/1 var(--utility);
}

.service-card strong {
  grid-column: 1 / -1;
  align-self: end;
  margin-top: 34px;
  font-size: clamp(21px, 2.4vw, 29px);
  letter-spacing: -0.04em;
}

.service-card small {
  grid-column: 1 / -1;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.card-path {
  grid-column: 1 / -1;
  margin-top: 22px;
  padding-top: 13px;
  color: var(--muted);
  font-size: 10px;
  border-top: 1px dashed var(--line);
}

.service-card-featured .card-path {
  color: var(--ink-soft);
  border-color: rgba(23, 33, 29, 0.35);
}

.access-note {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 74px 0 70px;
  padding: 30px 34px;
  background: var(--coral-soft);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}

.lock-mark {
  display: grid;
  width: 66px;
  height: 62px;
  place-items: center;
  background: var(--coral);
  border: 2px solid var(--ink);
}

.lock-mark span {
  position: relative;
  width: 23px;
  height: 19px;
  background: var(--ink);
  border-radius: 2px;
}

.lock-mark span::before {
  position: absolute;
  top: -16px;
  left: 4px;
  width: 11px;
  height: 14px;
  content: "";
  border: 3px solid var(--ink);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.access-note h2 {
  font-size: clamp(25px, 3vw, 38px);
}

.access-note p:last-child {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.access-stamp {
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  color: var(--mint-deep);
  font: 900 12px/1.1 var(--utility);
  text-align: center;
  border: 2px solid var(--mint-deep);
  border-radius: 50%;
  transform: rotate(9deg);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  border-top: 1px solid var(--line);
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 68px 0 86px;
  }

  .server-tag {
    width: min(480px, calc(100% - 14px));
    justify-self: center;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 650px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    min-height: 78px;
  }

  .brand-copy small {
    display: none;
  }

  .privacy-badge {
    padding: 7px 9px;
    letter-spacing: 0;
  }

  .hero {
    gap: 62px;
    padding-top: 50px;
  }

  h1 {
    font-size: clamp(45px, 15vw, 68px);
    letter-spacing: -0.085em;
  }

  h1 em {
    box-shadow: 5px 5px 0 var(--ink);
  }

  .hero-lead {
    margin-top: 29px;
    font-size: 15px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button-quiet {
    min-height: 42px;
  }

  .server-tag {
    padding-inline: 24px;
    box-shadow: 8px 9px 0 var(--ink);
    transform: none;
  }

  .server-tag::after {
    display: none;
  }

  .services {
    padding-top: 68px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 215px;
  }

  .access-note {
    grid-template-columns: auto 1fr;
    margin-block: 58px;
    padding: 25px 22px;
  }

  .lock-mark {
    width: 55px;
    height: 52px;
  }

  .access-note > div:nth-child(2) {
    grid-column: 1 / -1;
  }

  .access-stamp {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 62px;
    height: 62px;
    font-size: 9px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Quiet FlipBox brand layer: keep the information architecture while
   removing the paper, tape, barcode and sticker treatment. */
:root {
  --paper: #f7f9fc;
  --paper-bright: #ffffff;
  --ink: #172a46;
  --ink-soft: #3e526e;
  --muted: #718096;
  --line: #d9e2ee;
  --mint: #e8f1ff;
  --mint-deep: #1d4ed8;
  --coral: #f2a33a;
  --coral-soft: #fff4df;
  --yellow: #fff4df;
  --focus: #2563eb;
}

body { background: var(--paper); background-image: none; }
.page-frame::before,
.page-frame::after,
.tape,
.barcode { display: none; }
.server-tag::after { display: none; }
.site-header { min-height: 78px; border-bottom: 1px solid var(--line); }
.brand-mark {
  width: 44px; height: 44px; padding: 0; background: transparent;
  border: 0; box-shadow: none; transform: none;
}
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand-mark span { display: none; }
.privacy-badge { background: var(--paper-bright); border-color: var(--line); }
.hero { min-height: 0; padding-block: 42px 52px; }
h1 { font-size: clamp(48px, 6.5vw, 78px); letter-spacing: -0.055em; }
h1 em {
  padding: 0; color: var(--mint-deep); background: transparent; border: 0;
  box-shadow: none; transform: none;
}
.button {
  border-width: 1px; border-radius: 8px;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.button-primary {
  color: #fff; background: #2563eb; border-color: #2563eb; box-shadow: none;
}
.button-primary:hover { background: #1d4ed8; box-shadow: none; }
.server-tag {
  padding: 27px 26px 22px; background: var(--paper-bright);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(30, 64, 175, .08); transform: none;
}
.tag-title { color: var(--ink); font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.045em; }
.tag-code { color: var(--mint-deep); background: var(--mint); }
.services { padding-block: 64px 26px; border-top: 1px solid var(--line); }
.service-grid { gap: 14px; }
.service-card {
  min-height: 205px; padding: 22px; background: var(--paper-bright);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 22px rgba(23, 42, 70, .06);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.service-card-featured { background: var(--mint); border-color: #bfd3f7; }
.service-card:hover {
  border-color: #8db0ed; box-shadow: 0 12px 26px rgba(23, 42, 70, .1);
  transform: translateY(-2px);
}
.card-label { border-radius: 5px; }
.card-label-coral,
.card-label-yellow { color: #8a5a13; background: var(--coral-soft); }
.access-note {
  margin-block: 58px; padding: 24px 26px; background: var(--paper-bright);
  border: 1px solid var(--line); border-left: 4px solid var(--coral);
  border-radius: 10px; box-shadow: none;
}
.lock-mark { width: 48px; height: 48px; background: var(--coral-soft); border: 1px solid #efd49b; border-radius: 8px; }
.access-stamp {
  width: auto; height: auto; padding: 7px 9px; color: var(--mint-deep);
  border: 1px solid #9bb8ed; border-radius: 6px; transform: none;
}
.site-footer { border-top: 1px solid var(--line); }

@media (min-width: 651px) and (max-height: 820px) {
  .hero { padding-block: 30px 38px; }
  .hero-lead { margin-top: 24px; }
  .hero-actions { margin-top: 24px; }
}

/* Friend links in footer */
.footer-friends {
  white-space: nowrap;
}
.footer-friends a {
  color: var(--mint-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-friends a:hover {
  color: var(--ink);
  background: var(--mint);
}

/* Homepage header friend link */
.header-quicklinks {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  margin-left: auto;
}
.header-friend-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.header-friend-link:hover {
  background: #1d4ed8;
  color: #fff;
}
.header-friend-link:focus-visible {
  outline: 3px solid #9db9ff;
  outline-offset: 3px;
}
@media (max-width: 620px) {
  .site-header-with-friends {
    height: auto;
    min-height: 78px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }
  .header-quicklinks {
    gap: 8px;
  }
  .header-friend-link {
    font-size: 18px;
    padding: 10px 14px;
  }
}

.footer-tools {
  align-self: flex-start;
  color: var(--ink-soft);
  font-size: 12px;
}

.footer-tools summary,
.footer-tools a {
  display: grid;
  width: 32px;
  min-height: 32px;
  place-items: center;
  text-decoration: none;
}

.footer-tools summary {
  cursor: pointer;
  list-style: none;
}

.footer-tools summary::-webkit-details-marker {
  display: none;
}

.footer-tools :is(summary, a):hover {
  text-decoration: underline;
}

.footer-tools summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
