:root {
  --bg: #fff7fb;
  --bg-2: #fffdf7;
  --card: rgba(255, 255, 255, 0.86);
  --text: #302735;
  --muted: #746878;
  --pink: #d85fa7;
  --purple: #7461d8;
  --green: #48a56d;
  --gold: #d58a34;
  --border: rgba(126, 73, 110, 0.18);
  --shadow: 0 18px 50px rgba(115, 71, 101, 0.10);
  --shadow-strong: 0 24px 70px rgba(128, 62, 110, 0.16);
  --radius: 26px;
  --radius-sm: 18px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.72;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 185, 216, 0.45), transparent 30rem),
    radial-gradient(circle at 96% 8%, rgba(255, 222, 145, 0.36), transparent 28rem),
    linear-gradient(180deg, var(--bg), var(--bg-2) 48%, #fff);
}

a {
  color: inherit;
}

code {
  display: inline-block;
  margin: 0.08rem 0;
  padding: 0.14rem 0.42rem;
  color: #7b3568;
  font-family: var(--mono);
  font-size: 0.92em;
  line-height: 1.42;
  white-space: nowrap;
  background: rgba(216, 95, 167, 0.11);
  border: 1px solid rgba(216, 95, 167, 0.16);
  border-radius: 0.55rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1320px;
  margin: 14px auto 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 10px 35px rgba(106, 62, 94, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  color: #613653;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(216, 95, 167, 0.28);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.top-nav a {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 750;
  text-decoration: none;
  border-radius: 999px;
}

.top-nav a:hover,
.top-nav a.active {
  color: #7b3568;
  background: rgba(216, 95, 167, 0.12);
}

.page-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 44px clamp(18px, 3vw, 28px) 80px;
}

.page-hero {
  padding: 48px 0 30px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0;
  color: #3b2538;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.page-hero p:not(.eyebrow) {
  max-width: 820px;
  margin: 18px 0 0;
  color: #5f5366;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.layout > .content:only-child {
  grid-column: 1 / -1;
}

.content {
  min-width: 0;
}

.content > section + section,
.content > .panel + .panel,
.content > .grid + .two-col,
.content > .grid + .panel,
.content > .panel + .grid,
.content > .two-col + .panel {
  margin-top: clamp(30px, 3vw, 44px);
}

.section-nav {
  position: sticky;
  top: 92px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 15px 45px rgba(115, 71, 101, 0.08);
}

.section-nav p {
  margin: 0 0 8px;
  color: #7b3568;
  font-weight: 900;
}

.section-nav a {
  display: block;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
  border-radius: 12px;
}

.section-nav a:hover {
  color: #7b3568;
  background: rgba(216, 95, 167, 0.10);
}

.grid {
  display: grid;
  gap: clamp(24px, 2.4vw, 34px);
}

.grid.two {
  grid-template-columns: repeat(2, minmax(min(100%, 300px), 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(min(100%, 260px), 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(min(100%, 220px), 1fr));
}

.grid.fit {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}


.card,
.panel,
.shot,
.callout,
.step-card,
.rule-card {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card > .tag {
  align-self: flex-start;
  margin-top: auto;
}

.card h2,
.panel h2 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  letter-spacing: -0.035em;
}

.card h3,
.panel h3,
.step-card h3,
.rule-card h3 {
  margin: 0 0 10px;
  color: #3e2a3d;
  line-height: 1.25;
  word-break: keep-all;
}

.card p,
.panel p,
.step-card p,
.rule-card p {
  margin: 0.45rem 0;
  color: var(--muted);
  overflow-wrap: break-word;
  word-break: normal;
}

.menu-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 220px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.menu-card .icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(255, 226, 240, 0.95), rgba(255, 245, 219, 0.95));
  border-radius: 18px;
}

.menu-card .go {
  display: inline-flex;
  margin-top: auto;
  padding-top: 14px;
  color: #7b3568;
  font-weight: 900;
}

.route {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.route-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.route-item::before {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--pink);
  font-weight: 900;
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  background: rgba(216, 95, 167, 0.11);
  border-radius: 16px;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}

.steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  counter-increment: s;
}

.steps li::before {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  font-weight: 900;
  content: counter(s);
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 14px;
}

.steps li span {
  padding-top: 4px;
  color: #615565;
}

.command-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.command-list > div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.command-list span {
  color: #615565;
}

.command-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
}

.command-strip code {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0.28rem 0.68rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 1rem 0 0;
  padding: 0.34rem 0.68rem;
  color: #7b3568;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
  background: rgba(216, 95, 167, 0.10);
  border: 1px solid rgba(216, 95, 167, 0.10);
  border-radius: 999px;
}

.tag.green {
  color: #2e794c;
  background: rgba(72, 165, 109, 0.12);
}

.tag.gold {
  color: #8d571c;
  background: rgba(213, 138, 52, 0.12);
}

.callout {
  margin: 18px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 251, 0.90));
  border-color: rgba(216, 95, 167, 0.25);
}

.callout strong {
  color: #7b3568;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.shot {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  margin: 0;
  padding: 10px;
  overflow: hidden;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 1px solid rgba(126, 73, 110, 0.12);
  border-radius: 18px;
}

.table {
  width: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
}

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

.table th {
  color: #6a3a5c;
  font-size: 0.92rem;
  background: rgba(216, 95, 167, 0.09);
}

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

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

.minecraft-sign {
  margin: 12px 0;
  padding: 16px;
  color: #21150c;
  font-family: var(--mono);
  font-weight: 900;
  text-align: center;
  background: linear-gradient(180deg, #c99655, #a97138);
  border: 4px solid #6d431f;
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.10);
}

.minecraft-sign span {
  display: block;
  min-height: 1.9rem;
  line-height: 1.9rem;
}

.next-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  color: #7b3568;
  font-weight: 900;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 16px 34px rgba(216, 95, 167, 0.24);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  max-width: 1320px;
  margin: 0 auto 28px;
  padding: 18px clamp(18px, 3vw, 28px);
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: #7b3568;
  font-weight: 900;
  text-decoration: none;
}

.soft-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.soft-list li {
  margin: 0.25rem 0;
}

.warn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 246, 0.90));
  border-color: rgba(210, 87, 102, 0.25);
}

.ok {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 255, 249, 0.88));
  border-color: rgba(72, 165, 109, 0.24);
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    margin: 10px;
    border-radius: 26px;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .layout,
  .grid.two,
  .grid.three,
  .grid.four,
  .two-col,
  .sign-grid {
    grid-template-columns: 1fr;
  }

  .section-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .section-nav p {
    width: 100%;
  }

  .page-shell {
    padding-top: 22px;
  }

  .menu-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
  }

  .page-hero h1 {
    font-size: 2.8rem;
  }

  .card,
  .panel,
  .callout,
  .step-card,
  .rule-card {
    padding: 20px;
  }

  .route-item,
  .steps li,
  .command-list > div {
    grid-template-columns: 1fr;
  }

  .route-item::before,
  .steps li::before {
    margin-bottom: 4px;
  }

  .site-footer {
    flex-direction: column;
  }
}

.inline-link {
  color: #8e3e70;
  font-weight: 850;
  text-decoration: none;
  border-bottom: 2px solid rgba(216, 95, 167, 0.26);
}

.inline-link:hover {
  color: #6d2f57;
  border-bottom-color: rgba(216, 95, 167, 0.58);
}

.back-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: -8px 0 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: #7b3568;
  font-weight: 900;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(115, 71, 101, 0.08);
}

.back-link:hover {
  background: rgba(216, 95, 167, 0.10);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.28rem 0.68rem;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.2;
  border-radius: 999px;
}

.badge.pink {
  color: #7b3568;
  background: rgba(216, 95, 167, 0.11);
  border: 1px solid rgba(216, 95, 167, 0.14);
}

.badge.green {
  color: #2e794c;
  background: rgba(72, 165, 109, 0.12);
  border: 1px solid rgba(72, 165, 109, 0.16);
}

.badge.gold {
  color: #8d571c;
  background: rgba(213, 138, 52, 0.12);
  border: 1px solid rgba(213, 138, 52, 0.18);
}

.item-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.item-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(126, 73, 110, 0.13);
  border-radius: 18px;
}

.item-row h3,
.item-row p {
  margin: 0;
}

.item-row h3 {
  font-size: 1.06rem;
}

.item-row p {
  color: var(--muted);
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 12px;
  margin-top: 14px;
}

.spec {
  padding: 13px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(126, 73, 110, 0.12);
  border-radius: 16px;
}

.spec strong {
  display: block;
  color: #3e2a3d;
  margin-bottom: 2px;
}

.anchor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.anchor-tabs a {
  padding: 0.52rem 0.88rem;
  color: #7b3568;
  font-weight: 850;
  text-decoration: none;
  background: rgba(216, 95, 167, 0.10);
  border: 1px solid rgba(216, 95, 167, 0.12);
  border-radius: 999px;
}

.anchor-tabs a:hover {
  background: rgba(216, 95, 167, 0.16);
}

.enchant-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
}

.enchant-card h3 {
  margin-bottom: 0;
}

.enchant-card .badge-row {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 8px;
}

@media (max-width: 700px) {
  .item-row {
    grid-template-columns: 1fr;
  }
}

