/* 旅游景点行程规划器样式 */
@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
}

/* 头部样式 */
.header {
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* 应用容器布局 */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 左侧边栏 */
.sidebar {
    width: 380px;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    min-width: 280px;
    max-width: 600px;
}

/* 侧边栏内容区域 - 可滚动 */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

/* 侧边栏头部 */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
}

.sidebar-header h1 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
}

/* 主要操作按钮区域 */
.main-actions {
    display: flex;
    gap: 6px;
    justify-content: space-between;
    padding: 0 10px;
}

.btn-main-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    color: #666;
    flex: 1;
    min-width: 0;
}

.btn-main-action:hover:not(:disabled) {
    background: #e8f4f8;
    border-color: #2196F3;
    color: #2196F3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.btn-main-action:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(33, 150, 243, 0.2);
}

.btn-main-action:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f9f9f9;
    color: #999;
}

/* 自定义禁用样式类 - 保持可点击但显示为灰色 */
.btn-main-action.btn-disabled {
    opacity: 0.6;
    background: #f9f9f9;
    color: #999;
    border-color: #e0e0e0;
    cursor: pointer;
}

.btn-main-action.btn-disabled:hover {
    opacity: 0.7;
    background: #f5f5f5;
    border-color: #d0d0d0;
    color: #666;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-main-action.btn-disabled:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.btn-icon {
    font-size: 16px;
    line-height: 1;
}

.btn-text {
    font-size: 11px;
    line-height: 1;
    font-weight: 500;
}

/* 底部操作按钮 */
.bottom-action {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.btn-bottom-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #666;
}

.btn-bottom-action:hover {
    background: #f8f9fa;
    border-color: #999;
    color: #333;
}

.btn-bottom-action .btn-icon {
    font-size: 14px;
}

/* 移动端按钮样式调整 */
@media (max-width: 768px) {
    /* 隐藏顶部标题 */
    .sidebar-header h1 {
        display: none;
    }

    .sidebar-header {
        padding: 10px 20px;
    }

    .main-actions {
        gap: 4px;
        padding: 0 5px;
    }

    .btn-main-action {
        padding: 6px 2px;
        font-size: 11px;
    }

    .btn-icon {
        font-size: 14px;
    }

    .btn-text {
        font-size: 10px;
    }

    .bottom-action {
        margin-top: 15px;
        padding-top: 10px;
    }

    .btn-bottom-action {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 拖动手柄 */
.resize-handle {
    width: 6px;
    background: #e0e0e0;
    cursor: col-resize;
    position: relative;
    transition: background-color 0.2s;
}

.resize-handle:hover {
    background: #2196F3;
}

.resize-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 30px;
    background: #999;
    border-radius: 1px;
}

/* 地图容器 */
.map-container {
    flex: 1;
    position: relative;
    background: #f5f5f5;
}


/* 输入组 */
.input-group {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 900px;
    align-items: center;
}

/* 按钮固定宽度 */
.input-group button {
    flex-shrink: 0;
    width: 100px;
}

.action-buttons button {
    flex-shrink: 0;
    width: 100px;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 8px;
}

/* 输入框样式 */
input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* 文本域样式 */
textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

textarea::placeholder {
    color: #999;
}

/* 批量输入区域 */
.batch-input-area {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.batch-input-area textarea {
    width: 100%;
    min-height: 100px;
    margin-bottom: 10px;
}

.batch-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 输入提示 */
.input-hint {
    text-align: center;
    color: #666;
    margin-top: 8px;
}

.input-hint a {
    color: #2196F3;
    text-decoration: none;
}

.input-hint a:hover {
    text-decoration: underline;
}

/* 帮助文本 */
.input-help {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 按钮样式 */
button {
    padding: 12px 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: inherit;
}

button:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

button:disabled:hover {
    background: #ccc;
    box-shadow: none;
}

/* Tab导航 */
.tab-nav {
    display: flex;
    gap: 2px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 0;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    font-family: inherit;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.tab-btn.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
    background: #f8f9fa;
}

/* Tab内容 */
.tab-content {
    display: block;
}

/* 景点列表操作按钮 */
.locations-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding: 0 5px;
}

.btn-action {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-action:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-action:active {
    transform: translateY(0);
}

/* 添加景点弹层样式 - 完全匹配景点详情样式 */
.add-location-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.add-location-modal .modal-overlay {
    display: none;
}

.add-location-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    min-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

.add-location-modal .modal-header {
    padding: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.add-location-modal .modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.add-location-modal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.add-location-modal .modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.add-location-modal .modal-body {
    padding: 12px;
    max-height: 60vh;
    overflow-y: auto;
}

.add-location-modal .modal-body textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
}

.add-location-modal .modal-body textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}


.add-location-modal .btn-confirm {
    background: #6366f1;
    color: white;
    border: none;
    padding: 8px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.025em;
}

.add-location-modal .btn-confirm:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.sidebar h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

/* 地图容器 */
.map-container {
    flex: 1;
    position: relative;
}

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

/* 景点项目 */
.location-item {
    background: #f8f9fa;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
}

.location-item:hover {
    background: #e8f5e8;
    transform: translateX(3px);
}

.location-item.highlighted {
    background: #fff3cd;
    border-left-color: #FF6B35;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    animation: pulse 2s infinite;
}

/* 景点主要布局 */
.location-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.location-info {
    flex: 1;
    cursor: pointer;
    min-width: 0;
}


.location-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    max-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.location-original-name {
    color: #999;
    font-size: 11px;
    margin: 2px 0;
}

.location-address {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* 切换按钮 */
.btn-switch {
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-weight: 500;
    flex-shrink: 0;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-switch:hover {
    background: #1976D2;
    transform: scale(1.05);
}

/* 弱化的操作按钮组 */
.location-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
    align-items: flex-end;
}

/* 操作按钮行 */
.action-row {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
}

/* 第一排按钮的特殊处理 */
.action-row:first-child {
    min-height: 24px;
}

/* 第二排按钮的特殊处理 */
.action-row:last-child {
    min-height: 24px;
}

.btn-remove {
    background: #2196F3;
    color: white;
    border: 1px solid #2196F3;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    padding: 0;
    line-height: 1;
}

.btn-remove:hover {
    background: #1976D2;
    color: white;
    border-color: #1976D2;
    transform: scale(1.1);
}

/* 移动按钮 */
.btn-move {
    background: #2196F3;
    color: white;
    border: 1px solid #2196F3;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    font-weight: bold;
}

.btn-move:hover {
    background: #1976D2;
    color: white;
    border-color: #1976D2;
    transform: scale(1.1);
}

.btn-move:disabled {
    background: transparent;
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
    transform: none;
}


/* 小按钮 */
.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 500;
}


/* 次级按钮 */
.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* 清空景点按钮 */
.btn-action-clear {
    background: #2196F3;
    color: white;
    border: 1px solid #2196F3;
}

.btn-action-clear:hover {
    background: #1976D2;
    border-color: #1976D2;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    transform: translateY(-1px);
}

/* 清除高亮按钮 */
.btn-action-highlight {
    background: #2196F3;
    color: white;
    border: 1px solid #2196F3;
}

.btn-action-highlight:hover {
    background: #1976D2;
    border-color: #1976D2;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    transform: translateY(-1px);
}

.btn-action-share {
    background: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
}

.btn-action-share:hover {
    background: #45a049;
    border-color: #45a049;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    transform: translateY(-1px);
}

/* 分享对话框样式 - 完全匹配景点详情样式 */
.share-dialog-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.share-dialog-modal .modal-overlay {
    display: none;
}

.share-dialog-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    min-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

.share-dialog-modal .modal-header {
    padding: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.share-dialog-modal .modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.share-dialog-modal .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.share-dialog-modal .close-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.share-dialog-modal .modal-body {
    padding: 12px;
    max-height: 60vh;
    overflow-y: auto;
}

.share-description {
    text-align: center;
    margin-bottom: 32px;
}

.share-description p {
    margin: 0;
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

.share-url-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.url-input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.url-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    background: #f8fafc;
    color: #2d3748;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.url-input:hover {
    border-color: #cbd5e0;
    background: #ffffff;
}

.url-input:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.copy-btn.error {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.4);
}

.btn-text {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn-icon {
    font-size: 16px;
}

.url-hint {
    text-align: center;
    color: #718096;
    font-size: 12px;
    margin-top: 8px;
    font-style: italic;
}

/* 移动端分享弹层优化 */
@media (max-width: 768px) {
    
    .share-dialog-modal .modal-header {
        padding: 20px 20px 12px 20px;
    }

    .share-dialog-modal .modal-header h3 {
        font-size: 16px;
    }

    .share-dialog-modal .modal-body {
        padding: 24px 20px 20px 20px;
    }

    .share-description p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .url-input-group {
        flex-direction: column;
        gap: 12px;
    }

    .url-input {
        padding: 14px 16px;
        font-size: 13px;
    }

    .copy-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 13px;
        min-width: unset;
    }

    .url-hint {
        font-size: 11px;
        margin-top: 6px;
    }
}

/* 路线信息 */
.route-info {
    margin-top: 20px;
}

.route-item {
    background: #e3f2fd;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
}

.route-item strong {
    font-size: 14px;
    font-weight: 600;
}

.route-item:hover {
    background: #bbdefb;
    transform: translateX(5px);
}

.route-item.highlighted {
    background: #fff3cd;
    border-left-color: #FF6B35;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    animation: pulse 2s infinite;
}

.total-distance {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #4CAF50;
    font-weight: 600;
    line-height: 1.6;
    font-size: 14px;
}

/* 加载动画 */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误信息 */
.error {
    background: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid #f44336;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

/* 成功信息 */
.success {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid #4CAF50;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

/* 信息提示 */
.info {
    background: #e3f2fd;
    color: #1565c0;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid #2196F3;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 清空按钮 */
.clear-btn {
    background: #f44336;
    margin-left: 10px;
}

.clear-btn:hover {
    background: #d32f2f;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: 40vh;
        min-height: 300px;
        max-height: 50vh;
    }

    /* 景点列表为空时的侧边栏样式 */
    .sidebar.empty-locations {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    /* 移动端侧边栏内容滚动优化 */
    .sidebar-content {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .header-row {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .header-controls {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
        align-items: flex-start;
    }

    /* 优化移动端布局 */
    .input-group {
        flex: 2;
        flex-direction: column;
        min-width: 200px;
    }

    .input-group input {
        width: 100%;
    }

    .input-group button {
        width: 100%;
    }

    .action-buttons {
        flex: 1;
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        align-items: flex-start;
        min-width: 220px;
    }

    .action-buttons button {
        width: 100px;
    }

    .header h1 {
        font-size: 18px;
        text-align: center;
    }

    /* 景点列表移动端优化 */
    .location-main {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .location-info {
        flex: 1;
        min-width: 0;
        margin-right: 8px;
    }

    .location-actions {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
        padding-top: 0;
        border-top: none;
    }

    .action-row {
        min-height: auto;
        gap: 4px;
    }

    .location-actions .btn-action {
        padding: 4px 8px;
        font-size: 11px;
        min-width: auto;
        height: 28px;
        line-height: 1;
    }

    .location-actions .btn-switch {
        padding: 4px 8px;
        font-size: 11px;
        min-width: auto;
        height: 28px;
        line-height: 1;
    }

    .action-row:first-child {
        justify-content: flex-start;
    }

    /* 移动端景点名称优化 */
    .location-name {
        font-size: 13px;
        line-height: 1.2;
        margin-bottom: 1px;
        max-height: 2.4em;
    }

    .location-address {
        font-size: 11px;
        line-height: 1.2;
        margin-top: 1px;
    }

    .location-original-name {
        font-size: 10px;
        margin: 1px 0;
    }

    .action-row:last-child {
        justify-content: flex-end;
    }

    /* Tab导航移动端优化 */
    .tab-nav {
        flex-direction: column;
        gap: 8px;
        border-bottom: none;
        border-right: 2px solid #eee;
        padding-right: 0;
        margin-bottom: 10px;
    }

    .tab-btn {
        border-bottom: none;
        border-right: 2px solid transparent;
        border-radius: 0 8px 8px 0;
        padding: 10px 12px;
        text-align: left;
    }

    .tab-btn.active {
        border-right-color: #4CAF50;
        border-bottom-color: transparent;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 15px;
    }

    /* Tab导航小屏幕优化 */
    .tab-nav {
        flex-direction: row;
        border-bottom: 2px solid #eee;
        border-right: none;
        margin-bottom: 10px;
    }

    .tab-btn {
        border-bottom: 2px solid transparent;
        border-right: none;
        border-radius: 8px 8px 0 0;
        padding: 8px 10px;
        text-align: center;
        font-size: 12px;
    }

    .tab-btn.active {
        border-bottom-color: #4CAF50;
        border-right-color: transparent;
    }

    /* 插入景点对话框移动端优化 */
    .insert-location-dialog {
        min-width: 320px;
        max-width: 90vw;
        margin: 0 20px;
    }

    .insert-dialog-modal .insert-content {
        padding: 0;
    }

    .position-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .position-card {
        min-height: 80px;
        padding: 12px 8px;
    }

    .position-icon {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .position-text {
        font-size: 13px;
    }

    .position-desc {
        font-size: 11px;
    }

    /* 移动端添加景点弹层优化 */
    .add-location-modal .modal-content {
        width: 95%;
        max-width: 90vw;
        min-width: 280px;
        margin: 0 10px;
    }

    .add-location-modal .modal-header {
        padding: 12px 16px;
    }

    .header h1 {
        font-size: 16px;
    }

    .action-buttons {
        flex-direction: row;
        gap: 8px;
    }

    .action-buttons button {
        width: 90px;
    }

    .clear-btn {
        margin-left: 0;
        margin-top: 0;
    }
}


/* 位置选择弹层样式 - 统一为景点详情样式 */
.location-options-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.location-options-modal .modal-overlay {
    display: none;
}

.location-options-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    min-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

.location-options-modal .modal-header {
    padding: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.location-options-modal .modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.location-options-modal .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.location-options-modal .close-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.location-options-modal .modal-body {
    padding: 12px;
    max-height: 60vh;
    overflow-y: auto;
}

.options-list {
    margin-top: 8px;
}

.option-item {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-item:hover {
    border-color: #2196F3;
    background: #f8f9fa;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.1);
}

.option-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.option-address {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

/* 滚动条样式 */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 位置选择对话框 */
.location-selector {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    width: 90%;
    max-width: 600px;
    min-width: 300px;
    max-height: 70vh;
    overflow: hidden;
}

/* 插入景点对话框 - 使用与景点详情相同的样式结构 */

/* 兼容旧的插入景点对话框样式 */
.insert-location-dialog {
    display: none; /* 隐藏旧样式 */
}

/* 插入景点对话框模态框 */
.insert-dialog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.insert-dialog-modal .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
}

.insert-dialog-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    min-width: 400px;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

.insert-dialog-modal .modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.insert-dialog-modal .modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.insert-dialog-modal .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.insert-dialog-modal .close-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.insert-dialog-modal .modal-body {
    padding: 24px;
}

.insert-dialog-modal .modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.insert-dialog-modal .btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.insert-dialog-modal .btn-cancel:hover {
    background: #5a6268;
}

.insert-dialog-modal .btn-confirm {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.insert-dialog-modal .btn-confirm:hover {
    background: #45a049;
}

.insert-dialog-modal .insert-content {
    padding: 0;
}

.insert-dialog-modal .insert-content h3 {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.insert-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.insert-input-area {
    margin-bottom: 20px;
}

.insert-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.insert-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.insert-position-options {
    margin-bottom: 20px;
}

.position-option-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.position-buttons {
    display: flex;
    gap: 12px;
}

.position-option {
    flex: 1;
    cursor: pointer;
}

.position-option input[type="radio"] {
    display: none;
}

.position-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    min-height: 100px;
    justify-content: center;
}

.position-card:hover {
    border-color: #4CAF50;
    background: #f1f8e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.position-option input[type="radio"]:checked + .position-card {
    border-color: #4CAF50;
    background: #e8f5e8;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.2);
}

.position-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.position-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    display: block;
}

.position-option input[type="radio"]:checked + .position-card .position-text {
    color: #4CAF50;
}

.position-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    display: block;
}

.position-option input[type="radio"]:checked + .position-card .position-desc {
    color: #2e7d32;
}

.insert-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* 插入按钮样式 */
.btn-insert {
    background: #2196F3;
    color: white;
    border: 1px solid #2196F3;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    padding: 0;
    line-height: 1;
    font-weight: bold;
}

.btn-insert:hover {
    background: #1976D2;
    border-color: #1976D2;
    transform: scale(1.1);
}

.selector-content {
    padding: 24px;
}

.selector-content h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.selector-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.location-options {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.location-option {
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-option:hover {
    background: #e3f2fd;
    border-color: #2196F3;
    transform: translateY(-1px);
}

.location-option.selected {
    background: #e8f5e8;
    border-color: #4CAF50;
}

.location-option-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.location-option-address {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.location-option-distance {
    color: #2196F3;
    font-size: 11px;
    margin-top: 4px;
}

.selector-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    }
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.tooltip:hover::after {
    opacity: 1;
}
/* 景点详情样式
 */
.detail-header {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.detail-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.location-detail {
    padding: 0;
}

.detail-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.detail-address {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.rating-stars {
    color: #ffc107;
    font-size: 16px;
}

.rating-score {
    font-weight: 600;
    color: #333;
}

.detail-tags {
    margin-bottom: 15px;
}

.tag-item {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin: 2px 4px 2px 0;
}

.detail-description {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
    font-size: 14px;
}

.detail-info-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 15px;
}

.detail-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-info-item:last-child {
    border-bottom: none;
}

.detail-info-icon {
    font-size: 16px;
    width: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.detail-info-content {
    flex: 1;
}

.detail-info-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.detail-info-value {
    font-size: 14px;
    color: #333;
    word-break: break-all;
}

.detail-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.detail-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.detail-action-btn:hover {
    background: #e0e0e0;
    border-color: #bbb;
}

.detail-action-btn.primary {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.detail-action-btn.primary:hover {
    background: #45a049;
    border-color: #45a049;
}

/* 景点详情错误状态 */
.detail-error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.detail-error-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.detail-error-message {
    font-size: 14px;
    margin-bottom: 15px;
}

/* 移动端景点详情优化 */
@media (max-width: 768px) {
    .detail-title {
        font-size: 18px;
    }
    
    .detail-description {
        padding: 12px;
        font-size: 13px;
    }
    
    .detail-info-grid {
        gap: 8px;
    }
    
    .detail-action-btn {
        font-size: 11px;
        padding: 6px 10px;
    }
}


/* 景点详情模态框样式 */
.location-detail-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.location-detail-modal .modal-overlay {
    display: none;
}

.location-detail-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    min-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

.location-detail-modal .modal-header {
    padding: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.location-detail-modal .modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.location-detail-modal .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.location-detail-modal .close-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.location-detail-modal .modal-body {
    padding: 12px;
    max-height: 60vh;
    overflow-y: auto;
}

.location-detail-modal .modal-body strong {
    color: #555;
    font-weight: 600;
}

.location-detail-modal .modal-body div {
    margin-bottom: 12px;
    line-height: 1.5;
}

.location-detail-modal .tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 景点详情样式 */
.poi-detail-item {
    margin-bottom: 8px;
    font-size: 12px;
    display: flex;
    align-items: flex-start;
}

.poi-detail-label {
    color: #000;
    font-weight: 600;
    min-width: 60px;
    display: inline-block;
    flex-shrink: 0;
    text-align: center;
}

.poi-detail-content {
    color: #000;
    font-size: 12px;
    flex: 1;
    word-break: break-word;
}

/* 网址链接样式 */
.poi-detail-content a {
    color: #007bff;
    text-decoration: none;
}

.poi-detail-content a:hover {
    text-decoration: underline;
}


/* 响应式调整 */
@media (max-width: 768px) {
    /* 移动端布局调整 */
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100% !important;
        height: 40vh;
        min-width: unset;
        max-width: unset;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .resize-handle {
        display: none;
    }

    .map-container {
        height: 60vh;
    }

    /* 弹层优化 */
    .location-detail-modal .modal-content {
        width: 95%;
        max-width: 90vw;
        min-width: 280px;
        margin: 0 10px;
        max-height: 85vh;
    }

    .add-location-modal .modal-content {
        width: 95%;
        max-width: 400px;
        min-width: unset;
    }

    .location-selector {
        width: 95%;
        min-width: unset;
        max-width: 95%;
    }

    .insert-location-dialog {
        width: 95%;
        min-width: unset;
        max-width: 95%;
    }

    
    /* 统一弹层移动端样式 */
    .add-location-modal .modal-content,
    .share-dialog-modal .modal-content,
    .location-detail-modal .modal-content,
    .location-options-modal .modal-content,
    .insert-dialog-modal .modal-content {
        width: 95%;
        max-width: 90vw;
        min-width: 280px;
        margin: 0 10px;
        max-height: 85vh;
    }

    .add-location-modal .modal-header,
    .share-dialog-modal .modal-header,
    .location-detail-modal .modal-header,
    .location-options-modal .modal-header,
    .insert-dialog-modal .modal-header {
        padding: 16px 20px;
    }

    .add-location-modal .modal-body,
    .share-dialog-modal .modal-body,
    .location-detail-modal .modal-body,
    .location-options-modal .modal-body,
    .insert-dialog-modal .modal-body {
        padding: 20px;
    }

    .add-location-modal .modal-header h3,
    .share-dialog-modal .modal-header h3,
    .location-detail-modal .modal-header h3,
    .location-options-modal .modal-header h3,
    .insert-dialog-modal .modal-header h3 {
        font-size: 16px;
    }

    .add-location-modal .modal-close,
    .share-dialog-modal .close-btn,
    .location-detail-modal .close-btn,
    .location-options-modal .close-btn,
    .insert-dialog-modal .close-btn {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .add-location-modal textarea {
        font-size: 14px;
        min-height: 80px;
    }

    .add-location-modal .btn-confirm {
        font-size: 14px;
        padding: 8px 20px;
    }
}

/* 全屏按钮样式 */
.fullscreen-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.fullscreen-btn:active {
    transform: scale(0.95);
}

.fullscreen-icon {
    user-select: none;
    pointer-events: none;
}

/* 全屏状态样式 */
.fullscreen-active .app-container {
    height: 100vh;
}

.fullscreen-active .sidebar {
    display: none;
}

.fullscreen-active .resize-handle {
    display: none;
}

.fullscreen-active .map-container {
    width: 100% !important;
    height: 100vh !important;
    flex: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

.fullscreen-active #map {
    width: 100% !important;
    height: 100vh !important;
}

.fullscreen-active .fullscreen-btn {
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
}

/* 移动端全屏按钮调整 */
@media (max-width: 768px) {
    .fullscreen-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        top: 15px;
        right: 15px;
    }
}

/* 景点详情弹窗优化 - 防止重叠 */
.location-detail-modal {
    position: fixed !important;
    z-index: 10000 !important;
}

/* 确保同时只有一个modal显示 */
.location-detail-modal ~ .location-detail-modal {
    display: none !important;
}
}