/* 搜索栏样式 */
        .search-container {
            position: fixed;
            top: 10px;
            left: 20px;
            z-index: 1001;
            display: flex;
            align-items: center;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
            padding: 5px 15px;
            border-radius: 5px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 1px 5px rgba(0, 0, 0, 0.05);
            backdrop-filter: blur(5px);
            /* 古典门窗特色边框 */
            border: 2px solid #8B4513;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%238B4513" stroke-width="1" stroke-dasharray="5,3"/></svg>');
            background-size: 20px 20px;
        }
        
        .search-input {
            border: none;
            outline: none;
            background: transparent;
            padding: 8px 15px;
            font-size: 14px;
            width: 200px;
            color: #333;
            font-family: "SimSun", serif;
        }
        
        .search-button {
            background: #8B4513;
            border: 1px solid #6D3510;
            outline: none;
            color: white;
            padding: 8px 15px;
            border-radius: 3px;
            cursor: pointer;
            font-size: 14px;
            transition: background-color 0.3s;
            font-family: "SimSun", serif;
        }
        
        .search-button:hover {
            background: #6D3510;
        }
        
        .search-note {
            position: fixed;
            top: 55px;
            left: 20px;
            z-index: 1001;
            background: rgba(255, 255, 255, 0.8);
            padding: 5px 10px;
            border-radius: 8px;
            font-size: 12px;
            color: #666;
            white-space: nowrap;
        }
        
        /* 搜索结果下拉菜单 */
        .search-results {
            position: fixed;
            top: 60px;
            left: 20px;
            z-index: 1002;
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            max-height: 200px;
            overflow-y: auto;
            width: 300px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .search-results.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        .result-item {
            padding: 10px 15px;
            cursor: pointer;
            transition: background-color 0.2s;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .result-item:hover {
            background-color: #f8f8f8;
        }
        
        .result-item:last-child {
            border-bottom: none;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .search-container {
                left: 50%;
                transform: translateX(-50%);
                top: 120px;
                width: 90%;
                max-width: 300px;
                z-index: 1001;
            }
            
            .search-input {
                width: 100%;
            }
            
            .search-note {
                top: 175px;
                left: 50%;
                transform: translateX(-50%);
                z-index: 1001;
            }
            
            .search-results {
                top: 180px;
                left: 50%;
                transform: translateX(-50%);
                width: 90%;
                max-width: 300px;
                z-index: 1002;
            }
        }
        /* 优化Leaflet地图库加载 */
        /* 全局样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            -webkit-tap-highlight-color: transparent;
        }
        
        body {
            font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
            background-color: #f5f5f5;
            line-height: 1.6;
            color: #333;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
        }
        
        header {
            position: fixed;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 1200px;
            background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
            padding: 12px 20px;
            text-align: center;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
            z-index: 940;
            backdrop-filter: blur(10px);
            border-radius: 0 0 20px 20px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid rgba(255, 255, 255, 0.7);
        }
        
        header:hover {
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
            background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 100%);
        }
        
        .header-title-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
            transition: transform 0.3s ease;
        }
        
        /* 头部主内容区域 */
        .header-main {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
            width: 100%;
        }
        
        /* 折叠按钮样式 */
        .header-toggle-btn {
            background: transparent;
            border: none;
            font-size: 16px;
            cursor: pointer;
            color: #6B8E23;
            transition: transform 0.3s ease;
            padding: 5px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .header-toggle-btn:hover {
            background: rgba(107, 142, 35, 0.1);
        }
        
        /* 折叠内容区域 */
        .header-folded-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease, opacity 0.5s ease;
            opacity: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
        }
        
        /* 展开状态 */
        header.expanded .header-folded-content {
            max-height: 300px;
            opacity: 1;
        }
        
        header.expanded .header-toggle-btn {
            transform: rotate(180deg);
        }
        
        .poet-name {
            font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
            font-size: 32px;
            font-weight: bold;
            color: #2c3e50;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
            letter-spacing: 2px;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .poet-name::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 10%;
            width: 80%;
            height: 2px;
            background: linear-gradient(90deg, transparent, #6B8E23, transparent);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }
        
        header:hover .poet-name::after {
            transform: scaleX(1);
        }
        
        .header-title-chinese {
            font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
            font-size: 24px;
            font-weight: bold;
            color: #333;
            margin-bottom: 5px;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
            font-style: italic;
            background: linear-gradient(90deg, #333, #6B8E23, #333);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            background-size: 200% auto;
            animation: textGradient 5s ease infinite;
        }
        
        @keyframes textGradient {
            0% {
                background-position: 0% center;
            }
            50% {
                background-position: 100% center;
            }
            100% {
                background-position: 0% center;
            }
        }
        
        .header-title-english {
            font-family: 'Times New Roman', serif;
            font-size: 16px;
            color: #666;
            font-style: italic;
            letter-spacing: 1px;
        }
        
        .header-note {
            font-size: 14px;
            color: #666;
            font-style: italic;
            margin-top: 5px;
            opacity: 0.8;
            transition: opacity 0.3s ease;
        }
        
        header:hover .header-note {
            opacity: 1;
        }
        
        /* 头部导航链接样式 */
        .header-nav {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 15px;
            padding-top: 10px;
            border-top: 1px solid rgba(107, 142, 35, 0.2);
            width: 100%;
        }
        
        .header-nav-link {
            background: #6B8E23;
            color: white;
            padding: 8px 15px;
            border-radius: 5px;
            text-decoration: none;
            font-size: 14px;
            transition: background-color 0.3s;
            display: inline-block;
        }
        
        .header-nav-link:hover {
            background: #556B2F;
        }
        
        #mapLoader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background-color: white;
            z-index: 9999;
            transition: opacity 0.5s ease-out;
        }
        
        .loader-spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid #6B8E23;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        #map {
            width: 100vw;
            height: 100vh;
            position: relative;
            margin-top: 60px;
            z-index: 1;
            touch-action: pan-x pan-y pinch-zoom;
            -webkit-user-drag: none;
            user-select: none;
        }
        
        /* 优化地图控件样式 */
        .leaflet-control-zoom {
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
            border-radius: 8px;
            overflow: hidden;
        }
        
        .leaflet-control-zoom-in, .leaflet-control-zoom-out {
            background-color: rgba(255, 255, 255, 0.9) !important;
            color: #333 !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .leaflet-control-zoom-in:hover, .leaflet-control-zoom-out:hover {
            background-color: rgba(255, 255, 255, 1) !important;
            transform: scale(1.05);
        }
        
        .leaflet-control-zoom-in:active, .leaflet-control-zoom-out:active {
            transform: scale(0.95);
        }
        
        /* 信息卡片样式 - 优化透明度和布局以避免遮挡路径 */
        .info-card {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%) translateY(100%);
            width: 80%;
            max-width: 1200px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
            backdrop-filter: blur(12px);
            border-radius: 15px 15px 0 0;
            box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 900;
            display: flex;
            flex-direction: row;
            overflow: hidden;
            cursor: move;
            opacity: 0;
            border: 1px solid rgba(255, 255, 255, 0.3);
            min-width: 300px;
            min-height: 150px;
            user-select: none;
            touch-action: none;
            overflow: auto;
            resize: both;
        }
        
        /* 增加拖拽把手样式 */
        .card-header {
            position: relative;
            cursor: grab;
            width: 100%;
            padding: 8px 12px;
            background-color: rgba(107, 142, 35, 0.1);
            border-bottom: 1px solid rgba(107, 142, 35, 0.2);
            text-align: center;
            font-weight: bold;
            color: #6B8E23;
            font-size: 14px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .card-header:active {
            cursor: grabbing;
        }
        
        /* 缩放控制样式 */
        .resize-handle {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 20px;
            height: 20px;
            cursor: nwse-resize;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M15 5h5v5M0 15h5v5M15 15l5 5M0 0l5 5" stroke="%236B8E23" stroke-width="2"/></svg>') center no-repeat;
            background-size: 15px 15px;
            opacity: 0.7;
            z-index: 10;
        }
        
        .resize-handle:hover {
            opacity: 1;
        }
        
        /* 卡片关闭按钮 */
        .card-close-btn {
            position: absolute;
            top: 5px;
            right: 5px;
            width: 20px;
            height: 20px;
            border: none;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: #666;
            z-index: 10;
        }
        
        /* 缩放控制按钮样式 */
        .zoom-controls {
            position: absolute;
            top: 10px;
            right: 50px;
            display: flex;
            flex-direction: column;
            gap: 5px;
            z-index: 10;
        }
        
        .zoom-btn {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: none;
            background-color: rgba(0, 0, 0, 0.2);
            color: white;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s;
        }
        
        .zoom-btn:hover {
            background-color: rgba(0, 0, 0, 0.4);
        }
        
        .info-card.active {
            opacity: 1;
        }
        
        /* 折叠按钮样式 */
        .collapse-btn {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 20px;
            background-color: rgba(255, 255, 255, 0.8);
            border: none;
            border-radius: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 10;
        }
        
        .collapse-btn:hover {
            background-color: rgba(255, 255, 255, 1);
        }
        
        .collapse-btn::before {
            content: '⌄';
            transition: transform 0.3s ease;
        }
        
        .info-card.collapsed .collapse-btn::before {
            transform: rotate(180deg);
        }
        
        /* 折叠状态的信息卡片 */
        .info-card.collapsed {
            max-height: 100px;
        }
        
        .info-card.collapsed .info-content {
            max-height: 60px;
        }
        
        /* 马标志样式 */
        .horse-marker {
            font-size: 40px !important; /* 增加马标志的尺寸，使其更加醒目 */
            text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
            transform-origin: center center;
            transition: transform 0.3s ease;
            display: inline-block;
        }
        
        /* 马标志跑动动画 - 替换原来的浮动动画 */
        .horse-moving {
            animation: horseRun 1s steps(4) infinite;
        }
        
        /* 马标志到达地点时的放大动画 */
        .horse-zooming {
            animation: zoomIn 0.6s ease-out;
        }
        
        @keyframes horseRun {
            0% { content: "🐴"; transform: translateX(0); }
            25% { content: "🏇"; transform: translateX(2px); }
            50% { content: "🐎"; transform: translateX(4px); }
            75% { content: "🏇"; transform: translateX(2px); }
            100% { content: "🐴"; transform: translateX(0); }
        }
        
        @keyframes zoomIn {
            0% { transform: scale(1); }
            50% { transform: scale(1.5) rotate(10deg); }
            100% { transform: scale(1); }
        }
        
        .horse-marker:hover {
            transform: scale(1.3) rotate(5deg);
        }
        
        /* 阶段指示器相关样式 */
        .stage-indicator {
            position: fixed;
            top: 100px;
            right: 20px;
            background-color: rgba(255, 255, 255, 0.95);
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            z-index: 850;
            backdrop-filter: blur(8px);
            max-width: 250px;
        }
        
        .stage-title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            margin-bottom: 15px;
            text-align: center;
            border-bottom: 2px solid #6B8E23;
            padding-bottom: 10px;
        }
        
        .stage-colors {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .stage-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 12px;
            border-radius: 8px;
            transition: all 0.3s ease;
            cursor: pointer;
            opacity: 0.7;
        }
        
        .stage-item:hover {
            background-color: rgba(107, 142, 35, 0.1);
            opacity: 1;
            transform: translateX(-5px);
        }
        
        /* 阶段项动画 */
        .stage-item-animation {
            animation: fadeInRight 0.5s ease forwards;
            opacity: 0;
            transform: translateX(20px);
        }
        
        @keyframes fadeInRight {
            to {
                opacity: 0.8;
                transform: translateX(0);
            }
        }
        
        /* 活动状态的阶段项 */
        .stage-item-active {
            background-color: rgba(107, 142, 35, 0.2);
            opacity: 1 !important;
            box-shadow: 0 2px 8px rgba(107, 142, 35, 0.3);
        }
        
        .stage-name-container {
            display: flex;
            flex-direction: column;
            gap: 2px;
            flex: 1;
        }
        
        /* 脉动动画效果 */
        .pulse-animation {
            animation: pulse 2s ease-out;
        }
        
        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(107, 142, 35, 0.7);
                transform: scale(1);
            }
            70% {
                box-shadow: 0 0 0 15px rgba(107, 142, 35, 0);
                transform: scale(1.2);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(107, 142, 35, 0);
                transform: scale(1);
            }
        }
        
        .info-card.active {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }
        
        /* 主折叠按钮样式 */
        .card-main-toggle {
            position: absolute;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.9);
            border: none;
            font-size: 16px;
            cursor: pointer;
            color: #6B8E23;
            transition: transform 0.3s ease;
            padding: 5px 10px;
            border-radius: 15px;
            z-index: 100;
        }
        
        .card-main-toggle:hover {
            background: rgba(255, 255, 255, 1);
        }
        
        /* 图片容器 */
        .info-image-container {
            width: 25%;
            min-width: 150px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease, opacity 0.5s ease;
            opacity: 0;
            position: relative;
        }
        
        /* 独立的图片区域 */
        .info-image {
            width: 100%;
            height: 300px; /* 增加图片高度 */
            object-fit: cover;
            position: relative;
            border-radius: 15px 0 0 15px;
            transition: filter 0.3s ease;
        }
        
        .info-image:hover {
            filter: brightness(1.1);
        }
        
        /* 图片加载动画 */
        .image-loading::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 50%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            animation: shimmer 1.5s infinite;
        }
        
        @keyframes shimmer {
            to {
                left: 100%;
            }
        }
        
        /* 内容容器 */
        .info-content-container {
            width: 75%;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease, opacity 0.5s ease;
            opacity: 0;
        }
        
        /* 独立的内容区域 */
        .info-content {
            padding: 20px;
            width: 100%;
            overflow-y: auto;
            max-height: 300px;
            position: relative;
            transition: max-height 0.5s ease;
        }
        
        /* 展开状态 */
        .info-card.expanded .card-main-toggle {
            transform: translateX(-50%) rotate(180deg);
        }
        
        .info-card.expanded .info-image-container {
            max-height: 350px;
            opacity: 1;
        }
        
        .info-card.expanded .info-content-container {
            max-height: 350px;
            opacity: 1;
        }
        
        /* 内容滚动条样式优化 */
        .info-content::-webkit-scrollbar {
            width: 8px;
        }
        
        .info-content::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.05);
            border-radius: 4px;
        }
        
        .info-content::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 4px;
        }
        
        .info-content::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.3);
        }
        
        /* 滚动内容容器优化 - 添加惯性滚动和will-change属性 */
        .info-content, .search-results, .stage-colors {
            will-change: transform;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            scroll-behavior: smooth;
        }
        
        /* 滚动控制按钮 */
        .scroll-control {
            position: absolute;
            bottom: 10px;
            right: 10px;
            display: flex;
            gap: 5px;
        }
        
        .scroll-btn {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            border: none;
            background-color: rgba(255, 255, 255, 0.9);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        .scroll-btn:hover {
            background-color: rgba(255, 255, 255, 1);
        }
        
        .info-title {
            font-size: 36px;
            margin-bottom: 12px;
            color: #333;
            text-align: center;
            font-weight: bold;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
            letter-spacing: 0.5px;
        }
        
        .info-year {
            font-size: 16px;
            color: #666;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
            text-align: center;
            font-style: italic;
        }
        
        .info-description {
            margin-bottom: 20px;
            line-height: 2.0;
            font-size: 25px;
            color: #333;
            text-indent: 2em;
            letter-spacing: 0.8px;
        }
        
        /* 优化诗句样式 */
        .info-poem {
            color: #6B8E23;
            margin-bottom: 15px;
            padding: 15px;
            background-color: #F0F8E8;
            border-radius: 10px;
            font-style: italic;
            border-left: 4px solid #6B8E23;
            box-shadow: 0 2px 8px rgba(107, 142, 35, 0.1);
        }
        
        /* 双语文字样式优化 */
        .bilingual-text {
            margin-bottom: 10px;
        }
        
        .chinese-text {
            font-family: 'Microsoft YaHei', 'PingFang SC', serif;
            font-size: 25px;
            color: #333;
            line-height: 2.0;
            margin-bottom: 12px;
            letter-spacing: 0.8px;
        }
        
        .english-text {
            font-family: 'Times New Roman', serif;
            font-size: 20px;
            color: #555;
            line-height: 1.8;
            font-style: italic;
            letter-spacing: 0.5px;
        }
        
        .bilingual-item {
            margin-bottom: 15px;
        }
        
        .lang-label {
            font-weight: bold;
            color: #6B8E23;
            margin-bottom: 5px;
            font-size: 14px;
        }
        
        /* 标题动画效果 */
        .title-animation {
            animation: fadeInScale 1s ease-out;
        }
        
        @keyframes fadeInScale {
            0% { opacity: 0; transform: scale(0.9); }
            100% { opacity: 1; transform: scale(1); }
        }
        
        /* 高亮诗句样式 */
        .poem-highlight {
            background-color: rgba(107, 142, 35, 0.05);
            padding: 10px;
            border-radius: 8px;
            border-left: 4px solid #6B8E23;
        }
        
        /* 诗题样式 */
        .poem-title {
            font-weight: bold;
            font-size: 18px;
            margin-bottom: 10px;
            color: #6B8E23;
            text-align: center;
            font-style: normal;
            letter-spacing: 1px;
        }
        
        .info-close {
                position: absolute;
                top: 10px;
                right: 10px;
                width: 30px;
            height: 30px;
            background-color: rgba(0, 0, 0, 0.2);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s;
        }
        
        .info-close:hover {
            background-color: rgba(0, 0, 0, 0.4);
        }
        
        /* 控制按钮 */
        .controls {
            position: fixed;
            top: 100px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 1050;
            transition: transform 0.3s ease;
        }
        
        /* 控制按钮提示 */
        .control-btn::after {
            content: attr(data-tooltip);
            position: absolute;
            right: 100%;
            margin-right: 10px;
            background-color: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .control-btn:hover::after {
            opacity: 1;
            visibility: visible;
        }
        
        /* 通用按钮触摸反馈 */
        .control-btn, .header-nav-link, .search-button, .zoom-btn, .info-close, .collapse-btn, .back-to-top {
            touch-action: manipulation;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .control-btn:active, .header-nav-link:active, .search-button:active, .zoom-btn:active, .info-close:active, .collapse-btn:active, .back-to-top:active {
            transform: scale(0.95);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }
        
        .control-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: none;
            background-color: rgba(255, 255, 255, 0.9);
            color: #333;
            font-size: 20px;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            backdrop-filter: blur(5px);
        }
        
        .control-btn:hover {
            background-color: #fff;
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
        }
        
        /* 阶段颜色指示器 */
        .stage-indicator {
            position: fixed;
            top: 140px;
            left: 0;
            right: 0;
            background-color: rgba(255, 255, 255, 0.95);
            padding: 10px 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
            z-index: 800;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            backdrop-filter: blur(5px);
            transition: transform 0.3s ease;
        }
        
        .stage-title {
            font-weight: bold;
            color: #333;
            margin-right: 15px;
        }
        
        .stage-colors {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            justify-content: center;
        }
        
        .stage-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
        }
        
        .stage-color {
            width: 20px;
            height: 20px;
            border-radius: 4px;
            border: 1px solid #ddd;
        }
        
        /* 地点名称标签样式 */
        .location-label-icon {
            background: transparent;
            border: none;
            box-shadow: none;
            padding: 0;
            /* 移除固定宽度，让标签自适应内容 */
        }
        
        .location-label {
            background-color: rgba(255, 255, 255, 0.9);
            padding: 4px 8px;
            border-radius: 15px;
            font-size: 14px;
            text-align: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(3px);
            border: 1px solid rgba(255, 255, 255, 0.5);
            /* 添加最大宽度限制，避免在小屏幕上过长 */
            max-width: 150px;
            /* 允许文本换行，确保在窄屏上显示完整 */
            white-space: normal !important;
            /* 保持内边距一致性 */
            word-wrap: break-word !important;
            /* 确保自动换行生效 */
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.4;
            text-overflow: ellipsis;
        }
        
        /* 阶段名称双语显示样式 */
        .stage-name-container {
            display: flex;
            flex-direction: column;
        }
        
        .stage-name-zh {
            font-weight: bold;
            color: #333;
        }
        
        .stage-name-en {
            font-size: 12px;
            color: #666;
            font-style: italic;
        }
        
        /* 语言显示区域 - 调整为同时显示双语 */
        .lang-label {
            text-align: right;
            font-size: 12px;
            color: #999;
            margin-bottom: 5px;
        }
        
        .bilingual-item {
            margin-bottom: 15px;
        }
        
        .bilingual-text {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        
        .chinese-text {
            font-size: 16px;
            color: #333;
        }
        
        .english-text {
            font-size: 14px;
            color: #666;
            font-style: italic;
        }
        
        /* 移除语言切换按钮 */
        .lang-switch {
            display: none;
        }
        
        /* 回到顶部按钮 */
        .back-to-top {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.9);
            color: #333;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
            z-index: 950;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
            backdrop-filter: blur(5px);
        }
        
        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }
        
        .back-to-top:hover {
            transform: translateY(-3px);
            background-color: white;
        }
        
        /* 加载进度条 */
        .progress-bar {
            position: fixed;
            top: 60px;
            left: 0;
            height: 4px;
            background: linear-gradient(90deg, #6B8E23, #8FBC8F, #98FB98, #2E8B57);
            width: 0%;
            z-index: 1001;
            transition: width 0.3s ease;
        }
        
        /* 适配移动端 - 整合并优化媒体查询 */
        @media(max-width:768px){
            /* 重置默认样式以避免冲突 */
            * {
                box-sizing: border-box;
            }
            
            /* 搜索栏优化 */
            .search-container {
                top: 110px !important;
                left: 50% !important;
                transform: translateX(-50%) !important;
                width: 90% !important;
                max-width: none !important;
                z-index: 950 !important;
            }
            
            .search-input {
                font-size: 16px !important; /* 防止iOS缩放 */
                line-height: 1.5 !important;
                letter-spacing: 0.5px !important;
            }
            
            .search-note {
                top: 165px !important;
                left: 50% !important;
                transform: translateX(-50%) !important;
                font-size: 11px !important;
                line-height: 1.4 !important;
                letter-spacing: 0.3px !important;
                white-space: normal !important;
                text-align: center !important;
                padding: 8px !important;
                max-width: 90% !important;
            }
            
            .search-results {
                top: 170px !important;
                left: 50% !important;
                transform: translateX(-50%) !important;
                width: 90% !important;
                max-width: none !important;
                z-index: 960 !important;
            }
            
            /* 头部样式优化 */
            header {
                width: 95% !important;
                padding: 8px 12px !important;
                font-size: 14px !important;
                z-index: 940 !important;
            }
            
            .header-title-container {
                gap: 6px !important;
                flex-direction: column !important;
            }
            
            .poet-name {
                font-size: 22px !important;
                letter-spacing: 1.5px !important;
                line-height: 1.3 !important;
            }
            
            .header-title-chinese {
                font-size: 16px !important;
                line-height: 1.4 !important;
                letter-spacing: 0.5px !important;
                text-align: center !important;
                white-space: normal !important;
            }
            
            .header-title-english {
                display: none !important; /* 完全隐藏英文标题 */
            }
            
            .header-note {
                display: none !important; /* 隐藏备注，节省空间 */
            }
            
            /* 头部导航响应式调整 */
            .header-nav {
                margin-top: 10px !important;
                padding-top: 8px !important;
                gap: 8px !important;
                flex-wrap: wrap !important;
            }
            
            .header-nav-link {
                padding: 6px 12px !important;
                font-size: 12px !important;
            }
            
            /* 地图样式调整 - 确保有足够空间且不被遮挡 */
            #map {
                margin-top: 180px !important; /* 减少顶部边距，为地图提供更多空间 */
                height: calc(100vh - 180px) !important;
                position: relative !important;
                z-index: 1 !important;
            }
            
            /* 信息卡片优化 - 固定在底部，避免遮挡地图 */
            .info-card {
                position: fixed !important;
                bottom: 0 !important; /* 固定在底部 */
                left: 50% !important;
                width: 90% !important;
                max-height: 250px !important; /* 限制最大高度 */
                min-height: 150px !important;
                z-index: 900 !important;
                transform: translateX(-50%) translateY(0) !important;
                flex-direction: column !important;
                background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 50%, rgba(255, 255, 255, 0.98) 100%) !important;
                border-radius: 20px 20px 0 0 !important;
                box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
                box-sizing: border-box !important;
                border: 1px solid rgba(255, 255, 255, 0.6) !important;
                backdrop-filter: blur(15px) saturate(180%) !important;
                -webkit-backdrop-filter: blur(15px) saturate(180%) !important;
            }
            
            /* 信息卡片默认隐藏，点击地点才显示 */
            .info-card:not(.active) {
                display: none !important;
            }
            
            .info-image {
                width: 100% !important;
                height: 120px !important;
                border-radius: 18px 18px 0 0 !important;
                object-fit: cover !important;
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
                box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
            }
            
            .info-content {
                max-height: 120px !important; /* 大幅减小内容区域高度 */
                width: 100% !important;
                padding: 8px !important;
                overflow-y: auto !important;
            }
            
            .info-title {
                font-size: 22px !important;
                line-height: 1.4 !important;
                letter-spacing: 0.5px !important;
                margin-bottom: 8px !important;
            }
            
            .info-year {
                font-size: 16px !important;
                line-height: 1.4 !important;
                letter-spacing: 0.3px !important;
                margin-bottom: 10px !important;
                padding-bottom: 4px !important;
            }
            
            .info-description {
                font-size: 13px !important;
                line-height: 1.6 !important;
                letter-spacing: 0.3px !important;
                margin-bottom: 10px !important;
                text-indent: 1.5em !important;
            }
            
            .chinese-text {
                font-size: 13px !important;
                line-height: 1.7 !important;
                letter-spacing: 0.3px !important;
                margin-bottom: 8px !important;
            }
            
            .english-text {
                display: none !important; /* 隐藏英文内容，节省空间 */
            }
            
            /* 控制按钮优化 - 移至地图右侧 */
            .controls {
                position: fixed !important;
                top: 50% !important;
                right: 10px !important;
                left: auto !important;
                bottom: auto !important;
                transform: translateY(-50%) !important;
                width: 50px !important;
                max-width: none !important;
                flex-direction: column !important;
                justify-content: center !important;
                gap: 10px !important;
                z-index: 920 !important;
                background: rgba(255, 255, 255, 0.9) !important;
                padding: 8px !important;
                border-radius: 25px !important;
            }
            
            /* 移动端触摸优化 */
            .control-btn {
                width: 45px !important;
                height: 45px !important;
                font-size: 18px !important;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
            }
            
            /* 隐藏控制按钮的工具提示，避免遮挡 */
            .control-btn::after {
                display: none !important;
            }
            
            /* 阶段指示器优化 - 默认隐藏，通过按钮控制显示 */
            .stage-indicator {
                position: fixed !important;
                top: 50% !important;
                left: 50% !important;
                transform: translate(-50%, -50%) !important;
                width: 90% !important;
                max-width: 300px !important;
                padding: 10px !important;
                z-index: 910 !important;
                display: none !important;
                background-color: white !important;
                border-radius: 15px !important;
            }
            
            /* 阶段指示器显示类 */
            .stage-indicator.show {
                display: block !important;
            }
            
            .stage-title {
                font-size: 14px !important;
                margin-right: 0 !important;
                margin-bottom: 10px !important;
                white-space: nowrap !important;
                text-align: center !important;
            }
            
            .stage-colors {
                flex-direction: column !important;
                gap: 8px !important;
                max-height: 200px !important;
                overflow-y: auto !important;
            }
            
            .stage-item {
                font-size: 12px !important;
                gap: 6px !important;
                padding: 6px 10px !important;
            }
            
            .stage-color {
                width: 16px !important;
                height: 16px !important;
            }
            
            /* 回到顶部按钮优化 */
            .back-to-top {
                position: fixed !important;
                bottom: 80px !important;
                right: 20px !important;
                width: 40px !important;
                height: 40px !important;
                z-index: 930 !important;
                background: rgba(255, 255, 255, 0.9) !important;
            }
            
            /* 缩放控制按钮位置调整 */
            .zoom-controls {
                position: fixed !important;
                top: 200px !important;
                right: 20px !important;
                z-index: 945 !important;
            }
            
            .zoom-btn {
                width: 35px !important;
                height: 35px !important;
                font-size: 20px !important;
                background: rgba(255, 255, 255, 0.9) !important;
                color: #333 !important;
                margin-bottom: 8px !important;
            }
            
            /* 信息卡片关闭按钮优化 */
            .info-close {
                position: absolute !important;
                top: 10px !important;
                right: 10px !important;
                width: 30px !important;
                height: 30px !important;
                font-size: 16px !important;
                background: rgba(255, 255, 255, 0.9) !important;
                border-radius: 50% !important;
            }
            
            /* 折叠按钮优化 */
            .collapse-btn {
                bottom: 8px !important;
                width: 50px !important;
                height: 25px !important;
                border-radius: 12px !important;
                background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
                border: 1px solid rgba(255, 255, 255, 0.7) !important;
            }
            
            /* 马标志大小调整 */
            .horse-marker {
                font-size: 24px !important;
            }
            
            /* 地点标签优化 */
            .location-label {
                font-size: 11px !important;
                padding: 2px 4px !important;
                background: rgba(255, 255, 255, 0.95) !important;
                border-radius: 4px !important;
                max-width: 120px !important;
                white-space: normal !important;
                word-wrap: break-word !important;
                display: -webkit-box !important;
                -webkit-line-clamp: 3 !important;
                -webkit-box-orient: vertical !important;
                overflow: hidden !important;
                line-height: 1.3 !important;
                text-overflow: ellipsis !important;
            }
            
            /* 加载动画调整 */
            #mapLoader {
                z-index: 9999 !important;
            }
        }
        
        /* 适配超小屏幕 */
        @media(max-width:480px){
            /* 进一步优化小屏幕显示 */
            .search-container {
                top: 100px !important;
            }
            
            .search-note {
                top: 155px !important;
                font-size: 10px !important;
            }
            
            .header-title-container {
                gap: 4px !important;
            }
            
            .poet-name {
                font-size: 18px !important;
            }
            
            .header-title-chinese {
                font-size: 14px !important;
            }
            
            #map {
                margin-top: 170px !important;
                height: calc(100vh - 170px) !important;
            }
            
            .info-card {
                max-height: 200px !important;
            }
            
            .info-image {
                height: 80px !important;
            }
            
            .info-content {
                max-height: 100px !important;
                padding: 6px !important;
            }
            
            .info-title {
                font-size: 14px !important;
            }
            
            .info-description, .chinese-text, .info-poem, .info-anecdote {
                font-size: 16px !important;
                line-height: 1.6 !important;
                letter-spacing: 0.3px !important;
            }
            
            .control-btn {
                width: 40px !important;
                height: 40px !important;
                font-size: 16px !important;
            }
            
            .zoom-controls {
                top: 190px !important;
            }
            
            .zoom-btn {
                width: 30px !important;
                height: 30px !important;
                font-size: 18px !important;
            }
        }
        
        /* 移动端触摸事件优化 */
        @media(hover:none) and (pointer:coarse) {
            /* 为触摸设备添加更大的点击区域 */
            .control-btn, .zoom-btn, .info-close, .back-to-top {
                touch-action: manipulation;
                -webkit-tap-highlight-color: transparent;
            }
            
            /* 优化触摸反馈 */
            .control-btn:active, .zoom-btn:active, .info-close:active, .back-to-top:active {
                transform: scale(0.95);
                transition: transform 0.1s;
            }
        }
        
        /* ====== 马标志注释 ====== */
        .horse-comment {
            position: absolute;
            bottom: calc(100% + 8px);          /* 保证三角与马背之间留 8 px 空隙 */
            left: 50%;
            transform: translateX(-50%);
            max-width: 32vw;                   /* 桌面端不超过 1/3 屏宽 */
            min-width: 160px;
            padding: 6px 10px;
            background: rgba(0, 0, 0, 0.82);
            color: #fff;
            font-size: 13px;
            line-height: 1.45;
            border-radius: 6px;
            white-space: normal;
            word-break: break-word;
            text-align: center;
            pointer-events: none;
            opacity: 0;
            animation: fadeInOut 2.8s ease-out forwards; /* 淡入-停留-淡出 */
            z-index: 1000;
        }
        
        /* 小三角 */
        .horse-comment::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-top: 6px solid rgba(0, 0, 0, 0.82);
        }
        
        /* 淡入-淡出关键帧 */
        @keyframes fadeInOut {
            0%   { opacity: 0; transform: translateX(-50%) translateY(6px); }
            15%  { opacity: 1; transform: translateX(-50%) translateY(0); }
            85%  { opacity: 1; }
            100% { opacity: 0; transform: translateX(-50%) translateY(-4px); }
        }
        
        /* ====== 移动端微调 ====== */
        @media (max-width: 768px) {
            .horse-comment {
                max-width: 70vw;          /* 小屏放宽到 7