:root {
  color-scheme: light;
  --page: #f7f4ef;
  --surface: #fff;
  --ink: #241e19;
  --muted: #70665c;
  --line: #e1d9ce;
  --accent: #b84220;
  --soft: #f0e6dd;
  --green: #256c46;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font:
    16px/1.85 "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
button {
  font: inherit;
  cursor: pointer;
}
a,
button,
summary {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
img {
  max-width: 100%;
  height: auto;
}
strong {
  font-weight: 750;
}
.skip {
  position: fixed;
  top: 8px;
  left: 12px;
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
  z-index: 50;
  transform: translateY(-150%);
}
.skip:focus {
  transform: translateY(0);
}
.guide-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}
.header-wrap {
  max-width: 1280px;
  margin: auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.guide-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.guide-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.guide-brand span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  margin-left: 6px;
}
.guide-header nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.guide-header nav a {
  font-size: 14px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.guide-header nav a[aria-current],
.guide-header nav a:hover {
  color: var(--accent);
}
.guide-wrap {
  max-width: 1200px;
  margin: auto;
  padding: 0 32px;
}
.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 85px;
  align-items: center;
  padding: 60px 0 64px;
}
.hero-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-label img {
  width: 22px;
  height: 22px;
}
h1 {
  font-family: "Songti SC", "Noto Serif CJK SC", "STSong", Georgia, serif;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 900;
}
h1 span {
  color: var(--accent);
}
.hero-description {
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 550px;
  margin-top: 22px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 11px 22px;
  border-radius: 9px;
  min-height: 48px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 750;
  transition: background 0.18s ease-out;
}
.primary {
  background: var(--accent);
  color: #fff;
}
.primary:hover {
  background: #96351b;
}
.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.secondary:hover {
  background: var(--soft);
}
.route-card {
  padding: 25px;
  background: #27211c;
  color: #fff;
  border-radius: 16px;
  text-align: center;
}
.route-card div {
  display: flex;
  flex-direction: column;
}
.route-card span:not(.route-arrow),
.route-card small {
  font-size: 11px;
  color: #d6c6ba;
}
.route-card strong {
  font-size: 22px;
}
.route-center {
  border-block: 1px solid #51453a;
  padding: 10px;
}
.route-center strong {
  color: #f3b48e;
}
.route-arrow {
  display: block;
  color: #e3a27f;
  margin: 4px;
}
.guide-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 55px;
  border-top: 1px solid var(--line);
}
.contents {
  position: sticky;
  top: 112px;
  align-self: start;
  padding-top: 32px;
}
.contents > p {
  font-weight: 750;
  font-size: 14px;
  margin-bottom: 12px;
}
.contents nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contents nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.contents nav a span {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.contents nav a[aria-current],
.contents nav a:hover {
  color: var(--accent);
  background: var(--soft);
}
.contents-help {
  display: block;
  font-size: 13px;
  margin: 20px 10px;
}
.progress-text {
  margin: 22px 10px;
  color: var(--muted);
  font-size: 12px;
}
.guide-content {
  min-width: 0;
}
.guide-step {
  padding: 38px 0 42px;
  border-bottom: 1px solid var(--line);
}
.step-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.step-title > span {
  color: var(--accent);
  font:
    600 17px/1.4 ui-monospace,
    monospace;
}
.step-title h2 {
  font-size: 27px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.guide-step > p,
.guide-step > ol {
  margin-top: 18px;
}
.guide-step ol {
  padding-left: 24px;
}
.guide-step li {
  margin-bottom: 10px;
  padding-left: 4px;
}
.guide-step a:not(.button):not(.guide-shot) {
  font-weight: 650;
}
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 23px 0;
}
.download-grid a {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
}
.download-grid a:hover {
  border-color: var(--accent);
}
.download-grid span {
  font-size: 12px;
  color: var(--accent);
}
.download-grid strong {
  font-size: 21px;
  color: var(--ink);
}
.download-grid small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.note {
  padding: 16px 19px;
  background: var(--soft);
  border-radius: 8px;
  font-size: 14px;
  color: #58483b;
}
.step-done {
  color: var(--green);
  font-size: 14px;
  font-weight: 650;
}
.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 10px;
}
.copy-row > div {
  min-width: 0;
}
.copy-row span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.copy-row code {
  font-size: 16px;
}
.copy-row button {
  flex-shrink: 0;
  background: var(--soft);
  color: var(--accent);
  border: 0;
  padding: 8px 13px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  min-height: 42px;
}
.copy-row button:hover {
  background: #e9d6c8;
}
.table-wrap {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
}
th,
td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--soft);
  font-weight: 750;
}
td:first-child {
  width: 140px;
  font-weight: 650;
}
tr:last-child td {
  border-bottom: 0;
}
.important {
  padding: 20px;
  background: #f6e6d9;
  border-radius: 10px;
  margin: 24px 0;
  color: #63321f;
}
.important > strong {
  display: block;
  font-size: 15px;
}
.important p {
  margin-top: 9px;
  font-size: 14px;
}
figure {
  margin: 26px 0 12px;
}
.guide-shot {
  position: relative;
  display: block;
  width: 100%;
  background: #ece9e5;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  cursor: zoom-in;
}
.guide-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.guide-shot span {
  display: block;
  background: var(--surface);
  padding: 10px 16px;
  font-size: 12px;
  text-align: right;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.guide-shot:hover {
  border-color: var(--accent);
}
figcaption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 10px 2px;
}
.success-panel {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid #c9d8c9;
  border-radius: 10px;
  background: #edf3eb;
  color: #2d5437;
}
.success-panel > strong {
  font-size: 19px;
}
.success-panel ul {
  padding-left: 20px;
  font-size: 14px;
  margin-bottom: 0;
}
.faq {
  padding: 36px 0;
}
.faq > h2,
.sources h2 {
  font-size: 25px;
  margin-bottom: 20px;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  min-height: 32px;
}
.faq details p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  padding: 0 8px;
}
.help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 25px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
}
.help strong {
  font-size: 20px;
}
.help p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.help .button {
  white-space: nowrap;
}
.sources {
  padding: 30px 0 45px;
  border-top: 1px solid var(--line);
}
.sources ul {
  padding-left: 20px;
  font-size: 14px;
}
.sources li {
  padding: 5px 0;
}
.sources p {
  font-size: 12px;
  color: var(--muted);
}
footer {
  max-width: 1136px;
  margin: auto;
  padding: 25px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}
#guide-lightbox {
  width: min(1500px, 96vw);
  max-height: 94dvh;
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
}
#guide-lightbox::backdrop {
  background: #17120de0;
}
.lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.lightbox-head p {
  font-size: 14px;
}
.lightbox-head button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--soft);
  border: 0;
  border-radius: 6px;
  font-size: 25px;
}
.lightbox-body {
  max-height: calc(94dvh - 130px);
  overflow: auto;
  overscroll-behavior: contain;
  text-align: center;
}
.lightbox-body img {
  display: block;
  width: 100%;
  height: auto;
  margin: auto;
}
.lightbox-hint {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 20px;
}
.guide-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  background: var(--ink);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 40;
  max-width: 90vw;
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.guide-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 1000px) {
  .guide-hero {
    gap: 40px;
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .guide-layout {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 30px;
  }
  .header-wrap {
    gap: 16px;
  }
  .guide-header nav {
    gap: 16px;
  }
  .guide-brand span {
    display: none;
  }
  .step-title h2 {
    font-size: 24px;
  }
  footer {
    margin: 0 32px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 140px;
  }
  .header-wrap {
    padding: 12px 20px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .guide-brand {
    font-size: 21px;
  }
  .guide-brand span {
    display: inline;
  }
  .guide-header nav {
    gap: 14px;
    width: 100%;
  }
  .guide-header nav a {
    font-size: 12px;
  }
  .guide-wrap {
    padding: 0 22px;
  }
  .guide-hero {
    grid-template-columns: 1fr;
    padding: 35px 0;
    gap: 28px;
  }
  h1 {
    font-size: clamp(31px, 7.2vw, 48px);
  }
  .hero-description {
    font-size: 16px;
  }
  .route-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 18px 12px;
  }
  .route-card > div {
    flex: 1;
    min-width: 0;
  }
  .route-card strong {
    font-size: 16px;
    line-height: 1.6;
  }
  .route-card span:not(.route-arrow),
  .route-card small {
    font-size: 9px;
  }
  .route-center {
    border-block: 0;
    padding: 8px 0;
  }
  .route-arrow {
    transform: rotate(-90deg);
  }
  .guide-layout {
    display: block;
  }
  .contents {
    position: static;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
  }
  .contents nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .contents nav a {
    font-size: 12px;
    padding: 8px;
    gap: 8px;
  }
  .contents-help {
    display: inline-block;
    margin: 12px 8px 0;
  }
  .progress-text {
    display: none;
  }
  .guide-step {
    padding: 30px 0;
  }
  .step-title {
    gap: 10px;
  }
  .step-title h2 {
    font-size: 22px;
  }
  .guide-step > p,
  .guide-step > ol {
    font-size: 15px;
  }
  .download-grid {
    gap: 10px;
  }
  .download-grid a {
    padding: 15px;
  }
  .download-grid strong {
    font-size: 18px;
  }
  .copy-row {
    flex-wrap: wrap;
  }
  .copy-row code {
    font-size: 14px;
  }
  .table-wrap table {
    font-size: 13px;
  }
  th,
  td {
    padding: 11px 12px;
  }
  td:first-child {
    width: 94px;
  }
  .important {
    padding: 16px;
  }
  .help {
    flex-direction: column;
    align-items: start;
  }
  .lightbox-head {
    padding: 8px 12px;
  }
  .lightbox-head p {
    font-size: 12px;
  }
  .lightbox-body img {
    width: 1200px;
    max-width: none;
  }
  .lightbox-body {
    max-height: calc(94dvh - 142px);
  }
  .lightbox-hint {
    font-size: 11px;
  }
  footer {
    margin: 0 22px;
    flex-wrap: wrap;
  }
  figure {
    margin: 22px 0 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 760px) {
  .route-card .desktop-word {
    display: block;
    font: inherit;
    color: inherit;
    white-space: nowrap;
  }
  .route-card strong {
    text-wrap: balance;
  }
  .route-card small {
    text-wrap: balance;
  }
}
