.map-list-page,
.map-detail-page {
  --map-bg:
    linear-gradient(45deg, rgba(255, 255, 255, 0.018) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.018) 50%, rgba(255, 255, 255, 0.018) 75%, transparent 75%, transparent) 0 0 / 18px 18px,
    linear-gradient(180deg, #2d2d2f 0%, #252528 100%);
  --map-surface: #fff;
  --map-soft: #f7faf7;
  --map-line: #dfe8e2;
  --map-ink: #17242c;
  --map-text: #33434d;
  --map-muted: #64737d;
  --map-accent: #8a6a35;
  --map-olive: #67734d;
  --map-shadow: 0 12px 28px rgba(24, 37, 44, 0.06);
  background: var(--map-bg);
  color: var(--map-text);
  overflow-x: hidden;
}

#top {
  display: none;
}

html,
body.map-list-page,
body.map-detail-page {
  background: var(--map-bg);
}

body.map-list-page:not(.takefu-shell-ready)::before,
body.map-detail-page:not(.takefu-shell-ready)::before {
  display: none;
  height: 0;
  border: 0;
  content: none;
}

body.map-list-page.takefu-shell-ready,
body.map-detail-page.takefu-shell-ready {
  background: var(--map-bg) !important;
  padding-top: 0;
}

.map-main {
  padding: 18px 0 72px;
  background: var(--map-bg);
}

.map-detail-cover-empty {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #d8e2dc;
  border-radius: 8px;
  background: #f4f8f5;
  color: #66747c;
  text-align: center;
}

.map-detail-cover-empty i {
  font-size: 38px;
  line-height: 1;
}

.map-detail-cover-empty em {
  color: #66747c;
  font-size: 14px;
  font-style: normal;
  font-weight: 850;
}

.map-list-page.takefu-shell-ready .map-main,
.map-detail-page.takefu-shell-ready .map-main {
  margin-top: 0;
}

.map-wrap {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

.map-breadcrumb,
.map-hero,
.map-list-panel,
.map-card,
.map-detail-hero,
.map-info-card,
.map-content-card,
.map-rail-card {
  border: 1px solid var(--map-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--map-shadow);
}

.map-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 16px;
  padding: 0 20px;
  color: var(--map-muted);
  font-size: 14px;
}

.map-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--map-ink);
  text-decoration: none;
}

.map-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 28px;
}

.map-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--map-accent);
  font-size: 13px;
  font-weight: 900;
}

.map-hero h1,
.map-detail-hero h1,
.map-list-panel h2,
.map-content-card h2,
.map-rail-card h2 {
  margin: 0;
  color: var(--map-ink);
  font-weight: 900;
  line-height: 1.18;
}

.map-hero h1 {
  font-size: 36px;
}

.map-hero p,
.map-detail-lede {
  margin: 14px 0 0;
  color: var(--map-muted);
  font-size: 15px;
  line-height: 1.85;
}

.map-hero-actions,
.map-chip-row,
.map-card-meta,
.map-card-intel,
.map-card-tags,
.map-detail-meta,
.map-key-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.map-hero-actions {
  margin-top: 20px;
}

.map-chip,
.map-card-meta span,
.map-card-intel span,
.map-card-tags span,
.map-detail-meta span,
.map-key-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #cfd7dd;
  border-radius: 999px;
  background: #f7f8f5;
  color: #8a6a35;
  font-size: 13px;
  font-weight: 850;
}

.map-chip.is-olive,
.map-key-tags span {
  border-color: #d8e0cc;
  background: #eef3f5;
  color: #53636c;
}

.map-card-intel span {
  width: 100%;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 9px;
  min-height: 30px;
  padding: 5px 10px;
  border-color: #d8e0cc;
  background: #eef3f5;
  color: #53636c;
  line-height: 1.45;
}

.map-card-intel b {
  flex: 0 0 58px;
  color: var(--map-ink);
  font-weight: 900;
}

.map-card-intel em {
  min-width: 0;
  color: #53636c;
  font-style: normal;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.map-card-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.map-card-facts span {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e2ead8;
  border-radius: 8px;
  background: #f7faf1;
}

.map-card-facts span:nth-child(3) {
  grid-column: 1 / -1;
}

.map-card-facts b,
.map-card-facts em {
  display: block;
  min-width: 0;
}

.map-card-facts b {
  margin-bottom: 4px;
  color: #63717a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.map-card-facts em {
  color: var(--map-ink);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.map-hero-stat {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--map-line);
  border-radius: 8px;
  background: var(--map-soft);
}

.map-hero-stat b {
  display: block;
  color: var(--map-ink);
  font-size: 20px;
  line-height: 1.2;
}

.map-hero-stat span {
  display: block;
  margin-top: 7px;
  color: var(--map-muted);
  font-size: 13px;
  line-height: 1.5;
}

.map-quick-links {
  display: none;
}

.map-list-panel {
  padding: 24px;
}

.map-list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.map-list-head h2 {
  font-size: 24px;
}

.map-list-head p {
  margin: 8px 0 0;
  color: var(--map-muted);
  font-size: 14px;
  line-height: 1.7;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 16px;
}

.map-card {
  overflow: hidden;
  min-width: 0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.map-card:hover,
.map-card:focus-within {
  border-color: #efb18f;
  box-shadow: 0 16px 32px rgba(24, 37, 44, 0.1);
}

.map-card-link {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 15px;
  min-height: 188px;
  padding: 14px;
  color: inherit;
}

.map-card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 160px;
  border-radius: 8px;
  background: #e5ece8;
}

.map-card-cover img,
.map-detail-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-detail-cover-link {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: #e5ece8;
  cursor: zoom-in;
}

.map-card-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  color: #667085;
  font-size: 14px;
  background: #f5f7fa;
}

.map-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(23, 36, 44, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.map-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.map-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 8px;
  color: var(--map-ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.map-card-desc {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 10px;
  color: var(--map-muted);
  font-size: 14px;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.map-card-meta {
  margin-bottom: 10px;
}

.map-card-meta span {
  min-height: 28px;
  font-size: 12px;
}

.map-card-intel,
.map-card-tags {
  margin-top: auto;
}

.map-card-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  min-height: 32px;
  margin-top: 12px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--map-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.map-pagelist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
  color: transparent;
  font-size: 0;
}

.map-pagelist strong {
  display: none;
}

.map-pagelist a,
.map-pagelist span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--map-line);
  border-radius: 8px;
  background: #fff;
  color: var(--map-muted);
  font-size: 13px;
  font-weight: 800;
}

.map-pagelist a:hover,
.map-pagelist a:focus-visible,
.map-pagelist .current {
  border-color: var(--map-accent);
  background: var(--map-accent);
  color: #fff;
}

.map-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
  margin-bottom: 18px;
  padding: 24px;
}

.map-detail-hero h1 {
  font-size: 34px;
}

.map-detail-meta {
  margin-top: 16px;
}

.map-detail-cover {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 0;
  border-radius: 8px;
  background: #e5ece8;
}

.map-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 18px;
  align-items: start;
}

.map-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.map-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 18px;
}

.map-quick-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #d7e2dc;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--map-text);
  font-size: 13px;
  font-weight: 850;
}

.map-quick-nav a:hover,
.map-quick-nav a:focus-visible {
  border-color: #efb18f;
  background: #f7f8f5;
  color: var(--map-accent);
}

.map-info-card,
.map-rail-card {
  padding: 18px;
}

.map-info-card b {
  display: block;
  color: var(--map-ink);
  font-size: 18px;
  line-height: 1.35;
}

.map-info-card span {
  display: block;
  margin-top: 6px;
  color: var(--map-muted);
  font-size: 13px;
  line-height: 1.55;
}

.map-content-card {
  min-width: 0;
  padding: 24px;
}

.map-section-note {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid #cfd7dd;
  border-radius: 8px;
  background: #f7f8f5;
  color: #67412f;
  font-size: 14px;
  line-height: 1.75;
}

.map-content-body {
  min-width: 0;
  color: var(--map-text);
  font-size: 16px;
  line-height: 1.95;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.map-content-body > *:first-child {
  margin-top: 0;
}

.map-content-body h2,
.map-content-body h3,
.map-content-body h4 {
  scroll-margin-top: 92px;
  color: var(--map-ink);
  line-height: 1.35;
}

.map-content-body h2 {
  position: relative;
  margin: 32px 0 15px;
  padding-left: 16px;
  font-size: 24px;
  font-weight: 900;
}

.map-content-body h2::before {
  position: absolute;
  top: 0.38em;
  left: 0;
  width: 7px;
  height: 16px;
  border-radius: 999px;
  background: var(--map-accent);
  content: "";
}

.map-content-body h3 {
  margin: 25px 0 12px;
  font-size: 20px;
  font-weight: 900;
}

.map-content-body p {
  margin: 0 0 18px;
}

.map-content-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

.map-content-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.map-content-body th,
.map-content-body td {
  padding: 10px 12px;
  border: 1px solid var(--map-line);
}

.map-content-body blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--map-accent);
  border-radius: 0 8px 8px 0;
  background: #f7f8f5;
  color: #5e4d44;
}

.map-content-body pre {
  position: relative;
  overflow: auto;
  margin: 24px 0;
  padding: 42px 18px 18px;
  border: 1px solid #d7e0dc;
  border-radius: 8px;
  background: #101820;
  color: #eaf1ec;
  font-size: 14px;
  line-height: 1.7;
}

.map-content-body :not(pre) > code {
  padding: 2px 6px;
  border: 1px solid var(--map-line);
  border-radius: 5px;
  background: #f3f7f5;
  color: var(--map-ink);
}

.article-code-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.article-media-frame,
.map-content-body iframe,
.map-content-body video {
  width: 100%;
}

.article-media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 24px 0;
  border: 1px solid var(--map-line);
  border-radius: 8px;
  background: #101820;
  aspect-ratio: 16 / 9;
}

.article-media-frame iframe,
.article-media-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-detail-page .map-content-body .article-media-frame--panorama {
  aspect-ratio: auto;
  height: clamp(520px, 68vh, 760px);
}

.map-content-body .article-image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  max-width: 100%;
  margin: 24px auto;
  border: 1px solid #d7e0dc;
  border-radius: 8px;
  background: #f3f7f5;
}

.map-image-heading {
  display: block;
  scroll-margin-top: 92px;
  margin: 28px 0 12px;
  padding-top: 4px;
  color: var(--map-ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.map-image-heading + p,
.map-image-heading + .article-image-frame {
  margin-top: 0;
}

.map-content-body .article-image-frame img {
  width: 100%;
  border-radius: 0;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.map-content-body .article-image-frame:hover img,
.map-content-body .article-image-frame:focus-visible img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.01);
}

.article-image-frame__hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(23, 36, 44, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.article-image-frame:hover .article-image-frame__hint,
.article-image-frame:focus-visible .article-image-frame__hint {
  opacity: 1;
  transform: translateY(0);
}

.map-detail-page .map-content-body .article-image-frame__hint {
  display: none;
}

.article-image-frame__caption {
  display: block;
  margin: -14px 0 22px;
  color: var(--map-muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.map-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 22px;
}

.map-guide-item {
  padding: 15px;
  border: 1px solid var(--map-line);
  border-radius: 8px;
  background: var(--map-soft);
}

.map-guide-item b {
  display: block;
  margin-bottom: 6px;
  color: var(--map-ink);
  font-size: 15px;
}

.map-guide-item span {
  color: var(--map-muted);
  font-size: 14px;
  line-height: 1.7;
}

.map-strategy {
  display: grid;
  gap: 18px;
  margin: 16px 0 24px;
}

.map-strategy-item {
  padding: 18px 20px;
  border: 1px solid var(--map-line);
  border-radius: 8px;
  background: #fbfdfb;
}

.map-strategy-item h3 {
  margin: 0 0 10px;
  color: var(--map-ink);
  font-size: 20px;
  line-height: 1.35;
}

.map-strategy-item p {
  margin: 0 0 12px;
  color: var(--map-text);
}

.map-strategy-item p:last-child {
  margin-bottom: 0;
}

.map-rail {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 14px;
  max-height: none;
  overflow: visible;
}

.map-rail-card h2,
.map-toc-panel h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.map-toc-panel {
  padding: 14px 14px 12px;
  border: 1px solid var(--map-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--map-shadow);
}

.map-fact-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.map-fact-list div {
  display: block;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf1ee;
}

.map-fact-list dt {
  display: block;
  color: var(--map-muted);
  font-size: 13px;
  line-height: 1.45;
}

.map-fact-list dd {
  display: block;
  margin: 3px 0 0;
  color: var(--map-ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.55;
  text-align: left;
  word-break: normal;
  overflow-wrap: break-word;
}

.map-toc ol {
  position: relative;
  max-height: none;
  margin: 0;
  padding: 0 2px 0 0;
  overflow: visible;
  list-style: none;
}

.map-toc ol::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 10px;
  width: 3px;
  border-radius: 999px;
  background: #e1e8ec;
  content: "";
}

.map-toc li {
  position: relative;
  margin: 0 0 8px;
}

.map-toc a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  min-height: 38px;
  margin-left: 28px;
  padding: 7px 9px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--map-ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.42;
  text-decoration: none;
}

.map-toc a::before {
  position: absolute;
  top: 10px;
  left: -27px;
  width: 22px;
  height: 22px;
  border: 4px solid #e4ebef;
  border-radius: 999px;
  background: #fff;
  content: "";
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.map-toc li.is-h3 a {
  min-height: 34px;
  padding-top: 7px;
  padding-bottom: 7px;
  color: #33434d;
  font-size: 12px;
}

.map-toc li.is-h3 a::before {
  left: -25px;
  width: 18px;
  height: 18px;
  border-width: 3px;
}

.map-toc a.is-active,
.map-toc a:hover,
.map-toc a:focus-visible {
  border-color: var(--map-line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--map-ink);
}

.map-toc a.is-active::before,
.map-toc a:hover::before,
.map-toc a:focus-visible::before {
  border-color: #1f2930;
  background: #d8b56d;
  box-shadow: 0 0 0 5px rgba(31, 41, 48, 0.14);
}

.map-toc a:focus-visible {
  outline: 2px solid rgba(123, 189, 205, 0.34);
  outline-offset: 2px;
}

.map-toc a span {
  display: -webkit-box;
  max-height: 68px;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.map-toc li.is-h3 a span {
  max-height: 66px;
}

.map-toc .article-toc__title {
  display: none;
}

@media (min-width: 1181px) {
  .map-detail-page .map-toc-panel {
    position: fixed;
    top: 50%;
    right: max(18px, calc((100vw - 1320px) / 2 - 58px));
    z-index: 45;
    width: 34px;
    max-width: 34px;
    padding: 10px 8px;
    border-color: rgba(31, 41, 48, 0.12);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 12px 28px rgba(23, 36, 44, 0.12);
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
  }

  .map-detail-page .map-toc-panel h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .map-detail-page .map-toc ol {
    display: flex;
    max-height: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .map-detail-page .map-toc ol::before {
    top: 7px;
    bottom: 7px;
    left: 50%;
    width: 2px;
    background: rgba(31, 41, 48, 0.14);
    transform: translateX(-50%);
  }

  .map-detail-page .map-toc li {
    width: 18px;
    height: 18px;
    margin: 0;
  }

  .map-detail-page .map-toc a,
  .map-detail-page .map-toc li.is-h3 a {
    display: block;
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 0;
    line-height: 0;
  }

  .map-detail-page .map-toc a::before,
  .map-detail-page .map-toc li.is-h3 a::before {
    top: 50%;
    left: 50%;
    width: 13px;
    height: 13px;
    border: 3px solid #e4ebef;
    background: #fff;
    transform: translate(-50%, -50%);
  }

  .map-detail-page .map-toc li.is-h2 a::before {
    width: 16px;
    height: 16px;
    border-width: 4px;
  }

  .map-detail-page .map-toc a span {
    position: absolute;
    top: 50%;
    right: 28px;
    z-index: 3;
    display: block;
    width: max-content;
    max-width: min(320px, calc(100vw - 110px));
    max-height: none;
    padding: 7px 10px;
    border: 1px solid rgba(31, 41, 48, 0.12);
    border-radius: 6px;
    background: rgba(23, 36, 44, 0.94);
    box-shadow: 0 10px 24px rgba(23, 36, 44, 0.16);
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    text-align: right;
    transform: translate(8px, -50%);
    transition: opacity 0.14s ease, transform 0.14s ease;
    -webkit-line-clamp: unset;
  }

  .map-detail-page .map-toc a:hover span,
  .map-detail-page .map-toc a:focus-visible span,
  .map-detail-page .map-toc a.is-active span {
    opacity: 1;
    transform: translate(0, -50%);
  }

  .map-detail-page .map-toc a.is-active,
  .map-detail-page .map-toc a:hover,
  .map-detail-page .map-toc a:focus-visible {
    background: transparent;
  }
}

.map-source-note {
  margin: 12px 0 0;
  color: var(--map-muted);
  font-size: 12px;
  line-height: 1.6;
}

.map-source-note a {
  color: var(--map-accent);
  font-weight: 900;
}

.map-related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-related-card {
  margin-top: 18px;
}

.map-related-card h2 {
  margin: 0 0 12px;
  color: var(--map-ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.map-related-section-title {
  margin-top: 0;
}

.map-related-divider {
  height: 1px;
  margin: 18px 0;
  background: linear-gradient(90deg, transparent, var(--map-line), transparent);
}

.map-related-list li {
  min-width: 0;
}

.map-related-list a {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 10px;
  border: 1px solid var(--map-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--map-shadow);
  color: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.map-related-list a:hover,
.map-related-list a:focus-visible {
  border-color: #efb18f;
  box-shadow: 0 14px 28px rgba(24, 37, 44, 0.1);
}

.map-related-list img {
  width: 74px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: #e5ece8;
}

.map-related-list strong {
  display: block;
  overflow: hidden;
  color: var(--map-ink);
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-related-list span {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--map-muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.map-related-list--interactive {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.map-related-list--interactive a {
  display: block;
  min-height: 86px;
  padding: 12px 14px;
  border-color: rgba(108, 125, 116, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
}

.map-related-list--interactive a::before {
  content: "互动";
  display: inline-flex;
  align-items: center;
  height: 22px;
  margin-bottom: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e9f4ee;
  color: #38634d;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.map-related-list--interactive strong {
  white-space: normal;
}

.map-related-list--interactive span {
  -webkit-line-clamp: 1;
}

.map-related-list--static {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.map-related-list--static a {
  display: block;
  min-height: 74px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.94);
}

.map-related-list--static strong {
  white-space: normal;
}

.map-related-list--static span {
  margin-top: 0;
}

.map-related-list--static span span {
  margin-top: 6px;
  -webkit-line-clamp: 2;
}

.map-hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-hot-tags a,
.map-hot-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d8e0cc;
  border-radius: 999px;
  background: #eef3f5;
  color: #53636c;
  font-size: 12px;
  font-weight: 850;
}

.map-info-card span {
  margin-top: 0;
  color: var(--map-muted);
  font-size: 12px;
  font-weight: 850;
}

.map-info-card b {
  margin-top: 6px;
  font-size: 17px;
}

.map-prenext {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.map-prenext a {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--map-line);
  border-radius: 8px;
  background: #fff;
  color: var(--map-text);
  font-size: 14px;
  font-weight: 850;
  box-shadow: var(--map-shadow);
}

.map-prenext a:hover,
.map-prenext a:focus-visible {
  border-color: #efb18f;
  color: var(--map-accent);
}

body.article-lightbox-lock {
  overflow: hidden;
}

.article-modern-page .article-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 10, 14, 0.92);
}

.article-modern-page .article-lightbox.is-open {
  display: flex;
}

.article-lightbox__stage {
  position: absolute;
  inset: 64px 74px 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.article-modern-page .article-lightbox__image {
  display: block;
  max-width: none;
  max-height: none;
  border-radius: 8px;
  object-fit: contain;
  transform-origin: center center;
}

.article-modern-page .article-lightbox__toolbar {
  position: absolute;
  top: 18px;
  right: 22px;
  display: flex;
  gap: 8px;
}

.article-modern-page .article-lightbox button,
.article-modern-page .article-lightbox__open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.article-modern-page .article-lightbox__nav,
.article-modern-page .article-lightbox__caption,
.article-modern-page .article-lightbox__counter {
  position: absolute;
  z-index: 2;
}

.article-modern-page .article-lightbox__nav {
  top: 50%;
  width: 46px;
  height: 64px;
  min-height: 64px;
  padding: 0;
  border-radius: 8px;
  font-size: 34px;
  transform: translateY(-50%);
}

.article-modern-page .article-lightbox__prev {
  left: 18px;
}

.article-modern-page .article-lightbox__next {
  right: 18px;
}

.article-modern-page .article-lightbox__caption,
.article-modern-page .article-lightbox__counter {
  bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.article-modern-page .article-lightbox__caption {
  left: 24px;
  max-width: min(720px, calc(100vw - 240px));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-modern-page .article-lightbox__counter {
  right: 24px;
}

@media (max-width: 1180px) {
  .map-detail-layout {
    grid-template-columns: 1fr;
  }

  .map-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .map-hero,
  .map-detail-hero {
    grid-template-columns: 1fr;
  }

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

  .map-quick-nav {
    position: sticky;
    top: 0;
    z-index: 8;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    margin: -2px 0 12px;
    padding: 8px 0;
    overflow-x: auto;
    background: rgba(238, 243, 241, 0.94);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .map-quick-nav::-webkit-scrollbar {
    display: none;
  }

  .map-quick-nav a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 14px;
    background: #fff;
  }
}

@media (max-width: 760px) {
  body.map-list-page:not(.takefu-shell-ready)::before,
  body.map-detail-page:not(.takefu-shell-ready)::before,
  body.map-list-page::before,
  body.map-detail-page::before {
    display: none;
    height: 0;
    border: 0;
    content: none;
  }

  .map-list-page.takefu-shell-ready .map-main,
  .map-detail-page.takefu-shell-ready .map-main {
    margin-top: 0;
  }

  .map-main {
    padding-top: 4px;
  }

  .map-wrap {
    width: calc(100% - 18px);
  }

  .map-breadcrumb {
    min-height: 34px;
    margin-bottom: 6px;
    padding: 0 10px;
    font-size: 12px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .map-breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .map-breadcrumb a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 4px;
  }

  .map-hero,
  .map-list-panel,
  .map-detail-hero,
  .map-content-card,
  .map-info-card,
  .map-rail-card {
    padding: 16px;
  }

  .map-hero h1,
  .map-detail-hero h1 {
    font-size: 27px;
  }

  .map-hero-aside,
  .map-info-grid,
  .map-guide-grid,
  .map-rail,
  .map-prenext {
    grid-template-columns: 1fr;
  }

  .map-list-head {
    display: block;
  }

  .map-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .map-card-link {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 148px;
    padding: 10px;
  }

  .map-card-cover {
    min-height: 128px;
  }

  .map-card h3 {
    font-size: 17px;
  }

  .map-card-desc {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .map-detail-cover {
    min-height: 0;
  }

  .map-content-body {
    font-size: 15px;
    line-height: 1.88;
  }

  .map-content-body h2 {
    font-size: 21px;
  }

  .map-detail-page .map-content-body .article-media-frame--panorama {
    height: min(62vh, 520px);
    min-height: 360px;
  }

  .article-image-frame__hint {
    opacity: 1;
    transform: none;
  }

  .map-related-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .map-related-list a {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 82px;
    padding: 8px;
  }

  .map-related-list img {
    width: 64px;
    height: 64px;
  }

  .map-related-list strong {
    font-size: 14px;
  }

  .map-related-list span {
    font-size: 12px;
    line-height: 1.45;
  }

  .article-lightbox__stage {
    inset: 62px 12px 74px;
  }

  .article-modern-page .article-lightbox__toolbar {
    right: 10px;
    left: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .article-modern-page .article-lightbox__nav {
    display: none;
  }

  .article-modern-page .article-lightbox__caption {
    right: 12px;
    left: 12px;
    max-width: none;
  }

  .article-modern-page .article-lightbox__counter {
    right: 12px;
    bottom: 42px;
  }

  body.map-list-page .footer-nav-buttons,
  body.map-detail-page .footer-nav-buttons {
    right: 8px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    gap: 0;
  }

  body.map-list-page .footer-nav-buttons #backbottom,
  body.map-list-page .footer-nav-buttons .footer-bilibili,
  body.map-detail-page .footer-nav-buttons #backbottom,
  body.map-detail-page .footer-nav-buttons .footer-bilibili {
    display: none !important;
  }

  body.map-list-page .map-wrap {
    width: calc(100% - 14px);
  }

  body.map-list-page .map-breadcrumb {
    min-height: 36px;
    margin-bottom: 4px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.map-list-page .map-breadcrumb a {
    min-height: 36px;
  }

  body.map-list-page .map-hero {
    gap: 8px;
    margin-bottom: 7px;
    padding: 10px 12px;
  }

  body.map-list-page .map-kicker {
    margin-bottom: 4px;
    font-size: 12px;
  }

  body.map-list-page .map-hero h1 {
    margin-top: 2px;
    font-size: 24px;
    line-height: 1.16;
  }

  body.map-list-page .map-hero p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.58;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.map-list-page .map-hero-actions {
    margin-top: 7px;
    gap: 6px;
  }

  body.map-list-page .map-chip {
    min-height: 24px;
    padding: 0 8px;
    font-size: 12px;
  }

  body.map-list-page .map-hero-aside {
    display: none;
  }

  body.map-list-page .map-list-panel {
    padding: 10px;
  }

  body.map-list-page .map-list-head {
    margin-bottom: 7px;
  }

  body.map-list-page .map-list-head h2 {
    font-size: 20px;
  }

  body.map-list-page .map-list-head p {
    display: none;
  }

  body.map-list-page .map-grid {
    gap: 10px;
  }

  body.map-list-page .map-grid .map-card:first-of-type {
    order: 2;
  }

  body.map-list-page .map-quick-links {
    order: 1;
    display: block;
    padding: 8px;
    border: 1px solid var(--map-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--map-shadow);
  }

  body.map-list-page .map-quick-links strong {
    display: block;
    margin-bottom: 6px;
    color: var(--map-ink);
    font-size: 15px;
    font-weight: 900;
  }

  body.map-list-page .map-quick-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    overflow: visible;
    padding-bottom: 2px;
  }

  body.map-list-page .map-quick-links a {
    flex: 0 0 auto;
    min-height: 26px;
    padding: 0 8px;
    border: 1px solid #cfd7dd;
    border-radius: 999px;
    background: #f7f8f5;
    color: #8a6a35;
    font-size: 11px;
    font-weight: 850;
    line-height: 26px;
    white-space: nowrap;
  }

  body.map-list-page .map-grid .map-card:not(:first-of-type) {
    order: 3;
  }

  body.map-list-page .map-card-link {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    padding: 8px;
  }

  body.map-list-page .map-card,
  body.map-list-page .map-card-cover,
  body.map-list-page .map-card-body,
  body.map-list-page .map-card-meta,
  body.map-list-page .map-card-facts,
  body.map-list-page .map-card-facts span {
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  body.map-list-page .map-card-cover {
    width: 100%;
    min-height: 0;
    height: 92px;
    aspect-ratio: auto;
    border-radius: 7px;
  }

  body.map-list-page .map-card-cover img {
    object-fit: contain;
    background: #edf2ef;
  }

  body.map-list-page .map-card-body {
    min-width: 0;
    overflow: hidden;
  }

  body.map-list-page .map-card h3 {
    margin-bottom: 4px;
    font-size: 16px;
    line-height: 1.25;
    -webkit-line-clamp: 1;
  }

  body.map-list-page .map-card-desc {
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.36;
    -webkit-line-clamp: 1;
  }

  body.map-list-page .map-card-meta {
    gap: 4px;
    margin-bottom: 5px;
  }

  body.map-list-page .map-card-meta span {
    min-height: 21px;
    padding: 0 5px;
    font-size: 10px;
  }

  body.map-list-page .map-card-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-top: 0;
  }

  body.map-list-page .map-card-facts span:first-child {
    display: none;
  }

  body.map-list-page .map-card-facts span {
    padding: 4px 6px;
  }

  body.map-list-page .map-card-facts span:nth-child(3) {
    grid-column: auto;
  }

  body.map-list-page .map-card-facts b {
    margin-bottom: 1px;
    font-size: 10px;
  }

  body.map-list-page .map-card-facts em {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  body.map-list-page .map-card-cta {
    display: none;
  }
}

/* 2026-06-30 premium map list palette */
.map-list-page,
.map-detail-page {
  --map-surface: rgba(255, 255, 255, 0.92);
  --map-soft: #f5f7f7;
  --map-line: #cfd7dd;
  --map-ink: #17212a;
  --map-text: #33424d;
  --map-muted: #66747d;
  --map-accent: #8a6a35;
  --map-olive: #53636c;
}

.map-breadcrumb,
.map-hero,
.map-list-panel,
.map-card,
.map-detail-hero,
.map-info-card,
.map-content-card,
.map-rail-card {
  border-color: var(--map-line);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(246,248,248,0.92));
}

.map-chip,
.map-card-meta span,
.map-card-intel span,
.map-card-tags span,
.map-detail-meta span,
.map-key-tags span,
.map-card-facts span {
  border-color: #cfd7dd;
  background: #f5f7f7;
  color: #304854;
}

.map-card:hover,
.map-card:focus-within {
  border-color: rgba(123, 189, 205, 0.58);
  box-shadow: 0 14px 30px rgba(23, 33, 42, 0.11);
}

/* 2026-06-30 premium dark panels */
.map-list-page,
.map-detail-page {
  --map-surface: rgba(34, 39, 46, 0.98);
  --map-soft: #242c34;
  --map-line: rgba(155, 166, 178, 0.2);
  --map-ink: #f3f4ef;
  --map-text: #d7dee3;
  --map-muted: #aeb8bf;
  --map-accent: #d8b56d;
  --map-olive: #7bbdcd;
}

.map-breadcrumb,
.map-hero,
.map-list-panel,
.map-card,
.map-detail-hero,
.map-info-card,
.map-content-card,
.map-rail-card {
  border-color: var(--map-line);
  background: linear-gradient(180deg, rgba(38, 44, 51, 0.98), rgba(24, 28, 33, 0.98));
  color: var(--map-text);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.map-breadcrumb,
.map-breadcrumb a,
.map-hero p,
.map-detail-lede,
.map-card-intel em,
.map-card-facts b {
  color: var(--map-muted);
}

.map-chip,
.map-card-meta span,
.map-card-intel span,
.map-card-tags span,
.map-detail-meta span,
.map-key-tags span,
.map-card-facts span {
  border-color: var(--map-line);
  background: rgba(48, 56, 66, 0.9);
  color: #e8edf1;
}

body.map-list-page .map-card-cta {
  border: 1px solid rgba(216, 181, 109, 0.68);
  background: linear-gradient(180deg, #f3d18b 0%, #d8b56d 100%);
  color: #17212a;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

body.map-list-page .map-card-link:hover .map-card-cta,
body.map-list-page .map-card-link:focus-visible .map-card-cta {
  border-color: rgba(255, 224, 156, 0.94);
  background: linear-gradient(180deg, #ffe09c 0%, #e2bd70 100%);
  color: #111820;
}

body.map-list-page .map-pagelist a,
body.map-list-page .map-pagelist span,
body.map-list-page .map-pagelist strong {
  border-color: rgba(155, 166, 178, 0.34);
  background: rgba(48, 56, 66, 0.94);
  color: #f3f4ef;
}

body.map-list-page .map-pagelist a:hover,
body.map-list-page .map-pagelist a:focus-visible,
body.map-list-page .map-pagelist .current {
  border-color: rgba(216, 181, 109, 0.9);
  background: #d8b56d;
  color: #17212a;
}

/* 2026-06-30 image-first map detail layout */
body.map-detail-page .map-wrap {
  width: min(1480px, calc(100% - 28px));
}

body.map-detail-page .map-breadcrumb,
body.map-detail-page .map-quick-nav,
body.map-detail-page .map-detail-cover,
body.map-detail-page .map-detail-meta,
body.map-detail-page .map-detail-lede,
body.map-detail-page .map-kicker,
body.map-detail-page .map-toc-panel {
  display: none;
}

body.map-detail-page .map-detail-hero {
  display: block;
  width: min(1180px, 100%);
  margin: 4px auto 8px;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: center;
}

body.map-detail-page .map-title-ad {
  width: min(1180px, 100%);
  margin: 0 auto 8px;
}

body.map-detail-page .map-title-ad a,
body.map-detail-page .map-page-ad a {
  display: block;
  width: 100%;
  height: 100%;
}

body.map-detail-page .map-title-ad img,
body.map-detail-page .map-page-ad img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
}

body.map-detail-page .map-page-ad {
  display: none;
}

body.map-detail-page .map-kicker {
  margin-bottom: 3px;
  font-size: 12px;
}

body.map-detail-page .map-detail-hero h1 {
  margin: 0 auto;
  font-size: 36px;
  line-height: 1.15;
  text-align: center;
}

body.map-detail-page .map-info-grid {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 8px;
  margin: 0 auto 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

body.map-detail-page .map-info-grid::-webkit-scrollbar {
  display: none;
}

body.map-detail-page .map-info-card {
  min-width: 0;
  max-width: none;
  padding: 7px 10px;
  border-radius: 8px;
}

body.map-detail-page .map-info-card span {
  font-size: 11px;
  line-height: 1.2;
}

body.map-detail-page .map-info-card b {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.32;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.map-detail-page .map-detail-layout {
  display: block;
  padding-left: 0;
}

body.map-detail-page .map-content-card {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 8px;
  border-radius: 8px;
}

body.map-detail-page .map-image-thumb-nav {
  position: fixed;
  top: 108px;
  right: max(10px, calc((100vw - 1180px) / 2 - 138px));
  left: auto;
  z-index: 12;
  width: 120px;
  max-height: calc(100vh - 112px);
  overflow: hidden;
  padding: 7px;
  border: 1px solid rgba(216, 181, 109, 0.24);
  border-radius: 8px;
  background: rgba(17, 22, 28, 0.86);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
  opacity: 1;
  pointer-events: auto;
}

body.map-detail-page .map-image-thumb-nav__list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
  padding-right: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body.map-detail-page .map-image-thumb-nav__list::-webkit-scrollbar {
  display: none;
}

body.map-detail-page .map-image-thumb-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 106px;
  height: 70px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(155, 166, 178, 0.34);
  border-radius: 7px;
  background: #101820;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.map-detail-page .map-image-thumb-nav__item::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.45) 100%);
  content: "";
  pointer-events: none;
}

body.map-detail-page .map-image-thumb-nav__item img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: saturate(1.03) contrast(0.98);
}

body.map-detail-page .map-image-thumb-nav__item:hover,
body.map-detail-page .map-image-thumb-nav__item:focus-visible,
body.map-detail-page .map-image-thumb-nav__item.is-active {
  border-color: rgba(216, 181, 109, 0.92);
  outline: none;
  transform: translateY(-1px);
}

body.map-detail-page .map-image-thumb-nav__item.is-active {
  box-shadow: 0 0 0 2px rgba(216, 181, 109, 0.28), 0 8px 16px rgba(0, 0, 0, 0.22);
}

body.map-detail-page .map-image-thumb-nav__index {
  position: absolute;
  z-index: 2;
  right: 6px;
  bottom: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(11, 15, 20, 0.78);
  color: #f3f4ef;
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}

@media (min-width: 901px) and (max-width: 1460px) {
  body.map-detail-page .map-detail-hero,
  body.map-detail-page .map-info-grid,
  body.map-detail-page .map-title-ad,
  body.map-detail-page .map-content-card {
    width: min(1040px, calc(100% - 148px));
    margin-right: 148px;
    margin-left: auto;
  }
}

@media (min-width: 1780px) {
  body.map-detail-page .map-page-ad {
    position: fixed;
    top: 98px;
    z-index: 10;
    display: block;
    height: calc(100vh - 126px);
    max-height: 760px;
    overflow: hidden;
  }

  body.map-detail-page .map-page-ad--left {
    left: max(18px, calc((100vw - 1180px) / 2 - 306px));
    width: 276px;
  }

  body.map-detail-page .map-page-ad--right {
    right: max(22px, calc((100vw - 1180px) / 2 - 310px));
    width: 140px;
  }

  body.map-detail-page .map-page-ad img {
    height: 100%;
    object-fit: cover;
  }
}

body.map-detail-page .map-content-body h2 {
  margin: 4px 0 6px;
  padding-left: 0;
  font-size: 18px;
}

body.map-detail-page .map-content-body h2::before {
  display: none;
}

body.map-detail-page #map-strategy-title {
  display: none;
}

body.map-detail-page .map-content-body p {
  margin-bottom: 10px;
}

body.map-detail-page .map-content-body p:has(a[href*="pan.baidu.com"]),
body.map-detail-page .map-content-body p:has(a[href*="pan.quark.cn"]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  padding: 9px 10px;
  border: 1px solid rgba(216, 181, 109, 0.46);
  border-radius: 8px;
  background: rgba(216, 181, 109, 0.1);
  color: var(--map-muted);
  font-size: 0;
}

body.map-detail-page .map-content-body p:has(a[href*="pan.baidu.com"])::before,
body.map-detail-page .map-content-body p:has(a[href*="pan.quark.cn"])::before {
  color: var(--map-text);
  font-size: 13px;
  font-weight: 850;
  content: "茼蒿地图网盘分享";
}

body.map-detail-page .map-content-body p:has(a[href*="pan.baidu.com"]) a,
body.map-detail-page .map-content-body p:has(a[href*="pan.quark.cn"]) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(216, 181, 109, 0.78);
  border-radius: 999px;
  background: linear-gradient(180deg, #f3d18b 0%, #d8b56d 100%);
  color: #17212a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

body.map-detail-page .map-content-body p:has(a[href*="pan.baidu.com"]) a::before,
body.map-detail-page .map-content-body p:has(a[href*="pan.quark.cn"]) a::before {
  content: "夸克网盘";
}

body.map-detail-page .map-content-body p:has(a[href*="pan.baidu.com"]) a,
body.map-detail-page .map-content-body p:has(a[href*="pan.quark.cn"]) a {
  font-size: 0;
}

body.map-detail-page .map-content-body p:has(a[href*="pan.baidu.com"]) a::before,
body.map-detail-page .map-content-body p:has(a[href*="pan.quark.cn"]) a::before {
  font-size: 12px;
}

body.map-detail-page .map-image-heading {
  margin: 14px 0 6px;
  padding-top: 0;
  color: var(--map-muted);
  font-size: 13px;
}

body.map-detail-page .map-content-body .article-image-frame {
  width: 100%;
  margin: 8px auto 12px;
  border-radius: 8px;
}

body.map-detail-page .map-content-body .article-image-frame img {
  width: 100%;
}

body.map-detail-page .article-image-frame__caption {
  display: none;
}

body.map-detail-page .map-guide-grid,
body.map-detail-page .map-key-tags {
  display: none;
}

body.map-detail-page .map-rail,
body.map-detail-page .map-source-note,
body.map-detail-page .map-rail-card[aria-labelledby="map-tags-title"],
body.map-detail-page .map-related-card,
body.map-detail-page .map-prenext {
  display: none;
}

@media (max-width: 900px) {
  body.map-detail-page .map-wrap {
    width: calc(100% - 14px);
  }

  body.map-detail-page .map-detail-layout {
    display: block;
    padding-left: 0;
  }

  body.map-detail-page .map-image-thumb-nav {
    display: none;
    position: fixed;
    top: auto;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    z-index: 30;
    width: auto;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 6px;
    border: 1px solid rgba(216, 181, 109, 0.24);
    border-radius: 8px;
    background: rgba(15, 20, 26, 0.92);
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
  }

  body.map-detail-page .map-image-thumb-nav.is-mobile-floating {
    display: block;
  }

  body.map-detail-page .map-image-thumb-nav__list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 94px;
    grid-template-rows: repeat(2, 62px);
    gap: 6px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
    padding-bottom: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  body.map-detail-page .map-image-thumb-nav__list::-webkit-scrollbar {
    display: none;
  }

  body.map-detail-page .map-image-thumb-nav__item {
    width: 94px;
    height: 62px;
  }

  body.map-detail-page.has-mobile-thumb-nav .footer-nav-buttons {
    bottom: calc(164px + env(safe-area-inset-bottom));
  }

  body.map-detail-page .map-content-card {
    padding-bottom: 8px;
  }

  body.map-detail-page .map-info-grid {
    grid-template-columns: repeat(4, minmax(82px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body.map-detail-page .map-info-card {
    min-width: 82px;
    padding: 6px 7px;
  }

  body.map-detail-page .map-info-card span {
    font-size: 10px;
  }

  body.map-detail-page .map-info-card b {
    font-size: 11px;
  }

  body.map-detail-page .map-detail-hero h1 {
    font-size: 30px;
  }

  body.map-detail-page .map-info-card b {
    font-size: 12px;
  }
}

/* 2026-06-30 compact desktop map list */
body.map-list-page .map-breadcrumb,
body.map-list-page .map-kicker,
body.map-list-page .map-hero p,
body.map-list-page .map-hero-actions,
body.map-list-page .map-hero-aside,
body.map-list-page .map-list-head p,
body.map-list-page .map-quick-links,
body.map-list-page .map-card-badge,
body.map-list-page .map-card-desc,
body.map-list-page .map-card-meta,
body.map-list-page .map-card-facts {
  display: none;
}

body.map-list-page .map-hero {
  display: block;
  margin: 6px 0 8px;
  padding: 10px 16px;
  border-radius: 8px;
}

body.map-list-page .map-hero h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
}

body.map-list-page .map-list-panel {
  padding: 12px;
  border-radius: 8px;
}

body.map-list-page .map-list-head {
  margin-bottom: 8px;
}

body.map-list-page .map-list-head h2 {
  font-size: 18px;
  line-height: 1.2;
}

body.map-list-page .map-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

body.map-list-page .map-card {
  border-radius: 8px;
}

body.map-list-page .map-card-link {
  display: block;
  min-height: 0;
  padding: 6px;
}

body.map-list-page .map-card-cover {
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
}

body.map-list-page .map-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #242c34;
}

body.map-list-page .map-card h3 {
  display: -webkit-box;
  min-height: 32px;
  margin: 6px 2px 0;
  overflow: hidden;
  color: #f3f4ef;
  font-size: 14px;
  line-height: 1.28;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.map-list-page .map-card-cta {
  display: none;
}

/* 2026-06-30 compact mobile map list */
@media (max-width: 760px) {
  body.map-list-page .map-main {
    padding-top: 0;
  }

  body.map-list-page .map-wrap {
    width: calc(100% - 14px);
  }

  body.map-list-page .map-breadcrumb,
  body.map-list-page .map-kicker,
  body.map-list-page .map-hero p,
  body.map-list-page .map-hero-actions,
  body.map-list-page .map-hero-aside,
  body.map-list-page .map-list-head p,
  body.map-list-page .map-quick-links,
  body.map-list-page .map-card-badge,
  body.map-list-page .map-card-desc,
  body.map-list-page .map-card-meta,
  body.map-list-page .map-card-facts,
  body.map-list-page .map-card-cta {
    display: none;
  }

  body.map-list-page .map-hero {
    margin: 6px 0 8px;
    padding: 10px 12px;
    border-radius: 8px;
  }

  body.map-list-page .map-hero h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
  }

  body.map-list-page .map-list-panel {
    padding: 8px;
    border-radius: 8px;
  }

  body.map-list-page .map-list-head {
    margin-bottom: 8px;
  }

  body.map-list-page .map-list-head h2 {
    font-size: 17px;
    line-height: 1.2;
  }

  body.map-list-page .map-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.map-list-page .map-grid .map-card:first-of-type,
  body.map-list-page .map-grid .map-card:not(:first-of-type) {
    order: 0;
  }

  body.map-list-page .map-card {
    border-radius: 8px;
  }

  body.map-list-page .map-card-link {
    display: block;
    min-height: 0;
    padding: 6px;
  }

  body.map-list-page .map-card-cover {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
  }

  body.map-list-page .map-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #242c34;
  }

  body.map-list-page .map-card-body {
    display: block;
  }

  body.map-list-page .map-card h3 {
    display: -webkit-box;
    min-height: 32px;
    margin: 6px 2px 1px;
    overflow: hidden;
    color: #f3f4ef;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.24;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

/* 2026-06-30 keep diagonal page background, restore sy-style light cards */
.map-list-page,
.map-detail-page {
  --map-surface: rgba(255, 255, 255, 0.9);
  --map-soft: #f7faf7;
  --map-line: #dfe8e2;
  --map-ink: #17242c;
  --map-text: #33434d;
  --map-muted: #64737d;
  --map-accent: #8a6a35;
  --map-olive: #53636c;
  --map-shadow: 0 12px 28px rgba(24, 37, 44, 0.06);
}

.map-breadcrumb,
.map-hero,
.map-list-panel,
.map-card,
.map-detail-hero,
.map-info-card,
.map-content-card,
.map-rail-card,
.map-toc-panel,
body.map-list-page .map-quick-links {
  border-color: var(--map-line) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--map-text) !important;
  box-shadow: var(--map-shadow) !important;
}

.map-breadcrumb,
.map-hero p,
.map-detail-lede,
.map-list-head p,
.map-card-desc,
.map-info-card span,
.map-content-body,
.map-source-note,
.map-card-facts b,
body.map-detail-page .map-image-heading {
  color: var(--map-muted) !important;
}

.map-breadcrumb a,
.map-hero h1,
.map-detail-hero h1,
.map-list-panel h2,
.map-content-card h2,
.map-rail-card h2,
.map-card h3,
body.map-list-page .map-card h3,
.map-card-facts em,
.map-info-card b,
.map-content-body h2,
.map-content-body h3,
.map-content-body h4,
body.map-list-page .map-quick-links strong {
  color: var(--map-ink) !important;
}

.map-kicker,
.map-source-note a,
body.map-list-page .map-quick-links a {
  color: var(--map-accent) !important;
}

.map-chip,
.map-card-meta span,
.map-card-tags span,
.map-detail-meta span,
.map-key-tags span,
.map-card-facts span,
body.map-list-page .map-quick-links a {
  border-color: #cfd7dd !important;
  background: #f7f8f5 !important;
  color: var(--map-accent) !important;
}

.map-card-intel span {
  border-color: #d8e0cc !important;
  background: #eef3f5 !important;
  color: var(--map-olive) !important;
}

.map-card-intel em {
  color: var(--map-olive) !important;
}

.map-card-cover,
.map-detail-cover,
.map-detail-cover-link {
  background: #e5ece8 !important;
}

body.map-list-page .map-card-cover img,
body.map-list-page .map-card-cover {
  background: #edf2ef !important;
}

.map-card:hover,
.map-card:focus-within {
  border-color: #efb18f !important;
  box-shadow: 0 16px 32px rgba(24, 37, 44, 0.1) !important;
}

body.map-list-page .map-card-cta,
body.map-detail-page .map-content-body p:has(a[href*="pan.baidu.com"]) a,
body.map-detail-page .map-content-body p:has(a[href*="pan.quark.cn"]) a {
  border-color: var(--map-accent) !important;
  background: var(--map-accent) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.map-list-page .map-card-link:hover .map-card-cta,
body.map-list-page .map-card-link:focus-visible .map-card-cta {
  border-color: #67412f !important;
  background: #67412f !important;
  color: #fff !important;
}

body.map-list-page .map-pagelist a,
body.map-list-page .map-pagelist span,
body.map-list-page .map-pagelist strong {
  border-color: var(--map-line) !important;
  background: #fff !important;
  color: var(--map-muted) !important;
}

body.map-list-page .map-pagelist a:hover,
body.map-list-page .map-pagelist a:focus-visible,
body.map-list-page .map-pagelist .current {
  border-color: var(--map-accent) !important;
  background: var(--map-accent) !important;
  color: #fff !important;
}

/* 2026-07-01 larger map list cards */
body.map-list-page .map-wrap {
  width: min(1500px, calc(100% - 40px));
}

body.map-list-page .map-hero {
  margin-bottom: 14px;
  padding: 16px 22px;
}

body.map-list-page .map-hero h1 {
  font-size: 32px;
  line-height: 1.18;
}

body.map-list-page .map-list-panel {
  padding: 20px;
}

body.map-list-page .map-list-head {
  margin-bottom: 16px;
}

body.map-list-page .map-list-head h2 {
  font-size: 26px;
  line-height: 1.22;
}

body.map-list-page .map-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

body.map-list-page .map-card-link {
  display: block;
  padding: 12px;
}

body.map-list-page .map-card-cover {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
}

body.map-list-page .map-card-cover img {
  object-fit: cover;
}

body.map-list-page .map-card h3 {
  min-height: 44px;
  margin: 10px 4px 2px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.28;
}

@media (min-width: 1280px) {
  body.map-list-page .map-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1680px) {
  body.map-list-page .map-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.map-list-page .map-wrap {
    width: min(100% - 20px, 760px);
  }

  body.map-list-page .map-hero {
    padding: 14px 16px;
  }

  body.map-list-page .map-hero h1 {
    font-size: 28px;
  }

  body.map-list-page .map-list-panel {
    padding: 14px;
  }

  body.map-list-page .map-list-head h2 {
    font-size: 23px;
  }

  body.map-list-page .map-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  body.map-list-page .map-card-link {
    padding: 10px;
  }

  body.map-list-page .map-card-cover {
    aspect-ratio: 16 / 9;
  }

  body.map-list-page .map-card h3 {
    min-height: 0;
    font-size: 18px;
  }
}
