/* 思维总结 · Markmap 动态页 */

.type-maps #page .page-title {
  display: none;
}

.maps-app {
  --maps-primary: #49b1f5;
  --maps-accent: #ff72ac;
  --maps-gradient: linear-gradient(135deg, #49b1f5 0%, #7c8cff 50%, #ff72ac 100%);
  max-width: 1100px;
  margin: 0 auto;
}

.maps-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 42px 28px;
  margin-bottom: 28px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #1f1c2c 0%, #4b3f72 45%, #49b1f5 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.maps-hero h1 {
  margin: 8px 0 10px;
  padding: 0;
  border: none;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.maps-hero p {
  margin: 0 auto;
  max-width: 560px;
  opacity: 0.92;
  line-height: 1.7;
}

.maps-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.maps-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 18px;
  border-radius: 18px;
  background: var(--card-bg, #fff);
  border: 1px solid rgba(73, 177, 245, 0.12);
  box-shadow: 0 10px 28px rgba(73, 177, 245, 0.08);
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.maps-card:hover {
  transform: translateY(-6px);
  border-color: rgba(73, 177, 245, 0.35);
  box-shadow: 0 16px 36px rgba(73, 177, 245, 0.16);
}

.maps-card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(73, 177, 245, 0.16), rgba(255, 114, 172, 0.14));
  color: var(--maps-primary);
}

.maps-card h3 {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 18px;
  line-height: 1.4;
}

.maps-card p {
  margin: 0;
  color: var(--text-sub-color, #7f8c8d);
  font-size: 13px;
  line-height: 1.6;
  min-height: 42px;
}

.maps-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.maps-tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(73, 177, 245, 0.16), rgba(255, 114, 172, 0.14));
  font-size: 12px;
}

.maps-empty,
.maps-error {
  padding: 28px;
  text-align: center;
  color: var(--text-sub-color, #7f8c8d);
}

.maps-viewer {
  display: none;
}

.maps-app.is-viewing .maps-home {
  display: none;
}

.maps-app.is-viewing .maps-viewer {
  display: block;
}

.maps-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.maps-toolbar h2 {
  flex: 1;
  margin: 0;
  padding: 0;
  border: none;
  font-size: 18px;
  line-height: 1.4;
}

.maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: var(--maps-gradient);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(73, 177, 245, 0.25);
}

.maps-btn.is-ghost {
  background: var(--btn-bg, #f6f8fa);
  color: var(--font-color, #4c4948);
  box-shadow: none;
}

.maps-stage {
  position: relative;
  height: calc(100vh - 220px);
  min-height: 520px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card-bg, #fff);
  border: 1px solid rgba(73, 177, 245, 0.12);
  box-shadow: 0 12px 32px rgba(73, 177, 245, 0.08);
}

.maps-stage svg {
  display: block;
  width: 100%;
  height: 100%;
}

.maps-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.maps-stage.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  height: 100vh;
  min-height: 100vh;
  border-radius: 0;
}

.maps-stage .markmap-toolbar {
  position: absolute !important;
  right: 16px;
  bottom: 16px;
}

.maps-stage .markmap-foreign,
.maps-stage .markmap-foreign div {
  font-weight: 400;
}

.maps-stage .markmap-foreign strong,
.maps-stage .markmap-foreign b {
  font-weight: 700 !important;
  color: #d9480f;
}

.maps-stage .markmap-foreign em,
.maps-stage .markmap-foreign i {
  font-style: italic !important;
}

.maps-stage .markmap-foreign code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.92em;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(73, 177, 245, 0.14);
}

.maps-stage .markmap-foreign a {
  color: #49b1f5;
  text-decoration: underline;
}

.maps-stage .markmap-foreign del {
  opacity: 0.7;
  text-decoration: line-through;
}

[data-theme='dark'] .maps-stage .markmap-foreign strong,
[data-theme='dark'] .maps-stage .markmap-foreign b {
  color: #ffa94d;
}

[data-theme='dark'] .maps-stage,
[data-theme='dark'] .maps-card {
  background: #1e1e2f;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme='dark'] .maps-stage.markmap-dark {
  background: #1a1b22;
}

@media (max-width: 768px) {
  .maps-hero {
    padding: 32px 18px;
  }

  .maps-hero h1 {
    font-size: 24px;
  }

  .maps-stage {
    height: calc(100vh - 180px);
    min-height: 420px;
  }
}
