:root {
  color-scheme: dark;
  --bg: #111513;
  --bg-soft: #171b18;
  --surface: #1e2420;
  --surface-2: #242b26;
  --surface-3: #2c342e;
  --text: #f4f1e8;
  --muted: #b7b1a3;
  --subtle: #817a6d;
  --line: #3b453d;
  --line-strong: #596354;
  --gold: #e7bd59;
  --gold-deep: #9f7132;
  --green: #81c77a;
  --teal: #73b8ad;
  --copper: #d08358;
  --red: #df7a70;
  --shadow: 0 22px 70px rgb(0 0 0 / 28%);
  --radius: 8px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f7f5ef;
    --bg-soft: #eeebe2;
    --surface: #fffdf7;
    --surface-2: #f6f1e6;
    --surface-3: #ede5d4;
    --text: #171b18;
    --muted: #625d54;
    --subtle: #81796a;
    --line: #d8d0bf;
    --line-strong: #b8ad98;
    --shadow: 0 20px 60px rgb(60 49 32 / 13%);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgb(231 189 89 / 8%), transparent 34%),
    linear-gradient(180deg, var(--bg), var(--bg-soft) 46%, var(--bg));
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 255 255 / 3%) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgb(0 0 0 / 50%), transparent 62%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  min-height: 70vh;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: #111513;
  background: var(--gold);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(231 189 89 / 58%);
  border-radius: var(--radius);
  color: #111513;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.site-nav a,
.segmented-nav a,
.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: var(--radius);
  font-weight: 750;
}

.site-nav a {
  padding: 7px 10px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgb(129 199 122 / 12%);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  margin-top: 80px;
  padding: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgb(0 0 0 / 10%);
}

.site-footer p {
  max-width: 860px;
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.footer-links a {
  min-height: 32px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.footer-links a:hover {
  border-color: var(--line-strong);
}

.footer-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 220px;
}

.container,
.hero,
.page-header,
.content-section,
.tool-panel,
.notice,
.segmented-nav {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding: 72px 0 40px;
}

.hero-copy h1,
.page-header h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy p,
.page-description {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
}

.hero-badges,
.tag-row,
.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badges {
  margin-top: 22px;
}

.hero-badges span {
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgb(255 255 255 / 5%);
  font-size: 13px;
  font-weight: 750;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.ghost-button {
  padding: 9px 14px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button {
  border: 1px solid rgb(231 189 89 / 62%);
  color: #111513;
  background: linear-gradient(135deg, var(--gold), var(--green));
  box-shadow: 0 14px 34px rgb(231 189 89 / 16%);
}

.ghost-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgb(255 255 255 / 4%);
}

.subtle-button {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 13px;
}

.button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.hero-art {
  min-height: 380px;
}

.map-surface {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(135deg, var(--surface), var(--surface-2) 56%, #1a211d);
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: var(--shadow);
}

.map-toolbar {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 16px;
  display: flex;
  gap: 7px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.map-toolbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.coin,
.route-dot,
.route-line,
.mini-panel {
  position: absolute;
}

.coin {
  width: 72px;
  height: 72px;
  border: 8px solid var(--gold-deep);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 0 0 8px rgb(255 255 255 / 18%), 0 16px 36px rgb(0 0 0 / 18%);
}

.coin-a {
  top: 68px;
  left: 42px;
}

.coin-b {
  right: 48px;
  top: 96px;
  width: 56px;
  height: 56px;
}

.coin-c {
  right: 128px;
  bottom: 54px;
  width: 46px;
  height: 46px;
}

.route-dot {
  width: 16px;
  height: 16px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--teal);
}

.dot-a {
  left: 140px;
  top: 176px;
}

.dot-b {
  right: 154px;
  top: 190px;
}

.dot-c {
  left: 210px;
  bottom: 82px;
  background: var(--copper);
}

.route-line {
  height: 3px;
  background: linear-gradient(90deg, var(--teal), transparent);
  transform-origin: left center;
}

.line-a {
  left: 150px;
  top: 182px;
  width: 190px;
  transform: rotate(5deg);
}

.line-b {
  left: 220px;
  bottom: 96px;
  width: 180px;
  background: linear-gradient(90deg, var(--copper), transparent);
  transform: rotate(-25deg);
}

.mini-panel {
  display: grid;
  gap: 3px;
  width: 190px;
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 12px 32px rgb(0 0 0 / 18%);
}

.mini-panel strong {
  font-size: 16px;
}

.mini-panel span {
  color: var(--muted);
  font-size: 13px;
}

.price-panel {
  left: 36px;
  bottom: 34px;
}

.list-panel {
  right: 32px;
  bottom: 116px;
}

.verify-panel {
  right: 34px;
  bottom: 34px;
}

.page-header {
  padding: 58px 0 22px;
}

.tag-row {
  margin-top: 20px;
}

.tag,
.status-pill,
.row-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgb(129 199 122 / 22%);
  border-radius: var(--radius);
  color: var(--green);
  background: rgb(129 199 122 / 10%);
  font-size: 12px;
  font-weight: 850;
}

.tag,
.status-pill {
  padding: 3px 8px;
}

.row-status {
  margin-top: 6px;
  padding: 2px 6px;
}

.content-section {
  padding: 26px 0;
}

.content-section h2,
.tool-panel h2 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.25;
}

.content-section h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.content-section p {
  margin: 0 0 14px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card,
.route-step,
.build-card,
.boss-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

.card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 154px;
  padding: 18px;
}

.card::after {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: var(--subtle);
  content: ">";
  font-weight: 900;
}

article.card::after {
  content: "";
}

.card strong {
  font-size: 18px;
}

.card p,
.card span {
  margin: 0;
  color: var(--muted);
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.notice {
  margin-top: 18px;
  padding: 17px 18px;
  border: 1px solid rgb(231 189 89 / 30%);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgb(231 189 89 / 11%), rgb(115 184 173 / 8%));
}

.notice-kicker {
  margin-bottom: 9px;
}

.notice p {
  margin: 6px 0 0;
  color: var(--muted);
}

.usage-panel {
  margin-top: 8px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 4%);
}

.usage-panel h2 {
  font-size: 22px;
}

.segmented-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.segmented-nav a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgb(255 255 255 / 4%);
}

.segmented-nav a.active,
.segmented-nav a:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgb(129 199 122 / 12%);
}

.tool-panel {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  box-shadow: var(--shadow);
}

.tool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.tool-head p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.control-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 12px;
  align-items: end;
}

.control-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--text);
  background: var(--bg);
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid rgb(115 184 173 / 40%);
  outline-offset: 2px;
  border-color: var(--teal);
}

.check-inline {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: center;
  gap: 10px !important;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text) !important;
  background: rgb(255 255 255 / 4%);
}

.check-inline input {
  width: 18px;
  min-height: 18px;
}

.result-count,
.progress-line {
  margin: 14px 0;
  color: var(--muted);
  font-size: 14px;
}

.progress-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.empty-state {
  margin: 14px 0 0;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgb(255 255 255 / 4%);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: rgb(255 255 255 / 4%);
  font-size: 13px;
}

td strong,
td small {
  display: block;
}

td small {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

[hidden] {
  display: none !important;
}

.difficulty {
  display: inline-flex;
  min-width: 34px;
  justify-content: center;
  padding: 2px 7px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
}

.difficulty-低,
.difficulty-入门 {
  color: #111513;
  background: var(--green);
}

.difficulty-中,
.difficulty-进阶 {
  color: #111513;
  background: var(--gold);
}

.difficulty-高,
.difficulty-高压 {
  color: #111513;
  background: var(--red);
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.check-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 4%);
}

.check-card.checked {
  border-color: rgb(129 199 122 / 56%);
  background: rgb(129 199 122 / 10%);
}

.check-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
}

.check-top input {
  width: 20px;
  min-height: 20px;
  margin-top: 4px;
  accent-color: var(--green);
}

.check-top span,
.check-top small {
  display: block;
}

.check-top small {
  color: var(--green);
  font-size: 12px;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.meta-list div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.meta-list dt {
  color: var(--muted);
  font-size: 12px;
}

.meta-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.check-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.route-list {
  display: grid;
  gap: 12px;
  counter-reset: route;
}

.route-step {
  position: relative;
  padding: 18px 18px 18px 58px;
}

.route-step::before {
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: var(--radius);
  color: #111513;
  background: var(--gold);
  content: counter(route);
  counter-increment: route;
  font-weight: 900;
}

.route-step h3 {
  margin-top: 0;
}

.plain-list,
.boss-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.route-step li,
.plain-list li,
.boss-card li {
  margin: 4px 0;
}

.build-grid,
.boss-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.build-card,
.boss-card {
  padding: 18px;
}

.boss-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.boss-card p {
  margin: 10px 0 0;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 960px) {
  .site-header,
  .site-footer {
    padding-inline: 20px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 46px;
  }

  .hero-art,
  .map-surface {
    min-height: 320px;
  }

  .card-grid,
  .build-grid,
  .boss-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .container,
  .hero,
  .page-header,
  .content-section,
  .tool-panel,
  .notice,
  .segmented-nav {
    width: min(100% - 28px, 1120px);
  }

  .hero-copy p,
  .page-description {
    font-size: 16px;
  }

  .site-footer,
  .tool-head,
  .progress-line {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .footer-meta {
    justify-items: start;
  }

  .control-grid,
  .checklist-grid,
  .meta-list {
    grid-template-columns: 1fr;
  }

  .tool-actions {
    justify-content: flex-start;
  }

  .hero-art,
  .map-surface {
    min-height: 290px;
  }

  .mini-panel {
    width: 150px;
    padding: 12px;
  }

  .price-panel {
    left: 16px;
  }

  .list-panel {
    right: 16px;
    bottom: 104px;
  }

  .verify-panel {
    right: 16px;
    bottom: 24px;
  }

  .coin-a {
    left: 28px;
  }

  .coin-b {
    right: 36px;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
  }

  table,
  thead,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  table {
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  tr {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgb(255 255 255 / 4%);
  }

  td {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
  }

  td::before {
    color: var(--subtle);
    content: attr(data-label);
    font-size: 13px;
    font-weight: 800;
  }

  tr td:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 420px) {
  .brand {
    min-width: 0;
  }

  .hero,
  .page-header {
    padding-top: 34px;
  }

  .hero-actions,
  .hero-actions a {
    width: 100%;
  }

  td {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
