/* ==========================================================================
 * /maps 站点地图
 * ========================================================================== */

body.page-maps {
  --mp-accent: #ff5745;
  --mp-teal: #0f766e;
  --mp-ink: #15202b;
  --mp-muted: #667085;
  --mp-line: rgba(21, 32, 43, 0.08);
  --mp-surface: #ffffff;
  --mp-surface-2: #f3f6f8;
  --mp-canvas: #eef3f6;
  --mp-header: 56px;
  --mp-ease: cubic-bezier(0.22, 0.8, 0.28, 1);
  --mp-radius: 18px;
  --mp-toc: 11.5rem;
  --mp-gap: 2rem;
  padding-top: 0 !important;
  background: var(--mp-canvas);
}

body.page-maps.nice-dark-mode {
  --mp-ink: #f2f4f7;
  --mp-muted: #a8b0bd;
  --mp-line: rgba(255, 255, 255, 0.1);
  --mp-surface: #23272e;
  --mp-surface-2: #2c313a;
  --mp-canvas: #171a1f;
}

html:has(body.page-maps) {
  scroll-behavior: smooth;
}

.tb-maps {
  color: var(--mp-ink);
  min-height: 70vh;
  padding-bottom: 4rem;
}

.tb-maps-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding: calc(var(--mp-header) + 1.6rem) 0 1.7rem;
  background: #12151c;
}

.tb-maps-hero-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 70% at 8% 0%, rgba(255, 87, 69, 0.26), transparent 55%),
    radial-gradient(70% 70% at 92% 110%, rgba(15, 118, 110, 0.34), transparent 52%),
    linear-gradient(165deg, #1a1f28 0%, #12151c 50%, #0e1117 100%);
}

.tb-maps-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%);
  opacity: 0.55;
}

.tb-maps-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
}

.tb-maps-orb-a {
  width: min(46vw, 20rem);
  height: min(46vw, 20rem);
  top: -28%;
  left: -8%;
  background: #ff5745;
  opacity: 0.28;
}

.tb-maps-orb-b {
  width: min(38vw, 16rem);
  height: min(38vw, 16rem);
  right: -6%;
  bottom: -32%;
  background: #2dd4bf;
  opacity: 0.22;
}

.tb-maps-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--mp-toc) minmax(0, 1fr);
  gap: var(--mp-gap);
}

.tb-maps-hero-copy {
  grid-column: 2;
  min-width: 0;
}

.tb-maps-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.tb-maps-heading {
  margin: 0 0 0.55rem;
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.tb-maps-sub {
  margin: 0 0 1.15rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.55;
}

.tb-maps-filter {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  max-width: 28rem;
  padding: 0.35rem 0.45rem 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tb-maps-filter-ico { color: #5eead4; display: grid; place-items: center; }

.tb-maps-filter input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  padding: 0.45rem 0;
}

.tb-maps-filter input::placeholder { color: rgba(255, 255, 255, 0.45); }

.tb-maps-slash {
  flex: 0 0 auto;
  min-width: 1.5rem;
  padding: 0.08rem 0.35rem;
  margin-right: 0.2rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.tb-maps-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tb-maps-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.18rem 0.72rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
}

.tb-maps-jump a:hover { background: rgba(20, 184, 166, 0.35); }

.tb-maps-layout {
  display: grid;
  grid-template-columns: var(--mp-toc) minmax(0, 1fr);
  gap: var(--mp-gap);
  padding-top: 1.6rem;
}

.tb-maps-toc {
  position: sticky;
  top: calc(var(--mp-header) + 1rem);
  align-self: start;
  padding: 0.2rem 0;
}

.tb-maps-toc-h {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--mp-muted);
}

.tb-maps-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tb-maps-toc a {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.38rem 0;
  color: var(--mp-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  border-left: 2px solid transparent;
  padding-left: 0.65rem;
  margin-left: -0.65rem;
}

.tb-maps-toc a em {
  font-style: normal;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.tb-maps-toc a:hover,
.tb-maps-toc a.is-on {
  color: var(--mp-ink);
  border-left-color: var(--mp-teal);
}

.tb-maps-featured {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.8rem;
}

.tb-maps-feat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 9.4rem;
  padding: 1rem 1.05rem 0.95rem;
  border-radius: var(--mp-radius);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.22s var(--mp-ease);
}

.tb-maps-feat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 50%),
    linear-gradient(160deg, var(--mp-from, #0f766e), var(--mp-to, #134e4a));
}

.tb-maps-feat::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

.tb-maps-feat-a { --mp-from: #0f766e; --mp-to: #115e59; }
.tb-maps-feat-b { --mp-from: #1e3a5f; --mp-to: #0f172a; }
.tb-maps-feat-c { --mp-from: #9a3412; --mp-to: #7c2d12; }
.tb-maps-feat-d { --mp-from: #be123c; --mp-to: #9f1239; }

.tb-maps-feat-a::after {
  background:
    radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.28) 0 0.55rem, transparent 0.58rem),
    repeating-radial-gradient(circle at 86% 16%, transparent 0 11px, rgba(255, 255, 255, 0.09) 11px 12px);
}

.tb-maps-feat-b::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: linear-gradient(140deg, #000 12%, transparent 78%);
  -webkit-mask-image: linear-gradient(140deg, #000 12%, transparent 78%);
}

.tb-maps-feat-c::after {
  background:
    conic-gradient(from 210deg at 88% 18%, rgba(255, 220, 160, 0.28), transparent 40%),
    radial-gradient(120% 80% at 0% 100%, rgba(255, 186, 120, 0.18), transparent 55%);
}

.tb-maps-feat-d::after {
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.16) 0 0.22rem, transparent 0.24rem),
    linear-gradient(135deg, transparent 46%, rgba(255, 255, 255, 0.12) 47%, transparent 48%);
}

.tb-maps-feat-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.5s var(--mp-ease);
}

.tb-maps-feat.has-bg::before {
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.12) 0%, rgba(8, 12, 18, 0.42) 46%, rgba(8, 12, 18, 0.82) 100%),
    linear-gradient(160deg, color-mix(in srgb, var(--mp-from) 55%, transparent), color-mix(in srgb, var(--mp-to) 70%, transparent));
}

@supports not (background: color-mix(in srgb, red, blue)) {
  .tb-maps-feat.has-bg::before {
    background:
      linear-gradient(180deg, rgba(8, 12, 18, 0.18) 0%, rgba(8, 12, 18, 0.5) 48%, rgba(8, 12, 18, 0.84) 100%);
  }
}

.tb-maps-feat.has-bg::after { opacity: 0.28; }

.tb-maps-feat-mark {
  position: absolute;
  top: 0.72rem;
  right: 0.72rem;
  z-index: 2;
  width: 1.7rem;
  height: 1.7rem;
  color: rgba(255, 255, 255, 0.78);
}

.tb-maps-feat-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.tb-maps-feat:hover { transform: translateY(-3px); color: #fff; }
.tb-maps-feat:hover .tb-maps-feat-photo { transform: scale(1.12); }

.tb-maps-feat-desc,
.tb-maps-feat strong {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.tb-maps-feat-desc {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.78;
  margin-bottom: 0.28rem;
}

.tb-maps-feat strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tb-maps-empty {
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: var(--mp-surface);
  color: var(--mp-muted);
  font-size: 0.9rem;
}

.tb-maps-group {
  margin-bottom: 2rem;
  scroll-margin-top: calc(var(--mp-header) + 1rem);
}

.tb-maps-group.is-empty { display: none; }

.tb-maps-group-h {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.tb-maps-num {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--mp-teal);
  padding-top: 0.2rem;
}

.tb-maps-group-h h2 {
  margin: 0 0 0.15rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tb-maps-group-h p {
  margin: 0;
  color: var(--mp-muted);
  font-size: 0.86rem;
}

.tb-maps-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tb-maps-list li[hidden] { display: none !important; }

.tb-maps-item {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-height: 5.6rem;
  padding: 0.9rem 1rem 0.85rem;
  border-radius: 14px;
  background: var(--mp-surface);
  color: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(21, 32, 43, 0.04);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.tb-maps-item:hover {
  border-color: rgba(15, 118, 110, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.08);
  color: inherit;
}

.tb-maps-item.is-here {
  border-color: rgba(15, 118, 110, 0.4);
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), transparent 70%),
    var(--mp-surface);
}

.tb-maps-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.tb-maps-item-top b {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.tb-maps-item-top i {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.08rem 0.4rem;
  border-radius: 99px;
  color: var(--mp-teal);
  background: rgba(15, 118, 110, 0.12);
}

.tb-maps-item-desc {
  color: var(--mp-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.tb-maps-item-path {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.68rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--mp-muted);
  opacity: 0.7;
}

@media (max-width: 991.98px) {
  .tb-maps-hero-inner,
  .tb-maps-layout { grid-template-columns: 1fr; }
  .tb-maps-hero-copy { grid-column: 1; }
  .tb-maps-toc { display: none; }
  .tb-maps-featured { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575.98px) {
  .tb-maps-list { grid-template-columns: 1fr; }
  .tb-maps-slash { display: none; }
  .tb-maps-feat { min-height: 8.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tb-maps-feat,
  .tb-maps-feat-photo,
  .tb-maps-item { transition: none; }
  .tb-maps-feat:hover .tb-maps-feat-photo { transform: scale(1.04); }
}
