:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --ink: #232722;
  --muted: #555a50;
  --line: #d8d9d0;
  --green: #253c32;
  --green-hover: #365346;
  --orange: #ba3519;
  --orange-dark: #912a15;
  --soft: #f2eee8;
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
  line-height: 1.65;
}
h1, h2, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .24em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

.wrap {
  width: min(1190px, calc(100% - clamp(36px, 8vw, 112px)));
  margin-inline: auto;
}

.guide-main { padding-bottom: clamp(42px, 7vw, 96px); }
.recharge-article {
  max-width: 700px;
  margin-inline: auto;
  padding-top: clamp(26px, 5vw, 60px);
}
.guide-heading {
  font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  font-weight: 750;
  letter-spacing: -.035em;
}
.recharge-article h1 {
  margin-block: 16px 20px;
  font-size: clamp(2rem, 5vw, 3.625rem);
  line-height: 1.14;
  text-wrap: balance;
}
.guide-section-title {
  margin-bottom: 13px;
  font-size: clamp(1.4375rem, 3.6vw, 2rem);
  line-height: 1.22;
  text-wrap: pretty;
}
.guide-prose {
  font-size: 1.0625rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.guide-prose p + p { margin-top: 12px; }
.guide-link-inline, .recharge-contents a {
  color: var(--green);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #87958b;
  text-underline-offset: .24em;
}
.guide-link-inline:hover, .recharge-contents a:hover { text-decoration-color: currentColor; }
.guide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 12px;
}
.guide-actions .guide-link-inline, .recharge-figure .guide-link-inline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
}
.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font-size: .9375rem;
  font-weight: 650;
  transition: background-color 160ms ease;
}
.guide-button:hover { background: var(--green-hover); text-decoration: none; }

.recharge-contents { margin-top: 26px; }
.recharge-contents ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--line);
  list-style: none;
}
.recharge-contents a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 6px;
}
.recharge-contents a span { color: var(--muted); font-variant-numeric: tabular-nums; }
.recharge-step {
  margin-top: clamp(30px, 6vw, 52px);
  scroll-margin-top: 12px;
}
.recharge-figure { margin-top: 15px; }
.recharge-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.65;
  object-fit: cover;
  object-position: center bottom;
  border: 1px solid var(--line);
  background: #e9ebe5;
}
.recharge-figure--confirm img { aspect-ratio: 2.1; object-position: center 76%; }
.recharge-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 12px;
  min-height: 44px;
  color: var(--muted);
  font-size: .875rem;
}
.recharge-help {
  margin-top: clamp(32px, 6vw, 56px);
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .guide-prose { font-size: 1rem; }
}
@media (max-width: 560px) {
  .recharge-contents ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .guide-button { width: 100%; min-height: 48px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-button { transition: none; }
}
