/* ============================================
   走进女性历史 · 中国女性博物馆地图
   草木本心 · 编辑型衬线 · 水墨入场
   ============================================ */

:root {
  /* 草木本色 */
  --bg-page:        #FBF7F0;
  --map-default:    #C9DAC8;
  --map-hover:      #8FBC8F;
  --map-active:     #6B9B6B;
  --map-empty:      #DFE8DF;
  --map-border:     #A8C4A8;
  --accent:         #DDA15E;
  --accent-light:   #F0D5A3;
  --accent-deep:    #B57A3E;

  /* 墨色(编辑型 display 文字) */
  --ink-deep:       #2A3329;
  --ink-mid:        #44523F;

  --text-primary:   #3D4A3D;
  --text-secondary: #7A8B7A;
  --text-muted:     #A8B0A4;
  --surface:        #FFFFFF;
  --surface-warm:   #F6F1E6;

  --paper-grain:    rgba(168,196,168,0.04);

  --shadow-sm:      0 1px 3px rgba(61,74,61,0.06);
  --shadow-md:      0 4px 16px rgba(61,74,61,0.10);
  --shadow-lg:      0 8px 32px rgba(61,74,61,0.14);
  --shadow-xl:      0 24px 60px rgba(61,74,61,0.22);

  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-xl:      24px;

  --transition-fast: 200ms ease;
  --transition-normal: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.22, 1, 0.36, 1);

  /* 字体系统 */
  --font-display: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-body:    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 纸张肌理:极淡 SVG turbulence noise */
body {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.42  0 0 0 0 0.48  0 0 0 0 0.40  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--map-hover);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- 顶栏 ---- */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 28px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(168,196,168,0.25);
  box-shadow: var(--shadow-sm);
}

.top-bar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.top-bar__icon {
  color: var(--accent);
  display: inline-flex;
  animation: sunPulse 6s ease-in-out infinite;
}
@keyframes sunPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(221,161,94,0)); }
  50%      { filter: drop-shadow(0 0 6px rgba(221,161,94,0.45)); }
}

.top-bar__title-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.top-bar__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--ink-deep);
  white-space: nowrap;
}

/* 标题逐字 fade-in */
.top-bar__title .char {
  display: inline-block;
  opacity: 0;
  transform: translateX(8px);
  animation: charIn 500ms cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes charIn {
  to { opacity: 1; transform: translateX(0); }
}

.top-bar__subtitle {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 2px;
}

/* 搜索框 */
.top-bar__search {
  position: relative;
  flex: 1;
  max-width: 360px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 18px;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.top-bar__search input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-page);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.top-bar__search input::placeholder { color: var(--text-secondary); }
.top-bar__search input:focus {
  border-color: var(--map-hover);
  box-shadow: 0 0 0 3px rgba(143,155,143,0.15);
}

/* 搜索下拉 */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid rgba(168,196,168,0.30);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-height: 360px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  z-index: 110;
}
.search-dropdown--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.search-dropdown__item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(168,196,168,0.10);
  transition: background var(--transition-fast);
}
.search-dropdown__item:last-child { border-bottom: none; }
.search-dropdown__item:hover,
.search-dropdown__item--active {
  background: var(--bg-page);
}
.search-dropdown__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-deep);
  margin-bottom: 2px;
}
.search-dropdown__name mark {
  background: var(--accent-light);
  color: var(--accent-deep);
  padding: 0 2px;
  border-radius: 2px;
}
.search-dropdown__prov {
  font-size: 12px;
  color: var(--text-secondary);
}
.search-dropdown__empty {
  padding: 18px 14px;
  text-align: center;
  font-family: var(--font-display);
  color: var(--text-secondary);
  font-style: italic;
  font-size: 14px;
}

/* 统计面板 */
.top-bar__stats {
  display: flex;
  gap: 18px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}
.stat-item strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--accent-deep);
  margin: 0 2px;
  display: inline-block;
  min-width: 0.6em;
  text-align: center;
}

/* 数据来源链接 */
.top-bar__source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-page);
  border: 1px solid rgba(168,196,168,0.25);
  border-radius: 20px;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}
.top-bar__source:hover {
  color: #FF2442;
  border-color: #FF2442;
  background: #FFF5F7;
}
.top-bar__source:hover .top-bar__source-xhs {
  animation: xhsWobble 400ms ease;
}
@keyframes xhsWobble {
  0% { transform: rotate(0); }
  30% { transform: rotate(8deg); }
  60% { transform: rotate(-5deg); }
  100% { transform: rotate(0); }
}
.top-bar__source-xhs { color: #FF2442; flex-shrink: 0; transition: transform var(--transition-fast); }
.top-bar__source-label { font-weight: 400; color: var(--text-secondary); transition: color var(--transition-fast); }
.top-bar__source:hover .top-bar__source-label { color: #FF2442; }
.top-bar__source-account { font-weight: 600; color: var(--text-primary); transition: color var(--transition-fast); }
.top-bar__source:hover .top-bar__source-account { color: #FF2442; }

/* ---- 地图容器 ---- */
.map-container {
  position: fixed;
  top: 64px;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  animation: mapInkBloom 1000ms cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes mapInkBloom {
  0%   { opacity: 0; transform: scale(0.94); filter: blur(8px); }
  60%  { opacity: 1; filter: blur(2px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* 地图加载/错误状态 */
.map-status {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 5;
  text-align: center;
}
.map-status--hidden { display: none; }
.map-status__text {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-secondary);
  letter-spacing: 2px;
}
.map-status__retry {
  margin-top: 6px;
  padding: 8px 24px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--surface);
  background: var(--map-active);
  border: none;
  border-radius: var(--radius-md);
  letter-spacing: 2px;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.map-status__retry:hover { background: var(--ink-mid); transform: translateY(-1px); }

/* ---- 自定义 Tooltip ---- */
.tooltip {
  position: fixed;
  z-index: 200;
  max-width: 320px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid rgba(168,196,168,0.30);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease, visibility 150ms ease;
  pointer-events: none;
}
.tooltip--visible { opacity: 1; visibility: visible; }

.tooltip__province {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-deep);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(168,196,168,0.45);
  letter-spacing: 1px;
}

.tooltip__list { list-style: none; }

.tooltip__item {
  position: relative;
  padding: 5px 0 5px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  line-height: 1.5;
}
.tooltip__item::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}
.tooltip__item:hover {
  color: var(--accent-deep);
  padding-left: 20px;
}
.tooltip__item:hover::before { opacity: 1; }

.tooltip__empty {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
}
.tooltip__more {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(168,196,168,0.30);
  font-size: 12px;
  color: var(--text-secondary);
}

/* ---- 移动端预览卡 ---- */
.preview-card {
  position: fixed;
  left: 0; right: 0; bottom: -120%;
  z-index: 250;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  box-shadow: var(--shadow-xl);
  padding: 8px 18px 18px;
  transition: bottom var(--transition-normal);
}
.preview-card--visible { bottom: env(safe-area-inset-bottom, 0); }
.preview-card__handle {
  width: 40px; height: 4px;
  background: var(--map-border);
  border-radius: 2px;
  margin: 4px auto 10px;
  opacity: 0.6;
}
.preview-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.preview-card__province {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-deep);
  letter-spacing: 1px;
}
.preview-card__count {
  font-size: 12px;
  color: var(--accent-deep);
  font-weight: 500;
}
.preview-card__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.preview-card__list-item {
  font-size: 13px;
  color: var(--text-primary);
  padding: 2px 0 2px 14px;
  position: relative;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-card__list-item::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
.preview-card__list-item--empty {
  font-family: var(--font-display);
  color: var(--text-secondary);
  font-style: italic;
  padding-left: 0;
}
.preview-card__list-item--empty::before { display: none; }
.preview-card__hint {
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

/* ---- 抽屉遮罩 ---- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 299;
  background: rgba(42,51,41,0.30);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}
.drawer-overlay--visible { opacity: 1; visibility: visible; }

/* ---- 详情抽屉 ---- */
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 300;
  width: 460px;
  max-width: 92vw;
  background: var(--surface);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.42  0 0 0 0 0.48  0 0 0 0 0.40  0 0 0 0.03 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer--open { transform: translateX(0); }

/* sheet 把手(移动端显示) */
.drawer__handle {
  display: none;
  width: 44px; height: 4px;
  background: var(--map-border);
  border-radius: 2px;
  margin: 8px auto 0;
  opacity: 0.55;
}

/* 抽屉导航栏 */
.drawer__nav {
  position: sticky;
  top: 0; z-index: 11;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(168,196,168,0.15);
  flex-shrink: 0;
}

.drawer__back, .drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: var(--bg-page);
  border: none;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast), opacity var(--transition-fast);
}
.drawer__back:hover, .drawer__close:hover {
  color: var(--ink-deep);
  background: var(--surface-warm);
}
.drawer__back--hidden { opacity: 0; pointer-events: none; }

/* 抽屉双视图切换 — 过渡版本 */
.drawer__section {
  flex: 1;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 250ms ease, transform 250ms ease;
}
.drawer__section--visible {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

/* ---- 省份列表视图 ---- */
.drawer__province-header {
  padding: 32px 28px 20px;
  flex-shrink: 0;
  position: relative;
}
.drawer__province-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.drawer__list-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--ink-deep);
  letter-spacing: 2px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.drawer__rule {
  width: 36px; height: 2px;
  background: var(--accent);
  margin-bottom: 12px;
}
.drawer__list-badge {
  display: inline-block;
  font-size: 12px;
  color: var(--accent-deep);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.drawer__museum-list {
  list-style: none;
  padding: 12px 0 24px;
  flex: 1;
}

.drawer__museum-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  cursor: pointer;
  border-bottom: 1px solid rgba(168,196,168,0.12);
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.drawer__museum-item:hover {
  background: var(--surface-warm);
}
.drawer__museum-item:hover .drawer__museum-item-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.drawer__museum-item-chip {
  flex-shrink: 0;
  font-size: 11px;
  padding: 3px 8px;
  background: var(--map-empty);
  color: var(--map-active);
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.drawer__museum-item-info {
  flex: 1;
  min-width: 0;
}
.drawer__museum-item-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-deep);
  margin-bottom: 4px;
  line-height: 1.3;
}
.drawer__museum-item-addr {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.drawer__museum-item-era {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--accent-light);
  padding: 3px 8px;
  border-radius: 3px;
  margin-right: 4px;
}

.drawer__museum-item-arrow {
  flex-shrink: 0;
  color: var(--map-border);
  transition: transform var(--transition-fast), color var(--transition-fast);
}
.drawer__museum-item-arrow svg { display: block; }

/* 列表空态 */
.drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 60px 24px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  gap: 16px;
}
.drawer__empty svg { opacity: 0.5; }

/* ---- 详情视图:Hero ---- */
.drawer__hero {
  position: relative;
  width: 100%;
  height: 280px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #C9DAC8 0%, #DFE8DF 40%, #E8DDD1 70%, #F0D5A3 100%);
}
.drawer__hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.drawer__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(42,51,41,0) 30%, rgba(42,51,41,0.65) 100%);
  pointer-events: none;
}
.drawer__hero-content {
  position: absolute;
  left: 28px; right: 28px; bottom: 40px;
  z-index: 2;
  color: #fff;
}
.drawer__era-ribbon {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 3px 10px;
  background: var(--accent);
  color: var(--surface);
  margin-bottom: 8px;
  border-radius: 2px;
}
.drawer__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  letter-spacing: 1.5px;
}
.drawer__image-placeholder {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 28px;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
}
.drawer__image-placeholder-emoji {
  font-size: 64px;
  line-height: 1;
  opacity: 0.5;
}
.drawer__image-placeholder-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* 详情正文 */
.drawer__body {
  padding: 22px 28px 40px;
  flex: 1;
}

.drawer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.drawer__meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--bg-page);
  color: var(--text-secondary);
  border: 1px solid rgba(168,196,168,0.25);
}
.drawer__meta-chip svg {
  width: 12px; height: 12px;
  opacity: 0.7;
}
.drawer__meta-chip--category {
  background: var(--map-empty);
  color: var(--map-active);
  border-color: transparent;
  font-weight: 500;
}
.drawer__meta-chip--dates {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--accent-deep);
}
.drawer__meta-chip--address {
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.drawer__meta-chip--address:hover {
  background: var(--surface-warm);
  border-color: var(--accent);
}

/* 引言 */
.drawer__quote {
  position: relative;
  margin: 6px 0 22px;
  padding: 14px 14px 14px 44px;
  background: var(--surface-warm);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.drawer__quote-mark {
  position: absolute;
  top: 10px; left: 10px;
  width: 24px; height: 24px;
  color: var(--accent);
  opacity: 0.5;
}
.drawer__quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-mid);
  letter-spacing: 0.5px;
}

/* 故事区 */
.drawer__story {
  margin-bottom: 24px;
}
.drawer__story-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-deep);
  letter-spacing: 4px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(168,196,168,0.25);
  position: relative;
}
.drawer__story-title::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 28px; height: 2px;
  background: var(--accent);
}

.drawer__desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-primary);
  letter-spacing: 0.3px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(168,196,168,0.35);
}
.drawer__desc--empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-secondary);
}

/* 羲和引路 AI 攻略 */
.drawer__guide {
  margin-bottom: 24px;
}
.drawer__guide-content {
  background: var(--surface-warm);
  border: 1px solid rgba(168,196,168,0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer__guide-disclaimer {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.5px;
  font-style: italic;
}
.drawer__guide-disclaimer a {
  color: var(--text-muted);
  text-decoration: underline;
}
.drawer__guide-disclaimer a:hover {
  color: var(--accent-deep);
}
.drawer__guide-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.drawer__guide-tip + .drawer__guide-tip {
  border-top: 1px solid rgba(168,196,168,0.15);
  padding-top: 12px;
}
.drawer__guide-tip-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.drawer__guide-tip-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.drawer__guide-tip-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-deep);
}
.drawer__guide-tip-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* 羲和引路 · 引用角标 */
.drawer__guide-ref {
  color: var(--accent);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  margin: 0 1px;
}
.drawer__guide-ref:hover {
  text-decoration: underline;
}
.drawer__guide-ref--dead {
  color: var(--text-muted);
  font-size: 11px;
  margin: 0 1px;
}

/* 羲和引路 · 来源列表 */
.drawer__guide-sources {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(168,196,168,0.25);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drawer__guide-source {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.drawer__guide-source a {
  color: var(--accent-deep);
  text-decoration: none;
}
.drawer__guide-source a:hover {
  text-decoration: underline;
}

/* 她的故事 · 来源列表 */
.drawer__desc-sources {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drawer__desc-source {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.drawer__desc-source a {
  color: var(--accent-deep);
  text-decoration: none;
}
.drawer__desc-source a:hover {
  text-decoration: underline;
}

/* 同省相关馆 */
.drawer__related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.drawer__related-chip {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  background: var(--bg-page);
  color: var(--ink-mid);
  border: 1px solid rgba(168,196,168,0.30);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.drawer__related-chip:hover {
  background: var(--surface-warm);
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* 底部行动按钮 */
.drawer__actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.drawer__action {
  flex: 1;
  min-width: 140px;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  transition: background var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.drawer__action--primary {
  background: var(--map-active);
  color: var(--surface);
}
.drawer__action--primary:hover {
  background: var(--ink-mid);
  transform: translateY(-1px);
}
.drawer__action--secondary {
  background: transparent;
  color: var(--accent-deep);
  border: 1px solid var(--accent);
}
.drawer__action--secondary:hover {
  background: var(--accent-light);
}

/* ---- 加桌面引导 ---- */
.install-prompt {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0));
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 14px 18px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease, transform 400ms cubic-bezier(0.22,1,0.36,1);
}
.install-prompt--visible {
  opacity: 1;
  transform: translateY(0);
}
.install-prompt__icon {
  flex-shrink: 0;
  color: var(--map-active);
  background: var(--surface-warm);
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.install-prompt__body { flex: 1; min-width: 0; }
.install-prompt__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-deep);
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.install-prompt__text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.install-prompt__cta {
  margin-top: 8px;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 12px;
  background: var(--accent);
  color: var(--surface);
  border: none;
  border-radius: var(--radius-sm);
  letter-spacing: 2px;
}
.install-prompt__close {
  position: absolute;
  top: 8px; right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
  width: 24px; height: 24px;
  padding: 0;
}
.install-prompt__close:hover { color: var(--text-primary); }

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  .top-bar {
    flex-wrap: wrap;
    padding: 8px 12px;
    padding-top: calc(8px + env(safe-area-inset-top, 0));
    gap: 6px 8px;
  }
  .top-bar__brand { order: 1; flex: 1; min-width: 0; overflow: hidden; }
  .top-bar__stats { order: 2; gap: 6px; font-size: 10px; }
  .top-bar__source { order: 3; padding: 2px 6px; font-size: 10px; }
  .top-bar__search {
    order: 4;
    max-width: 100%;
    flex-basis: 100%;
  }
  .top-bar__icon svg { width: 22px; height: 22px; }
  .top-bar__brand { gap: 6px; }
  .top-bar__title-wrap { min-width: 0; overflow: hidden; }
  .top-bar__title {
    font-size: 13px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .top-bar__subtitle { display: none; }
  .top-bar__source-label { display: none; }
  .stat-item strong { font-size: 15px; }
  /* 极小屏收起统计显示,保持一行不换行 */
  @media (max-width: 370px) {
    .top-bar__stats { display: none; }
  }

  .map-container { top: 86px; }

  /* 抽屉转为底部 sheet */
  .drawer {
    top: auto; bottom: 0; right: 0; left: 0;
    width: 100%; max-width: none;
    height: 88vh; max-height: 88vh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }
  .drawer--open { transform: translateY(0); }
  .drawer__handle { display: block; }
  .drawer__nav { padding-top: 6px; }

  .drawer__province-header { padding: 22px 22px 16px; }
  .drawer__list-title { font-size: 26px; letter-spacing: 1.5px; }

  .drawer__museum-item { padding: 14px 22px; }
  .drawer__museum-item-name { font-size: 16px; }

  .drawer__hero { height: 220px; }
  .drawer__name { font-size: 22px; }
  .drawer__body { padding: 18px 22px 32px; }
}

/* ============================================
   羲和引 · Seeher Guide 扩展样式
   段控 / 旅行模态 / 省份卡片 / 详情通知
   ============================================ */

/* ---- 左上角段控 ---- */
.view-switcher {
  position: fixed;
  left: 16px;
  z-index: 90;
  display: inline-flex;
  padding: 4px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(168,196,168,0.30);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  gap: 2px;
}
.view-switcher--primary { top: 80px; }
.view-switcher--secondary {
  top: 128px;
  padding: 3px;
  margin-left: 8px;
}
/* 确保 hidden 属性能压住 display */
[hidden] { display: none !important; }
.view-switcher__btn {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 6px 16px;
  background: transparent;
  color: var(--ink-mid);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
}
.view-switcher--secondary .view-switcher__btn {
  font-size: 12px;
  letter-spacing: 1.5px;
  padding: 5px 14px;
}
.view-switcher__btn:hover:not(:disabled):not(.view-switcher__btn--active) {
  background: rgba(255,255,255,0.6);
  color: var(--accent-deep);
}
.view-switcher__btn--active {
  background: var(--accent);
  color: var(--surface);
  box-shadow: 0 2px 8px rgba(221,161,94,0.30);
}
.view-switcher__btn[hidden] { display: none !important; }

/* ---- 旅行模态 ---- */
.travel-prompt {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 320;
  width: min(92vw, 440px);
  padding: 32px 28px 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
}
.travel-prompt[hidden] { display: block; } /* override hidden so transition can animate */
.travel-prompt--visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.travel-prompt__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  border: none;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.travel-prompt__close:hover {
  color: var(--ink-deep);
  background: var(--surface-warm);
}
.travel-prompt__sun {
  color: var(--accent);
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
  animation: sunPulse 6s ease-in-out infinite;
}
.travel-prompt__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--ink-deep);
  text-align: center;
  margin-bottom: 4px;
}
.travel-prompt__sub {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
.travel-prompt__field {
  position: relative;
  margin-bottom: 12px;
}
.travel-prompt__field-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}
.travel-prompt__field input {
  width: 100%;
  padding: 12px 14px 12px 38px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-page);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.travel-prompt__field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(221,161,94,0.18);
}
.travel-prompt__results {
  max-height: 280px;
  overflow-y: auto;
  border-radius: var(--radius-md);
}
.travel-prompt__results:empty { display: none; }
.travel-prompt__result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.travel-prompt__result:hover {
  background: var(--surface-warm);
}
.travel-prompt__result-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent-deep);
  font-size: 13px;
}
.travel-prompt__result-body {
  flex: 1;
  min-width: 0;
}
.travel-prompt__result-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-deep);
  line-height: 1.3;
}
.travel-prompt__result-prov {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
}
.travel-prompt__result-arrow {
  flex-shrink: 0;
  color: var(--map-border);
}
.travel-prompt__result:hover .travel-prompt__result-arrow {
  color: var(--accent);
}
.travel-prompt__empty {
  padding: 18px 12px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 13px;
}

/* ---- 省份视图 hero 与卡片画廊 ---- */
.drawer__travel-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -4px 28px 18px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--surface-warm) 0%, var(--accent-light) 120%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(221,161,94,0.20);
}
.drawer__travel-hero-body {
  flex: 1;
  min-width: 0;
}
.drawer__travel-hero-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.drawer__travel-hero-sub {
  font-size: 11px;
  color: var(--ink-mid);
  letter-spacing: 0.5px;
}
.drawer__travel-hero-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--surface);
  background: var(--accent);
  border: none;
  border-radius: 999px;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.drawer__travel-hero-btn:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.drawer__card-gallery {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 28px 24px;
  flex: 1;
}
.drawer__card {
  position: relative;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid rgba(168,196,168,0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.drawer__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}
.drawer__card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.drawer__card-cat {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--map-empty);
  color: var(--map-active);
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.drawer__card-era {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 3px;
}
.drawer__card-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-deep);
  line-height: 1.3;
  margin-bottom: 6px;
}
.drawer__card-desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.drawer__card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: 1px;
}
.drawer__card-cta svg {
  transition: transform var(--transition-fast);
}
.drawer__card:hover .drawer__card-cta svg {
  transform: translateX(3px);
}

/* ---- 列表模式：城市Tab ---- */
.drawer__listmode-citytabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 28px 14px;
  border-bottom: 1px solid rgba(168,196,168,0.20);
  margin-bottom: 4px;
}
.drawer__listmode-citytab {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 4px 12px;
  background: transparent;
  color: var(--ink-mid);
  border: 1px solid rgba(168,196,168,0.35);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.drawer__listmode-citytab:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}
.drawer__listmode-citytab--active {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 2px 6px rgba(221,161,94,0.25);
}

/* ---- 列表模式：Header ---- */
.drawer__listmode-header {
  padding: 26px 28px 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}
.drawer__listmode-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--ink-deep);
  letter-spacing: 2px;
  line-height: 1.2;
}
.drawer__listmode-badge {
  font-size: 12px;
  color: var(--accent-deep);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ---- 列表模式：省份搜索选择器 ---- */
.drawer__listmode-selector {
  padding: 0 28px 10px;
  position: relative;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(168,196,168,0.20);
}
.drawer__listmode-selector-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-warm);
  border: 1px solid rgba(168,196,168,0.35);
  border-radius: 12px;
  padding: 0 12px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.drawer__listmode-selector-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(221,161,94,0.12);
}
.drawer__listmode-selector-icon {
  flex-shrink: 0;
  color: var(--text-secondary);
  opacity: 0.6;
}
.drawer__listmode-selector-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink-deep);
  padding: 10px 0;
  outline: none;
  min-width: 0;
}
.drawer__listmode-selector-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.5;
}
.drawer__listmode-selector-clear {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168,196,168,0.20);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.drawer__listmode-selector-clear:hover {
  background: rgba(221,161,94,0.18);
  color: var(--accent-deep);
}
.drawer__listmode-selector-dropdown {
  position: absolute;
  left: 28px; right: 28px;
  top: calc(100% - 6px);
  background: var(--surface);
  border: 1px solid rgba(168,196,168,0.30);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-height: 260px;
  overflow-y: auto;
  z-index: 20;
  padding: 4px 0;
}
.drawer__listmode-selector-dropdown:empty {
  display: none;
}
.drawer__listmode-selector-option {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink-deep);
  transition: background var(--transition-fast);
  gap: 8px;
}
.drawer__listmode-selector-option:hover,
.drawer__listmode-selector-option--highlight {
  background: var(--surface-warm);
  color: var(--accent-deep);
}
.drawer__listmode-selector-option-name {
  flex: 1;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.drawer__listmode-selector-option-count {
  font-size: 11px;
  color: var(--accent-deep);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.drawer__listmode-selector-option--empty {
  color: var(--text-secondary);
  font-style: italic;
  cursor: default;
}
.drawer__listmode-selector-option--empty:hover {
  background: transparent;
  color: var(--text-secondary);
}

/* ---- 列表模式：全国列表（省份分组） ---- */
.drawer__listmode-province {
  display: flex;
  align-items: center;
  padding: 14px 28px;
  cursor: pointer;
  border-bottom: 1px solid rgba(168,196,168,0.10);
  transition: background var(--transition-fast);
}
.drawer__listmode-province:hover {
  background: var(--surface-warm);
}
.drawer__listmode-province-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-deep);
  letter-spacing: 1px;
  flex: 1;
}
.drawer__listmode-province-count {
  font-size: 12px;
  color: var(--accent-deep);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}
.drawer__listmode-province-arrow {
  color: var(--map-border);
  margin-left: 8px;
  transition: transform var(--transition-fast), color var(--transition-fast);
}
.drawer__listmode-province:hover .drawer__listmode-province-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* ---- 列表模式：博物馆列表项（紧凑两行式） ---- */
.drawer__listmode-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 28px;
  cursor: pointer;
  border-bottom: 1px solid rgba(168,196,168,0.08);
  transition: background var(--transition-fast);
}
.drawer__listmode-item:hover {
  background: var(--surface-warm);
}
.drawer__listmode-item-cat {
  flex-shrink: 0;
  font-size: 11px;
  padding: 3px 8px;
  background: var(--map-empty);
  color: var(--map-active);
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.drawer__listmode-item-info {
  flex: 1;
  min-width: 0;
}
.drawer__listmode-item-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-deep);
  line-height: 1.35;
  margin-bottom: 2px;
}
.drawer__listmode-item-addr {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer__listmode-item-arrow {
  flex-shrink: 0;
  color: var(--map-border);
  transition: transform var(--transition-fast), color var(--transition-fast);
}
.drawer__listmode-item:hover .drawer__listmode-item-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* ---- 列表模式：Section 过渡 ---- */
.drawer__section--listmode {
  flex: 1;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 250ms ease, transform 250ms ease;
}
.drawer__section--listmode.drawer__section--visible {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}
.drawer__listmode-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 60px 24px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  gap: 12px;
}

/* ---- 详情通知条 ---- */
.drawer__notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 12.5px;
  line-height: 1.5;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}
.drawer__notice-icon {
  flex-shrink: 0;
  margin-top: 1px;
}
.drawer__notice--info {
  background: var(--surface-warm);
  border-color: rgba(221,161,94,0.30);
  color: var(--ink-mid);
}
.drawer__notice--info .drawer__notice-icon { color: var(--accent-deep); }
.drawer__notice--closed {
  background: rgba(181,122,62,0.10);
  border-color: rgba(181,122,62,0.40);
  color: var(--accent-deep);
  font-weight: 500;
}
.drawer__notice--closed .drawer__notice-icon { color: var(--accent-deep); }

/* 图片来源标注(框架,本期 hidden) */
.drawer__image-source {
  position: absolute;
  right: 10px; bottom: 10px;
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  background: rgba(42,51,41,0.55);
  color: #fff;
  border-radius: 999px;
}

/* 行动按钮新增样式 */
.drawer__action--tertiary {
  background: var(--bg-page);
  color: var(--ink-mid);
  border: 1px solid rgba(168,196,168,0.35);
}
.drawer__action--tertiary:hover {
  background: var(--surface-warm);
  border-color: var(--accent);
  color: var(--accent-deep);
}
.drawer__action--wechat {
  background: #EAF6E8;
  color: #2A8D3A;
  border: 1px solid #C9E5C2;
  cursor: pointer;
}
.drawer__action--wechat:hover {
  background: #2A8D3A;
  color: #fff;
  border-color: #2A8D3A;
}
.drawer__action--wechat[data-copied="1"] {
  background: var(--map-active);
  color: #fff;
  border-color: var(--map-active);
}

/* ---- 省份选择模态 ---- */
.province-prompt {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 320;
  width: min(92vw, 420px);
  padding: 28px 26px 22px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
}
.province-prompt[hidden] { display: block; }
.province-prompt--visible {
  opacity: 1; visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.province-prompt__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-page);
  border: none; border-radius: 50%;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.province-prompt__close:hover { color: var(--ink-deep); background: var(--surface-warm); }
.province-prompt__sun {
  color: var(--accent);
  display: flex; justify-content: center;
  margin-bottom: 6px;
  animation: sunPulse 6s ease-in-out infinite;
}
.province-prompt__title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 900;
  letter-spacing: 3px;
  color: var(--ink-deep);
  text-align: center;
  margin-bottom: 4px;
}
.province-prompt__sub {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.province-prompt__current {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--surface-warm) 0%, var(--accent-light) 130%);
  border: 1px solid rgba(221,161,94,0.30);
  border-radius: var(--radius-md);
}
.province-prompt__current-label {
  font-size: 11px;
  color: var(--ink-mid);
  letter-spacing: 1px;
}
.province-prompt__current-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink-deep);
  letter-spacing: 1px;
}
.province-prompt__current-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--accent-deep);
}
.province-prompt__confirm {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--surface);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.province-prompt__confirm:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}
.province-prompt__divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 1.5px;
}
.province-prompt__divider::before,
.province-prompt__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(168,196,168,0.30);
}
.province-prompt__field {
  position: relative;
  margin-bottom: 10px;
}
.province-prompt__field-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}
.province-prompt__field input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-page);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.province-prompt__field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(221,161,94,0.18);
}
.province-prompt__results {
  max-height: 220px;
  overflow-y: auto;
}
.province-prompt__results:empty { display: none; }
.province-prompt__result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.province-prompt__result:hover { background: var(--surface-warm); }
.province-prompt__result-name {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink-deep);
  flex: 1;
}
.province-prompt__result-count {
  font-size: 11px;
  color: var(--accent-deep);
}
.province-prompt__result--empty {
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
  padding: 14px;
  font-size: 12px;
}
.province-prompt__result--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.province-prompt__result--disabled:hover { background: transparent; }

/* ---- 返回全国 pill ---- */
.back-to-national {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px 8px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-deep);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(221,161,94,0.30);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.back-to-national:hover {
  background: var(--accent);
  color: var(--surface);
  transform: translateX(-50%) translateY(-1px);
}

/* 省级地图标题角标 */
.province-map-badge {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 80;
  padding: 8px 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(168,196,168,0.30);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink-deep);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}
.province-map-badge[hidden] { display: none; }
.province-map-badge strong {
  color: var(--accent-deep);
  margin-left: 4px;
}

/* ---- 省级地图叠加层:连接线 + 资料卡 ---- */
.province-lines,
.province-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}
.province-cards { overflow: visible; }
.province-lines--visible,
.province-cards--visible {
  /* legacy class kept; visibility now default */
}
.province-lines path {
  fill: none;
  stroke: rgba(221,161,94,0.75);
  stroke-width: 1.4;
  stroke-dasharray: 4 3;
  stroke-linecap: round;
  opacity: 1;
}

.province-mcard {
  position: absolute;
  width: 168px;
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid rgba(168,196,168,0.30);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transform-origin: var(--anchor-x, 50%) var(--anchor-y, 50%);
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition:
    transform 280ms cubic-bezier(0.22,1,0.36,1),
    box-shadow 280ms ease,
    border-color 200ms ease;
  overflow: hidden;
  will-change: transform;
}
.province-mcard--visible {
  /* legacy class — visibility now default */
}
.province-mcard:hover {
  transform: translate(-50%, -50%) scale(1.18);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
  z-index: 6;
}
.province-mcard__media {
  position: relative;
  width: 100%;
  height: 90px;
  background: linear-gradient(135deg, #C9DAC8 0%, #DFE8DF 40%, #E8DDD1 70%, #F0D5A3 100%);
  overflow: hidden;
}
.province-mcard__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.province-mcard__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  opacity: 0.45;
}
.province-mcard__body {
  padding: 8px 10px 10px;
}
.province-mcard__name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ink-deep);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.province-mcard__chip {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  padding: 1px 6px;
  background: var(--accent-light);
  color: var(--accent-deep);
  border-radius: 3px;
  letter-spacing: 0.5px;
}

/* 移动端段控收缩 */
@media (max-width: 768px) {
  .view-switcher--primary { top: 98px; }
  .view-switcher { left: 8px; padding: 3px; }
  .view-switcher--secondary { top: 142px; }
  .view-switcher__btn {
    font-size: 12px;
    letter-spacing: 1px;
    padding: 5px 12px;
  }
  .view-switcher--secondary .view-switcher__btn {
    font-size: 11px;
    padding: 4px 10px;
  }
  .drawer__travel-hero { margin: -4px 22px 14px; }
  .drawer__card-gallery { padding: 4px 22px 24px; }
  .drawer__listmode-header { padding: 22px 22px 12px; }
  .drawer__listmode-title { font-size: 18px; }
  .drawer__listmode-citytabs { padding: 8px 22px 12px; }
  .drawer__listmode-selector { padding: 0 22px 8px; }
  .drawer__listmode-selector-dropdown { left: 22px; right: 22px; }
  .drawer__listmode-province { padding: 12px 22px; }
  .drawer__listmode-province-name { font-size: 15px; }
  .drawer__listmode-item { padding: 11px 22px; }
  .back-to-national {
    top: 98px;
    font-size: 12px;
    padding: 6px 14px 6px 12px;
  }
  .province-map-badge {
    top: 98px;
    font-size: 12px;
    padding: 6px 12px;
  }
  .province-mcard {
    width: 132px;
  }
  .province-mcard__media { height: 70px; }
  .province-mcard__name { font-size: 12px; }
}

/* ---- 减少动效 ---- */
/* ---- 旅行模式 · Leaflet 真地图 ---- */
.travel-map {
  position: fixed;
  top: 64px;
  left: 0; right: 0; bottom: 0;
  z-index: 80;          /* 必须高于 ECharts(默认 z:1) 与段控容器 */
  background: #F5F1E8;
  display: none;        /* 默认折叠 */
}
.travel-map--visible { display: block; }
.travel-map .leaflet-container {
  width: 100%;
  height: 100%;
  background: #F5F1E8;
  font-family: var(--font-display);
}
@media (max-width: 768px) {
  .travel-map { top: 86px; }
}
/* Leaflet 控件配色微调 */
.travel-map .leaflet-control-attribution {
  background: rgba(255,255,255,0.78);
  color: var(--ink-mid);
  font-size: 11px;
  padding: 2px 6px;
}
.travel-map .leaflet-control-attribution a { color: var(--accent-deep); }
.travel-map .leaflet-control-zoom a {
  background: rgba(255,255,255,0.92);
  color: var(--ink-deep);
  border: 1px solid rgba(168,196,168,0.4);
}
.travel-map .leaflet-control-zoom a:hover { background: #fff; color: var(--accent-deep); }

/* 自定义馆点(琥珀色日轮 marker) */
.travel-marker {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FBE6C2 0%, #DDA15E 60%, #B57A3E 100%);
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(181,122,62,0.45), 0 0 0 4px rgba(221,161,94,0.18);
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.22,1,0.36,1), box-shadow 220ms ease;
}
.travel-marker:hover {
  transform: scale(1.25);
  box-shadow: 0 6px 18px rgba(181,122,62,0.6), 0 0 0 6px rgba(221,161,94,0.25);
}
.travel-marker__inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  position: relative;
}
.travel-marker__inner::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.6) inset;
}

/* Leaflet popup 改成卡片风 */
.travel-map .leaflet-popup-content-wrapper {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(168,196,168,0.3);
  padding: 0;
}
.travel-map .leaflet-popup-content {
  margin: 0;
  width: 220px !important;
  font-family: var(--font-display);
}
.travel-map .leaflet-popup-tip { background: var(--surface); }
.travel-popup__media {
  width: 100%;
  height: 110px;
  background: linear-gradient(135deg, #C9DAC8 0%, #DFE8DF 40%, #E8DDD1 70%, #F0D5A3 100%);
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  position: relative;
}
.travel-popup__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.travel-popup__placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; opacity: 0.45;
}
.travel-popup__body { padding: 10px 12px 12px; }
.travel-popup__name {
  font-size: 14px; font-weight: 700;
  color: var(--ink-deep);
  letter-spacing: 0.5px;
  line-height: 1.35;
  margin-bottom: 6px;
}
.travel-popup__addr {
  font-size: 11px;
  color: var(--ink-mid);
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.travel-popup__btns { display: flex; gap: 6px; }
.travel-popup__btn {
  flex: 1;
  padding: 6px 8px;
  font-size: 11px;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(168,196,168,0.4);
  background: #fff;
  color: var(--ink-deep);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 180ms, border-color 180ms;
}
.travel-popup__btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.travel-popup__btn:hover { border-color: var(--accent-deep); }
.travel-popup__btn--primary:hover { background: var(--accent-deep); }

/* 旅行模式徽标(右上角同款,左边附计数) */
.travel-map-badge {
  position: fixed;
  top: 80px; right: 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(168,196,168,0.3);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--ink-deep);
  box-shadow: var(--shadow-md);
  z-index: 91;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
}
.travel-map-badge strong {
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 700;
}
@media (max-width: 768px) {
  .travel-map-badge {
    top: 98px;
    font-size: 12px;
    padding: 6px 12px;
  }
}


  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .top-bar__title .char {
    opacity: 1;
    transform: none;
  }
  .top-bar__icon,
  .travel-prompt__sun {
    animation: none !important;
  }
}

/* ---- 首次进入欢迎弹窗 ---- */
.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(42,51,41,0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}
.welcome-overlay[hidden] { display: block; }
.welcome-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.welcome-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  z-index: 501;
  width: min(92vw, 460px);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal),
              transform var(--transition-normal),
              visibility var(--transition-normal);
}
.welcome-modal[hidden] { display: flex; }
.welcome-modal--visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.welcome-modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  border-radius: 50%;
  color: var(--ink-mid);
  box-shadow: var(--shadow-sm);
  z-index: 2;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.welcome-modal__close:hover {
  color: var(--ink-deep);
  background: var(--surface);
}

.welcome-modal__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-warm);
  overflow: hidden;
  flex-shrink: 0;
}
.welcome-modal__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.welcome-modal__hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 18px 12px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  color: #FBF7F0;
  text-align: right;
  background: linear-gradient(to top, rgba(42,51,41,0.55), rgba(42,51,41,0));
  pointer-events: none;
}

.welcome-modal__body {
  padding: 22px 26px 24px;
  overflow-y: auto;
  flex: 1 1 auto;
}
.welcome-modal__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--ink-deep);
  text-align: center;
  margin-bottom: 6px;
}
.welcome-modal__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  line-height: 1.7;
  color: var(--accent-deep);
  text-align: center;
  letter-spacing: 0.6px;
  margin-bottom: 18px;
}
.welcome-modal__paragraphs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(168,196,168,0.30);
}
.welcome-modal__paragraphs p {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}
.welcome-modal__warning {
  color: #D32F2F !important;
  font-weight: 600;
}
.welcome-modal__link {
  color: #D32F2F;
  text-decoration: underline;
  font-weight: 700;
}
.welcome-modal__link:hover {
  color: #B71C1C;
}
.welcome-modal__cta {
  margin: 20px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--surface);
  background: var(--map-active);
  border: none;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.welcome-modal__cta:hover {
  background: var(--ink-mid);
  transform: translateY(-1px);
}
.welcome-modal__cta:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .welcome-modal {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 32px);
  }
  .welcome-modal__hero { aspect-ratio: 16 / 9; }
  .welcome-modal__body { padding: 18px 20px 20px; }
  .welcome-modal__title { font-size: 18px; letter-spacing: 2px; }
  .welcome-modal__lede { font-size: 13px; margin-bottom: 14px; }
  .welcome-modal__paragraphs p { font-size: 13px; line-height: 1.8; }
}
