:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #101429;
  background: #fff;
  --blue: #0757f9;
  --edge: #c5cfe3;
}

* { box-sizing: border-box; }
body { margin: 0; }
.page {
  width: min(1040px, calc(100% - clamp(48px, 10vw, 144px)));
  margin: 0 auto;
  padding-block: clamp(28px, 4vh, 52px) 36px;
}
.page-heading { margin: 0 0 20px; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1 {
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1.15;
  color: #090d20;
  letter-spacing: -.012em;
}
.subtitle {
  display: block;
  margin-top: 5px;
  font-size: 0.54em;
  font-weight: 600;
  line-height: 1.27;
  letter-spacing: -.025em;
}
.keep-together { white-space: nowrap; }
.card {
  background: #fff;
  border: 1px solid var(--edge);
  border-radius: 14px;
}
.card + .card { margin-top: 14px; }
.entry {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 24px;
  min-height: 92px;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
}
.entry-icon, .arrow {
  display: inline-block;
  background-color: currentColor;
  mask: var(--icon) center / contain no-repeat;
}
.entry-icon { width: 40px; aspect-ratio: 1; justify-self: center; color: var(--blue); }
.book-icon { --icon: url('/icons/book.svg'); }
.headset-icon { --icon: url('/icons/headset.svg'); }
.arrow { --icon: url('/icons/arrow-right.svg'); width: 1.03em; height: 1.03em; }
.entry-copy h2 {
  font-size: clamp(20px, 1.6vw, 22px);
  line-height: 1.3;
  letter-spacing: -.025em;
}
.backup-contact h3 { font-size: 18px; line-height: 1.45; }
.entry-copy p, .backup-contact p {
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.5;
}
.entry-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  min-width: 164px;
  min-height: 44px;
  padding: 8px 16px;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 9px;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}
.entry-action.primary { color: #fff; background-color: var(--blue); }
.entry:focus-visible { outline: 3px solid #125ae6; outline-offset: 3px; }
@media (hover: hover) {
  .entry:hover .entry-action { background-color: #f0f5ff; }
  .entry:hover .entry-action.primary { background-color: #0045d6; }
}
.support-card { padding-bottom: 20px; }
.backup-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 0 24px 16px;
  padding: 18px 28px;
  background: #eaf2ff;
  border: 1px solid #aec6fb;
  border-radius: 10px;
}
.backup-copy { min-width: 0; overflow-wrap: anywhere; }
.backup-copy p { margin-top: 6px; color: #42516b; line-height: 1.55; }
.backup-copy .add-method { margin-top: 14px; color: #54657c; font-size: 14px; }
.wechat-card {
  display: grid;
  justify-items: center;
  align-content: start;
  width: max-content;
  max-width: min(100%, 228px);
  min-width: 0;
  padding: 12px;
  background: white;
  border: 1px solid #d5e1f4;
  border-radius: 10px;
  text-align: center;
  overflow-wrap: anywhere;
}
.wechat-card:has(img) { padding-bottom: 4px; }
.wechat-card .wechat-id { margin: 0; color: #26334b; font-size: 16px; font-weight: 500; }
.wechat-id strong { color: #13223a; font-size: 17px; font-weight: 700; }
.wechat-card img { display: block; width: 160px; max-width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.packages {
  margin: 0 24px;
  border-top: 1px solid var(--edge);
  padding-top: 12px;
}
.packages h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.35; }
.package-list { border: 1px solid var(--edge); border-radius: 10px; overflow: hidden; }
.package-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) fit-content(44%);
  align-items: baseline;
  gap: 2px 14px;
  padding: 7px 16px;
  overflow-wrap: anywhere;
}
.package-row + .package-row { border-top: 1px solid #d6dce7; }
.package-row dt, .package-price { font-size: 16px; font-weight: 600; line-height: 1.45; }
.package-price { grid-column: 2; grid-row: 1; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.package-detail { grid-column: 1 / -1; color: #526078; font-size: 14px; line-height: 1.5; white-space: pre-line; }
#package-content > p { color: #526078; line-height: 1.6; }

@media (max-width: 760px) {
  .page { width: auto; margin-inline: clamp(16px, 4.6vw, 28px); padding-block: 24px 30px; }
  .page-heading { margin-bottom: 16px; }
  h1 { font-size: clamp(23px, 5.6vw, 30px); line-height: 1.27; }
  .subtitle { font-size: 15px; margin-top: 4px; }
  .entry { padding: 15px; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; }
  .entry-icon { width: 28px; align-self: start; }
  .entry-copy h2 { font-size: 18px; line-height: 1.4; }
  .entry-copy p, .backup-contact p { font-size: 15px; }
  .entry-action { width: 100%; grid-column: 1 / -1; font-size: 16px; }
  .support-card { padding-bottom: 15px; }
  .backup-contact { margin: 0 14px 14px; padding: 12px; gap: 10px; }
  .backup-contact h3 { font-size: 16px; }
  .wechat-card img { width: 130px; }
  .packages { margin: 0 14px; }
  .packages h2 { font-size: 18px; }
  .package-row { padding: 8px 12px; }
  .package-row dt, .package-price { font-size: 15px; }
}
@media (max-width: 560px) {
  .backup-contact { grid-template-columns: minmax(0, 1fr); }
  .wechat-card { justify-self: center; }
  .contact-direction { display: none; }
}

@media (min-width: 980px) and (max-height: 740px) {
  .support-card {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
    column-gap: 20px;
  }
  .support-card .entry { grid-column: 1 / -1; }
  .backup-contact { margin: 0 0 0 24px; gap: 12px; padding: 12px 16px; }
  .wechat-card { max-width: 170px; padding: 8px; }
  .wechat-card img { width: 124px; }
  .packages { margin: 0 24px 0 0; border-top: 0; padding-top: 0; }
  .entry + .packages { grid-column: 1 / -1; margin-inline: 24px; }
}

@media (min-width: 980px) {
  body { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; }
}
.backup-contact h3 { text-wrap: balance; }
