:root {
  color-scheme: dark;
  --paper: #f4eedc;
  --paper-dim: #b8b6a9;
  --gold: #e0bd62;
  --gold-light: #f2dc8a;
  --line: #0b0d0c;
  --panel: #252a26;
  --panel-dark: #171c18;
  --panel-soft: #20261f;
  --page: 1180px;
  --nav-height: 72px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  color: var(--paper);
  background-color: #171a18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 72% 12%, rgba(224, 189, 98, 0.14), transparent 34%),
    linear-gradient(180deg, #252a24, #121714);
  background-size: 24px 24px, 24px 24px, auto, auto;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.72;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.guide-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(12, 17, 13, 0.94);
  border-bottom: 4px solid var(--line);
  box-shadow: 0 3px 0 rgba(224, 189, 98, 0.18);
  backdrop-filter: blur(12px);
}

.guide-nav-inner,
.guide-shell {
  width: min(calc(100% - 48px), var(--page));
  margin: 0 auto;
}

.guide-nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.guide-brand-mark {
  width: 40px;
  height: 40px;
  overflow: hidden;
  background: #12091a;
  box-shadow: 3px 3px 0 #070807;
}

.guide-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.guide-brand-copy strong {
  color: var(--gold-light);
  font-size: 18px;
  font-weight: 900;
  text-shadow: 2px 2px 0 #000;
}

.guide-brand-copy small,
.eyebrow {
  color: var(--gold);
  font-family: Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.guide-back-link {
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  color: var(--paper);
  background: rgba(31, 38, 32, 0.86);
  border: 3px solid var(--line);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.35), 4px 4px 0 #080a08;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.guide-shell {
  padding: 64px 0 96px;
}

.guide-hero,
.guide-panel,
.submit-panel,
.guide-status-card,
.guide-card,
.guide-article,
.info-card,
.highlight-box,
.submit-card {
  border: 4px solid var(--line);
  border-radius: 4px;
  box-shadow: 8px 8px 0 #070907;
}

.guide-hero {
  position: relative;
  padding: 34px 30px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: end;
  background: var(--panel);
  overflow: hidden;
}

.guide-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: repeating-linear-gradient(90deg, #7a5b2b 0 32px, #a07732 32px 64px, #4e3f25 64px 96px);
  border-bottom: 3px solid #111511;
}

h1 {
  margin-top: 6px;
  color: var(--paper);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 1000;
  line-height: 1.12;
  text-shadow: 4px 4px 0 #080a08;
}

h2 {
  color: var(--paper);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 1000;
  line-height: 1.25;
}

h3 {
  color: var(--gold-light);
  font-size: 23px;
  font-weight: 1000;
  line-height: 1.35;
}

p {
  margin-top: 12px;
  color: var(--paper-dim);
  font-size: 14px;
}

.guide-status-card {
  min-height: 130px;
  padding: 16px;
  display: grid;
  align-content: center;
  background: var(--panel-dark);
}

.guide-status-card span,
.guide-status-card small {
  color: var(--paper-dim);
  font-size: 12px;
  font-weight: 900;
}

.guide-status-card strong {
  color: var(--gold-light);
  font-size: 30px;
  font-weight: 1000;
}

.guide-panel,
.submit-panel,
.guide-article {
  margin-top: 28px;
  padding: 24px;
  background: var(--panel);
}

.guide-panel-heading {
  display: grid;
  gap: 4px;
}

.guide-grid,
.info-grid,
.image-gallery,
.guide-image-grid {
  display: grid;
  gap: 18px;
}

.guide-grid {
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card {
  min-height: 210px;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 8px;
  background: var(--panel-dark);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.guide-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 #070907;
}

.guide-card > span {
  color: var(--gold);
  font-family: Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.article-heading {
  padding-bottom: 20px;
  border-bottom: 3px solid rgba(224, 189, 98, 0.32);
}

.article-heading p {
  max-width: 860px;
}

.article-section {
  padding: 24px 0;
  border-bottom: 2px solid rgba(244, 238, 220, 0.08);
}

.article-section:last-child {
  border-bottom: 0;
}

.article-section ul,
.article-section ol {
  margin-top: 14px;
  padding-left: 1.35em;
  display: grid;
  gap: 8px;
  color: var(--paper-dim);
  font-size: 14px;
}

.article-section li::marker {
  color: var(--gold);
  font-weight: 900;
}

.info-grid {
  margin-top: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.highlight-box,
.submit-card {
  padding: 18px;
  display: grid;
  gap: 8px;
  background: var(--panel-dark);
}

.info-card strong,
.highlight-box strong,
.submit-card strong {
  color: var(--gold-light);
  font-size: 20px;
  font-weight: 1000;
}

.info-card span,
.highlight-box span,
.submit-card span {
  color: var(--paper);
  font-size: 14px;
  font-weight: 800;
}

.table-wrap {
  width: 100%;
  margin-top: 16px;
  overflow-x: auto;
  border: 3px solid var(--line);
  background: var(--panel-dark);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 2px solid rgba(244, 238, 220, 0.09);
  color: var(--paper-dim);
  font-size: 13px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--gold-light);
  background: #101510;
  font-weight: 1000;
}

td:first-child,
tfoot td {
  color: var(--paper);
  font-weight: 900;
}

tfoot td {
  background: rgba(224, 189, 98, 0.1);
}

.highlight-box {
  margin-top: 16px;
}

.image-gallery,
.guide-image-grid {
  margin-top: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.image-gallery a,
.guide-image-grid a {
  display: block;
  min-height: 180px;
  overflow: hidden;
  background: #0f130f;
  border: 3px solid var(--line);
  box-shadow: 5px 5px 0 #070907;
}

.image-gallery img,
.guide-image-grid img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #101510;
}

.submit-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: center;
}

.submit-card {
  min-height: 120px;
  align-content: center;
}

@media (max-width: 900px) {
  .guide-hero,
  .info-grid,
  .submit-panel {
    grid-template-columns: 1fr;
  }

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-gallery,
  .guide-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .guide-nav-inner,
  .guide-shell {
    width: min(calc(100% - 28px), var(--page));
  }

  .guide-back-link {
    display: none;
  }

  .guide-hero,
  .guide-panel,
  .submit-panel,
  .guide-status-card,
  .guide-card,
  .guide-article,
  .info-card,
  .highlight-box,
  .submit-card {
    box-shadow: 5px 5px 0 #070907;
  }

  .guide-hero,
  .guide-panel,
  .submit-panel,
  .guide-article {
    padding: 20px;
  }

  .image-gallery,
  .guide-image-grid {
    grid-template-columns: 1fr;
  }

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

  .guide-card {
    min-height: 0;
  }
}
