/* === 地图基础样式 === */
/* 包含：:root变量、布局、工具栏、侧边栏、标记列表、搜索、FAB、画线画面、日程等 */

    :root {
      --primary-color: #667eea;
      --primary-dark: #5a6fd6;
      --primary-light: #764ba2;
      --success-color: #4CAF50;
      --error-color: #ff4757;
      --warning-color: #ffa502;
      --info-color: #1e90ff;
      --border-color: #e0e0e0;
      --text-primary: #333;
      --text-secondary: #888;
      --text-muted: #aaa;
      --bg-light: #f8f9fa;
      --bg-white: #ffffff;
      --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
      --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    
    /* ====== 设计系统变量（Phase 1 新增） ====== */
    /* 色板 */
    --color-primary: #667eea;
    --color-primary-hover: #5a6fd6;
    --color-primary-active: #4e5fc2;
    --color-primary-light: #8da2f8;
    --color-primary-bg: rgba(102, 126, 234, 0.1);
    --color-primary-gradient-end: #764ba2;
    --color-primary-shadow: rgba(102, 126, 234, 0.15);
    --color-primary-shadow-md: rgba(102, 126, 234, 0.2);
    --color-primary-border: rgba(102, 126, 234, 0.5);
    --color-primary-shadow-lg: rgba(102, 126, 234, 0.4);
    
    --color-success: #4CAF50;
    --color-success-light: rgba(76, 175, 80, 0.1);
    --color-warning: #ffa502;
    --color-warning-light: rgba(255, 165, 2, 0.1);
    --color-danger: #ff4757;
    --color-danger-light: rgba(255, 71, 87, 0.1);
    --color-info: #1e90ff;
    --color-info-light: rgba(30, 144, 255, 0.1);
    
    /* 中性色 */
    --color-text: #333333;
    --color-text-secondary: #888888;
    --color-text-regular: #666666;
    --color-text-muted: #aaaaaa;
    --color-text-inverse: #ffffff;
    --color-bg: #ffffff;
    --color-bg-secondary: #f8f9fa;
    --color-bg-tertiary: #eef0f5;
    --color-border: #e0e0e0;
    --color-border-light: #f0f0f0;
    --color-divider: #eeeeee;
    
    /* 功能色 */
    --color-link: #1e90ff;
    --color-overlay: rgba(0, 0, 0, 0.5);
    --color-disabled: #cccccc;
    --color-star: #ffc107;
    
    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-base: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* 圆角 */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* 阴影 */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 36px rgba(0,0,0,0.15);
    
    /* 字体 */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --font-size-xs: 11px;
    --font-size-sm: 12px;
    --font-size-base: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* 过渡 */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Z-index 层级 */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
    --z-max: 9999;

    }
    
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      height: 100vh;
      display: flex;
      flex-direction: column;
      background: var(--bg-light);
    }
    
    /* 头部 */
    /* 顶部公告栏 */
    .announcement-bar {
      background: linear-gradient(90deg, #0f4c5c 0%, #1a6b7c 50%, #0f4c5c 100%);
      color: white;
      padding: 6px 20px;
      font-size: 0.82rem;
      overflow: hidden;
      position: relative;
      z-index: 1001;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .announcement-bar .ann-icon {
      flex-shrink: 0;
      font-size: 0.9rem;
    }
    .announcement-bar .ann-scroll {
      flex: 1;
      overflow: hidden;
      white-space: nowrap;
    }
    .announcement-bar .ann-text {
      display: inline-block;
      animation: annScroll 20s linear infinite;
    }
    .announcement-bar .ann-close {
      flex-shrink: 0;
      background: none;
      border: none;
      color: rgba(255,255,255,0.6);
      cursor: pointer;
      font-size: 16px;
      padding: 0 4px;
    }
    .announcement-bar .ann-close:hover { color: white; }
    /* 小程序入口 */
    .announcement-bar .ann-miniprogram {
      flex-shrink: 0;
      background: rgba(255,255,255,0.15);
      border: 1px solid rgba(255,255,255,0.3);
      border-radius: 12px;
      padding: 1px 10px;
      cursor: pointer;
      font-size: 0.78rem;
      color: #fff;
      transition: background 0.2s;
      white-space: nowrap;
    }
    .announcement-bar .ann-miniprogram:hover {
      background: rgba(255,255,255,0.25);
    }
    /* 小程序码弹窗 */
    .miniprogram-qr-card {
      background: var(--color-bg);
      border-radius: 16px;
      padding: 24px;
      text-align: center;
      box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    }
    .miniprogram-qr-card img {
      width: 200px;
      height: 200px;
      border-radius: 8px;
      display: block;
      margin: 0 auto 12px;
    }
    .miniprogram-qr-card p {
      color: var(--color-text);
      font-size: 0.9rem;
      margin: 0 0 16px;
    }
    .miniprogram-qr-card button {
      background: var(--color-primary);
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 8px 32px;
      font-size: 0.85rem;
      cursor: pointer;
    }
    .miniprogram-qr-card button:hover { background: var(--color-primary-hover); }


    /* 头部反馈按钮 */

    /* 反馈按钮 */

    /* 反馈弹窗 */

    .header {
      background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
      color: white;
      padding: 12px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: var(--shadow-md);
      z-index: 1000;
    }
    
    .header h1 {
      font-size: 1.3rem;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .room-info {
      display: flex;
      align-items: center;
      gap: 15px;
    }
    
    /* 未登录遮罩 */
    .auth-required-box {
      background: var(--color-bg); border-radius: 16px; padding: 40px 36px;
      text-align: center; max-width: 340px; width: 90%;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }
    .auth-required-box h3 { font-size: 20px; color: var(--color-text); margin-bottom: 12px; }
    .auth-required-box p { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 24px; }
    .auth-required-box .auth-req-btn {
      padding: 12px 32px; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-gradient-end));
      color: #fff; border: none; border-radius: 8px; font-size: 15px;
      font-weight: 600; cursor: pointer;
    }
    .auth-required-box .auth-req-btn:hover { opacity: 0.9; }

    /* 头像编辑 */
    /* 头像选择弹窗 */
    /* 地图管理弹窗 */
    .room-manage-field { margin-bottom: 14px; }
    .room-manage-field label { display: block; font-size: 12px; color: var(--color-text-secondary); margin-bottom: 4px; font-weight: 500; }
    .room-manage-field input, .room-manage-field select {
      width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 8px;
      font-size: 14px; box-sizing: border-box;
    }
    .room-manage-field input:focus, .room-manage-field select:focus {
      outline: none; border-color: var(--color-primary);
    }
    .room-manage-members { margin-top: 16px; }
    .room-manage-members h5 { font-size: 13px; color: var(--color-text-regular); margin-bottom: 8px; }
    .room-member-item {
      display: flex; justify-content: space-between; align-items: center;
      padding: 8px 12px; background: var(--color-bg-secondary); border-radius: 8px; margin-bottom: 6px;
    }
    .room-member-item .member-name { font-size: 14px; color: var(--color-text); }
    .room-member-item .kick-btn {
      background: none; border: none; color: var(--color-text-muted); cursor: pointer; font-size: 12px;
      padding: 4px 8px; border-radius: 4px; transition: all 0.2s;
    }
    .room-member-item .kick-btn:hover { color: var(--color-danger); background: #fff0f0; }
    .room-manage-actions { display: flex; gap: 8px; margin-top: 16px; }
    .room-manage-actions button { flex: 1; padding: 10px; border-radius: 8px; font-size: 14px; cursor: pointer; border: none; font-weight: 500; }
    .btn-save { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-gradient-end)); color: #fff; }
    .btn-cancel { background: var(--color-bg-secondary); color: var(--color-text-regular); }
    .btn-save:hover { opacity: 0.9; }
    .btn-cancel:hover { background: var(--color-bg-secondary); }
    /* 地图管理入口 */
    .room-manage-icon {
      font-size: 11px; color: var(--color-text-muted); cursor: pointer; margin-left: 4px;
      transition: color 0.2s; vertical-align: middle;
    }
    .room-manage-icon:hover { color: var(--color-primary); }

    .room-badge {
      background: rgba(255,255,255,0.2);
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 0.9rem;
    }
    
    .user-count {
      background: var(--success-color);
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 0.8rem;
    }
    
    /* 主体 */
    .main {
      flex: 1;
      display: flex;
      position: relative;
      overflow: hidden;
    }
    
    /* 侧边栏 */
    .sidebar {
      width: 320px;
      background: var(--bg-white);
      box-shadow: var(--shadow-md);
      display: flex;
      flex-direction: column;
      z-index: 100;
      transition: width 0.3s, opacity 0.3s;
      overflow: hidden;
      flex-shrink: 0;
    }
    
    .sidebar.collapsed {
      width: 0;
      opacity: 0;
    }
    
    .sidebar-toggle {
      position: fixed;
      left: 320px;
      top: 50%;
      transform: translateY(-50%);
      background: white;
      border: none;
      width: 28px;
      height: 60px;
      border-radius: 0 8px 8px 0;
      box-shadow: 2px 0 8px rgba(0,0,0,0.1);
      cursor: pointer;
      z-index: 200;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      color: var(--color-text-regular);
      transition: left 0.3s;
    }
    
    .sidebar.collapsed ~ .sidebar-toggle {
      left: 0;
      border-radius: 0 8px 8px 0;
    }
    
    /* 搜索区 */
    .search-section {
      padding: 15px;
      border-bottom: 1px solid var(--border-color);
    }
    
    .search-box {
      display: flex;
      gap: 8px;
      align-items: center;
    }
    
    .search-box input {
      flex: 1;
      padding: 10px 14px;
      border: 2px solid var(--border-color);
      border-radius: 8px;
      font-size: 0.95rem;
      transition: border-color 0.2s, box-shadow 0.2s;
      height: 40px;
    }
    
    .search-box input:focus {
      outline: none;
      border-color: var(--primary-color);
      box-shadow: 0 0 0 3px var(--color-primary-bg);
    }
    
    .search-box button {
      padding: 0 20px;
      background: var(--primary-color);
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 500;
      transition: background 0.2s, transform 0.1s;
      height: 40px;
      white-space: nowrap;
      font-size: 0.95rem;
    }
    
    .search-box button:hover {
      background: var(--primary-dark);
    }
    
    .search-box button:active {
      transform: scale(0.98);
    }
    
    /* 搜索结果 */
    .search-results {
      max-height: 200px;
      overflow-y: auto;
      padding: 8px;
    }
    
    .search-result-item {
      padding: 10px 12px;
      border-radius: 6px;
      cursor: pointer;
      transition: background 0.2s;
      margin-bottom: 4px;
    }
    
    .search-result-item:hover {
      background: var(--color-bg-tertiary);
    }
    
    .search-result-item .name {
      font-weight: 500;
      color: var(--color-text);
    }
    
    .search-result-item .address {
      font-size: 0.85rem;
      color: var(--color-text-secondary);
      margin-top: 2px;
    }
    
    /* 标记列表 */
    .markers-section {
      flex: 1;
      overflow-y: auto;
      padding: 15px;
    }
    
    .markers-section h3 {
      font-size: 0.9rem;
      color: var(--text-secondary);
      margin-bottom: 10px;
      display: flex;
      align-items: center;
    }
    
    .marker-search-box {
      margin-bottom: 12px;
    }
    
    .marker-search-box input {
      width: 100%;
      padding: 8px 12px;
      border: 1px solid var(--border-color);
      border-radius: 6px;
      font-size: 0.9rem;
      transition: border-color 0.2s;
    }
    
    .marker-search-box input:focus {
      outline: none;
      border-color: var(--primary-color);
    }
    

    #batchManageBtn.active { background: #E8684A !important; color: #fff; }
    .item-checkbox {
      flex-shrink: 0;
      width: 16px;
      height: 16px;
      accent-color: var(--color-primary);
      cursor: pointer;
    }
    .marker-item {
      background: var(--color-bg-secondary);
      border-radius: 8px;
      padding: 12px;
      margin-bottom: 8px;
      position: relative;
      transition: all 0.2s;
      border-left: 3px solid var(--primary-color);
      cursor: pointer;
    }
    
    .marker-item:hover {
      background: var(--color-bg-tertiary);
      transform: translateX(4px);
    }
    
    .marker-item .name {
      font-weight: 500;
      color: var(--text-primary);
      margin-bottom: 4px;
    }
    
    .marker-item .coords {
      font-size: 0.8rem;
      color: var(--text-secondary);
    }
    
    .marker-item .creator {
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-top: 4px;
    }
    .marker-item .marker-edit-btn {
      position: absolute;
      right: 40px;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      font-size: 14px;
      opacity: 0;
      transition: opacity 0.2s;
    }
    .marker-item .marker-edit-btn:hover {
      opacity: 1;
    }
    
    .marker-item .delete-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      background: var(--color-danger);
      color: white;
      border: none;
      width: 24px;
      height: 24px;
      border-radius: 4px;
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.2s;
      font-size: 12px;
    }
    
    .marker-item:hover .marker-edit-btn {
      opacity: 0.7;
    }
    .marker-item .marker-edit-btn:hover {
      opacity: 1;
    }
    .marker-item:hover .delete-btn {
      opacity: 1;
    }
    
    .marker-item .delete-btn:hover {
      background: #ff3344;
    }
    
    /* 地图容器 */
    .map-container {
      flex: 1;
      position: relative;
    }
    
    #map {
      width: 100%;
      height: 100%;
    }
    
    /* 覆盖层 - 地图选择 */
    
    
    .room-card {
      background: white;
      border-radius: 16px;
      padding: 30px;
      width: 420px;
      max-height: 80vh;
      overflow-y: auto;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }
    
    .room-card h2 {
      text-align: center;
      margin-bottom: 20px;
      color: var(--color-text);
    }
    
    .room-card .tabs {
      display: flex;
      gap: 10px;
      margin-bottom: 20px;
    }
    
    .room-card .tab {
      flex: 1;
      padding: 12px;
      border: 2px solid var(--color-border);
      background: white;
      border-radius: 8px;
      cursor: pointer;
      text-align: center;
      font-weight: 500;
      color: var(--color-text-regular);
      transition: all 0.2s;
    }
    
    .room-card .tab.active {
      border-color: var(--color-primary);
      background: var(--color-primary);
      color: white;
    }
    
    .room-card input {
      width: 100%;
      padding: 14px;
      border: 2px solid var(--color-border);
      border-radius: 8px;
      font-size: 1rem;
      margin-bottom: 15px;
      transition: border-color 0.2s;
    }
    
    .room-card input:focus {
      outline: none;
      border-color: var(--color-primary);
    }
    
    .room-card button:not(.room-type-btn) {
      width: 100%;
      padding: 14px;
      background: var(--color-primary);
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 1rem;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.2s;
    }
    
    .room-card button:not(.room-type-btn):hover {
      background: var(--color-primary-hover);
    }
    
    .room-card .hint {
      text-align: center;
      margin-top: 15px;
      font-size: 0.85rem;
      color: var(--color-text-secondary);
    }


    /* 我的地图快捷列表 */
    .my-rooms-section {
      margin-bottom: 16px;
      border: 1px solid var(--color-divider);
      border-radius: 10px;
      overflow: hidden;
    }
    .my-rooms-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 14px;
      background: var(--color-bg-secondary);
      cursor: pointer;
      user-select: none;
    }
    .my-rooms-header:hover { background: var(--color-bg-tertiary); }
    .my-rooms-header-left {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.9rem;
      font-weight: 600;
      color: #444;
    }
    .my-rooms-arrow {
      font-size: 0.7rem;
      color: var(--color-text-muted);
      transition: transform 0.2s;
    }
    .my-rooms-arrow.expanded { transform: rotate(180deg); }
    .my-rooms-list {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.25s ease;
    }
    .my-rooms-list.expanded {
      max-height: 240px;
      overflow-y: auto;
    }
    .my-rooms-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 14px;
      border-top: 1px solid var(--color-border-light);
      cursor: pointer;
      transition: background 0.15s;
    }
    .my-rooms-item:hover { background: #f5f6ff; }
    .my-rooms-item-left {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }
    .my-rooms-item-icon { font-size: 1.1rem; }
    .my-rooms-item-name {
      font-size: 0.88rem;
      color: var(--color-text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .my-rooms-item-badge {
      font-size: 0.7rem;
      padding: 2px 6px;
      border-radius: 4px;
      flex-shrink: 0;
    }
    .my-rooms-item-badge.public { background: #e8f5e9; color: #388e3c; }
    .my-rooms-item-badge.private { background: #fff3e0; color: #e65100; }
    .my-rooms-empty {
      padding: 12px 14px;
      text-align: center;
      color: var(--color-text-muted);
      font-size: 0.82rem;
      border-top: 1px solid var(--color-border-light);
    }

    /* 地图类型选择器 */
    .room-type-selector {
      display: flex;
      gap: 10px;
      margin-bottom: 15px;
    }
    
    .room-type-btn {
      flex: 1;
      padding: 10px;
      border: 2px solid var(--color-border);
      background: white;
      border-radius: 8px;
      cursor: pointer;
      text-align: center;
      font-weight: 500;
      color: var(--color-text-regular);
      transition: all 0.2s;
      font-size: 0.95rem;
    }
    
    .room-type-btn:hover {
      border-color: var(--color-primary);
      color: var(--color-primary);
    }
    
    .room-type-btn.active {
      border-color: var(--color-primary);
      background: var(--color-primary);
      color: white;
    }


    
    .hidden-input {
      display: none !important;
    }
    
    .tab-content {
      display: none;
    }
    
    .tab-content.active {
      display: block;
    }
    
    /* 提示消息 */
    .toast {
      position: fixed;
      top: 30px;
      left: 50%;
      transform: translateX(-50%) translateY(-100px);
      background: var(--text-primary);
      color: white;
      padding: 12px 24px;
      border-radius: 8px;
      font-size: 0.9rem;
      z-index: 20000;
      opacity: 0;
      transition: all 0.3s;
      box-shadow: var(--shadow-md);
    }
    
    .toast.show {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
    }
    
    .toast.success {
      background: var(--success-color);
    }
    
    .toast.error {
      background: var(--error-color);
    }
    
    .toast.warning {
      background: var(--warning-color);
      color: var(--text-primary);
    }
    
    /* 空状态 */
    .empty-state {
      text-align: center;
      padding: 30px;
      color: var(--color-text-muted);
    }
    
    .empty-state .icon {
      font-size: 48px;
      margin-bottom: 10px;
    }
    
    /* 模态对话框 */
    
    
    
    
    
    
    /* 标记样式选择 */
    
    .marker-style-tabs { display: flex; gap: 0; margin-bottom: 12px; border-radius: 8px; overflow: hidden; border: 1px solid var(--color-border); }
    .style-tab { flex: 1; padding: 8px 12px; border: none; background: var(--color-bg-tertiary); color: var(--color-text-regular); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
    .style-tab.active { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-gradient-end)); color: #fff; }
    .style-tab:hover:not(.active) { background: var(--color-divider); }
    .style-group { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; max-height: 200px; overflow-y: auto; }
    .style-group::-webkit-scrollbar { width: 4px; }
    .style-group::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
    .style-group::-webkit-scrollbar-thumb { background: #c0c0c0; border-radius: 4px; }
    .style-group::-webkit-scrollbar-thumb:hover { background: #a0a0a0; }
.marker-styles {
      margin-bottom: 16px;
    }
    
    .marker-style-btn {
      width: auto;
      min-width: 52px;
      height: 34px;
      border: 2px solid var(--color-border);
      border-radius: 17px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: 0 10px;
      font-size: 13px;
      transition: all 0.2s;
      background: white;
      color: var(--color-text);
      font-family: inherit;
    }
    
    .marker-style-btn:hover {
      border-color: var(--color-primary);
      transform: translateY(-1px);
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .marker-style-btn.active {
      border-color: var(--color-primary);
      background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-gradient-end) 100%);
      color: white;
    }
    
    .marker-style-btn .style-icon {
      font-size: 14px;
      line-height: 1;
    }
    
    .marker-style-btn .style-label {
      font-size: 12px;
    }
    
    
    
    
    
    
    
    /* 搜索结果对话框 */
    
    
    
    
    
    /* 标记颜色 */
    .marker-red { background: var(--color-danger); }
    .marker-orange { background: #ffa502; }
    .marker-yellow { background: #ffc107; }
    .marker-green { background: #2ed573; }
    .marker-blue { background: #1e90ff; }
    .marker-purple { background: var(--color-primary); }
    .marker-pink { background: #ff6b9d; }
    .marker-gray { background: #747d8c; }
    
    /* 分组管理按钮 */
    .group-manage-btn {
      background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-gradient-end) 100%);
      color: white;
      border: none;
      padding: 8px 16px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 0.85rem;
      margin-top: 10px;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: opacity 0.2s;
    }
    .group-manage-btn:hover { opacity: 0.9; }
    
    /* 分组筛选 */
    .group-search-box {
      padding: 8px 15px 0 15px;
    }
    .group-search-input {
      width: 100%;
      padding: 6px 10px;
      border: 1px solid var(--color-border);
      border-radius: 8px;
      font-size: 0.8rem;
      outline: none;
      box-sizing: border-box;
    }
    .group-search-input:focus {
      border-color: var(--color-primary);
    }
    .group-filter {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      padding: 10px 15px;
      border-bottom: 1px solid var(--color-divider);
      max-height: 200px;
      overflow-y: auto;
    }
    .group-filter::-webkit-scrollbar {
      width: 4px;
    }
    .group-filter::-webkit-scrollbar-thumb {
      background: var(--color-border-light);
      border-radius: 2px;
    }
    .group-filter-btn.hidden-group {
      display: none;
    }
    .group-filter-btn {
      padding: 4px 10px;
      border-radius: 12px;
      border: 1px solid var(--color-border);
      background: white;
      font-size: 0.8rem;
      cursor: pointer;
      transition: all 0.2s;
    }
    .group-filter-btn:hover { border-color: var(--color-primary); }

    /* 筛选栏 */
    .filter-bar {
      display: flex;
      gap: 8px;
      padding: 10px 15px;
      border-bottom: 1px solid var(--color-divider);
      position: relative;
    }
    .filter-dropdown {
      flex: 1;
      position: relative;
    }
    .filter-dropdown-toggle {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border: 1px solid var(--color-border);
      border-radius: 8px;
      background: white;
      cursor: pointer;
      font-size: 0.8rem;
      color: var(--color-text);
      transition: all 0.2s;
      white-space: nowrap;
      overflow: hidden;
    }
    .filter-dropdown-toggle:hover {
      border-color: var(--color-primary);
    }
    .filter-dropdown-toggle.active {
      border-color: var(--color-primary);
      color: var(--color-primary);
      background: #f0f3ff;
    }
    .filter-icon {
      font-size: 0.85rem;
    }
    .filter-label {
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .filter-arrow {
      font-size: 0.6rem;
      color: var(--color-text-muted);
      transition: transform 0.2s;
    }
    .filter-dropdown.open .filter-arrow {
      transform: rotate(180deg);
    }
    .filter-dropdown-menu {
      position: absolute;
      top: calc(100% + 4px);
      left: 0;
      right: 0;
      background: white;
      border: 1px solid var(--color-border);
      border-radius: 10px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.12);
      z-index: 100;
      max-height: 280px;
      overflow: hidden;
      display: none;
      flex-direction: column;
    }
    .filter-dropdown.open .filter-dropdown-menu {
      display: flex;
    }
    .filter-search-input {
      width: 100%;
      padding: 8px 12px;
      border: none;
      border-bottom: 1px solid var(--color-divider);
      font-size: 0.8rem;
      outline: none;
      box-sizing: border-box;
    }
    .filter-search-input:focus {
      border-bottom-color: var(--color-primary);
    }
    .filter-dropdown-items {
      overflow-y: auto;
      max-height: 230px;
      padding: 4px 0;
    }
    .filter-dropdown-items::-webkit-scrollbar {
      width: 4px;
    }
    .filter-dropdown-items::-webkit-scrollbar-thumb {
      background: var(--color-border-light);
      border-radius: 2px;
    }
    .filter-dropdown-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      cursor: pointer;
      font-size: 0.8rem;
      color: var(--color-text);
      transition: background 0.15s;
    }
    .filter-dropdown-item:hover {
      background: var(--color-bg-tertiary);
    }
    .filter-dropdown-item.active {
      color: var(--color-primary);
      background: #f0f3ff;
      font-weight: 500;
    }
    .filter-dropdown-item .item-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .filter-dropdown-item .item-name {
      overflow: hidden;
      white-space: nowrap;
      flex: 1;
      min-width: 0;
      position: relative;
    }
    .filter-dropdown-item .item-name-text {
      display: inline-block;
      white-space: nowrap;
    }
    .filter-dropdown-item .item-name.overflowing .item-name-text {
      animation: nameScroll 10s linear infinite;
    }
    .filter-dropdown-item .item-count {
      margin-left: auto;
      color: var(--color-text-muted);
      font-size: 0.75rem;
    }
    .filter-dropdown-item .eye-toggle {
      cursor: pointer;
      font-size: 0.85rem;
      margin-left: 4px;
      padding: 2px 4px;
      border-radius: 4px;
      transition: background 0.15s;
      opacity: 0.6;
    }
    .filter-dropdown-item .eye-toggle:hover {
      opacity: 1;
      background: var(--color-divider);
    }
    .filter-dropdown-item .eye-toggle.hidden-group {
      opacity: 1;
      color: var(--color-danger);
    }

    .group-filter-btn.active {
      background: var(--color-primary);
      color: white;
      border-color: var(--color-primary);
    }

    /* 可折叠区域 */
    .collapsible-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 15px;
      cursor: pointer;
      user-select: none;
      border-bottom: 1px solid var(--color-divider);
      background: var(--color-bg-secondary);
      transition: background 0.2s;
    }
    .collapsible-header:hover {
      background: var(--color-bg-secondary);
    }
    .collapsible-header h4 {
      margin: 0;
      font-size: 0.85rem;
      color: var(--color-text);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .collapsible-arrow {
      font-size: 0.7rem;
      color: var(--color-text-muted);
      transition: transform 0.25s;
    }
    .collapsible-header.collapsed .collapsible-arrow {
      transform: rotate(-90deg);
    }
    .collapsible-body {
      overflow: hidden;
      transition: max-height 0.3s ease, opacity 0.2s ease;
      max-height: 500px;
      opacity: 1;
    }
    .collapsible-body.collapsed {
      max-height: 0;
      opacity: 0;
    }

    
    /* 分组和标签管理模态框 */
    .manage-tab-content {
      flex: 1;
      overflow-y: auto;
      min-height: 0;
    }
    .manage-list {
      overflow-y: auto;
    }
    .manage-list-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0;
      background: var(--color-bg);
      border-radius: 8px;
      margin-bottom: 6px;
      border: 1px solid var(--color-divider);
      overflow: hidden;
      transition: box-shadow 0.2s;
    }
    .manage-list-item:hover {
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    .Manage-list-item-left {
      display: flex;
      align-items: center;
      gap: 0;
      flex: 1;
      min-width: 0;
    }
    .manage-list-item .color-dot {
      width: 4px;
      height: 40px;
      border-radius: 0;
      flex-shrink: 0;
    }
    .manage-list-item .name {
      font-weight: 500;
      font-size: 14px;
      color: var(--color-text);
      padding: 10px 12px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .manage-list-item .count {
      font-size: 11px;
      color: var(--color-text-muted);
      background: var(--color-bg-tertiary);
      padding: 2px 8px;
      border-radius: 10px;
      white-space: nowrap;
      margin-right: 8px;
    }
    .manage-list-item .edit-btn {
      background: none;
      border: none;
      cursor: pointer;
      color: var(--color-text-muted);
      padding: 4px;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }
    .manage-list-item:hover .edit-btn {
      color: var(--color-primary);
    }
    .manage-list-item .edit-btn:hover {
      background: var(--color-primary-bg);
    }
    .manage-list-item .name-input {
      border: 1.5px solid var(--color-primary);
      border-radius: 4px;
      padding: 2px 6px;
      font-size: 0.85rem;
      outline: none;
      width: 100%;
      max-width: 140px;
    }
    .manage-list-item .color-edit {
      width: 24px;
      height: 24px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      padding: 0;
    }
    .manage-list-item .delete-btn {
      background: none;
      color: transparent;
      border: none;
      width: 32px;
      height: 32px;
      border-radius: 6px;
      cursor: pointer;
      font-size: 12px;
      padding: 0;
      margin-right: 6px;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .manage-list-item:hover .delete-btn {
      color: var(--color-text-muted);
    }
    .manage-list-item .delete-btn:hover {
      color: var(--color-danger) !important;
      background: #fff0f0;
    }
    .manage-list-item.dragging {
      opacity: 0.4;
      transform: scale(0.98);
    }
    .manage-list-item.drag-over {
      border-top: 2px solid var(--color-primary);
    }
    .manage-list-item .drag-handle {
      cursor: grab;
      color: var(--color-text-muted);
      padding: 4px 4px 4px 8px;
      display: flex;
      align-items: center;
      flex-shrink: 0;
    }
    .manage-list-item .drag-handle:active {
      cursor: grabbing;
    }
    .manage-list-item:hover .drag-handle {
      color: var(--color-text-muted);
    }
    .manage-add-form {
      display: flex;
      gap: 8px;
      margin-top: 12px;
    }
    .manage-add-form input {
      flex: 1;
      padding: 10px;
      border: 2px solid var(--color-border);
      border-radius: 8px;
      font-size: 0.9rem;
    }
    .manage-add-form input:focus {
      outline: none;
      border-color: var(--color-primary);
    }
    .color-picker-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 8px;
    }
    .color-picker-row label {
      font-size: 0.82rem;
      color: var(--color-text-secondary);
    }
    .color-picker-row input[type="color"] {
      width: 36px;
      height: 36px;
      border: 2px solid var(--color-border);
      border-radius: 8px;
      cursor: pointer;
      padding: 2px;
      background: white;
    }
    .color-picker-row input[type="color"]:hover {
      border-color: var(--color-primary);
    }
    .color-picker-row .color-preview {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      border: 2px solid var(--color-divider);
    }
    
    /* 标记详情模态框 */
    .detail-field select,
    .detail-field select:focus,
    .multi-select { position: relative; }
    .multi-select-display {
      min-height: 38px; border: 1px solid var(--color-border); border-radius: 8px;
      padding: 4px 8px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
      cursor: pointer; background: var(--color-bg); transition: border-color 0.2s;
    }
    .multi-select-display:hover { border-color: var(--color-text-muted); }
    .multi-select-display.open { border-color: #4a90d9; }
    .multi-select-placeholder { color: var(--color-text-muted); font-size: 0.85rem; }
    .multi-select-badge {
      display: inline-flex; align-items: center; gap: 2px;
      padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; color: #fff;
      white-space: nowrap;
    }
    .multi-select-badge .remove-badge { cursor: pointer; margin-left: 2px; opacity: 0.7; font-size: 0.7rem; }
    .multi-select-badge .remove-badge:hover { opacity: 1; }
    .multi-select-dropdown {
      display: none; position: absolute; top: 100%; left: 0; right: 0;
      background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 1000;
      max-height: 200px; overflow-y: auto; margin-top: 2px;
    }
    .multi-select-dropdown.show { display: block; }
    .multi-select-option {
      display: flex; align-items: center; gap: 8px; padding: 8px 12px;
      cursor: pointer; font-size: 0.85rem; transition: background 0.15s;
    }
    .multi-select-option:hover { background: var(--color-bg-tertiary); }
    .multi-select-option input[type="checkbox"] {
      width: 16px; height: 16px; accent-color: #4a90d9; cursor: pointer;
    }
    
    /* 标记项中的分组和标签 */
    .marker-item .group-tag-row {
      display: flex;
      gap: 6px;
      margin-top: 4px;
      flex-wrap: wrap;
    }
    .marker-item .group-badge,
    .marker-item .tag-badge {
      font-size: 0.7rem;
      padding: 2px 6px;
      border-radius: 4px;
    }
    .marker-item .group-badge {
      background: var(--color-primary-bg);
      color: var(--color-primary);
    }
    .marker-item .tag-badge {
      background: rgba(0,0,0,0.05);
      color: var(--color-text-secondary);
    }
    .marker-item .comment-preview {
      font-size: 0.8rem;
      color: var(--color-text-muted);
      margin-top: 4px;
      font-style: italic;
    }
    
    /* 标签选择 */
    .tag-selector {
      margin-bottom: 16px;
    }
    .tag-selector-label {
      font-size: 0.85rem;
      color: var(--color-text-secondary);
      margin-bottom: 8px;
      display: block;
    }
    .tag-chips {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }
    .tag-chip {
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 0.8rem;
      cursor: pointer;
      border: 1px solid var(--color-border);
      background: white;
      transition: all 0.2s;
    }
    .tag-chip:hover { border-color: var(--color-primary); }
    .tag-chip.selected {
      background: var(--color-primary);
      color: white;
      border-color: var(--color-primary);
    }
    
    /* 分组选择 - 可折叠下拉 */
    .group-selector {
      margin-bottom: 12px;
    }
    .group-selector-label {
      font-size: 0.85rem;
      color: var(--color-text-secondary);
      margin-bottom: 6px;
      display: block;
    }
    .group-dropdown-toggle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 12px;
      border: 1px solid var(--color-border);
      border-radius: 8px;
      background: white;
      cursor: pointer;
      font-size: 0.85rem;
      color: var(--color-text);
      transition: border-color 0.2s;
    }
    .group-dropdown-toggle:hover { border-color: var(--color-primary); }
    .group-dropdown-toggle .arrow {
      font-size: 10px;
      color: var(--color-text-muted);
      transition: transform 0.2s;
    }
    .group-dropdown-toggle.open .arrow { transform: rotate(180deg); }
    .group-selector { position: relative; }
    .group-dropdown-panel {
      display: none;
      position: absolute;
      left: 0; right: 0;
      z-index: 100;
      margin-top: 6px;
      border: 1px solid var(--color-border);
      border-radius: 8px;
      background: white;
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    }
    .group-dropdown-panel.open { display: block; }
    .group-search-input {
      width: 100%;
      padding: 8px 12px;
      border: none;
      border-bottom: 1px solid var(--color-border-light);
      font-size: 0.82rem;
      outline: none;
      box-sizing: border-box;
    }
    .group-search-input::placeholder { color: var(--color-text-muted); }
    .group-dropdown-list {
      max-height: 150px;
      overflow-y: auto;
      padding: 6px;
    }
    .group-dropdown-item {
      padding: 6px 10px;
      border-radius: 6px;
      font-size: 0.82rem;
      cursor: pointer;
      transition: background 0.15s;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .group-dropdown-item:hover { background: var(--color-bg-tertiary); }
    .group-dropdown-item.selected { background: var(--color-primary); color: white; }
    .group-dropdown-item .color-dot {
      width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
    }
    
    /* 标签选择 - 下拉菜单（与分组一致） */
    .selector-row {
      display: flex;
      gap: 8px;
      margin-bottom: 12px;
    }
    .selector-row .group-selector,
    .selector-row .tag-selector-dropdown {
      flex: 1;
      margin-bottom: 0;
      position: relative;
    }
    .tag-selector-dropdown .tag-dropdown-toggle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 12px;
      border: 1px solid var(--color-border);
      border-radius: 8px;
      background: white;
      cursor: pointer;
      font-size: 0.85rem;
      color: var(--color-text);
      transition: border-color 0.2s;
    }
    .tag-selector-dropdown .tag-dropdown-toggle:hover { border-color: var(--color-primary); }
    .tag-selector-dropdown .tag-dropdown-toggle .arrow {
      font-size: 10px; color: var(--color-text-muted); transition: transform 0.2s;
    }
    .tag-selector-dropdown .tag-dropdown-toggle.open .arrow { transform: rotate(180deg); }
    .tag-selector-dropdown .tag-dropdown-panel {
      display: none;
      position: absolute;
      left: 0; right: 0;
      z-index: 100;
      margin-top: 6px;
      border: 1px solid var(--color-border);
      border-radius: 8px;
      background: white;
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    }
    .tag-selector-dropdown .tag-dropdown-panel.open { display: block; }
    .tag-selector-dropdown .tag-dropdown-list {
      max-height: 150px;
      overflow-y: auto;
      padding: 6px;
    }
    .tag-selector-dropdown .tag-dropdown-item {
      padding: 6px 10px;
      border-radius: 6px;
      font-size: 0.82rem;
      cursor: pointer;
      transition: background 0.15s;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .tag-selector-dropdown .tag-dropdown-item:hover { background: var(--color-bg-tertiary); }
    .tag-selector-dropdown .tag-dropdown-item.selected { background: var(--color-primary); color: white; }
    .tag-selector-dropdown .tag-dropdown-item .color-dot {
      width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
    }

    
    /* 框选工具栏 */
    .selection-toolbar {
      position: fixed;
      top: 70px;
      right: 20px;
      z-index: 1500;
      background: white;
      border-radius: 50px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.15);
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 16px;
      transition: all 0.3s;
    }
    .selection-toolbar.collapsed {
      padding: 12px;
      border-radius: 50%;
    }
    .selection-toolbar.collapsed .toolbar-content {
      display: none;
    }
    .selection-toolbar .toolbar-toggle {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--color-primary);
      color: white;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0;
      transition: transform 0.3s;
      flex-shrink: 0;
    }
    .selection-toolbar .toolbar-toggle::before {
      content: '';
      width: 0;
      height: 0;
      border-top: 6px solid transparent;
      border-bottom: 6px solid transparent;
      border-left: 8px solid white;
    }
    .selection-toolbar .toolbar-toggle:hover {
      background: var(--color-primary-hover);
    }
    .selection-toolbar.collapsed .toolbar-toggle::before {
      transform: rotate(180deg);
    }
    .selection-toolbar.collapsed .toolbar-toggle {
      transform: rotate(180deg);
    }
    .selection-toolbar .toolbar-content {
      display: flex;
      flex-direction: row;
      gap: 8px;
    }
    .selection-toolbar button {
      padding: 6px 10px;
      border: none;
      border-radius: 20px;
      font-size: 12px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      transition: all 0.2s;
      height: 32px;
      white-space: nowrap;
      color: white;
    }
    .selection-toolbar button:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    .selection-toolbar button svg {
      width: 14px;
      height: 14px;
      flex-shrink: 0;
    }
    .selection-toolbar .select-mode-btn {
      background: var(--color-primary);
      color: white;
    }
    .selection-toolbar .select-mode-btn.active {
      background: var(--color-danger);
    }
    .selection-toolbar .batch-delete-btn {
      background: var(--color-danger);
      color: white;
    }
    .selection-toolbar .batch-move-btn {
      background: var(--color-warning);
      color: white;
    }
    .selection-toolbar .cancel-btn {
      background: var(--color-text-secondary);
      color: white;
    }
    .selection-toolbar .disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
    
    /* 框选矩形 */
    #selection-rect {
      position: absolute;
      border: 2px dashed var(--color-primary);
      background: var(--color-primary-shadow-md);
      pointer-events: none;
      z-index: 1000;
    }
    
    /* 选中的标记高亮 */
    .marker-selected {
      z-index: 1001 !important;
    }
    .marker-selected .amap-marker-content {
      transform: scale(1.2);
    }
    
    /* ============ 路线规划面板 ============ */
    .route-panel {
      position: fixed;
      top: 0;
      right: -360px;
      width: 360px;
      height: 100vh;
      max-height: 100vh;
      margin: 0;
      overflow: hidden;
      background: white;
      box-shadow: -4px 0 20px rgba(0,0,0,0.15);
      z-index: 2500;
      transition: right 0.3s ease;
      display: flex;
      flex-direction: column;
    }
    .route-panel.open {
      right: 0;
    }
    .route-panel-header {
      padding: 16px 20px;
      background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .route-panel-header h3 {
      font-size: 1.1rem;
      margin: 0;
    }
    .route-panel-close {
      background: none;
      border: none;
      color: white;
      font-size: 24px;
      cursor: pointer;
      padding: 0;
      line-height: 1;
    }
    .route-panel-close:hover {
      opacity: 0.8;
    }
    .route-panel-content {
      flex: 1;
      overflow-y: auto;
      padding: 16px;
    }
    /* 出行方式切换 */
    .travel-mode-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
    }
    .travel-mode-tab {
      flex: 1;
      padding: 10px 8px;
      border: 2px solid var(--color-border);
      background: white;
      border-radius: 8px;
      cursor: pointer;
      text-align: center;
      font-size: 0.85rem;
      transition: all 0.2s;
      color: var(--color-text-regular);
    }
    .travel-mode-tab:hover {
      border-color: #E91E63;
    }
    .travel-mode-tab.active {
      border-color: #E91E63;
      background: #E91E63;
      color: white;
    }
    .travel-mode-tab .mode-icon {
      font-size: 18px;
      display: block;
      margin-bottom: 4px;
    }
    /* 途经点列表 */
    .waypoint-section {
      margin-bottom: 16px;
    }
    .waypoint-section-title {
      font-size: 0.85rem;
      color: var(--color-text-secondary);
      margin-bottom: 8px;
    }
    .waypoint-list {
      min-height: 60px;
    }
    .waypoint-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      background: var(--color-bg-secondary);
      border-radius: 8px;
      margin-bottom: 8px;
      border-left: 3px solid var(--color-primary);
      cursor: grab;
      transition: all 0.2s;
    }
    .waypoint-item:hover {
      background: var(--color-bg-tertiary);
    }
    .waypoint-item.dragging {
      opacity: 0.5;
      background: var(--color-bg-secondary);
    }
    .waypoint-item.drag-over {
      border-top: 2px solid #E91E63;
    }
    .waypoint-item.start-point {
      border-left-color: var(--color-success);
    }
    .waypoint-item.end-point {
      border-left-color: var(--color-danger);
    }
    .waypoint-badge {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: bold;
      color: white;
      flex-shrink: 0;
    }
    .waypoint-badge.start {
      background: var(--color-success);
    }
    .waypoint-badge.end {
      background: var(--color-danger);
    }
    .waypoint-badge.num {
      background: var(--color-primary);
    }
    .waypoint-name {
      flex: 1;
      font-size: 0.9rem;
      color: var(--color-text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .waypoint-delete {
      background: none;
      border: none;
      color: var(--color-danger);
      cursor: pointer;
      font-size: 18px;
      padding: 0;
      line-height: 1;
    }
    .waypoint-delete:hover {
      opacity: 0.7;
    }
    /* 添加途经点搜索 */
    .route-filter-item { padding: 7px 10px; font-size: 12px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .route-filter-item:hover { background: #f0f2ff; }
    .route-filter-item.active { background: #e8eaff; color: var(--color-primary); font-weight: 600; }
    .add-waypoint-section {
      margin-bottom: 16px;
    }
    .add-waypoint-input {
      width: 100%;
      padding: 10px 12px;
      border: 2px solid var(--color-border);
      border-radius: 8px;
      font-size: 0.9rem;
      transition: border-color 0.2s;
    }
    .add-waypoint-input:focus {
      outline: none;
      border-color: #E91E63;
    }
    .waypoint-search-results {
      max-height: 150px;
      overflow-y: auto;
      margin-top: 8px;
      border: 1px solid var(--color-border);
      border-radius: 8px;
      display: none;
    }
    .waypoint-search-results.show {
      display: block;
    }
    .waypoint-search-item {
      padding: 10px 12px;
      cursor: pointer;
      border-bottom: 1px solid var(--color-divider);
      transition: background 0.2s;
    }
    .waypoint-search-item:last-child {
      border-bottom: none;
    }
    .waypoint-search-item:hover {
      background: var(--color-bg-tertiary);
    }
    .waypoint-search-item .name {
      font-weight: 500;
      color: var(--color-text);
    }
    .waypoint-search-item .coords {
      font-size: 0.8rem;
      color: var(--color-text-secondary);
      margin-top: 2px;
    }
    /* 路线信息展示 */
    .route-info {
      background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
      color: white;
      padding: 16px;
      border-radius: 12px;
      margin-bottom: 16px;
      text-align: center;
      display: none;
    }
    .route-info.show {
      display: block;
    }
    .route-info .distance {
      font-size: 1.4rem;
      font-weight: bold;
      margin-bottom: 4px;
    }
    .route-info .time {
      font-size: 0.9rem;
      opacity: 0.9;
    }
    .route-segments-toggle {
      font-size: 0.8rem;
      opacity: 0.8;
      cursor: pointer;
      margin-top: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      user-select: none;
    }
    .route-segments-toggle:hover {
      opacity: 1;
    }
    .route-segments-list {
      display: none;
      margin-top: 10px;
      border-top: 1px solid rgba(255,255,255,0.25);
      padding-top: 8px;
      max-height: 200px;
      overflow-y: auto;
    }
    .route-segments-list.show {
      display: block;
    }
    /* 画线类型选择下拉 */
    .draw-type-dropdown {
      position: relative;
      display: inline-block;
    }
    .draw-type-menu {
      display: none;
      position: absolute;
      top: calc(100% + 6px);
      left: 50%;
      transform: translateX(-50%);
      background: white;
      border-radius: 10px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.18);
      overflow: hidden;
      z-index: 3000;
      min-width: 140px;
    }
    .draw-type-menu.show {
      display: block;
    }
    .draw-type-menu-item {
      padding: 10px 16px;
      font-size: 0.85rem;
      color: var(--color-text);
      cursor: pointer;
      white-space: nowrap;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: background 0.15s;
    }
    .draw-type-menu-item:hover {
      background: var(--color-border-light);
    }
    .draw-type-menu-item .dtm-icon {
      font-size: 1rem;
    }
    /* 路径线弹窗 */
    .route-line-modal .rl-meta-row select,
    .route-line-modal .rl-meta-row select:focus,
    .route-segment-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 5px 0;
      font-size: 0.75rem;
      opacity: 0.9;
    }
    .route-segment-item:not(:last-child) {
      border-bottom: 1px solid rgba(255,255,255,0.12);
    }
    .route-segment-points {
      display: flex;
      align-items: center;
      gap: 3px;
      max-width: 58%;
      overflow: hidden;
    }
    .route-segment-points .seg-name {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 60px;
    }
    .route-segment-points .seg-arrow {
      flex-shrink: 0;
      font-size: 0.7rem;
      opacity: 0.7;
    }
    .route-segment-data {
      white-space: nowrap;
      font-weight: 500;
      font-size: 0.73rem;
    }
    /* 操作按钮 */
    .route-actions {
      display: flex;
      gap: 6px;
    }
    .route-actions .plan-btn {
      flex: 1;
      padding: 10px 8px;
      border: none;
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      background: #E91E63;
      color: white;
      transition: all 0.2s;
    }
    .route-actions .plan-btn:hover:not(:disabled) {
      background: #C2185B;
    }
    .route-actions .plan-btn:disabled {
      background: var(--color-disabled);
      cursor: not-allowed;
    }
    .route-actions .optimize-btn {
      padding: 10px 8px;
      border: none;
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 500;
      cursor: pointer;
      background: #FF9800;
      color: white;
      display: none;
      transition: all 0.2s;
    }
    .route-actions .optimize-btn.show {
      display: inline-block;
    }
    .route-actions .optimize-btn:hover {
      background: #e68a00;
    }
    .route-actions .clear-btn {
      padding: 10px 8px;
      border: none;
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 500;
      cursor: pointer;
      background: var(--color-bg-secondary);
      color: var(--color-text-regular);
      transition: all 0.2s;
    }
    .route-actions .clear-btn:hover {
      background: var(--color-divider);
    }
    .route-actions .save-btn {
      padding: 10px 8px;
      border: none;
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      background: linear-gradient(135deg, var(--color-primary), var(--color-primary-gradient-end));
      color: white;
      display: none;
      transition: all 0.2s;
    }
    .route-actions .save-btn.show {
      display: inline-block;
    }
    .route-actions .save-btn:hover {
      opacity: 0.9;
    }
    /* 提示文字 */
    .route-hint {
      text-align: center;
      color: var(--color-text-secondary);
      font-size: 0.85rem;
      padding: 20px 0;
    }
    .route-hint .icon {
      font-size: 32px;
      margin-bottom: 8px;
    }
    /* 点击地图标记添加提示 */
    .marker-add-tip {
      position: fixed;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(0,0,0,0.8);
      color: white;
      padding: 10px 20px;
      border-radius: 8px;
      font-size: 0.9rem;
      z-index: 2600;
      display: none;
    }
    .marker-add-tip.show {
      display: block;
    }
    /* 移动端适配 */

    /* 标记图片区域 */

    /* 大图预览 */
    /* 计划标签 */

    /* AI旅行下拉菜单 */

    .plan-badge-btn {
      background: rgba(255,255,255,0.2);
      border: 1px solid rgba(255,255,255,0.4);
      color: white;
      padding: 4px 12px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.2s;
      margin-right: 8px;
    }
    .plan-badge-btn:hover { background: rgba(255,255,255,0.3); }
    .plan-badge-btn.pro { background: #f6a623; border-color: #f6a623; }
    .plan-badge-btn.pro:hover { background: #e09000; }
    /* 升级弹窗 */
    .upgrade-summary { margin-bottom: 20px; }
    .upgrade-summary .plan-name { font-size: 16px; font-weight: 600; color: #0f4c5c; margin-bottom: 4px; }
    .upgrade-summary .plan-expire { font-size: 12px; color: var(--color-text-secondary); margin-bottom: 16px; }
    .upgrade-item {
      display: flex; justify-content: space-between; align-items: center;
      padding: 12px 0; border-bottom: 1px solid var(--color-divider);
    }
    .upgrade-item:last-child { border-bottom: none; }
    .upgrade-item .label { font-size: 14px; color: var(--color-text-regular); }
    .upgrade-item .value { font-size: 14px; font-weight: 600; color: #0f4c5c; }
    .upgrade-item .value.warning { color: #f6a623; }
    .upgrade-item .value.danger { color: var(--color-danger); }
    .upgrade-progress {
      height: 8px; background: #e8eef1; border-radius: 4px; margin-top: 6px; overflow: hidden;
    }
    .upgrade-progress-fill { height: 100%; background: #0f4c5c; border-radius: 4px; transition: width 0.3s; }
    .upgrade-progress-fill.warning { background: #f6a623; }
    .upgrade-progress-fill.danger { background: var(--color-danger); }
    .upgrade-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
    .upgrade-btn-primary {
      width: 100%; padding: 12px; background: #f6a623; color: #fff;
      border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer;
    }
    .upgrade-btn-primary:hover { background: #e09000; }
    .upgrade-btn-secondary {
      width: 100%; padding: 10px; background: transparent; color: var(--color-text-regular);
      border: 1px solid var(--color-border-light); border-radius: 8px; font-size: 14px; cursor: pointer;
    }
    .upgrade-btn-secondary:hover { background: var(--color-bg-tertiary); }

    /* ============== 移动端适配样式 ============== */
  

    /* 线标注地图标签 */
    .polyline-label {
      position: relative;
      background: rgba(255,255,255,0.92);
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 11px;
      color: #0f4c5c;
      font-weight: 600;
      white-space: nowrap;
      cursor: pointer;
      box-shadow: 0 1px 4px rgba(0,0,0,0.15);
      border: 1.5px solid #0f4c5c;
      transform: translateX(-50%);
    }
    .polyline-label::before {
      content: '';
      position: absolute;
      top: -6px;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 0;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-bottom: 6px solid #0f4c5c;
    }
    .polyline-label:hover {
      box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    }
    .polyline-label-route {
      background: rgba(233,30,99,0.92);
      color: white;
      border-color: #C2185B;
    }
    .polyline-label-route::before {
      border-bottom-color: #C2185B;
    }
    .shape-list-main {
      cursor: pointer;
      position: relative;
    }
    .shape-route-info {
      display: flex;
      gap: 12px;
      margin-top: 4px;
      font-size: 11px;
      color: #E91E63;
    }
    .shape-route-info span {
      display: flex;
      align-items: center;
      gap: 3px;
    }
    .shape-route-badge {
      display: inline-block;
      background: rgba(233,30,99,0.1);
      color: #E91E63;
      font-size: 10px;
      padding: 1px 6px;
      border-radius: 3px;
      margin-left: 6px;
      vertical-align: middle;
    }
    .shape-mode-badge {
      display: inline-block;
      font-size: 10px;
      padding: 1px 5px;
      border-radius: 3px;
      margin-left: 4px;
      vertical-align: middle;
      background: rgba(0,0,0,0.06);
      color: var(--color-text-regular);
    }
    .shape-mode-badge.driving { color: #1976D2; background: rgba(25,118,210,0.08); }
    .shape-mode-badge.transit { color: #388E3C; background: rgba(56,142,60,0.08); }
    .shape-mode-badge.walking { color: #F57C00; background: rgba(245,124,0,0.08); }
    .shape-mode-badge.riding { color: #7B1FA2; background: rgba(123,31,162,0.08); }
    .shape-segments-toggle {
      font-size: 11px;
      color: var(--color-primary);
      cursor: pointer;
      margin-top: 4px;
      user-select: none;
    }
    .shape-segments-toggle:hover {
      color: var(--color-primary-hover);
    }
    .shape-segments-detail {
      font-size: 11px;
      color: var(--color-text-regular);
      margin-top: 4px;
      padding-left: 8px;
      border-left: 2px solid #E91E63;
    }
    .shape-segments-detail .seg-item {
      padding: 2px 0;
    }

/* ============ 日程规划样式 ============ */
.schedule-month-nav {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.schedule-month-btn {
  background: var(--color-border-light); border: none; border-radius: 6px; padding: 8px 16px; cursor: pointer; font-size: 18px; color: var(--color-text);
}
.schedule-month-btn:hover { background: var(--color-border); }
.schedule-month-label { font-size: 17px; font-weight: 600; color: var(--color-text); }
.schedule-calendar { flex: 1; overflow-y: auto; min-height: 0; }
.schedule-grid { min-width: 1020px;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
}
.schedule-week-header { font-size: 13px;
  padding: 8px 0; font-size: 13px; color: var(--color-text-muted); font-weight: 600; text-align: center;
  border-bottom: 1px solid var(--color-divider);
}
.schedule-cell-empty { padding: 4px; }
.schedule-cell { min-height: 90px;
  min-height: 80px; max-height: 140px; background: var(--color-bg-secondary); border-radius: 6px; padding: 4px 8px;
  border: 1px solid var(--color-divider); position: relative; font-size: 13px;
  display: flex; flex-direction: column;
}
.schedule-cell-today { background: #f0f7ff; border-color: #4a90d9; }
.schedule-cell-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px;
}
.schedule-day-num { font-weight: 500; color: var(--color-text); font-size: 15px; }
.schedule-day-today { font-weight: 700; color: #4a90d9; }
.schedule-add-btn {
  cursor: pointer; color: var(--color-text-muted); font-size: 16px; line-height: 1; width: 18px;
  text-align: center; border-radius: 50%; transition: all 0.15s;
}
.schedule-add-btn:hover { color: #4a90d9; background: #e8f0fe; }
.schedule-item {
  display: flex; align-items: center; padding: 2px 5px 2px 7px; margin: 1px 0;
  border-radius: 3px; cursor: pointer; font-size: 12px; line-height: 1.5;
  border-left: 3px solid transparent; transition: background 0.15s;
}
.schedule-item-marker { border-left-color: var(--color-success); background: #f1f8f1; }
.schedule-item-marker:hover { background: #d8edd8; }
.schedule-item-polyline { border-left-color: #5c6bc0; background: #f1f2f8; }
.schedule-item-polyline:hover { background: #d8daed; }
.schedule-item-icon { display: none; }
.schedule-item-name { font-size: 12.5px;
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-text);
}
.schedule-item-del {
  flex-shrink: 0; color: #f44; cursor: pointer; font-size: 11px; opacity: 0;
  transition: opacity 0.15s; margin-left: 3px; padding: 0 2px;
}
.schedule-item:hover .schedule-item-del { opacity: 0.6; }
.schedule-item-del:hover { opacity: 1 !important; }
.schedule-items { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 1px; }
.schedule-more { font-size: 11px; color: #4a90d9; text-align: center; padding: 2px 0; cursor: pointer; }
.schedule-more:hover { text-decoration: underline; }

/* 添加日程项弹窗 */

/* 手机端适配 */

        
            font-weight: 500;
            color: var(--color-text);
            font-size: 14px;
        }

        .logout-btn {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--color-text-muted);
            font-size: 18px;
            padding: 2px;
            display: flex;
            align-items: center;
            margin-left: 4px;
        }

        .logout-btn:hover {
            color: var(--color-danger);
        }

        /* ==================== 登录注册弹窗样式 ==================== */















        .auth-submit-btn {
            width: 100%;
            padding: 14px;
            background: var(--color-primary);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
            margin-top: 8px;
        }

        .auth-submit-btn:hover {
            background: var(--color-primary-hover);
        }

        .auth-submit-btn:disabled {
            background: var(--color-disabled);
            cursor: not-allowed;
        }



    
/* ==================== 个人中心抽屉 ==================== */
.room-leave-btn { background: rgba(255,165,2,0.1); color: var(--color-warning); border: none; padding: 4px 12px; border-radius: 4px; cursor: pointer; font-size: 12px; transition: background 0.2s; }
        .room-leave-btn:hover { background: rgba(255,165,2,0.2); }
        .room-delete-btn {
      background: none; border: none; color: var(--color-text-muted); cursor: pointer;
      width: 28px; height: 28px; border-radius: 6px; display: flex;
      align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0;
    }
    .room-delete-btn:hover { color: var(--color-danger); background: #fff0f0; }

  

  
    /* 大图预览 */
  
    /* ============ 线标注和面标注样式 ============ */
    /* 线标注和面标注按钮已移入框选工具栏 */
    #drawPolylineBtn.active, #drawPolygonBtn.active {
      box-shadow: 0 0 0 3px #ffd700;
      transform: scale(1.05);
    }
    #drawPolylineBtn:disabled, #drawPolygonBtn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
    .shape-hint {
      position: absolute;
      bottom: 100px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(0,0,0,0.8);
      color: white;
      padding: 12px 20px;
      border-radius: 8px;
      font-size: 14px;
      z-index: 1000;
      display: none;
      pointer-events: auto;
    }
    .shape-hint.show {
      display: flex;
      align-items: center;
      gap: 12px;
      pointer-events: auto;
    }
    .shape-hint-close {
      cursor: pointer;
      pointer-events: auto;
      color: #ff6b6b;
      font-weight: bold;
      margin-left: 8px;
    }
    
    /* 编辑弹窗样式 */
    .shape-edit-modal input[type="text"],
    .shape-edit-modal input[type="number"],
    .shape-edit-modal select,
    .shape-edit-modal input:focus,
    .shape-edit-modal select:focus,
    
    /* 侧边栏标注列表样式 */
    .shapes-tabs {
      display: flex;
      border-bottom: 1px solid var(--color-border);
      margin-bottom: 12px;
    }
    .shapes-tabs .tab {
      flex: 1;
      padding: 10px;
      text-align: center;
      cursor: pointer;
      font-size: 13px;
      color: var(--color-text-regular);
      border-bottom: 2px solid transparent;
      transition: all 0.2s;
    }
    .shapes-tabs .tab.active {
      color: var(--color-primary);
      border-bottom-color: var(--color-primary);
    }
    .shapes-tabs .tab:hover {
      color: var(--color-primary);
    }
    .shape-list-item {
      padding: 10px;
      background: var(--color-bg-secondary);
      border-radius: 8px;
      margin-bottom: 8px;
      cursor: pointer;
      transition: all 0.2s;
      position: relative;
    }
    .shape-list-item:hover {
      background: #e9ecef;
    }
    .shape-list-item .shape-name {
      font-weight: 500;
      font-size: 14px;
      margin-bottom: 4px;
    }
    .shape-list-item .shape-meta {
      font-size: 11px;
      color: var(--color-text-muted);
    }
    .shape-list-main .shape-eye-toggle { position:absolute; right:36px; top:50%; transform:translateY(-50%); cursor:pointer; font-size:16px; opacity:0.4; transition:opacity 0.2s; z-index:2; line-height:1; padding:4px; }
    .shape-eye-toggle:hover { opacity:0.8; }
    .shape-eye-toggle.hidden-eye { opacity:0.25; }
    .shape-color-bar {
      height: 4px;
      border-radius: 2px;
      margin-top: 6px;
    }
    .shape-list-main .shape-nav-btn { position:absolute; right:60px; top:50%; transform:translateY(-50%); cursor:pointer; font-size:14px; opacity:0.4; transition:opacity 0.2s; z-index:2; line-height:1; padding:4px; }
    .shape-nav-btn:hover { opacity:0.8; }
    .shape-list-main .shape-weather-btn { position:absolute; right:84px; top:50%; transform:translateY(-50%); cursor:pointer; font-size:14px; opacity:0.4; transition:opacity 0.2s; z-index:2; line-height:1; padding:4px; }
    .shape-weather-btn:hover { opacity:0.8; }
    .shape-list-item .shape-tags {
      display: flex;
      gap: 4px;
      margin-top: 4px;
      flex-wrap: wrap;
    }
    .shape-list-item .shape-group-tag {
      display: inline-block;
      font-size: 10px;
      padding: 1px 6px;
      border-radius: 3px;
      line-height: 1.4;
    }
    .shape-list-item .shape-group-tag.group {
      background: var(--color-primary-bg);
      color: var(--color-primary);
    }
    .shape-list-item .shape-group-tag.tag {
      background: rgba(255,152,0,0.1);
      color: #FF9800;
    }
    .shapes-list-container {
      max-height: 300px;
      overflow-y: auto;
    }
    /* ============ 打印友好视图 ============ */
    /* 打印专用区域 - 屏幕上隐藏 */


    /* ============ 扩展工具栏（第二行） ============ */
    .selection-toolbar-2 {
      position: fixed;
      top: 130px;
      right: 20px;
      z-index: 1499;
      background: white;
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.15);
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 16px;
      transition: all 0.3s;
    }
    .selection-toolbar-2.collapsed {
      padding: 12px;
      border-radius: 50%;
    }
    .selection-toolbar-2.collapsed .toolbar-content-2 {
      display: none;
    }
    .selection-toolbar-2 .toolbar-toggle-2 {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--color-primary);
      color: white;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0;
      transition: transform 0.3s;
      flex-shrink: 0;
    }
    .selection-toolbar-2 .toolbar-toggle-2::before {
      content: '';
      width: 0;
      height: 0;
      border-top: 6px solid transparent;
      border-bottom: 6px solid transparent;
      border-left: 8px solid white;
    }
    .selection-toolbar-2 .toolbar-toggle-2:hover {
      background: var(--color-primary-hover);
    }
    .selection-toolbar-2.collapsed .toolbar-toggle-2::before {
      transform: rotate(180deg);
    }
    .selection-toolbar-2.collapsed .toolbar-toggle-2 {
      transform: rotate(180deg);
    }
    .toolbar-content-2 {
      display: flex;
      flex-direction: row;
      gap: 8px;
    }
    .toolbar-content-2 button {
      padding: 6px 10px;
      border: none;
      border-radius: 20px;
      font-size: 12px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      transition: all 0.2s;
      height: 32px;
      white-space: nowrap;
      color: white;
    }
    .toolbar-content-2 button:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    .toolbar-content-2 button svg {
      width: 14px;
      height: 14px;
      flex-shrink: 0;
    }

    .mlp-header {
      display: flex; justify-content: space-between; align-items: center;
      padding: 12px 16px; font-size: 14px; font-weight: 600;
      color: var(--color-text); border-bottom: 1px solid var(--color-divider);
    }
    .mlp-close { cursor: pointer; font-size: 20px; color: var(--color-text-muted); line-height: 1; }
    .mlp-close:hover { color: var(--color-text); }

    .mlp-section-title {
      padding: 8px 16px 4px; font-size: 11px; color: var(--color-text-muted); font-weight: 500;
      text-transform: uppercase; letter-spacing: 0.5px;
    }

    .mlp-grid {
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 6px; padding: 6px 12px;
    }
    .mlp-grid-2 { grid-template-columns: repeat(2, 1fr); }

    .mlp-item {
      display: flex; flex-direction: column; align-items: center;
      padding: 10px 4px; border-radius: 8px; cursor: pointer;
      border: 2px solid transparent; transition: all 0.15s;
    }
    .mlp-item:hover { background: #f5f7ff; }
    .mlp-item.active { border-color: var(--color-primary); background: #f0f3ff; }
    .mlp-item-icon { font-size: 22px; margin-bottom: 3px; }
    .mlp-item-name { font-size: 11px; color: var(--color-text); text-align: center; white-space: nowrap; }
    .mlp-item.active .mlp-item-name { color: var(--color-primary); font-weight: 600; }

    .mlp-traffic {
      padding: 10px 16px; border-top: 1px solid var(--color-divider);
    }
    .mlp-traffic-label {
      display: flex; align-items: center; gap: 6px;
      font-size: 13px; color: var(--color-text); cursor: pointer;
    }
    .mlp-traffic-label input[type="checkbox"] {
      width: 16px; height: 16px; accent-color: var(--color-primary); cursor: pointer;
    }



/* === 动画 === */

    @keyframes annScroll {
      0% { transform: translateX(100%); }
      100% { transform: translateX(-100%); }
    }

    @keyframes nameScroll {
      0%, 10% { transform: translateX(0); }
      90%, 100% { transform: translateX(var(--scroll-dist, -50px)); }
    }

    @keyframes annPopupIn {
      from { transform: scale(0.9); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }

    @keyframes mlpFadeIn { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform: translateY(0); } }
/* ===== 日程天气 ===== */
.schedule-weather { margin: 3px 0; border-radius: 5px; background: linear-gradient(135deg, #e8f4fd, #f0f7ff); padding: 3px 7px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.schedule-weather-city { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; line-height: 1.5; color: #4a6d8c; margin-right: 8px; white-space: nowrap; }
.schedule-weather-city .sw-icon { font-size: 13px; flex-shrink: 0; }
.schedule-weather-city .sw-name { font-weight: 500; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-weather-city .sw-temp { color: #5a7a9a; }
.schedule-weather-city .sw-tip { color: #d4760a; font-size: 9px; margin-left: 1px; }


/* 高德地图版权标注 */
.map-copyright {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(0,0,0,0.45);
  background: rgba(255,255,255,0.7);
  padding: 2px 10px;
  border-radius: 3px;
  z-index: 200;
  pointer-events: none;
  user-select: none;
}
.map-copyright a {
  color: rgba(0,0,0,0.55);
  text-decoration: none;
  pointer-events: auto;
}
.map-copyright a:hover {
  color: rgba(0,0,0,0.8);
  text-decoration: underline;
}
