
    * {
      box-sizing: border-box;
    }

    /* 无障碍：键盘焦点统一用品牌色描边，鼠标点击不显示 */
    :focus-visible {
      outline: 2px solid var(--color-accent, #007AFF);
      outline-offset: 2px;
    }

    /* 无障碍：尊重「减少动态效果」系统偏好，关闭装饰性动效；
       加载指示（.spin）必须保留，否则用户会以为卡死 */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
      }
      .sidebar-loading,
      .sidebar-loading-view,
      .sidebar-loading-more,
      .search-loading-spinner,
      .woodsper-map-place-label-spinner,
      .woodsper-map-data-loading-spinner {
        animation-duration: 0.8s !important;
        animation-iteration-count: infinite !important;
      }
    }

    html, body {
      margin: 0;
      padding: 0;
      width: 100%;
      height: 100%;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", "Noto Sans CJK SC", sans-serif;
      background: #0b1020;
    }

    .page {
      display: flex;
      flex-direction: column;
      width: 100%;
      height: 100%;
    }

    .header {
      position: relative;
      padding: 14px 16px;
      background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.7) 0%, 
        rgba(30, 41, 59, 0.65) 50%, 
        rgba(15, 23, 42, 0.7) 100%);
      border-bottom: 1px solid rgba(148, 163, 184, 0.18);
      backdrop-filter: blur(12px) saturate(1.2) brightness(1.05);
      -webkit-backdrop-filter: blur(12px) saturate(1.2) brightness(1.05);
      box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.15);
      overflow: hidden;
    }

    .header::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: radial-gradient(
        120% 140% at 50% 0%,
        rgba(96, 165, 250, 0.10) 0%,
        rgba(59, 130, 246, 0.03) 38%,
        transparent 62%
      );
      opacity: 0.7;
      pointer-events: none;
    }

    .header::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.15) 80%,
        transparent 100%
      );
      pointer-events: none;
    }

    .header-glass-canvas {
      display: none;
    }

    .header > * {
      position: relative;
      z-index: 1;
    }

    .header-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
    }

    .header-brand {
      flex: 1;
      min-width: 0;
    }

    .header-actions {
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 8px;
    }

    .header-app-store {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0;
      box-sizing: border-box;
      height: 32px;
      min-height: 32px;
      padding: 6px 11px;
      border-radius: 10px;
      font-size: 11px;
      font-weight: 600;
      color: #ffffff;
      text-decoration: none;
      background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
      border: 1px solid rgba(37, 99, 235, 0.3);
      box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
      white-space: nowrap;
      -webkit-tap-highlight-color: transparent;
    }

    .header-app-store:hover {
      background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
      color: #ffffff;
      box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
    }

    .header-app-store:active {
      transform: translateY(0.5px);
      background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    }

    .header-app-store svg { display: none; }

    .title {
      margin: 0;
      font-size: 19px;
      font-weight: 600;
      letter-spacing: -0.01em;
      color: #f1f5f9;
    }

    .subtitle {
      margin: 4px 0 0;
      font-size: 13px;
      line-height: 1.5;
      letter-spacing: 0.01em;
      color: rgba(226, 232, 240, 0.72);
    }

    .nav {
      margin-top: 10px;
      display: flex;
      gap: 12px;
      font-size: 13px;
    }

    .nav a {
      color: #60a5fa;
      text-decoration: none;
    }

    .map-layout {
      flex: 1;
      min-height: 320px;
      position: relative;
      overflow: hidden;
    }

    .profile-panel {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 360px;
      max-width: 44vw;
      display: flex;
      flex-direction: column;
      border-right: 1px solid rgba(255, 255, 255, 0.34);
      background: rgba(255, 255, 255, 0.88);
      overflow: hidden;
      /* 高于 Leaflet 右下角控件（.leaflet-bottom 等 z-index:1000），侧栏打开时需盖住缩放/定位等按钮 */
      z-index: 1200;
      box-shadow: 0 12px 40px rgba(15, 23, 42, 0.26);
      backdrop-filter: blur(12px) saturate(0.95);
      -webkit-backdrop-filter: blur(12px) saturate(0.95);
      transform: translateX(-102%);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: transform 260ms ease, opacity 220ms ease, visibility 0ms linear 260ms;
    }

    .profile-panel::before {
      content: none;
    }

    .profile-panel::after {
      content: none;
    }

    .profile-panel.is-open {
      transform: translateX(0);
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transition: transform 260ms ease, opacity 220ms ease;
    }

    /* 嵌入右侧发现栏时：取消左侧滑入定位，随右侧堆栈层动画 */
    .profile-panel.sidebar-profile-host {
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      width: 100%;
      max-width: none;
      border-right: 0;
      box-shadow: none;
      transform: none !important;
      opacity: 1 !important;
      visibility: visible !important;
      pointer-events: auto !important;
      transition: none !important;
      z-index: 1;
    }

    .profile-panel.sidebar-profile-host .profile-panel-close {
      display: none !important;
    }

    .profile-panel-header {
      position: relative;
      z-index: 1;
      padding: 14px 14px 10px;
      border-bottom: 0;
      background: transparent;
      backdrop-filter: none;
      flex: 0 0 auto;
      transition: opacity 0.28s ease, visibility 0.28s ease, max-height 0.28s ease, padding 0.28s ease,
        margin 0.28s ease;
    }

    .profile-panel-close {
      position: absolute;
      /* 精灵详情 / 作品详情共用同一锚点，避免切换时跳动 */
      top: 28px;
      right: 6px;
      width: 44px;
      height: 44px;
      padding: 0;
      border: 0;
      border-radius: 10px;
      background: transparent;
      color: #334155;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 5;
      -webkit-tap-highlight-color: transparent;
      transform: translateY(-50%);
    }

    /* 从作品详情推入其他个人主页时：关闭钮变为返回 */
    .profile-panel-close.is-back {
      left: 2px;
      right: auto;
      color: var(--color-accent);
      z-index: 20;
    }

    .profile-panel-close:hover {
      background: rgba(100, 116, 139, 0.18);
      color: var(--color-text-primary);
    }

    .profile-panel-close.is-back:hover {
      color: var(--color-accent);
    }

    .profile-panel-close:active {
      background: rgba(100, 116, 139, 0.28);
      color: var(--color-text-primary);
    }

    .profile-panel-close.is-back:active {
      color: var(--color-accent);
    }

    .profile-panel-close svg {
      display: block;
    }

    /* 作品详情 → 他人主页：入场 / 返回出场 */
    @keyframes woodsper-spirit-push-enter {
      from {
        transform: translateX(100%);
        opacity: 0.92;
      }
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }

    @keyframes woodsper-spirit-push-exit {
      from {
        transform: translateX(0);
        opacity: 1;
      }
      to {
        transform: translateX(100%);
        opacity: 0.92;
      }
    }

    /* 整页入场/出场（头图 + 主内容），关闭/返回钮保持不动 */
    .profile-panel.is-spirit-push-enter .profile-panel-header,
    .profile-panel.is-spirit-push-enter .profile-panel-main {
      animation: woodsper-spirit-push-enter 0.34s cubic-bezier(0.32, 0.72, 0, 1) both;
    }

    .profile-panel.is-spirit-push-exit .profile-panel-header,
    .profile-panel.is-spirit-push-exit .profile-panel-main {
      animation: woodsper-spirit-push-exit 0.34s cubic-bezier(0.32, 0.72, 0, 1) both;
    }

    @media (prefers-reduced-motion: reduce) {
      .profile-panel.is-spirit-push-enter .profile-panel-header,
      .profile-panel.is-spirit-push-enter .profile-panel-main,
      .profile-panel.is-spirit-push-exit .profile-panel-header,
      .profile-panel.is-spirit-push-exit .profile-panel-main {
        animation: none !important;
      }
    }

    /* 侧栏：列表 ↔ 作品详情 横向堆栈（类 iOS NavigationStack 侧滑） */
    .profile-panel-stack {
      position: relative;
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .profile-panel-stack-track {
      display: flex;
      flex: 1;
      min-height: 0;
      width: 100%;
      position: relative;
    }

    @media (prefers-reduced-motion: reduce) {
      .profile-panel-pane--detail {
        transition: none !important;
      }
      .profile-panel-header {
        transition: none;
      }
    }

    .profile-panel-pane {
      width: 100%;
      flex-shrink: 0;
      min-height: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .profile-panel-pane--list {
      flex: 1;
      min-height: 0;
    }

    .profile-panel-pane--detail {
      position: absolute;
      inset: 0;
      width: 100%;
      z-index: 4;
      background: rgba(255, 255, 255, 0.88);
      backdrop-filter: blur(12px) saturate(0.95);
      -webkit-backdrop-filter: blur(12px) saturate(0.95);
      transform: translateX(100%);
      transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.34s;
      pointer-events: none;
      visibility: hidden;
    }

    .profile-panel.is-work-detail .profile-panel-pane--detail {
      transform: translateX(0);
      pointer-events: auto;
      visibility: visible;
      transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0s;
      /* 高于 .profile-panel-tabs (z-index:10)，避免个人主页 Tab 盖在详情上 */
      z-index: 12;
    }

    /* 退场中：资料头/Tab 仍隐藏，详情层保持盖住整页再滑出 */
    .profile-panel.is-work-detail-closing .profile-panel-pane--detail {
      pointer-events: none;
      visibility: visible;
      z-index: 12;
      transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.34s;
    }

    /* 作品/物语/计划详情：隐藏个人主页 Tab（作品、物语等） */
    .profile-panel.is-work-detail .profile-panel-tabs,
    .profile-panel.is-work-detail-closing .profile-panel-tabs {
      display: none !important;
    }

    .profile-panel-detail-nav {
      position: relative;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      height: 56px;
      min-height: 56px;
      padding: 0 48px;
      border-bottom: 1px solid rgba(148, 163, 184, 0.26);
      background: transparent;
    }

    .woodsper-profile-back {
      position: absolute;
      left: 2px;
      top: 50%;
      transform: translateY(-50%);
      width: 44px;
      height: 44px;
      margin: 0;
      padding: 0;
      border: 0;
      border-radius: 10px;
      background: transparent;
      color: var(--color-accent);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      -webkit-tap-highlight-color: transparent;
    }

    .woodsper-profile-back:hover {
      background: rgba(0, 0, 0, 0.04);
    }

    .woodsper-profile-back:active {
      background: rgba(0, 0, 0, 0.08);
    }

    .woodsper-profile-back svg {
      display: block;
    }

    .profile-panel-detail-title {
      font-size: 17px;
      font-weight: 600;
      color: #0f172a;
      text-align: center;
      max-width: 70%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      pointer-events: none;
    }

    .profile-panel-detail-scroll {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding: 12px 14px 16px;
      background: transparent;
    }

    .profile-panel.is-work-detail .profile-panel-header,
    .profile-panel.is-work-detail-closing .profile-panel-header {
      display: none;
    }

    /* 有返回栈时抬高返回钮，避免被详情层盖住 */
    .profile-panel-close.is-back {
      z-index: 20;
    }

    /* 地图计划：复用左侧栏，仅列表/详情，不展示精灵资料头 */
    .profile-panel.is-map-plan-mode:not(.is-work-detail) .profile-panel-header {
      display: none !important;
    }

    .profile-panel.is-map-plan-mode .profile-panel-tabs {
      display: none !important;
    }

    .profile-panel.is-map-plan-mode .profile-panel-content {
      padding-top: 8px;
    }

    .map-plan-list-head {
      font-size: var(--font-size-lg);
      font-weight: var(--font-weight-semibold);
      color: var(--color-text-primary);
      padding: 4px 2px 12px;
    }

    /* 计划状态标签（对齐 iOS SimplePlanCardView：10pt + 25% 底色） */
    .plan-status-badge {
      display: inline-flex;
      align-items: center;
      flex: 0 0 auto;
      font-size: 10px;
      font-weight: 500;
      line-height: 1.2;
      padding: 2px 6px;
      border-radius: 4px;
      white-space: nowrap;
    }

    .plan-status-badge--completed {
      background: rgba(34, 197, 94, 0.25);
      color: #16a34a;
    }

    .plan-status-badge--in-progress {
      background: rgba(59, 130, 246, 0.25);
      color: #2563eb;
    }

    .plan-status-badge--expired {
      background: rgba(239, 68, 68, 0.25);
      color: #dc2626;
    }

    .plan-status-badge--upcoming {
      background: rgba(245, 158, 11, 0.25);
      color: #d97706;
    }

    .map-plan-detail-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 8px;
    }

    .map-plan-item-title {
      font-size: var(--font-size-sm);
      font-weight: var(--font-weight-semibold);
      color: var(--color-text-primary);
      line-height: 1.35;
    }

    .map-plan-item-time {
      font-size: var(--font-size-xs);
      color: var(--color-text-secondary);
    }

    .map-plan-item-location {
      font-size: var(--font-size-xs);
      color: var(--color-text-secondary);
      margin-top: 4px;
    }

    .map-plan-item-detail {
      font-size: var(--font-size-sm);
      color: var(--color-text-primary);
      line-height: 1.45;
      margin-top: 6px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .map-plan-detail-author {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      margin-bottom: var(--spacing-lg);
      padding: 10px 12px;
      border: 1px solid rgba(147, 51, 234, 0.18);
      border-radius: var(--radius-base);
      background: rgba(147, 51, 234, 0.06);
      cursor: pointer;
      text-align: left;
      transition: background 0.18s ease, border-color 0.18s ease;
    }

    .map-plan-detail-author:hover {
      background: rgba(147, 51, 234, 0.1);
      border-color: rgba(147, 51, 234, 0.28);
    }

    .map-plan-detail-author-text {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .map-plan-detail-author-name {
      font-size: var(--font-size-base);
      font-weight: var(--font-weight-semibold);
      color: var(--color-text-primary);
    }

    .map-plan-detail-author-hint {
      font-size: var(--font-size-xs);
      color: var(--color-text-secondary);
    }

    .map-plan-detail-author-chevron {
      flex: 0 0 auto;
      color: var(--color-text-tertiary);
    }

    .map-atlas-item-card,
    .map-spirit-item-card {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 10px 8px;
      border-radius: 12px;
      cursor: pointer;
      transition: background 0.15s ease;
    }

    .map-atlas-item-card:hover,
    .map-spirit-item-card:hover {
      background: rgba(148, 163, 184, 0.12);
    }

    .map-atlas-item-badge {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      flex-shrink: 0;
      color: #fff;
    }

    .map-atlas-item-body,
    .map-spirit-item-body {
      flex: 1;
      min-width: 0;
    }

    .map-atlas-item-title,
    .map-spirit-item-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--color-text-primary);
      line-height: 1.35;
      margin-bottom: 2px;
    }

    .map-atlas-item-meta,
    .map-spirit-item-place {
      font-size: 11px;
      color: var(--color-text-secondary);
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      align-items: center;
    }

    .map-atlas-item-tags,
    .map-spirit-item-intro {
      margin-top: 4px;
      font-size: 11px;
      color: var(--color-text-tertiary);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .map-spirit-item-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      overflow: hidden;
      background: #2563eb;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      flex-shrink: 0;
    }

    .map-spirit-item-avatar img {
      width: 100%;
      height: 100%;
      min-width: 0;
      min-height: 0;
      object-fit: cover;
    }

    .map-atlas-detail-title {
      font-size: 18px;
      font-weight: 700;
      color: var(--color-text-primary);
      margin-bottom: 8px;
      line-height: 1.35;
    }

    .map-atlas-detail-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 10px;
    }

    .map-atlas-detail-summary {
      font-size: 14px;
      color: var(--color-text-primary);
      line-height: 1.55;
      white-space: pre-wrap;
      margin-bottom: 10px;
    }

    .map-atlas-detail-loc,
    .map-atlas-detail-addr,
    .map-atlas-detail-created {
      font-size: 12px;
      color: var(--color-text-secondary);
      margin-top: 6px;
    }

    .atlas-tag-chip {
      display: inline-flex;
      align-items: center;
      padding: 3px 8px;
      background: rgba(148, 163, 184, 0.14);
      color: #64748b;
      font-size: 11px;
      font-weight: 500;
      border-radius: 999px;
    }

    .profile-panel-main {
      position: relative;
      z-index: 1;
      min-height: 0;
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      background: transparent;
    }

    .profile-panel-tabs {
      position: sticky;
      top: 0;
      z-index: 10;
      display: flex;
      gap: 22px;
      padding: 8px 14px 8px;
      border-bottom: 1px solid rgba(148, 163, 184, 0.26);
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      flex: 0 0 auto;
    }

    .profile-panel-tab {
      position: relative;
      border: 0;
      border-radius: 0;
      padding: 0 4px 3px;
      font-size: 15px;
      font-weight: 700;
      color: #475569;
      background: transparent;
      cursor: pointer;
      transition: color 0.2s ease;
    }

    .profile-panel-tab::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 4px;
      right: 4px;
      height: 2px;
      border-radius: 1px;
      background: #0f172a;
      transform: scaleX(0);
      transition: transform 0.2s ease;
    }

    .profile-panel-tab.is-active {
      color: #0f172a;
      background: transparent;
    }

    .profile-panel-tab.is-active::after {
      transform: scaleX(1);
    }

    .profile-panel-tab:hover {
      color: #0f172a;
    }

    .profile-panel-content {
      min-height: 0;
      flex: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding: 10px 14px 16px;
      background: transparent;
    }

    .profile-panel-empty {
      color: #64748b;
      font-size: 13px;
      line-height: 1.5;
      padding: 10px 0;
      text-align: center;
    }

    /* Text Truncation Classes */
    .thing-item-truncate-single {
      display: block;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }

    .thing-item-truncate-multi {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 1.4;
      max-height: 2.8em; /* 2 lines × 1.4 line-height */
    }

    .thing-item-content {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 1.4;
      max-height: 2.8em; /* 2 lines × 1.4 line-height */
    }

    /* Tooltip for truncated text */
    .thing-item-tooltip {
      position: fixed;
      z-index: 10000;
      max-width: 300px;
      padding: 8px 12px;
      background: rgba(15, 23, 42, 0.95);
      color: #ffffff;
      font-size: 13px;
      line-height: 1.5;
      border-radius: 6px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.2s ease;
      word-wrap: break-word;
      white-space: normal;
    }

    .thing-item-tooltip.is-visible {
      opacity: 1;
    }

    #map {
      position: relative;
      width: 100%;
      height: 100%;
    }

    /* Deep-night theme: apply filter to raster tiles */
    #map.woodsper-tile-filter .leaflet-tile {
      filter: var(--woodsper-tile-filter, none);
    }

    /* Optional tint overlay for precise brand color tone */
    #map.woodsper-map-tint::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: var(--woodsper-map-tint-color, transparent);
      opacity: var(--woodsper-map-tint-opacity, 0);
      mix-blend-mode: multiply;
      z-index: 450;
    }

    body.woodsper-minimal .header {
      display: none;
    }

    /* 极简模式会隐藏顶栏，下载入口放在地图固定层，避免看不到 */
    .header-app-store.woodsper-app-store-fab {
      /* 在 woodsper-top-actions 容器内时不使用 fixed 定位 */
      position: relative;
      box-sizing: border-box;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: auto;
      height: 28px;
      min-height: 28px;
      max-height: 28px;
      min-width: 56px;
      padding: 0 8px;
      margin: 0;
      font-size: 10px;
      line-height: 1;
      box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
      align-self: center;
      flex-shrink: 0;
    }

    /* 顶部操作栏：包含地图/列表切换 + App Store 按钮 */
    .woodsper-top-actions {
      position: fixed;
      top: max(12px, env(safe-area-inset-top, 0px));
      right: calc(var(--woodsper-sidebar-offset, 0px) + max(12px, env(safe-area-inset-right, 0px)));
      z-index: 1100;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      transition: right var(--woodsper-map-control-shift-ms) var(--woodsper-map-control-shift-ease);
    }

    /* 视图模式切换：图标分段控件，风格对齐明暗主题切换 */
    .woodsper-top-actions .woodsper-view-mode-segment,
    .woodsper-view-mode-control .woodsper-view-mode-segment {
      display: inline-flex;
      align-items: stretch;
      gap: 4px;
      padding: 3px;
      box-sizing: border-box;
      height: 32px;
      min-height: 32px;
      background: var(--color-main-bg, #EDF3F8);
      border: 1px solid var(--control-border, rgba(148, 163, 184, 0.35));
      border-radius: 10px;
      box-shadow: var(--control-shadow, 0 10px 24px rgba(15, 23, 42, 0.18));
      align-self: center;
      flex-shrink: 0;
    }

    .woodsper-top-actions .woodsper-view-mode-btn,
    .woodsper-view-mode-control .woodsper-view-mode-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 100%;
      padding: 0;
      font-size: 0;
      background: transparent;
      border: none;
      border-radius: 7px;
      cursor: pointer;
      color: #64748b;
      transition: all 0.2s ease;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    .woodsper-top-actions .woodsper-view-mode-btn svg,
    .woodsper-view-mode-control .woodsper-view-mode-btn svg {
      width: 17px;
      height: 17px;
      display: block;
    }

    .woodsper-top-actions .woodsper-view-mode-btn:hover,
    .woodsper-view-mode-control .woodsper-view-mode-btn:hover {
      background: rgba(0, 0, 0, 0.05);
      color: #334155;
    }

    .woodsper-top-actions .woodsper-view-mode-btn.is-active,
    .woodsper-view-mode-control .woodsper-view-mode-btn.is-active {
      background: #ffffff;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
      color: #2563eb;
    }

    /* 地图顶部地址标签 */
    .woodsper-map-place-label {
      position: fixed;
      top: max(12px, env(safe-area-inset-top, 0px));
      left: 50%;
      transform: translateX(-50%);
      z-index: 1050;
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 8px 14px;
      height: 38px; /* 与顶部按钮高度对齐 */
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(8px);
      border-radius: 20px;
      box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
      font-size: 14px;
      font-weight: 500;
      color: #334155;
      max-width: 80vw;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      pointer-events: none;
    }

    .woodsper-map-place-label-icon {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      color: #2563eb;
    }

    .woodsper-map-place-label-text {
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .woodsper-map-place-label-spinner {
      flex-shrink: 0;
      width: 14px;
      height: 14px;
      border: 2px solid var(--color-accent-light, rgba(0, 122, 255, 0.2));
      border-top-color: var(--color-accent, #007AFF);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    .woodsper-map-place-label-spinner[hidden] {
      display: none;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* 搜索栏与顶部按钮垂直对齐 */
    .woodsper-search-layer {
      top: 0 !important;
      padding-top: 0 !important;
    }

    .global-search-bar {
      padding: 12px !important;
      padding-top: max(12px, env(safe-area-inset-top, 0px)) !important;
      background: transparent !important;
      transition: background 0.3s ease, backdrop-filter 0.3s ease;
      margin: 0 !important;
    }

    /* 侧边栏展开时显示搜索栏背景，延伸到顶部和左侧；与侧栏面板同材质 */
    .woodsper-sidebar:not(.collapsed) ~ .woodsper-search-layer .global-search-bar {
      background: var(--sidebar-panel-bg, rgba(255, 255, 255, 0.95)) !important;
      backdrop-filter: blur(12px) saturate(1.1) !important;
      -webkit-backdrop-filter: blur(12px) saturate(1.1) !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      border-radius: 0 !important;
    }

    /* 暗色模式的搜索栏背景 */
    html[data-theme="dark"] .woodsper-sidebar:not(.collapsed) ~ .woodsper-search-layer .global-search-bar {
      background: var(--sidebar-panel-bg, rgba(2, 9, 20, 0.96)) !important;
      backdrop-filter: blur(12px) saturate(1.1) !important;
      -webkit-backdrop-filter: blur(12px) saturate(1.1) !important;
    }

    /* 地图详情打开：搜索栏与详情层同材质，无缝贴合 */
    .map-layout:has(.woodsper-map-detail-layer.is-open) .global-search-bar {
      background: var(--sidebar-panel-bg, rgba(255, 255, 255, 0.95)) !important;
      backdrop-filter: blur(12px) saturate(0.95) !important;
      -webkit-backdrop-filter: blur(12px) saturate(0.95) !important;
    }
    html[data-theme="dark"] .map-layout:has(.woodsper-map-detail-layer.is-open) .global-search-bar {
      background: var(--sidebar-panel-bg, rgba(2, 9, 20, 0.96)) !important;
      backdrop-filter: blur(12px) saturate(0.95) !important;
      -webkit-backdrop-filter: blur(12px) saturate(0.95) !important;
    }

    .global-search-input-wrapper {
      height: 32px; /* 与顶部按钮高度对齐 */
      position: relative;
    }

    .global-search-input {
      height: 32px !important;
      padding: 6px 14px 6px 36px !important;
      font-size: 13px !important;
    }

    /* 搜索图标样式 */
    .global-search-input-wrapper::before {
      content: '';
      position: absolute;
      left: 11px;
      top: 50%;
      transform: translateY(-50%);
      width: 16px;
      height: 16px;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
      background-size: contain;
      background-repeat: no-repeat;
      pointer-events: none;
      z-index: 1;
    }

    html[data-theme="dark"] .global-search-input-wrapper::before {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0e0e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    }

    /* 隐藏原有的搜索按钮 */
    .global-search-btn {
      display: none !important;
    }

    /* 移除侧边栏边框 */
    .woodsper-sidebar {
      border-right: 0 !important;
    }

    /* 列表模式也显示顶部操作栏 */
    html[data-view-mode="browse"] .woodsper-top-actions {
      display: flex !important;
      visibility: visible !important;
      pointer-events: auto !important;
      z-index: 1200 !important;
    }

    /* 列表模式下的视图模式切换按钮 */
    html[data-view-mode="browse"] .woodsper-view-mode-segment {
      display: inline-flex !important;
      visibility: visible !important;
    }

    /* 列表模式下的下载按钮 */
    html[data-view-mode="browse"] #woodsper-app-store {
      display: inline-flex !important;
      visibility: visible !important;
    }

    /* 确保列表模式下顶部操作栏不被隐藏 */
    html[data-view-mode="browse"] .woodsper-top-actions * {
      visibility: visible !important;
    }

    /* 列表模式下显示浏览设置按钮 - 参考地图模式缩放按钮位置 */
    html[data-view-mode="browse"] .browse-settings-host {
      display: block !important;
      position: fixed !important;
      bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 8px)) !important;
      right: max(12px, env(safe-area-inset-right, 0px)) !important;
      z-index: 1100 !important;
    }

    html[data-view-mode="browse"] .browse-settings-host .woodsper-map-settings-control {
      position: relative !important;
    }

    /* 筛选面板样式 - 添加出现动画 */
    .woodsper-map-filter-panel,
    .woodsper-map-options-sheet {
      position: fixed !important;
      top: 50% !important;
      left: 50% !important;
      max-width: 500px;
      width: 90vw;
      max-height: 70vh;
      background: rgba(255, 255, 255, 0.98) !important;
      backdrop-filter: blur(12px);
      border-radius: 16px !important;
      box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3) !important;
      border: 1px solid rgba(148, 163, 184, 0.2) !important;
      z-index: 9999 !important;
      overflow: hidden;
      transform: translate(-50%, -50%) scale(0.9) !important;
      opacity: 0 !important;
      visibility: hidden !important;
      pointer-events: none !important;
      transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s !important;
    }

    .woodsper-map-filter-panel:not([hidden]),
    .woodsper-map-options-sheet:not([hidden]) {
      /* Keep base display visible but still hidden by opacity/visibility */
    }

    .woodsper-map-filter-panel.is-visible,
    .woodsper-map-options-sheet.is-visible {
      transform: translate(-50%, -50%) scale(1) !important;
      opacity: 1 !important;
      visibility: visible !important;
      pointer-events: auto !important;
      transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s !important;
    }

    .woodsper-map-filter-panel[hidden],
    .woodsper-map-options-sheet[hidden] {
      display: block !important;
    }

    /* 主题设置面板（小弹窗） - 在设置按钮左侧，垂直居中对齐 */
    .woodsper-theme-only-panel {
      position: absolute !important;
      top: 50% !important;
      left: auto !important;
      right: calc(100% + 8px) !important;
      bottom: auto !important;
      width: auto !important;
      max-width: none !important;
      padding: 4px !important;
      transform: translate(10px, -50%) scale(0.95) !important;
      opacity: 0 !important;
      visibility: hidden !important;
      pointer-events: none !important;
      transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s !important;
      transform-origin: right center !important;
      z-index: 10000 !important;
    }

    .woodsper-theme-only-panel:not([hidden]) {
      transform: translate(0, -50%) scale(1) !important;
      opacity: 1 !important;
      visibility: visible !important;
      pointer-events: auto !important;
      transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s !important;
    }

    .woodsper-theme-only-panel[hidden] {
      display: block !important;
    }

    /* 确保设置按钮容器不裁切面板 */
    .woodsper-map-settings-control {
      overflow: visible !important;
    }

    /* 设置按钮圆角 */
    .woodsper-map-filter-button,
    .woodsper-map-settings-button {
      border-radius: 12px !important;
    }

    /* 主题设置按钮样式 - 横向排列 */
    .woodsper-theme-toggle {
      display: flex !important;
      flex-direction: row !important;
      gap: 4px !important;
      padding: 4px !important;
      background: rgba(120, 120, 128, 0.16) !important;
      border-radius: 10px !important;
    }

    html[data-theme="dark"] .woodsper-theme-toggle {
      background: rgba(120, 120, 128, 0.24) !important;
    }

    .woodsper-theme-option {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 0 !important;
      padding: 6px 10px !important;
      background: transparent !important;
      border: none !important;
      border-radius: 8px !important;
      cursor: pointer !important;
      transition: all 0.2s ease !important;
      font-size: 0 !important;
      color: #64748b !important;
      min-width: 36px !important;
      height: 32px !important;
    }

    .woodsper-theme-option:hover {
      background: rgba(0, 0, 0, 0.05) !important;
      color: #334155 !important;
    }

    .woodsper-theme-option.is-active {
      background: white !important;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
      color: #2563eb !important;
    }

    html[data-theme="dark"] .woodsper-theme-option {
      color: #94a3b8 !important;
    }

    html[data-theme="dark"] .woodsper-theme-option:hover {
      background: rgba(255, 255, 255, 0.08) !important;
      color: #e0e0e0 !important;
    }

    html[data-theme="dark"] .woodsper-theme-option.is-active {
      background: rgba(21, 30, 40, 0.9) !important;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
      color: #0a84ff !important;
    }

    .woodsper-theme-option svg {
      width: 18px !important;
      height: 18px !important;
    }

    /* 隐藏主题按钮的文字，只显示图标 */
    .woodsper-theme-option span {
      display: none !important;
    }

    .woodsper-theme-option::before,
    .woodsper-theme-option::after {
      display: none !important;
    }

    /* 暗色模式筛选面板 */
    html[data-theme="dark"] .woodsper-map-filter-panel,
    html[data-theme="dark"] .woodsper-map-options-sheet {
      background: rgba(2, 9, 20, 0.98) !important;
      border: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    /* 筛选面板遮罩层 */
    .woodsper-map-options-backdrop {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 9998;
      backdrop-filter: blur(4px);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    }

    .woodsper-map-options-backdrop.is-visible {
      opacity: 1;
      visibility: visible;
      transition: opacity 0.25s ease, visibility 0s linear 0s;
    }

    /* 筛选面板内的按钮和图标 */
    .woodsper-map-layer-tile,
    .woodsper-map-options-chip,
    .woodsper-map-options-close {
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .woodsper-map-layer-tile svg,
    .woodsper-map-options-chip svg,
    .woodsper-map-options-close svg,
    .woodsper-map-options-header svg {
      width: 20px;
      height: 20px;
      fill: currentColor;
      display: block;
    }

    .woodsper-map-layer-tile-icon {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* 列表模式设置按钮 */
    .browse-settings-host button,
    .browse-filter-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .browse-settings-host svg,
    .browse-filter-btn svg {
      width: 20px;
      height: 20px;
      fill: currentColor;
      display: block;
    }

    /* 确保所有设置相关的图标都显示 */
    .woodsper-theme-option svg,
    .woodsper-map-options-title svg,
    button[aria-label] svg {
      display: block;
      fill: currentColor;
    }

    /* ==================== 过滤菜单完整样式 ==================== */
    .woodsper-map-options-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 20px;
      border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    }

    html[data-theme="dark"] .woodsper-map-options-header {
      border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .woodsper-map-options-title {
      font-size: 17px;
      font-weight: 600;
      color: #0f172a;
    }

    html[data-theme="dark"] .woodsper-map-options-title {
      color: #fefefe;
    }

    .woodsper-map-options-close {
      width: 32px;
      height: 32px;
      border: none;
      background: transparent;
      color: #64748b;
      cursor: pointer;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
    }

    .woodsper-map-options-close:hover {
      background: rgba(100, 116, 139, 0.1);
      color: #334155;
    }

    html[data-theme="dark"] .woodsper-map-options-close {
      color: #94a3b8;
    }

    html[data-theme="dark"] .woodsper-map-options-close:hover {
      background: rgba(255, 255, 255, 0.1);
      color: #e0e0e0;
    }

    .woodsper-map-options-body {
      padding: 16px 20px;
      max-height: calc(70vh - 120px);
      overflow-y: auto;
    }

    .woodsper-map-options-section {
      margin-bottom: 20px;
    }

    /* 图鉴标签section增加顶部间距 */
    .woodsper-map-options-section + .woodsper-map-options-section {
      margin-top: 24px;
    }

    .woodsper-map-options-section:last-child {
      margin-bottom: 0;
    }

    .woodsper-map-options-section-title {
      font-size: 14px;
      font-weight: 600;
      color: #64748b;
      margin-bottom: 12px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    html[data-theme="dark"] .woodsper-map-options-section-title {
      color: #94a3b8;
    }

    /* 图层瓦片按钮 */
    .woodsper-map-layer-tiles {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 6px;
    }

    .woodsper-map-layer-tile {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      padding: 8px 6px;
      background: rgba(248, 250, 252, 0.8);
      border: 2px solid rgba(148, 163, 184, 0.2);
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.2s ease;
      font-size: 11px;
      font-weight: 500;
      color: #64748b;
      min-height: 52px;
    }

    .woodsper-map-layer-tile:hover {
      background: rgba(241, 245, 249, 1);
      border-color: rgba(148, 163, 184, 0.3);
      color: #334155;
    }

    .woodsper-map-layer-tile.is-on,
    .woodsper-map-layer-tile[aria-pressed="true"] {
      background: rgba(37, 99, 235, 0.12);
      border-color: #3b82f6;
      color: #2563eb;
    }

    html[data-theme="dark"] .woodsper-map-layer-tile {
      background: rgba(21, 30, 40, 0.5);
      border-color: rgba(255, 255, 255, 0.1);
      color: #94a3b8;
    }

    html[data-theme="dark"] .woodsper-map-layer-tile:hover {
      background: rgba(28, 40, 54, 0.8);
      border-color: rgba(255, 255, 255, 0.15);
      color: #e0e0e0;
    }

    html[data-theme="dark"] .woodsper-map-layer-tile.is-on,
    html[data-theme="dark"] .woodsper-map-layer-tile[aria-pressed="true"] {
      background: rgba(10, 132, 255, 0.2);
      border-color: #0a84ff;
      color: #0a84ff;
    }

    .woodsper-map-layer-tile-icon {
      font-size: 24px;
    }

    /* 标签选择按钮 */
    .woodsper-map-options-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      margin: 4px;
      background: rgba(248, 250, 252, 0.8);
      border: 1px solid rgba(148, 163, 184, 0.2);
      border-radius: 8px;
      font-size: 13px;
      color: #64748b;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .woodsper-map-options-chip:hover:not(:disabled):not(.is-active) {
      background: rgba(241, 245, 249, 1);
      border-color: rgba(148, 163, 184, 0.3);
      color: #334155;
    }

    .woodsper-map-options-chip.is-active {
      background: #3b82f6;
      border-color: #3b82f6;
      color: white;
    }

    .woodsper-map-options-chip.is-active:hover:not(:disabled) {
      background: #2563eb;
      border-color: #2563eb;
      color: white;
    }

    /* 不可选的标签 - 暗色半透明 */
    .woodsper-map-options-chip.is-unavailable,
    .woodsper-map-options-chip:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }

    html[data-theme="dark"] .woodsper-map-options-chip {
      background: rgba(120, 120, 128, 0.28);
      border-color: transparent;
      color: #e0e0e0;
    }

    html[data-theme="dark"] .woodsper-map-options-chip:hover:not(:disabled):not(.is-active) {
      background: rgba(120, 120, 128, 0.36);
      color: #fefefe;
    }

    html[data-theme="dark"] .woodsper-map-options-chip.is-active {
      background: #0a84ff;
      border-color: #0a84ff;
      color: white;
    }

    html[data-theme="dark"] .woodsper-map-options-chip.is-active:hover:not(:disabled) {
      background: #409cff;
      border-color: #409cff;
      color: white;
    }

    html[data-theme="dark"] .woodsper-map-options-chip.is-unavailable,
    html[data-theme="dark"] .woodsper-map-options-chip:disabled {
      opacity: 0.3;
    }

    /* 排序分段控制器 */
    .woodsper-map-options-segment {
      position: relative;
      display: inline-flex;
      background: rgba(120, 120, 128, 0.16);
      border-radius: 10px;
      padding: 2px;
      gap: 2px;
    }

    html[data-theme="dark"] .woodsper-map-options-segment {
      background: rgba(120, 120, 128, 0.32);
    }

    .woodsper-map-options-segment-thumb {
      position: absolute;
      top: 2px;
      left: 2px;
      height: calc(100% - 4px);
      width: calc(50% - 2px);
      background: white;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
      transition: transform 0.25s ease;
      pointer-events: none;
    }

    html[data-theme="dark"] .woodsper-map-options-segment-thumb {
      background: rgba(21, 30, 40, 0.9);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    }

    .woodsper-map-options-segment[data-value="oldest"] .woodsper-map-options-segment-thumb {
      transform: translateX(100%);
    }

    .woodsper-map-options-segment-btn {
      position: relative;
      flex: 1;
      padding: 8px 16px;
      border: none;
      background: transparent;
      color: #64748b;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: color 0.2s ease;
      z-index: 1;
      min-width: 80px;
    }

    .woodsper-map-options-segment-btn:hover {
      color: #334155;
    }

    .woodsper-map-options-segment-btn.is-active {
      color: #2563eb;
    }

    html[data-theme="dark"] .woodsper-map-options-segment-btn {
      color: #94a3b8;
    }

    html[data-theme="dark"] .woodsper-map-options-segment-btn:hover {
      color: #e0e0e0;
    }

    html[data-theme="dark"] .woodsper-map-options-segment-btn.is-active {
      color: #fefefe;
    }

    /* 分类展开区域 */
    .woodsper-map-options-reveal {
      overflow: hidden;
      max-height: 0;
      opacity: 0;
      transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    .woodsper-map-options-reveal.is-open {
      max-height: 2000px;
      opacity: 1;
    }

    /* 底部按钮 */
    .woodsper-map-options-footer {
      padding: 12px 20px;
      border-top: 1px solid rgba(148, 163, 184, 0.2);
      background: rgba(248, 250, 252, 0.5);
    }

    html[data-theme="dark"] .woodsper-map-options-footer {
      border-top-color: rgba(255, 255, 255, 0.1);
      background: rgba(8, 18, 28, 0.5);
    }

    .woodsper-map-options-footer-row {
      display: flex;
      gap: 10px;
    }

    .woodsper-map-options-reset,
    .woodsper-map-options-done {
      flex: 1;
      padding: 10px 20px;
      border: none;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .woodsper-map-options-reset {
      background: rgba(239, 68, 68, 0.1);
      color: #dc2626;
      border: 1px solid rgba(239, 68, 68, 0.3);
    }

    .woodsper-map-options-reset:hover {
      background: rgba(239, 68, 68, 0.15);
      border-color: rgba(239, 68, 68, 0.5);
    }

    .woodsper-map-options-done {
      background: #3b82f6;
      color: white;
    }

    .woodsper-map-options-done:hover {
      background: #2563eb;
    }

    html[data-theme="dark"] .woodsper-map-options-reset {
      background: rgba(255, 69, 58, 0.2);
      color: #ff453a;
      border-color: rgba(255, 69, 58, 0.3);
    }

    html[data-theme="dark"] .woodsper-map-options-reset:hover {
      background: rgba(255, 69, 58, 0.3);
      border-color: rgba(255, 69, 58, 0.5);
    }

    html[data-theme="dark"] .woodsper-map-options-done {
      background: #0a84ff;
    }

    html[data-theme="dark"] .woodsper-map-options-done:hover {
      background: #409cff;
    }

    /* 调整图层瓦片大小 - 更小更紧凑 */
    .woodsper-map-layer-tiles {
      grid-template-columns: repeat(4, 1fr);
      gap: 6px;
    }

    .woodsper-map-layer-tile {
      padding: 8px 6px;
      font-size: 11px;
      min-height: 52px;
    }

    .woodsper-map-layer-tile-icon {
      font-size: 16px;
      margin-bottom: 2px;
    }

    .woodsper-map-layer-tile-label {
      line-height: 1.2;
    }

    /* 分类和标签chips已在上面统一定义 */

    /* 优化"图鉴标签不选表示全部标签"等提示文字 */
    .woodsper-map-options-section-title {
      font-size: 13px;
      font-weight: 600;
      color: #64748b;
      margin-bottom: 10px;
      text-transform: none;
      letter-spacing: 0;
    }

    html[data-theme="dark"] .woodsper-map-options-section-title {
      color: #94a3b8;
    }

    /* 添加按钮的 SVG 图标样式 */
    .woodsper-locate-button svg,
    .woodsper-random-explore-button svg,
    .woodsper-map-filter-button svg,
    .woodsper-map-settings-button svg {
      width: 20px;
      height: 20px;
      fill: currentColor;
      opacity: 0.95;
    }

    /* 过滤按钮特殊样式 - 地图模式的过滤按钮背景与其他控件一致 */
    .woodsper-map-filter-button {
      /* 背景由控件容器提供，按钮本身透明 */
      background: transparent !important;
    }

    .woodsper-map-filter-button:hover {
      background: rgba(59, 130, 246, 0.12) !important;
    }

    /* 地图模式：有过滤条件时图标填充淡蓝色 */
    .woodsper-map-filter-button.has-active-filter {
      background: transparent !important;
      color: #3b82f6 !important;
    }

    .woodsper-map-filter-button.has-active-filter:hover {
      background: rgba(59, 130, 246, 0.12) !important;
    }

    html[data-theme="dark"] .woodsper-map-filter-button.has-active-filter {
      background: transparent !important;
      color: #60a5fa !important;
    }

    html[data-theme="dark"] .woodsper-map-filter-button.has-active-filter:hover {
      background: rgba(96, 165, 250, 0.12) !important;
    }

    /* 列表模式的过滤按钮 - 透明背景 */
    .browse-filter-btn {
      background: transparent !important;
      color: #2563eb;
    }

    html[data-theme="dark"] .browse-filter-btn {
      color: #94a3b8;
    }

    .browse-filter-btn:hover {
      background: rgba(59, 130, 246, 0.12) !important;
      color: #334155;
    }

    html[data-theme="dark"] .browse-filter-btn:hover {
      background: rgba(96, 165, 250, 0.12) !important;
      color: #e0e0e0;
    }

    /* 列表模式：有过滤条件时图标填充淡蓝色，背景仍透明 */
    .browse-filter-btn.is-active {
      background: transparent !important;
      color: #3b82f6 !important;
    }

    .browse-filter-btn.is-active:hover {
      background: rgba(59, 130, 246, 0.12) !important;
    }

    html[data-theme="dark"] .browse-filter-btn.is-active {
      background: transparent !important;
      color: #60a5fa !important;
    }

    html[data-theme="dark"] .browse-filter-btn.is-active:hover {
      background: rgba(96, 165, 250, 0.12) !important;
    }

    /* 暗色模式下普通状态的颜色 */
    html[data-theme="dark"] .woodsper-map-filter-button {
      color: #94a3b8;
    }

    html[data-theme="dark"] .woodsper-map-filter-button:hover {
      color: #e0e0e0;
    }

    body:not(.woodsper-minimal) .woodsper-app-store-fab {
      display: none;
    }

    .leaflet-bottom.leaflet-right {
      margin-bottom: 10px;
      margin-right: calc(var(--woodsper-sidebar-offset, 0px) + 10px);
      transition: margin-right var(--woodsper-map-control-shift-ms) var(--woodsper-map-control-shift-ease);
    }

    .leaflet-top.leaflet-right {
      margin-right: calc(var(--woodsper-sidebar-offset, 0px) + 10px);
      transition: margin-right var(--woodsper-map-control-shift-ms) var(--woodsper-map-control-shift-ease);
    }

    .leaflet-control-zoom,
    .woodsper-locate-control,
    .woodsper-random-explore-control,
    .woodsper-map-settings-control,
    .woodsper-map-filter-control {
      border: 0 !important;
      border-radius: 12px !important;
      overflow: visible !important;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18) !important;
      background: rgba(255, 255, 255, 0.95) !important;
      backdrop-filter: blur(8px);
    }

    .leaflet-control-zoom a {
      width: 42px !important;
      height: 42px !important;
      line-height: 42px !important;
      font-size: 22px !important;
      color: #2563eb !important;
      border: 0 !important;
      background: transparent !important;
      border-radius: 12px !important;
      transition: all 0.2s ease !important;
    }

    .leaflet-control-zoom a:hover {
      background: rgba(59, 130, 246, 0.12) !important;
      color: #1d4ed8 !important;
    }

    .leaflet-control-zoom a:first-child {
      border-bottom: 1px solid rgba(148, 163, 184, 0.35) !important;
      border-radius: 12px 12px 0 0 !important;
    }

    .leaflet-control-zoom a:last-child {
      border-radius: 0 0 12px 12px !important;
    }

    .woodsper-locate-button,
    .woodsper-random-explore-button,
    .woodsper-map-filter-button,
    .woodsper-map-settings-button {
      width: 42px;
      height: 42px;
      border: 0;
      background: transparent;
      color: #2563eb;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 12px;
      transition: all 0.2s ease;
    }

    .woodsper-locate-button:hover,
    .woodsper-random-explore-button:hover,
    .woodsper-map-filter-button:hover,
    .woodsper-map-settings-button:hover {
      background: rgba(59, 130, 246, 0.12);
      color: #1d4ed8;
    }

    /* 确保所有地图控件按钮的 SVG 都显示 */
    .leaflet-control button svg,
    .leaflet-control a svg {
      display: block;
      fill: currentColor;
    }

    /* All popups: override Leaflet default white background with main background */
    .leaflet-popup-content-wrapper {
      background: transparent !important;
      border-radius: 12px !important;
      box-shadow: none !important;
      padding: 0 !important;
    }
    .leaflet-popup-content {
      margin: 0 !important;
    }
    .leaflet-popup-tip {
      background: #d6e4f0 !important;
      box-shadow: 0 4px 12px rgba(0,0,0,.08);
    }

    /* Keep locate popup tip visually connected with its card body */
    .woodsper-locate-popup .leaflet-popup-tip {
      background: #ffffff !important;
      box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    }
    .leaflet-popup-close-button {
      color: #64748b !important;
      font-size: 18px !important;
      top: 6px !important;
      right: 8px !important;
    }

    /* Spirit marker icon: reset Leaflet default divIcon styles */
    .woodsper-spirit-icon {
      background: transparent !important;
      border: none !important;
      overflow: visible !important;
    }
    .woodsper-spirit-icon.leaflet-marker-icon {
      overflow: visible !important;
    }

    .woodsper-spirit-pin {
      transform-origin: 50% 100%;
      transition: transform 220ms ease, filter 220ms ease;
      will-change: transform;
    }

    .woodsper-spirit-pin.is-selected {
      transform: scale(1.28);
      filter:
        drop-shadow(0 4px 8px rgba(15, 23, 42, 0.28))
        drop-shadow(0 14px 24px rgba(15, 23, 42, 0.36));
    }

    .woodsper-spirit-ring {
      border-radius: 50%;
      overflow: hidden;
      /* Force circular clipping under transformed/filtered states. */
      clip-path: circle(50% at 50% 50%);
      transition: border-color 220ms ease, box-shadow 220ms ease;
    }

    .woodsper-spirit-avatar {
      border-radius: inherit;
    }

    .woodsper-spirit-pin.is-selected .woodsper-spirit-ring {
      border-color: #ffffff !important;
      box-shadow: none !important;
    }

    .woodsper-spirit-pin.is-selected .woodsper-spirit-arrow {
      fill: #ffffff !important;
    }

    .leaflet-control-attribution {
      display: none !important;
    }


    /* Mobile Responsive Styles */
    @media (max-width: 768px) {
      /* Profile Panel - Full Width on Mobile */
      .profile-panel {
        width: 100%;
        max-width: 100%;
        border-right: 0;
      }

      /* Header - Adjust spacing for mobile */
      .profile-panel-header {
        padding: 12px 12px 8px;
      }

      /* Close Button - Ensure touch-friendly size */
      .profile-panel-close {
        width: 44px;
        height: 44px;
        right: 4px;
        top: 26px;
      }

      /* Tabs - Adjust for mobile */
      .profile-panel-tabs {
        padding: 6px 12px 6px;
        gap: 16px;
      }

      .profile-panel-tab {
        font-size: 14px;
        padding: 10px 3px 3px;
        min-height: 44px;
        box-sizing: border-box;
        display: flex;
        align-items: flex-end;
        justify-content: center;
      }

      .profile-panel-tab::after {
        left: 3px;
        right: 3px;
      }

      /* Content Area - Tighter spacing */
      .profile-panel-content {
        padding: 8px 12px 14px;
      }

      /* Goal Groups - Ensure adequate touch targets on mobile */
      .goal-group-header {
        min-height: 44px !important;
        padding: 10px 12px !important;
      }

      .goal-group-chevron {
        /* Ensure smooth animation on mobile */
        will-change: transform;
      }

      /* Detail View Navigation */
      .profile-panel-detail-nav {
        height: 52px;
        min-height: 52px;
        padding: 0 44px;
      }

      .woodsper-profile-back {
        width: 44px;
        height: 44px;
        left: 0;
      }

      .profile-panel-detail-title {
        font-size: 16px;
      }

      .profile-panel-detail-scroll {
        padding: 10px 12px 14px;
      }

      /* Typography - Slightly smaller for mobile */
      .title {
        font-size: 16px;
      }

      .subtitle {
        font-size: 12px;
      }

      /* Empty State */
      .profile-panel-empty {
        font-size: 12px;
        padding: 8px 0;
        text-align: center;
      }

      /* Thing Items - Adjust for mobile horizontal layout */
      .thing-item-content {
        font-size: 12px;
        line-height: 1.4;
        max-height: 2.8em; /* 2 lines × 1.4 line-height */
        -webkit-line-clamp: 2;
      }

      .thing-item-truncate-multi {
        font-size: 12px;
        line-height: 1.4;
        max-height: 2.8em; /* 2 lines × 1.4 line-height */
        -webkit-line-clamp: 2;
      }

      /* Tooltip - Adjust for mobile */
      .thing-item-tooltip {
        max-width: 260px;
        font-size: 12px;
        padding: 6px 10px;
      }

      /* Map Controls - Adjust positioning for mobile */
      .leaflet-bottom.leaflet-right {
        margin-bottom: calc(var(--sidebar-mobile-tabbar-height, 58px) + env(safe-area-inset-bottom, 0px) + 10px);
        margin-right: 8px;
      }

      .leaflet-control-zoom,
      .woodsper-locate-control {
        border-radius: 10px !important;
      }

      .leaflet-control-zoom a,
      .woodsper-locate-button {
        width: 44px !important;
        height: 44px !important;
        line-height: 44px !important;
      }

      /* App Store FAB - Adjust for mobile safe areas */
      /* 注意：容器内按钮是 relative 定位，不能再用 top/right 偏移，
         否则会被推下 10px、左移 10px，导致与模式切换不居中且重叠 */
      .woodsper-top-actions .woodsper-app-store-fab {
        top: auto;
        right: auto;
      }
      .woodsper-app-store-fab {
        font-size: 10px;
        padding: 3px 8px;
      }

      /* 小屏幕下搜索框样式调整 */
      .global-search-bar {
        padding: max(10px, env(safe-area-inset-top, 0px)) 10px 10px !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
      }
      /* 侧栏展开/详情打开给小屏搜索栏铺的 #EDF3F8 底也去掉，保证透明 */
      .woodsper-sidebar:not(.collapsed) ~ .woodsper-search-layer .global-search-bar,
      .map-layout:has(.woodsper-map-detail-layer.is-open) .global-search-bar {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
      }

      /* 小屏幕下搜索框和按钮垂直对齐 */
      .global-search-input-wrapper {
        height: 32px;
        max-width: 280px;
      }

      .global-search-input {
        height: 32px !important;
        padding: 6px 14px 6px 36px !important;
        font-size: 13px !important;
      }

      /* 小屏幕下地址显示栏移到搜索栏下方，靠左显示 */
      .woodsper-map-place-label {
        top: calc(max(10px, env(safe-area-inset-top, 0px)) + 32px + 10px);
        left: 10px;
        right: auto;
        transform: none;
        height: 30px;
        padding: 5px 10px;
        font-size: 12px;
        max-width: calc(100vw - 20px);
      }

      /* 小屏幕下：简单直接地设置宽度和间距 */
      .woodsper-top-actions {
        top: max(10px, env(safe-area-inset-top, 0px));
        right: 10px;
        gap: 4px;
        width: auto;
      }

      .woodsper-view-mode-segment {
        width: 72px;
        height: 32px;
        padding: 2px;
        gap: 2px;
        margin-right: 8px;
      }

      .woodsper-view-mode-btn {
        width: 32px;
        height: 28px;
      }

      .woodsper-app-store-fab,
      #woodsper-app-store {
        width: auto !important;
        min-width: 56px !important;
        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        line-height: 1;
      }

      /* Header - Mobile adjustments */
      .header {
        padding: 12px 14px;
      }

      .header-row {
        gap: 12px;
      }

      .header-app-store {
        font-size: 11px;
        padding: 5px 9px;
      }

      .nav {
        margin-top: 8px;
        gap: 10px;
        font-size: 12px;
      }
    }
    
    /* Spin animation for refresh button (Task 9.2) */
    @keyframes spin {
      from {
        transform: rotate(0deg);
      }
      to {
        transform: rotate(360deg);
      }
    }

    /* 计划气泡样式 */
    .woodsper-plan-bubble {
      background: transparent !important;
      border: none !important;
    }
    
    .plan-bubble-wrapper {
      position: relative;
      display: inline-block;
      padding-bottom: 8px;
    }
    
    .plan-bubble-container {
      position: relative;
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 5px 8px 5px 5px;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 255, 0.98) 100%);
      border: 1.5px solid rgba(147, 51, 234, 0.4);
      border-radius: 12px;
      box-shadow: 0 3px 12px rgba(147, 51, 234, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
      max-width: 240px;
      transition: all 0.2s ease;
      cursor: pointer;
    }
    
    .plan-bubble-container:hover {
      border-color: rgba(147, 51, 234, 0.6);
      box-shadow: 0 4px 16px rgba(147, 51, 234, 0.25), 0 2px 4px rgba(0, 0, 0, 0.1);
      transform: translateY(-1px);
    }
    
    /* 使用伪元素创建箭头，与气泡边框融为一体 */
    .plan-bubble-container::before,
    .plan-bubble-container::after {
      content: '';
      position: absolute;
      bottom: -8px;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 0;
      border-style: solid;
      transition: border-color 0.2s ease;
    }
    
    /* 外层箭头（边框） - 与气泡边框颜色完全一致 */
    .plan-bubble-container::before {
      border-width: 8.5px 7px 0 7px;
      border-color: rgba(147, 51, 234, 0.4) transparent transparent transparent;
      bottom: -8.5px;
    }
    
    /* 内层箭头（填充） */
    .plan-bubble-container::after {
      border-width: 7.5px 6px 0 6px;
      border-color: rgba(255, 255, 255, 0.98) transparent transparent transparent;
      bottom: -7px;
      z-index: 1;
    }
    
    .plan-bubble-container:hover::before {
      border-top-color: rgba(147, 51, 234, 0.6);
    }

    .plan-bubble-avatar {
      width: 34px;
      height: 34px;
      border-radius: 7px;
      overflow: hidden;
      flex-shrink: 0;
      border: 0.75px solid rgba(147, 51, 234, 0.25);
      background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
      z-index: 2;
    }

    .plan-bubble-avatar img {
      width: 100%;
      height: 100%;
      min-width: 0;
      min-height: 0;
      object-fit: cover;
    }

    .plan-bubble-content {
      flex: 1;
      min-width: 0;
      z-index: 2;
    }

    .plan-bubble-title {
      font-size: 13px;
      font-weight: 600;
      color: #1e293b;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 1.4;
    }

    .plan-bubble-count {
      position: absolute;
      top: -6px;
      right: -6px;
      min-width: 20px;
      height: 20px;
      padding: 0 5px;
      background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
      color: white;
      font-size: 10px;
      font-weight: 700;
      border-radius: 10px;
      border: 2px solid white;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 6px rgba(147, 51, 234, 0.35);
      z-index: 3;
    }

    /* 计划圆点样式 */
    .woodsper-plan-dot {
      background: transparent !important;
      border: none !important;
    }

    .plan-dot {
      background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
      border: 2.5px solid rgba(255, 255, 255, 0.9);
      border-radius: 50%;
      box-shadow: 0 3px 8px rgba(147, 51, 234, 0.35), 0 1px 3px rgba(0, 0, 0, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .plan-dot:hover {
      transform: scale(1.15);
      box-shadow: 0 4px 12px rgba(147, 51, 234, 0.45), 0 2px 4px rgba(0, 0, 0, 0.15);
      border-width: 3px;
    }

    /* 图鉴气泡 / 圆点 */
    .woodsper-atlas-bubble,
    .woodsper-atlas-dot {
      background: transparent !important;
      border: none !important;
    }

    .atlas-bubble-wrapper {
      position: relative;
      display: inline-block;
      padding-bottom: 8px;
    }

    .atlas-bubble-container {
      position: relative;
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 4px 8px 4px 4px;
      background: rgba(255, 255, 255, 0.96);
      border: 1.5px solid rgba(56, 142, 174, 0.4);
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
      max-width: 180px;
      cursor: pointer;
    }

    .atlas-bubble-container::before,
    .atlas-bubble-container::after {
      content: '';
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 0;
      border-style: solid;
    }

    .atlas-bubble-container::before {
      border-width: 8.5px 7px 0 7px;
      border-color: var(--atlas-arrow-border, rgba(56, 142, 174, 0.4)) transparent transparent transparent;
      bottom: -8.5px;
    }

    .atlas-bubble-container::after {
      border-width: 7.5px 6px 0 6px;
      border-color: rgba(255, 255, 255, 0.96) transparent transparent transparent;
      bottom: -7px;
      z-index: 1;
    }

    .atlas-bubble-badge {
      width: 22px;
      height: 22px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      flex-shrink: 0;
      color: #fff;
    }

    .atlas-bubble-title {
      font-size: 12px;
      font-weight: 600;
      color: #1e293b;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 1.3;
      min-width: 0;
    }

    .atlas-bubble-count {
      flex-shrink: 0;
      min-width: 18px;
      height: 18px;
      padding: 0 5px;
      border-radius: 9px;
      background: #0f172a;
      color: #fff;
      font-size: 10px;
      font-weight: 800;
      line-height: 18px;
      text-align: center;
    }

    .atlas-dot {
      border: 2px solid rgba(255, 255, 255, 0.92);
      border-radius: 6px;
      box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
      cursor: pointer;
      color: #fff;
      font-size: 9px;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .atlas-map-popup-title {
      font-size: 14px;
      font-weight: 700;
      color: #0f172a;
      margin-bottom: 4px;
    }

    .atlas-map-popup-meta {
      font-size: 12px;
      font-weight: 600;
      margin-bottom: 4px;
    }

    .atlas-map-popup-loc {
      font-size: 11px;
      color: #64748b;
      margin-bottom: 6px;
    }

    .atlas-map-popup-summary {
      font-size: 12px;
      color: #334155;
      line-height: 1.45;
    }

/* =====================================================================
   个人主页（资料面板）Header & 列表卡片 — 对齐 iOS 设计标准
   ===================================================================== */

/* —— Header：头像 + 昵称 + 类型徽章 + 签名 + 故事 + 元信息 —— */
.profile-panel-identity {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.profile-panel-identity-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}

.profile-panel-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.profile-panel-nickname {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.profile-panel-id-line {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--color-text-hint);
}

.profile-panel-id-line .profile-panel-type-badge {
  margin-right: 6px;
}

.woodsper-id-copy-btn.profile-panel-id-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-text-hint);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.woodsper-id-copy-btn.profile-panel-id-copy:hover {
  background: rgba(100, 116, 139, 0.18);
  color: var(--color-text-secondary);
}

.profile-panel-type-badge {
  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-text-secondary);
  background: var(--color-module-secondary, #f1f5f9);
  padding: 4px 8px;
  border-radius: 6px;
}

.profile-panel-intro {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

/* 故事（Ta 的故事）折叠区 → iOS 信息卡片 */
.woodsper-story-section.profile-panel-story {
  margin: 12px 0 0;
  padding: 12px;
  background: var(--color-module);
  border: 1px solid var(--color-separator);
  border-radius: 12px;
}

.profile-panel-story-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.profile-panel-story-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.profile-panel-story-arrow {
  font-size: 10px;
  color: var(--color-text-hint);
  transition: transform 0.2s ease;
}

.profile-panel-story-body {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.28s ease, margin-top 0.2s ease;
}

.profile-panel-story-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-panel-story-row {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.profile-panel-story-key {
  margin-right: 6px;
  color: var(--color-text-hint);
}

.profile-panel-meta-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--color-text-hint);
}

/* —— 列表卡片（物语 / 计划 / 目标）：iOS 列表卡片风格 —— */
.thing-item-card,
.plan-item-card,
.goal-item-card {
  background: var(--color-module);
  border: 1px solid var(--color-separator);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.thing-item-card {
  display: flex;
  gap: 12px;
}

.thing-item-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-module-secondary, #f1f5f9);
}

.thing-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.thing-item-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.thing-item-cat-icon {
  font-size: 14px;
  line-height: 1;
}

.thing-item-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-primary);
}

.thing-item-category {
  font-size: 12px;
  color: var(--color-text-hint);
}

.thing-item-content {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* 计划卡片 */
.plan-item-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plan-item-card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-primary);
}

.plan-item-card-time {
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.plan-item-card-location {
  margin-top: 2px;
  font-size: 13px;
  color: var(--color-text-hint);
}

.plan-item-card-detail {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* 目标卡片 */
.goal-item-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.goal-item-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-primary);
}

.goal-item-meta {
  font-size: 12px;
  color: var(--color-text-hint);
}

.goal-item-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.goal-item-card.is-completed .goal-item-title {
  color: var(--color-text-hint);
  text-decoration: line-through;
}

/* 目标进度条（此前无基础样式，进度条不可见） */
.goal-item-progress {
  margin-top: 8px;
}

.goal-item-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-text-hint);
  margin-bottom: 4px;
}

.goal-item-progress-track {
  height: 6px;
  border-radius: 3px;
  background: var(--color-module-secondary, #f1f5f9);
  overflow: hidden;
}

.goal-item-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.goal-item-progress--checklist {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-hint);
}

/* 目标分组头（此前桌面端无基础样式） */
.goal-group {
  margin-bottom: 4px;
}

.goal-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: opacity 0.18s ease;
}

.goal-group-header:hover {
  opacity: 0.72;
}

.goal-group-accent {
  flex: 0 0 auto;
  width: 4px;
  align-self: stretch;
  min-height: 20px;
  border-radius: 2px;
}

.goal-group-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.goal-group-progress {
  font-size: 13px;
  font-weight: 600;
}

.goal-group-chevron {
  flex: 0 0 auto;
  color: var(--color-text-hint);
}

.goal-group-goals {
  display: flex;
  flex-direction: column;
}
  