:root {
  color-scheme: light;
  --pink: #e96595;
  --pink-dark: #a93664;
  --ink: #633c4d;
  --muted: #977685;
  --line: #f3dce5;
  --font:
    "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(ellipse at 12% 25%, #ffdfeb80, transparent 43%),
    radial-gradient(ellipse at 90% 65%, #ffd7e480, transparent 45%),
    linear-gradient(135deg, #fff6f9, #fff0f5 52%, #fff8fa);
  min-height: 100vh;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #bc4775;
  outline-offset: 4px;
}
.client-header {
  height: 86px;
  max-width: 1160px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand-bow {
  font-size: 35px;
  color: var(--pink);
  line-height: 1;
}
.brand-divider {
  height: 16px;
  width: 1px;
  background: #dab7c6;
  margin: 0 3px;
}
.brand-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.header-heart {
  font-size: 29px;
  color: #d482a1;
}
.client-main {
  max-width: 680px;
  margin: 23px auto 0;
  padding: 0 24px;
}
.intro {
  text-align: center;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 3.5px;
  color: #b16e88;
  font-weight: 600;
}
h1 {
  font-size: 31px;
  line-height: 1.5;
  font-weight: 700;
  margin: 12px 0 6px;
  letter-spacing: 1px;
}
h1 span {
  color: var(--pink);
  font-size: 32px;
}
.intro p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.mobile-break {
  display: none;
}
.code-card {
  max-width: 484px;
  margin: 0 auto;
  background: #fffdfefa;
  border: 1px solid #fff;
  border-radius: 24px;
  box-shadow:
    0 14px 60px #ba5b8212,
    0 0 0 1px #f4dae480;
  overflow: hidden;
  position: relative;
}
.card-topline {
  margin: 0 27px;
  padding: 17px 0 13px;
  border-bottom: 1px dashed #efd8e2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #bb889e;
}
.tiny-flower {
  font-size: 15px;
  padding-right: 6px;
}
.cat-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 13px auto 0;
  width: 245px;
}
.cat-wrap img {
  width: 122px;
  height: auto;
}
.spark {
  position: absolute;
  color: #e69ab5;
}
.spark-left {
  left: 22px;
  top: 43px;
  font-size: 28px;
}
.spark-right {
  right: 25px;
  top: 19px;
  font-size: 21px;
}
.code-card h2 {
  font-size: 20px;
  letter-spacing: 0.5px;
  margin: 5px 0 5px;
  text-align: center;
}
.card-description {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 22px;
}
#valid-content {
  padding: 0 32px;
}
.code-result {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #ebc5d5;
  border-radius: 15px;
  background: #fff7fa;
  min-height: 111px;
  color: #b7869a;
  margin: 0 0 19px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.code-result.has-code {
  color: #b64070;
  background: #fff0f6;
  cursor: pointer;
}
.code-result.has-code:hover {
  transform: translateY(-2px);
}
#code-value {
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.3;
  letter-spacing: 6px;
  margin-left: 6px;
}
#copy-hint {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 2px;
  color: #a07e8c;
}
.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  border: 0;
  background: linear-gradient(105deg, #f17aa2, #e96394);
  box-shadow: 0 6px 15px #ec759a33;
  color: #fff;
  border-radius: 13px;
  width: 100%;
  min-height: 53px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #dc608347;
}
.primary-button:active:not(:disabled) {
  transform: scale(0.98);
}
.primary-button:disabled {
  opacity: 0.65;
}
.button-spark {
  position: absolute;
  right: 21px;
  font-size: 23px;
  font-weight: 400;
}
#fetch-icon {
  font-size: 23px;
}
.fetch-message {
  color: #a65f7d;
  text-align: center;
  font-size: 12px;
  min-height: 20px;
  margin: 10px 0 15px;
}
.fetch-message.error {
  color: #b73953;
}
.link-meta {
  border-top: 1px solid #f4e6ec;
  display: flex;
  justify-content: center;
  gap: 26px;
  padding: 17px 0 18px;
  text-align: center;
}
.link-meta > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.meta-label {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #a28591;
}
.link-meta strong {
  font-size: 12px;
  font-weight: 500;
  color: #765668;
  font-variant-numeric: tabular-nums;
}
.meta-line {
  width: 1px;
  background: #f1e2e8;
}
.quota-note {
  font-size: 11px;
  color: #9b7686;
  text-align: center;
  margin: 0 0 15px;
}
.card-footer {
  background: #fff5f9;
  border-top: 1px solid #f7eaf0;
  text-align: center;
  font-size: 11px;
  color: #a67c8f;
  padding: 13px 12px;
}
.card-footer span {
  margin-right: 5px;
}
.howto {
  max-width: 484px;
  margin: 27px auto 0;
  padding: 0 14px;
}
.howto h2 {
  font-size: 14px;
  margin: 0 0 15px;
  font-weight: 600;
}
.howto h2 span {
  color: #d57e9e;
  font-size: 18px;
  margin-right: 6px;
}
.howto ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}
.howto li {
  display: flex;
  gap: 12px;
  align-items: center;
}
.howto li > span {
  font-size: 11px;
  color: #ba6a89;
  background: #fde5ee;
  border: 1px solid #f6d8e4;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  flex-shrink: 0;
}
.howto li div {
  display: flex;
  align-items: baseline;
  gap: 13px;
}
.howto strong {
  font-size: 12px;
  white-space: nowrap;
  font-weight: 600;
}
.howto p {
  margin: 0;
  font-size: 12px;
  color: #9c7c8c;
}
.howto .howto-note {
  font-size: 11px;
  margin: 18px 0 0;
  color: #af8d9d;
}
.client-footer {
  text-align: center;
  font-size: 11px;
  color: #b392a2;
  padding: 29px 0 26px;
  letter-spacing: 0.5px;
}
.client-footer span {
  font-size: 20px;
  vertical-align: middle;
  margin-left: 9px;
  color: #d38aa5;
}
.checking {
  text-align: center;
  font-size: 14px;
  color: #977685;
  padding: 30px 12px 60px;
}
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
  margin-right: 5px;
}
.unavailable {
  text-align: center;
  padding: 12px 28px 34px;
}
.unavailable h2 {
  margin-top: 16px;
}
.unavailable p {
  font-size: 14px;
  color: #9a7183;
  line-height: 1.8;
}
.status-pill {
  font-size: 12px;
  background: #fff0f5;
  padding: 5px 12px;
  color: #ac6d88;
  border-radius: 50px;
}
.secondary-button {
  border: 1px solid #e9c9d6;
  border-radius: 10px;
  padding: 9px 18px;
  background: #fff;
  color: #a9617e;
  font-size: 14px;
  margin-top: 10px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: #744457;
  color: white;
  padding: 12px 22px;
  border-radius: 13px;
  box-shadow: 0 8px 35px #74354826;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: calc(100% - 32px);
  width: max-content;
  z-index: 100;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast-error {
  background: #a93650;
}
.clipboard-fallback {
  position: fixed;
  top: 0;
  left: -9999px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.home-card {
  padding-bottom: 35px;
}
.home-card p {
  margin: 15px 30px;
  color: #9b7686;
  text-align: center;
  font-size: 14px;
}
.home-card .cat-wrap {
  margin-top: 30px;
}
.home-card .secondary-button {
  display: block;
  width: max-content;
  margin: 25px auto 0;
}
.brand-bow {
  display: block;
  flex-shrink: 0;
  width: 35px;
  height: 30px;
  background: url("/bow.svg") center/contain no-repeat;
  font-size: 0;
}
.link-meta strong {
  font-size: 13px;
}
.card-description {
  font-size: 14px;
}
.howto strong,
.howto p {
  font-size: 13px;
}
@media (min-width: 1500px) {
  .client-main {
    margin-top: 45px;
  }
  .intro {
    margin-bottom: 35px;
  }
}
@media (max-width: 540px) {
  .client-header {
    height: 70px;
    padding: 0 22px;
  }
  .brand {
    font-size: 16px;
    gap: 9px;
  }
  .brand-sub {
    font-size: 11px;
  }
  .brand-divider {
    margin: 0;
  }
  .client-main {
    padding: 0 20px;
    margin-top: 18px;
  }
  .intro {
    margin-bottom: 22px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 2.5px;
  }
  h1 {
    font-size: 25px;
    letter-spacing: 0;
    margin-top: 10px;
  }
  .mobile-break {
    display: block;
  }
  .intro p {
    font-size: 12px;
  }
  .code-card {
    border-radius: 21px;
  }
  #valid-content {
    padding: 0 23px;
  }
  .card-topline {
    margin: 0 23px;
    font-size: 9px;
    letter-spacing: 1px;
  }
  .code-card h2 {
    font-size: 18px;
  }
  .howto {
    padding: 0 4px;
  }
  .howto li div {
    gap: 10px;
  }
  .link-meta {
    gap: 21px;
  }
  .client-footer {
    font-size: 10px;
  }
  .cat-wrap img {
    width: 116px;
  }
}
@media (max-width: 350px) {
  .brand-sub,
  .brand-divider {
    display: none;
  }
  h1 {
    font-size: 22px;
  }
  #code-value {
    font-size: 37px;
    letter-spacing: 4px;
  }
  .howto li div {
    display: block;
  }
  .link-meta {
    gap: 15px;
  }
  #valid-content {
    padding: 0 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition: none !important;
  }
}
