/* === 弹窗与模态框样式 === */
/* 包含：auth、profile、detail、import、avatar、feedback、lightbox、shape-edit等 */

    .miniprogram-qr-popup {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.5);
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .miniprogram-qr-popup.hidden { display: none; }
    .header-feedback-btn {
      background: rgba(255,255,255,0.2);
      border: none;
      color: white;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      transition: background 0.2s;
      flex-shrink: 0;
    }
    .header-feedback-btn:hover {
      background: rgba(255,255,255,0.35);
    }
    .feedback-float-btn {
      position: fixed;
      right: 20px;
      bottom: 80px;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
      color: white;
      border: none;
      box-shadow: 0 4px 16px rgba(15,76,92,0.35);
      cursor: pointer;
      z-index: 999;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .feedback-float-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 24px rgba(15,76,92,0.45);
    }
    .feedback-overlay {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.4);
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: all 0.2s;
    }
    .feedback-overlay.active { opacity: 1; visibility: visible; }
    .feedback-modal {
      background: white;
      border-radius: 16px;
      padding: 28px;
      width: 400px;
      max-width: 90vw;
      box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    }
    .feedback-modal h3 {
      font-size: 18px;
      margin-bottom: 16px;
      color: #1a202c;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .feedback-type-row {
      display: flex;
      gap: 8px;
      margin-bottom: 14px;
      flex-wrap: wrap;
    }
    .feedback-type-btn {
      padding: 5px 14px;
      border-radius: 16px;
      border: 1px solid var(--color-border);
      background: white;
      font-size: 0.82rem;
      cursor: pointer;
      transition: all 0.15s;
      color: var(--color-text-regular);
    }
    .feedback-type-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
    .feedback-type-btn.active { background: var(--color-primary); color: white; border-color: var(--color-primary); }
    .feedback-textarea {
      width: 100%;
      height: 120px;
      border: 1px solid var(--color-border);
      border-radius: 10px;
      padding: 12px;
      font-size: 0.9rem;
      resize: vertical;
      outline: none;
      font-family: inherit;
    }
    .feedback-textarea:focus { border-color: var(--color-primary); }
    .feedback-contact {
      width: 100%;
      border: 1px solid var(--color-border);
      border-radius: 10px;
      padding: 10px 12px;
      font-size: 0.85rem;
      margin-top: 10px;
      outline: none;
    }
    .feedback-contact:focus { border-color: var(--color-primary); }
    .feedback-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 16px;
    }
    .feedback-cancel-btn {
      padding: 8px 20px;
      border: 1px solid var(--color-border);
      border-radius: 8px;
      background: white;
      cursor: pointer;
      color: var(--color-text-regular);
    }
    .feedback-submit-btn {
      padding: 8px 24px;
      border: none;
      border-radius: 8px;
      background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-gradient-end) 100%);
      color: white;
      cursor: pointer;
      font-weight: 600;
    }
    .feedback-submit-btn:hover { opacity: 0.9; }
    .auth-required-overlay.hidden {
      display: none !important;
    }
    .auth-required-overlay.hidden {
      display: none !important;
    }
    .auth-required-overlay {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.5); z-index: 9998;
      display: flex; align-items: center; justify-content: center;
      backdrop-filter: blur(3px);
    }
    .header-profile-btn {
      background: rgba(255,255,255,0.2);
      border: none;
      color: white;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
    }
    .avatar-wrapper { position: relative; width: 80px; height: 92px; margin: 0 auto 12px; }
    .avatar-edit-btn {
      position: absolute; bottom: 0; right: 0;
      width: 26px; height: 26px; border-radius: 50%;
      background: var(--color-primary); color: #fff; border: 2px solid #fff;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      box-shadow: 0 2px 6px rgba(0,0,0,0.15); transition: transform 0.2s;
    }
    .avatar-edit-btn:hover { transform: scale(1.1); }
    .avatar-modal-overlay {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.5); z-index: 10001;
      display: flex; align-items: center; justify-content: center;
    }
    .avatar-modal-overlay.hidden { display: none !important; }
    .avatar-modal {
      background: var(--color-bg); border-radius: 16px; padding: 24px;
      width: 360px; max-width: 90vw; max-height: 80vh; overflow-y: auto;
    }
    .avatar-modal h4 { margin: 0 0 16px; font-size: 16px; color: var(--color-text); }
    .avatar-grid {
      display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px;
    }
    .avatar-option {
      width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
      border: 3px solid transparent; transition: border-color 0.2s, transform 0.2s;
      display: flex; align-items: center; justify-content: center; font-size: 28px;
    }
    .avatar-option:hover { border-color: var(--color-primary); transform: scale(1.08); }
    .avatar-option.selected { border-color: var(--color-primary); }
    .avatar-upload-area {
      border: 2px dashed var(--color-border-light); border-radius: 8px; padding: 16px;
      text-align: center; cursor: pointer; transition: border-color 0.2s; margin-bottom: 16px;
    }
    .avatar-upload-area:hover { border-color: var(--color-primary); }
    .avatar-upload-area svg { vertical-align: middle; margin-right: 6px; }
    .avatar-preview { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: block; }
    .room-manage-overlay {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.5); z-index: 10001;
      display: flex; align-items: center; justify-content: center;
    }
    .room-manage-overlay.hidden { display: none !important; }
    .room-manage-modal {
      background: var(--color-bg); border-radius: 16px; padding: 24px;
      width: 400px; max-width: 90vw; max-height: 80vh; overflow-y: auto;
    }
    .room-manage-modal h4 { margin: 0 0 16px; font-size: 16px; color: var(--color-text); }
    .header-profile-btn:hover {
      background: rgba(255,255,255,0.35);
    }
    .batch-action-bar {
      display: none;
      position: sticky;
      bottom: 0;
      background: rgba(255,255,255,0.97);
      backdrop-filter: blur(6px);
      border-top: 1px solid var(--color-divider);
      padding: 8px 10px;
      z-index: 10;
      gap: 6px;
      align-items: center;
      justify-content: center;
    }
    .batch-action-bar.show { display: flex; }
    .batch-action-bar .batch-count { font-size: 0.72rem; color: var(--color-text-muted); margin-right: 2px; }
    .batch-action-bar button {
      padding: 5px 12px;
      border: none;
      border-radius: 14px;
      font-size: 0.72rem;
      cursor: pointer;
      white-space: nowrap;
      transition: opacity 0.2s;
    }
    .batch-action-bar button:hover { opacity: 0.85; }
    .batch-action-bar .batch-group-btn { background: var(--color-primary); color: white; }
    .batch-action-bar .batch-tag-btn { background: #34A853; color: white; }
    .batch-action-bar .batch-edit-btn { background: #F2994A; color: white; }
    .batch-action-bar .batch-del-btn { background: var(--color-danger); color: white; }
    .batch-action-bar .batch-cancel-btn { background: var(--color-border-light); color: var(--color-text-secondary); }
    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2000;
    }
    .overlay.hidden {
      display: none;
    }
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10002;
    }
    .modal-overlay.hidden {
      display: none !important;
      visibility: hidden;
    }
    .modal {
      background: white;
      border-radius: 16px;
      padding: 24px;
      width: 420px;
      max-height: 85vh;
      overflow-y: auto;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }
    .schedule-modal-box {
      width: 1080px;
      max-height: 92vh;
      padding: 20px 24px;
      display: flex;
      flex-direction: column;
    }
    .schedule-modal-title {
      margin-bottom: 12px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .modal h3 {
      margin-bottom: 16px;
      color: var(--color-text);
    }
    .modal input {
      width: 100%;
      padding: 12px;
      border: 2px solid var(--color-border);
      border-radius: 8px;
      font-size: 0.95rem;
      margin-bottom: 12px;
    }
    .modal input:focus {
      outline: none;
      border-color: var(--color-primary);
    }
    .modal-buttons {
      display: flex;
      gap: 10px;
    }
    .modal-buttons button {
      flex: 1;
      padding: 12px;
      border: none;
      border-radius: 8px;
      font-size: 0.95rem;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.2s;
    }
    .modal-buttons .cancel-btn {
      background: var(--color-bg-secondary);
      color: var(--color-text-regular);
    }
    .modal-buttons .cancel-btn:hover {
      background: var(--color-disabled);
    }
    .modal-buttons .confirm-btn {
      background: var(--color-primary);
      color: white;
    }
    .modal-buttons .confirm-btn:hover {
      background: var(--color-primary-hover);
    }
    .modal-buttons .nav-btn {
      background: #0f4c5c;
      color: white;
      font-weight: 600;
    }
    .modal-buttons .nav-btn:hover {
      background: #0d3f4d;
    }
    .search-modal {
      width: 400px;
    }
    .search-modal .poi-info {
      margin-bottom: 16px;
    }
    .search-modal .poi-name {
      font-weight: 500;
      font-size: 1.1rem;
      color: var(--color-text);
      margin-bottom: 4px;
    }
    .search-modal .poi-address {
      font-size: 0.9rem;
      color: var(--color-text-secondary);
    }
    .search-modal .poi-coords {
      font-size: 0.8rem;
      color: var(--color-text-muted);
      margin-top: 8px;
    }
    .manage-modal {
      width: 480px;
      max-height: 70vh;
      display: flex;
      flex-direction: column;
    }
    .manage-modal h3 {
      flex-shrink: 0;
    }
    .manage-modal-tabs {
      flex-shrink: 0;
    }
    .manage-modal .modal-buttons {
      flex-shrink: 0;
    }
    .manage-modal-tabs {
      display: flex;
      gap: 10px;
      margin-bottom: 16px;
    }
    .manage-modal-tab {
      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;
    }
    .manage-modal-tab.active {
      border-color: var(--color-primary);
      background: var(--color-primary);
      color: white;
    }
    .announcement-popup {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.45);
      z-index: 10000;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .announcement-popup.hidden { display: none; }
    .announcement-popup-content {
      background: var(--color-bg);
      border-radius: 16px;
      width: 90%;
      max-width: 420px;
      max-height: 80vh;
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(0,0,0,0.2);
      animation: annPopupIn 0.3s ease;
    }
    .announcement-popup-header {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 18px 20px 14px;
      border-bottom: 1px solid var(--color-border-light);
    }
    .announcement-popup-header h3 {
      margin: 0;
      font-size: 17px;
      color: var(--color-text);
      flex: 1;
    }
    .announcement-popup-close {
      background: none;
      border: none;
      font-size: 20px;
      color: var(--color-text-muted);
      cursor: pointer;
      padding: 0 4px;
    }
    .announcement-popup-close:hover { color: var(--color-text); }
    .announcement-popup-body {
      padding: 16px 20px;
      overflow-y: auto;
      max-height: 55vh;
    }
    .announcement-popup-item {
      display: flex;
      gap: 10px;
      padding: 10px 0;
      border-bottom: 1px solid var(--color-border-light);
    }
    .announcement-popup-item:last-child { border-bottom: none; }
    .ann-popup-tag {
      flex-shrink: 0;
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 600;
      height: fit-content;
      margin-top: 2px;
    }
    .ann-popup-tag.new { background: #e8f5e9; color: #2e7d32; }
    .ann-popup-tag.fix { background: #fff3e0; color: #e65100; }
    .ann-popup-tag.opt { background: #e3f2fd; color: #1565c0; }
    .ann-popup-tag.imp { background: #fce4ec; color: #c62828; }
    .ann-popup-item-content { flex: 1; min-width: 0; }
    .ann-popup-item-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--color-text);
      margin-bottom: 2px;
    }
    .ann-popup-item-desc {
      font-size: 12px;
      color: var(--color-text-secondary);
      line-height: 1.5;
    }
    .ann-popup-item-date {
      font-size: 11px;
      color: #bbb;
      margin-top: 2px;
    }
    .announcement-popup-footer {
      padding: 12px 20px 16px;
      text-align: center;
    }
    .announcement-popup-footer button {
      width: 100%;
      padding: 12px;
      background: var(--color-primary);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
    }
    .announcement-popup-footer button:hover { background: var(--color-primary-hover); }
    .detail-modal {
      width: 480px;
      max-height: 85vh;
      overflow-y: auto;
    }
    .detail-modal::-webkit-scrollbar { width: 4px; }
    .detail-modal::-webkit-scrollbar-track { background: transparent; }
    .detail-modal::-webkit-scrollbar-thumb { background: var(--color-disabled); border-radius: 4px; }
    .detail-field {
      margin-bottom: 14px;
    }
    .detail-field label {
      display: block;
      font-size: 0.8rem;
      color: var(--color-text-secondary);
      margin-bottom: 4px;
      font-weight: 500;
    }
    .detail-field textarea {
      width: 100%;
      padding: 8px 10px;
      border: 1.5px solid var(--color-border-light);
      border-radius: 8px;
      font-size: 0.9rem;
      transition: border-color 0.2s;
      background: var(--color-bg-secondary);
    }
    .detail-field textarea:focus {
      outline: none;
      border-color: var(--color-primary);
      background: var(--color-bg);
    }
    .detail-field textarea {
      min-height: 64px;
      resize: vertical;
    }
    .detail-row {
      display: flex;
      gap: 12px;
    }
    .detail-row .detail-field {
      flex: 1;
    }
    .detail-info {
      background: var(--color-bg-secondary);
      border-radius: 8px;
      padding: 10px 12px;
      margin-bottom: 14px;
    }
    .detail-info #detailCoords { font-size: 0.8rem; color: var(--color-text-secondary); margin-bottom: 2px; }
    .detail-info #detailCreator { font-size: 0.75rem; color: var(--color-text-muted); }
    .create-tag-btn {
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 0.8rem;
      cursor: pointer;
      border: 1px dashed var(--color-disabled);
      background: white;
      color: var(--color-text-secondary);
    }
    /* ===== 路径线弹窗 - 全新布局 ===== */
    .route-line-modal {
      width: 440px !important;
      max-height: 92vh !important;
      display: flex;
      flex-direction: column;
      overflow: hidden !important;
      border-radius: 16px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    }
    .route-line-modal .rl-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 18px;
      border-bottom: 1px solid var(--color-border-light);
      background: #fafbff;
      flex-shrink: 0;
    }
    .route-line-modal .rl-header-title {
      font-size: 1.05rem;
      font-weight: 600;
      color: var(--color-text);
    }
    .route-line-modal .rl-header-close {
      background: none;
      border: none;
      font-size: 22px;
      color: var(--color-text-muted);
      cursor: pointer;
      padding: 0 4px;
      line-height: 1;
      transition: color 0.15s;
    }
    .route-line-modal .rl-header-close:hover {
      color: var(--color-text);
    }
    .route-line-modal .rl-body {
      flex: 1;
      overflow-y: auto;
      padding: 14px 18px;
    }
    .route-line-modal .rl-card {
      background: var(--color-bg-secondary);
      border: 1px solid var(--color-divider);
      border-radius: 10px;
      padding: 12px 14px;
      margin-bottom: 12px;
    }
    .route-line-modal .rl-section-title {
      font-size: 0.82rem;
      color: var(--color-text);
      margin-bottom: 10px;
      font-weight: 600;
    }
    .route-line-modal .rl-mode-tabs {
      display: flex;
      gap: 8px;
    }
    .route-line-modal .rl-mode-btn {
      flex: 1;
      padding: 10px 8px;
      border: 2px solid var(--color-border-light);
      border-radius: 10px;
      background: white;
      cursor: pointer;
      font-size: 0.85rem;
      text-align: center;
      transition: all 0.2s;
    }
    .route-line-modal .rl-mode-btn:hover {
      border-color: #c5caff;
      background: #fafaff;
    }
    .route-line-modal .rl-mode-btn.active {
      border-color: var(--color-primary);
      background: linear-gradient(135deg, #f0f2ff, #e8ecff);
      color: var(--color-primary);
      font-weight: 600;
      box-shadow: 0 2px 8px var(--color-primary-shadow);
    }
    .route-line-modal .rl-waypoints {
      max-height: 250px;
      overflow-y: auto;
    }
    .route-line-modal .rl-waypoint-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 0;
      border-bottom: 1px solid var(--color-border-light);
    }
    .route-line-modal .rl-waypoint-item:last-child {
      border-bottom: none;
    }
    .route-line-modal .rl-badge {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 0.65rem;
      font-weight: bold;
      flex-shrink: 0;
    }
    .route-line-modal .rl-badge.start { background: var(--color-success); }
    .route-line-modal .rl-badge.end { background: var(--color-danger); }
    .route-line-modal .rl-badge.mid { background: var(--color-primary); }
    .route-line-modal .rl-marker-search {
      flex: 1;
      position: relative;
    }
    .route-line-modal .rl-marker-input {
      width: 100%;
      padding: 8px 10px;
      border: 1px solid var(--color-border);
      border-radius: 8px;
      font-size: 0.82rem;
      outline: none;
      box-sizing: border-box;
      transition: border-color 0.15s;
    }
    .route-line-modal .rl-marker-input:focus {
      border-color: var(--color-primary);
      box-shadow: 0 0 0 2px var(--color-primary-bg);
    }
    .route-line-modal .rl-marker-input.selected {
      background: #f0f2ff;
      border-color: var(--color-primary);
      color: var(--color-text);
    }
    .route-line-modal .rl-marker-dropdown {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: white;
      border: 1px solid var(--color-border);
      border-radius: 8px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.12);
      max-height: 160px;
      overflow-y: auto;
      z-index: 10;
    }
    .route-line-modal .rl-marker-dropdown.show {
      display: block;
    }
    .route-line-modal .rl-marker-option {
      padding: 8px 10px;
      font-size: 0.82rem;
      cursor: pointer;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .route-line-modal .rl-marker-option:hover {
      background: #f0f2ff;
    }
    .route-line-modal .rl-move-btns { display: inline-flex; flex-direction: column; gap: 0; }
    .route-line-modal .rl-move-btn { background: var(--color-border-light); border: none; color: var(--color-text-secondary); cursor: pointer; font-size: 9px; padding: 2px 4px; line-height: 1; border-radius: 3px; }
    .route-line-modal .rl-move-btn:hover { background: var(--color-primary); color: white; }
    .route-line-modal .rl-remove-wp {
      background: none;
      border: none;
      color: #ccc;
      font-size: 1rem;
      cursor: pointer;
      padding: 0 2px;
      line-height: 1;
    }
    .route-line-modal .rl-remove-wp:hover { color: var(--color-danger); }
    .route-line-modal .rl-add-wp {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: 9px;
      color: var(--color-primary);
      font-size: 0.82rem;
      cursor: pointer;
      border: 1px dashed var(--color-border-light);
      border-radius: 8px;
      margin-top: 8px;
      background: none;
      width: 100%;
      transition: all 0.15s;
    }
    .route-line-modal .rl-add-wp:hover { border-color: var(--color-primary); background: #f5f6ff; }
    .route-line-modal .rl-input {
      flex: 1;
      padding: 8px 12px;
      border: 1px solid var(--color-border);
      border-radius: 8px;
      font-size: 0.85rem;
      outline: none;
      box-sizing: border-box;
      transition: border-color 0.15s;
    }
    .route-line-modal .rl-input:focus {
      border-color: var(--color-primary);
      box-shadow: 0 0 0 2px var(--color-primary-bg);
    }
    .route-line-modal .rl-color-picker {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .route-line-modal .rl-color-picker label {
      font-size: 0.78rem;
      color: var(--color-text-muted);
    }
    .route-line-modal .rl-color-input {
      width: 34px;
      height: 34px;
      border: 2px solid var(--color-border);
      border-radius: 8px;
      cursor: pointer;
      padding: 2px;
    }
    .route-line-modal .rl-meta-row {
      display: flex;
      gap: 10px;
    }
    .route-line-modal .rl-field {
      flex: 1;
    }
    .route-line-modal .rl-field label {
      display: block;
      font-size: 0.75rem;
      color: var(--color-text-secondary);
      margin-bottom: 5px;
      font-weight: 500;
    }
    .route-line-modal .rl-select {
      width: 100%;
      padding: 8px 10px;
      border: 1px solid var(--color-border);
      border-radius: 8px;
      font-size: 0.82rem;
      box-sizing: border-box;
      outline: none;
      background: white;
      cursor: pointer;
      transition: border-color 0.15s;
    }
    .route-line-modal .rl-select:focus {
      border-color: var(--color-primary);
      box-shadow: 0 0 0 2px var(--color-primary-bg);
    }
    .route-line-modal .rl-textarea {
      width: 100%;
      padding: 8px 12px;
      border: 1px solid var(--color-border);
      border-radius: 8px;
      font-size: 0.82rem;
      outline: none;
      resize: vertical;
      box-sizing: border-box;
      transition: border-color 0.15s;
    }
    .route-line-modal .rl-textarea:focus {
      border-color: var(--color-primary);
      box-shadow: 0 0 0 2px var(--color-primary-bg);
    }
    .route-line-modal .rl-quota-warn {
      background: #fff8e1;
      color: #f57f17;
      padding: 8px 12px;
      border-radius: 8px;
      font-size: 0.78rem;
      display: flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 4px;
    }
    .route-line-modal .rl-footer {
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 10px 14px;
      border-top: 1px solid var(--color-border-light);
      background: #fafbff;
      flex-shrink: 0;
    }
    .route-line-modal .rl-btn-row {
      display: flex;
      gap: 6px;
    }
    .route-line-modal .rl-btn {
      padding: 7px 8px;
      border: none;
      border-radius: 8px;
      font-size: 0.8rem;
      cursor: pointer;
      transition: all 0.2s;
      font-weight: 500;
    }
    .route-line-modal .rl-btn-cancel {
      flex: 1;
      background: var(--color-border-light);
      color: var(--color-text-secondary);
    }
    .route-line-modal .rl-btn-cancel:hover {
      background: var(--color-border);
    }
    .route-line-modal .rl-btn-danger {
      flex: 1;
      background: var(--color-danger);
      color: white;
    }
    .route-line-modal .rl-btn-danger:hover {
      background: #e8354a;
    }
    .route-line-modal .rl-btn-success {
      flex: 1;
      background: var(--color-success);
      color: white;
      font-weight: 600;
    }
    .route-line-modal .rl-btn-success:hover {
      background: #43a047;
    }
    .route-line-modal .rl-btn-nav {
      flex: 1;
      background: #0f4c5c;
      color: white;
      font-weight: 600;
    }
    .route-line-modal .rl-btn-nav:hover {
      background: #0d3f4d;
    }
    .route-line-modal .rl-btn-schedule {
      flex: 1;
      background: #e67e22;
      color: white;
      font-weight: 600;
    }
    .route-line-modal .rl-btn-schedule:hover {
      background: #d35400;
    }
    .route-line-modal .rl-btn-primary {
      flex: 1;
      background: linear-gradient(135deg, var(--color-primary), var(--color-primary-gradient-end));
      color: white;
      font-weight: 600;
    }
    .route-line-modal .rl-btn-primary:hover {
      background: linear-gradient(135deg, var(--color-primary-hover), var(--color-primary-gradient-end));
    }
    .detail-images {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 8px;
    }
    .detail-image-item {
      position: relative;
      width: 76px;
      height: 76px;
      border-radius: 10px;
      overflow: hidden;
      cursor: pointer;
      box-shadow: 0 1px 4px rgba(0,0,0,0.08);
      transition: transform 0.2s, box-shadow 0.2s;
      flex-shrink: 0;
    }
    .detail-image-item:hover {
      transform: scale(1.05);
      box-shadow: 0 3px 12px rgba(0,0,0,0.15);
      z-index: 1;
    }
    .detail-image-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .detail-image-delete {
      position: absolute;
      top: 2px;
      right: 2px;
      width: 20px;
      height: 20px;
      background: rgba(0,0,0,0.6);
      color: #fff;
      border: none;
      border-radius: 50%;
      font-size: 12px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: all;
      z-index: 2;
      opacity: 0;
      transition: opacity 0.2s;
    }
    .detail-image-item:hover .detail-image-delete {
      opacity: 1;
    }
    .detail-upload-area {
      border: 2px dashed var(--color-border);
      border-radius: 10px;
      padding: 14px;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s;
      color: var(--color-text-muted);
      font-size: 13px;
      background: var(--color-bg-secondary);
    }
    .detail-upload-area:hover {
      border-color: var(--color-primary);
      background: #f0f2ff;
      color: var(--color-primary);
    }
    .detail-upload-area svg {
      vertical-align: middle;
      margin-right: 6px;
    }
    .image-lightbox {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.85);
      z-index: 10003;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .image-lightbox.hidden { display: none !important; }
    .lightbox-content {
      position: relative;
      max-width: 90vw;
      max-height: 90vh;
    }
    .lightbox-content img {
      max-width: 90vw;
      max-height: 85vh;
      object-fit: contain;
      border-radius: 8px;
    }
    .lightbox-close {
      position: absolute;
      top: -36px;
      right: 0;
      background: none;
      border: none;
      color: #fff;
      font-size: 32px;
      cursor: pointer;
    }
    .upgrade-modal-overlay {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.5); z-index: 10002;
      display: flex; align-items: center; justify-content: center;
      backdrop-filter: blur(3px);
    }
    .upgrade-modal-overlay.hidden { display: none !important; }
    .upgrade-modal {
      background: var(--color-bg); border-radius: 16px; padding: 28px;
      width: 360px; max-width: 90vw; max-height: 85vh; overflow-y: auto;
    }
    .upgrade-modal h3 {
      font-size: 18px; color: #0f4c5c; margin-bottom: 20px; text-align: center;
      display: flex; align-items: center; justify-content: center; gap: 8px;
    }
    .upgrade-modal .close-btn {
      position: absolute; top: 16px; right: 16px;
      background: none; border: none; font-size: 24px; color: var(--color-text-muted); cursor: pointer;
    }
    .upgrade-modal .close-btn:hover { color: var(--color-text); }
.schedule-modal-box {
  width: 1080px !important;
  max-width: 96vw !important;
  max-height: 92vh !important;
  display: flex;
  flex-direction: column;
}
.schedule-modal-title {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.add-item-modal {
  width: 420px !important; max-width: 94vw !important; max-height: 75vh !important;
  display: flex; flex-direction: column;
}
.add-item-title {
  margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center;
}
.add-item-close {
  background: none; border: none; font-size: 22px; color: var(--color-text-muted); cursor: pointer; padding: 0 4px;
}
.add-item-list { flex: 1; overflow-y: auto; }
.add-item-section {
  font-size: 13px; color: var(--color-text-regular); font-weight: 600; margin: 10px 0 6px; padding: 0 2px;
}
.add-item-row {
  padding: 10px 12px; margin: 2px 0; background: var(--color-bg-secondary); border-radius: 6px;
  cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 8px;
  transition: background 0.15s;
}
.add-item-row:hover { background: #e8f0fe; }
.add-item-row-icon { flex-shrink: 0; }
.add-item-row-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add-item-modal-wide { width: 720px !important; }
.add-item-columns { display: flex; gap: 16px; flex: 1; overflow: hidden; }
.add-item-col { flex: 1; overflow-y: auto; min-width: 0; }
.add-item-col .add-item-section { position: sticky; top: 0; background: var(--color-bg); padding: 4px 2px; z-index: 1; }
        .auth-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }
        .auth-modal-overlay.hidden {
            display: none;
        }
        .auth-modal {
            background: white;
            border-radius: 16px;
            padding: 32px;
            width: 400px;
            max-width: 90vw;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            position: relative;
        }
        .auth-modal .modal-close {
            position: absolute;
            top: 12px;
            right: 12px;
            background: none;
            border: none;
            font-size: 24px;
            color: var(--color-text-muted);
            cursor: pointer;
            padding: 4px;
            line-height: 1;
        }
        .auth-modal .modal-close:hover {
            color: var(--color-text);
        }
        .auth-modal-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--color-text);
            margin-bottom: 24px;
            text-align: center;
        }
        .auth-form.hidden {
            display: none !important;
        }
        .auth-form-group {
            margin-bottom: 16px;
        }
        .auth-form-group label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: var(--color-text-regular);
            margin-bottom: 6px;
        }
        .auth-form-group input {
            width: 100%;
            padding: 12px 14px;
            border: 2px solid var(--color-border);
            border-radius: 8px;
            font-size: 15px;
            transition: border-color 0.2s;
        }
        .auth-form-group input:focus {
            outline: none;
            border-color: var(--color-primary);
        }
        .auth-form-group input::placeholder {
            color: var(--color-text-muted);
        }
        .auth-form-group input:disabled {
            background: var(--color-bg-tertiary);
            color: var(--color-text-secondary);
        }
        .auth-form-error {
            color: var(--color-danger);
            font-size: 13px;
            margin-top: 4px;
            margin-bottom: 8px;
        }
        .auth-form-hint {
            color: var(--color-text-secondary);
            font-size: 12px;
            margin-top: 4px;
        }
        .auth-form-switch {
            text-align: center;
            margin-top: 20px;
            font-size: 14px;
            color: var(--color-text-regular);
        }
        .auth-form-switch a {
            color: var(--color-primary);
            font-weight: 500;
            cursor: pointer;
        }
        .auth-form-switch a:hover {
            text-decoration: underline;
        }
.profile-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); z-index: 10000;
    opacity: 0; visibility: hidden; transition: all 0.3s;
}
.profile-overlay.active { opacity: 1; visibility: visible; }
.profile-drawer {
    position: fixed; top: 0; right: -400px; width: 380px; height: 100%;
    background: var(--color-bg); z-index: 10001; transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1); overflow-y: auto;
}
.profile-drawer.active { right: 0; }
.profile-drawer-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border-bottom: 1px solid var(--color-divider);
}
.profile-drawer-header h3 { margin: 0; font-size: 18px; color: var(--color-text); }
.profile-close-btn { background: none; border: none; font-size: 24px; color: var(--color-text-muted); cursor: pointer; }
.profile-close-btn:hover { color: var(--color-text); }
.profile-drawer-body { padding: 20px; }
.profile-section { margin-bottom: 24px; }
.profile-section-title { font-size: 14px; color: var(--color-text-regular); margin-bottom: 12px; font-weight: 600; }
.profile-avatar-large {
    width: 80px; height: 80px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 32px;
    color: #fff;
}
.profile-username-large { text-align: center; font-size: 18px; font-weight: 600; color: var(--color-text); }
.profile-account { text-align: center; font-size: 13px; color: var(--color-text-muted); margin-top: 4px; }
.profile-edit-row { display: flex; gap: 8px; }
.profile-edit-row input {
    flex: 1; padding: 8px 12px; border: 1px solid var(--color-border-light); border-radius: 6px; font-size: 14px;
}
.profile-save-btn {
    padding: 8px 16px; background: var(--color-primary); color: #fff; border: none;
    border-radius: 6px; cursor: pointer; font-size: 14px; white-space: nowrap;
}
.profile-save-btn:hover { background: var(--color-primary-hover); }
.password-field {
    margin-bottom: 14px;
}
.password-field label {
    display: block; font-size: 12px; color: var(--color-text-secondary); margin-bottom: 4px; font-weight: 500;
}
.password-field input {
    width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 8px;
    font-size: 14px; transition: border-color 0.2s; box-sizing: border-box;
}
.password-field input:focus {
    outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--color-primary-shadow);
}
.profile-password-btn {
    width: 100%; padding: 10px; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-gradient-end));
    color: #fff; border: none; border-radius: 8px; cursor: pointer;
    font-size: 14px; font-weight: 500; margin-top: 4px; transition: opacity 0.2s;
}
.profile-password-btn:hover { opacity: 0.9; }
.profile-room-tabs {
    display: flex; border: 1px solid var(--color-border-light); border-radius: 6px; overflow: hidden; margin-bottom: 12px;
}
.profile-room-tab {
    flex: 1; padding: 8px; text-align: center; background: var(--color-bg);
    border: none; cursor: pointer; font-size: 13px; color: var(--color-text-regular);
}
.profile-room-tab.active { background: var(--color-primary); color: #fff; }
.profile-room-list { max-height: 300px; overflow-y: auto; }
.profile-room-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; border: 1px solid var(--color-divider); border-radius: 6px;
    margin-bottom: 8px; cursor: pointer; transition: background 0.2s;
}
.profile-room-item:hover { background: var(--color-bg-tertiary); }
.profile-room-name { font-size: 14px; color: var(--color-text); font-weight: 500; }
.profile-room-meta { font-size: 12px; color: var(--color-text-muted); }
.profile-room-type { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.profile-room-type.public { background: #e8f4fd; color: #2196f3; }
.profile-room-type.private { background: #fff3e0; color: #ff9800; }
.profile-logout-btn {
    width: 100%; padding: 12px; background: var(--color-bg); color: #e74c3c;
    border: 1px solid #e74c3c; border-radius: 6px; cursor: pointer;
    font-size: 14px; margin-top: 20px;
}
.profile-logout-btn:hover { background: #e74c3c; color: #fff; }
.profile-empty { text-align: center; color: var(--color-text-muted); padding: 20px; font-size: 14px; }
.profile-section-header {
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; padding: 10px 0; user-select: none;
}
.profile-section-header:hover { color: var(--color-primary); }
.profile-section-arrow {
    font-size: 12px; transition: transform 0.2s; color: var(--color-text-muted);
}
.profile-section-arrow.expanded { transform: rotate(90deg); }
.profile-section-content {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.profile-section-content.expanded { max-height: 800px; }
.profile-room-id { font-size: 11px; color: #ff9800; margin-top: 2px; font-family: monospace; }
    .image-lightbox {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.85);
      z-index: 10003;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .image-lightbox.hidden { display: none !important; }
    .lightbox-content {
      position: relative;
      max-width: 90vw;
      max-height: 90vh;
    }
    .lightbox-content img {
      max-width: 90vw;
      max-height: 85vh;
      object-fit: contain;
      border-radius: 8px;
    }
    .lightbox-close {
      position: absolute;
      top: -36px;
      right: 0;
      background: none;
      border: none;
      color: #fff;
      font-size: 32px;
      cursor: pointer;
    }
    .shape-edit-modal {
      position: fixed;
      top: 5vh;
      left: 50%;
      transform: translateX(-50%);
      background: white;
      border-radius: 12px;
      padding: 24px;
      width: 380px;
      max-height: 90vh;
      overflow-y: auto;
      z-index: 10003;
      box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }
    .shape-edit-modal h3 {
      margin: 0 0 20px 0;
      font-size: 18px;
    }
    .shape-edit-modal .form-row {
      margin-bottom: 16px;
    }
    .shape-edit-modal label {
      display: block;
      font-size: 13px;
      color: var(--color-text-regular);
      margin-bottom: 6px;
    }
    .shape-edit-modal textarea {
      width: 100%;
      padding: 10px;
      border: 2px solid var(--color-border);
      border-radius: 8px;
      font-size: 14px;
      box-sizing: border-box;
    }
    .shape-edit-modal textarea:focus {
      border-color: var(--color-primary);
      outline: none;
    }
    .shape-edit-modal input[type="text"],
    .shape-edit-modal input[type="number"] {
      width: 100%;
      padding: 10px;
      border: 2px solid var(--color-border);
      border-radius: 8px;
      font-size: 14px;
      box-sizing: border-box;
    }
    .shape-edit-modal input[type="text"]:focus,
    .shape-edit-modal input[type="number"]:focus {
      border-color: var(--color-primary);
      outline: none;
    }
    .shape-edit-modal select {
      width: 100%;
      padding: 10px;
      border: 2px solid var(--color-border);
      border-radius: 8px;
      font-size: 14px;
      box-sizing: border-box;
      background: white;
      cursor: pointer;
    }
    .shape-edit-modal select:focus {
      border-color: var(--color-primary);
      outline: none;
    }
    .shape-edit-modal .color-row input[type="number"] {
      width: 100%;
    }
    .shape-edit-modal .color-row {
      display: flex;
      gap: 12px;
      align-items: center;
    }
    .shape-edit-modal .color-row input[type="color"] {
      width: 50px;
      height: 36px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
    }
    .shape-edit-modal .line-style-btns {
      display: flex;
      gap: 8px;
    }
    .shape-edit-modal .line-style-btns button {
      flex: 1;
      padding: 8px;
      border: 2px solid var(--color-border);
      background: white;
      border-radius: 6px;
      cursor: pointer;
      font-size: 12px;
    }
    .shape-edit-modal .line-style-btns button.active {
      border-color: var(--color-primary);
      background: #f0f2ff;
    }
    .shape-edit-modal .btn-row {
      display: flex;
      gap: 12px;
      margin-top: 20px;
    }
    .shape-edit-modal .btn-row button {
      flex: 1;
      padding: 12px;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      cursor: pointer;
    }
    .shape-edit-modal .btn-row .cancel-btn {
      background: var(--color-bg-secondary);
      color: var(--color-text-regular);
    }
    .shape-edit-modal .btn-row .delete-btn {
      background: var(--color-danger);
      color: white;
    }
    .shape-edit-modal .btn-row .save-btn {
      background: var(--color-primary);
      color: white;
    }
    .weather-panel { background:var(--color-bg); border:1px solid var(--color-border); border-radius:8px; padding:12px; margin-top:8px; font-size:13px; box-shadow:0 2px 8px rgba(0,0,0,0.1); }
    .weather-panel .weather-city { font-weight:600; margin-bottom:6px; color:var(--color-text); border-bottom:1px solid var(--color-divider); padding-bottom:4px; }
    .weather-panel .weather-city:not(:first-child) { margin-top:10px; }
    .weather-panel .weather-row { display:flex; justify-content:space-between; padding:3px 0; color:var(--color-text); }
    .weather-panel .weather-row .label { color:var(--color-text-muted); }
    .weather-panel .weather-loading { text-align:center; color:var(--color-text-muted); padding:10px; }
    .print-only-section { display: none; }
    .map-layer-panel {
      position: fixed; top: 140px; right: 20px;
      width: 300px; background: white; border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.15); z-index: 200;
      display: none; overflow: hidden;
    }
    .map-layer-panel.show { display: block; animation: mlpFadeIn 0.2s ease; }

/* 日程卡片 */
.rl-schedule-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rl-schedule-check {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}
.rl-schedule-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #e67e22;
}
.rl-schedule-date {
  flex: 1;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  outline: none;
}
.rl-schedule-date:focus {
  border-color: #e67e22;
}

/* ===== 小信箱 ===== */
.mailbox-item {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s;
}
.mailbox-item:hover { background: #f7f8fa; }
.mailbox-item:last-child { border-bottom: none; }
.mailbox-unread { background: #fef9f9; }
