/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    overflow: hidden;
    background: #000;
}

/* Cesium容器 */
#cesiumContainer {
    width: 100%;
    height: 100vh;
    position: relative;
}

/* 顶部功能面板样式 */
#topFunctionPanel {
    position: fixed;
    top: 0;
    left: 370px; /* 侧边栏宽度 + 20px 间距 */
    width: fit-content; /* 根据内容自适应宽度 */
    max-width: calc(100vw - 390px); /* 确保不超出屏幕 */
    z-index: 1001;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(30, 30, 30, 0.9));
    backdrop-filter: blur(15px);
    border-radius: 0 0 12px 12px; /* 缩小20%: 15px -> 12px */
    padding: 10px 20px; /* 缩小20%: 12px -> 10px, 25px -> 20px */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    transform: scale(0.8); /* 整体缩小20% */
    transform-origin: top left; /* 以左上角为缩放基准点 */
}

.panel-container {
    display: flex;
    gap: 15px; /* 减少按钮间距 */
    align-items: center;
    flex-wrap: wrap; /* 允许换行以适应小屏幕 */
}

.function-group {
    position: relative;
}

.primary-btn {
    display: flex;
    align-items: center;
    gap: 6px; /* 减少图标和文字间距 */
    padding: 10px 16px; /* 减少内边距 */
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.9), rgba(80, 170, 255, 0.9));
    color: white;
    border: none;
    border-radius: 20px; /* 稍微减少圆角 */
    cursor: pointer;
    font-size: 13px; /* 稍微减少字体大小 */
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
    min-width: 120px; /* 减少最小宽度 */
    justify-content: space-between;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.5);
    background: linear-gradient(135deg, rgba(74, 144, 226, 1), rgba(80, 170, 255, 1));
}

.primary-btn.active {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.9), rgba(255, 142, 142, 0.9));
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.primary-btn.active:hover {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
}

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

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

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.primary-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100%);
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px;
    margin-top: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    gap: 5px;
    min-width: 160px;
}

.dropdown-menu.show {
    display: flex;
}

.secondary-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    text-align: left;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.secondary-btn.active {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.8), rgba(80, 170, 255, 0.8));
}

/* 侧边栏样式 */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.25));
    backdrop-filter: blur(15px);
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 15px 15px 0;
    z-index: 1000;
    overflow-y: auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* 侧边栏收纳状态 */
#sidebar.collapsed {
    height: auto;
    max-height: 200px;
}

.collapsed .sidebar-header {
    border-bottom: none;
}

/* 巡礼工具面板样式 */
.pilgrimage-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    max-width: 90vw;
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    overflow: hidden;
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.panel-content {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.empty-state h4 {
    margin: 0 0 10px 0;
    color: #999;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

.sidebar-header {
    padding: 15px 18px;
    text-align: center;
    border-bottom: 1px solid rgb(255, 255, 255);
    flex-shrink: 0; /* 防止头部被压缩 */
}

.sidebar-header h2 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(111, 110, 110, 0.164);
    font-weight: 600;
}

.sidebar-header p {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

/* 搜索容器 */
.search-container {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    flex-shrink: 0; /* 防止搜索容器被压缩 */
}

.search-input-wrapper {
    display: flex;
    gap: 10px;
}

#searchInput {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

#searchInput::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

#searchInput:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#searchBtn {
    padding: 12px 20px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#searchBtn:hover {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 搜索下拉框 */
.search-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 15px 15px;
    margin-top: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-top: none;
}

.search-dropdown.show {
    max-height: 400px;
    opacity: 1;
}

/* 动漫列表 */
.anime-list {
    padding: 15px;
}

.search-dropdown .anime-list {
    padding: 15px;
    margin: 0;
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 动漫列表容器 */
#animeList {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* 自定义滚动条样式 */
#animeList::-webkit-scrollbar {
    width: 8px;
}

#animeList::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

#animeList::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.6), rgba(80, 170, 255, 0.6));
    border-radius: 4px;
    transition: background 0.3s ease;
}

#animeList::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.8), rgba(80, 170, 255, 0.8));
}

/* Firefox滚动条样式 */
#animeList {
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 144, 226, 0.6) rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    #topFunctionPanel {
        left: 360px; /* 稍微调整以适应小屏幕 */
        max-width: calc(100vw - 380px); /* 更新最大宽度计算 */
        padding: 10px 20px;
    }
    
    .primary-btn {
        min-width: 100px;
        font-size: 12px;
        padding: 8px 14px;
    }
    
    .panel-container {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    #sidebar {
        width: 300px;
    }
    
    #topFunctionPanel {
        left: 320px;
        max-width: calc(100vw - 340px); /* 更新最大宽度计算 */
        padding: 6px 12px; /* 缩小20%: 8px -> 6px, 15px -> 12px */
    }
    
    .primary-btn {
        min-width: 80px;
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .panel-container {
        gap: 8px;
    }
}

.anime-list h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.anime-item {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.anime-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.anime-item h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 600;
}

.anime-item p {
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
}

.anime-item .location-count {
    color: #007acc;
    font-size: 11px;
    font-weight: 500;
}

/* 地点信息 */
.location-info {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 380px;
    max-height: 85vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0;
    z-index: 1001;
    display: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-info h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(135deg, #007acc, #0056b3);
    color: white;
    padding: 16px 20px;
    border-radius: 16px 16px 0 0;
}

#locationDetails {
    color: #444;
    line-height: 1.6;
    padding: 20px;
    max-height: calc(85vh - 60px);
    overflow-y: auto;
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 122, 204, 0.2);
}

.location-title h4 {
    margin: 0 0 4px 0;
    color: #333;
    font-size: 20px;
    font-weight: 700;
}

.location-title .name-en {
    margin: 0;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.anime-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.location-detail-item {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border-left: 4px solid #007acc;
    transition: all 0.3s ease;
}

.location-detail-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(2px);
}

.location-detail-item strong {
    color: #333;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.scenes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.scene-tag {
    background: rgba(0, 122, 204, 0.1);
    color: #007acc;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(0, 122, 204, 0.2);
}

.visit-info .visit-details {
    margin-top: 8px;
}

.visit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.visit-label {
    font-weight: 500;
    color: #555;
    flex: 1;
}

.visit-value {
    color: #333;
    font-weight: 600;
    text-align: right;
    flex: 1;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-item:hover {
    transform: scale(1.05);
}

.image-item img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.location-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 122, 204, 0.2);
}

.detail-btn {
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.detail-btn.primary {
    background: linear-gradient(135deg, #007acc, #0056b3);
    color: white;
}

.detail-btn.primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 204, 0.4);
}

.detail-btn.secondary {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.detail-btn.secondary:hover {
    background: rgba(108, 117, 125, 0.2);
    color: #495057;
    transform: translateY(-1px);
}

/* 图片模态框样式 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.5);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.modal-caption {
    padding: 15px 20px;
    background: white;
    color: #333;
    font-weight: 600;
    text-align: center;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(40, 167, 69, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    z-index: 3000;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}





/* 加载指示器 */
#loadingIndicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

#githubLink {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(30, 30, 30, 0.9));
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#githubLink:hover {
    transform: translateY(-2px) scale(1.1);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.9), rgba(80, 170, 255, 0.9));
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    color: white;
}

#githubLink i {
    transition: transform 0.3s ease;
}

#githubLink:hover i {
    transform: rotate(360deg);
}

/* 右下角logo和信息样式 */
#logoContainer {
    position: fixed;
    bottom: 0px;
    right: 70px;
    z-index: 1002;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

#logoContainer img {
    width: 160px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

#logoContainer img:hover {
    transform: scale(1.05);
}

#studentInfo {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #sidebar {
        width: 100%;
        transform: translateX(-100%);
    }
    
    #sidebar.active {
        transform: translateX(0);
    }
    
    #githubContainer {
        top: 30px;
        right: 0px;
    }
    
    #githubLink {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    #logoContainer {
        top: 10px;
        right: 60px;
    }
    
    #logoContainer img {
        width: 60px;
    }
    
    #studentInfo {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* 鹰眼地图样式 */
.hawk-eye-map {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 180px;
    height: 180px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.hawk-eye-map:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* 鹰眼地图内部Cesium容器样式 */
.hawk-eye-map .cesium-viewer {
    width: 100% !important;
    height: 100% !important;
}

.hawk-eye-map .cesium-viewer-cesiumWidgetContainer {
    width: 100% !important;
    height: 100% !important;
}

.hawk-eye-map .cesium-widget {
    width: 100% !important;
    height: 100% !important;
}

/* 隐藏鹰眼地图中的工具栏 */
.hawk-eye-map .cesium-viewer-toolbar,
.hawk-eye-map .cesium-viewer-animationContainer,
.hawk-eye-map .cesium-viewer-timelineContainer,
.hawk-eye-map .cesium-viewer-bottom {
    display: none !important;
}

/* 响应式设计 - 小屏幕时调整鹰眼地图 */
@media (max-width: 768px) {
    .hawk-eye-map {
        width: 140px;
        height: 140px;
        bottom: 15px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .hawk-eye-map {
        width: 100px;
        height: 100px;
        bottom: 10px;
        left: 10px;
    }
}

/* VR按钮样式 */
.cesium-button.cesium-vrButton {
    background-color: rgba(42, 42, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 3px !important;
    color: #edffff !important;
    fill: #edffff !important;
    transition: all 0.3s ease !important;
}

.cesium-button.cesium-vrButton:hover {
    background-color: rgba(255, 165, 0, 0.8) !important;
    border-color: rgba(255, 165, 0, 0.8) !important;
    color: white !important;
    fill: white !important;
    transform: scale(1.05) !important;
}

.cesium-button.cesium-vrButton:active {
    background-color: rgba(255, 140, 0, 0.9) !important;
    transform: scale(0.95) !important;
}

/* VR按钮图标样式 */
.cesium-vrButton-wrapper svg {
    width: 16px !important;
    height: 16px !important;
    fill: currentColor !important;
}

/* 移除可能影响BaseLayerPicker弹出框位置的自定义样式，恢复默认 */

/* VR按钮特定位置调整 */
.cesium-vrButton {
    order: 1 !important;
}

.cesium-fullscreenButton {
    order: 2 !important;
}

/* 比例尺控件样式 */
.cesium-scale-bar {
    position: absolute;
    bottom: 30px;
    left: 210px;
    background-color: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    padding: 8px 12px;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-size: 12px;
    color: #edffff;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.scale-bar-line {
    height: 3px;
    background-color: #edffff;
    border-radius: 1px;
    margin-bottom: 4px;
    min-width: 20px;
    position: relative;
}

.scale-bar-line::before,
.scale-bar-line::after {
    content: '';
    position: absolute;
    top: -2px;
    width: 1px;
    height: 7px;
    background-color: #edffff;
}

.scale-bar-line::before {
    left: 0;
}

.scale-bar-line::after {
    right: 0;
}

.scale-bar-text {
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cesium-scale-bar {
        bottom: 20px;
        left: 208px;
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .cesium-scale-bar {
        bottom: 15px;
        left: 205px;
        padding: 5px 8px;
        font-size: 10px;
    }
}

/* 隐藏Cesium版权信息 */
.cesium-widget-credits,
.cesium-credit-logoContainer,
.cesium-credit-textContainer {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* 隐藏主视图中的版权信息 */
#cesiumContainer .cesium-widget-credits,
#cesiumContainer .cesium-credit-logoContainer,
#cesiumContainer .cesium-credit-textContainer {
    display: none !important;
}

/* 隐藏鹰眼地图中的版权信息 */
.hawk-eye-map .cesium-widget-credits,
.hawk-eye-map .cesium-credit-logoContainer,
.hawk-eye-map .cesium-credit-textContainer {
    display: none !important;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 107, 0.8);
}

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

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

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 地点信息浮动框样式 */
.location-tooltip {
    position: fixed;
    z-index: 2000;
    width: 350px;
    pointer-events: auto;
    transition: left 0.2s ease-out, top 0.2s ease-out;
    /* 固定大小，只保留位置过渡效果 */
}

.tooltip-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    animation: tooltipFadeIn 0.3s ease-out;
}

.tooltip-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.tooltip-close:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    transform: scale(1.1);
}

.location-tooltip .location-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.location-tooltip .location-title h4 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.location-tooltip .anime-badge {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.location-tooltip .location-detail-item {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #34495e;
}

.location-tooltip .scenes-list {
    margin-top: 8px;
}

.location-tooltip .scene-tag {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 6px;
    margin-bottom: 4px;
    display: inline-block;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.location-tooltip .visit-details {
    margin-top: 8px;
    background: rgba(46, 204, 113, 0.05);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #2ecc71;
}

.location-tooltip .visit-item {
    margin-bottom: 6px;
    font-size: 13px;
}

.location-tooltip .visit-label {
    font-weight: bold;
    color: #27ae60;
    margin-right: 8px;
}

.location-tooltip .image-gallery {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.location-tooltip .image-item {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.location-tooltip .image-item:hover {
    transform: scale(1.05);
    border-color: #3498db;
}

.location-tooltip .image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-tooltip .location-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.location-tooltip .detail-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
}

.location-tooltip .detail-btn.primary {
    background: linear-gradient(45deg, #3498db, #5dade2);
    color: white;
}

.location-tooltip .detail-btn.secondary {
    background: rgba(149, 165, 166, 0.1);
    color: #7f8c8d;
    border: 1px solid rgba(149, 165, 166, 0.3);
}

.location-tooltip .detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.location-tooltip .detail-btn.favorite {
    background-color: #e91e63;
    color: white;
}

.location-tooltip .detail-btn.favorite:hover {
    background-color: #c2185b;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}



/* ==========================================================================
   移动端适配样式 (Mobile & Tablet) - 优化后
   ========================================================================== */

/* --------------------------------------------------------------------------
   主要断点： <= 768px (平板和手机)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

    /* 核心隐藏规则：隐藏顶部两大工具栏 */
    #topFunctionPanel,
    .cesium-viewer-toolbar {
        display: none !important;
    }

    body {
        /* 允许在移动端垂直滚动，特别是当信息面板弹出时 */
        overflow: auto;
    }

    /* --- 侧边栏改为滑出式菜单 --- */
    #sidebar {
        width: 85vw;
        max-width: 320px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
        border-radius: 0;
        z-index: 11000;
    }

    #sidebar.show {
        transform: translateX(0);
    }
    
    /* --- 遮罩层 --- */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease;
    }
    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
	
	/* 在 @media (max-width: 768px) { ... } 内部 */
	
	/* --- 地点信息面板改为底部抽屉 (标准实现) --- */
	.location-info {
	    display: block !important; /* 确保它始终在布局中 */
	    width: 100%;
	    height: 80vh;
	    max-height: 80vh;
	    top: auto;
	    bottom: 0;
	    left: 0;
	    right: 0;
	    border-radius: 16px 16px 0 0;
	    z-index: 10500;
	
	    /* 默认隐藏在屏幕外 */
	    transform: translateY(100%);
	    visibility: hidden;
	
	    /* 定义过渡效果 */
	    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.4s;
	}
	
	/* 当有 .show 类时，滑入屏幕 */
	.location-info.show {
	    transform: translateY(0);
	    visibility: visible;
	    transition-delay: 0s; /* 取消/重置延迟 */
	}
	
	/* 这个规则保持不变 */
	#locationDetails {
	    max-height: calc(80vh - 120px);
	}

    /* --- 地点浮动提示框也改为底部抽屉 --- */
    .location-tooltip {
        width: 60%;
        max-width: 60%;
        left: 0;
        bottom: 0;
        top: auto;
        transform: translateY(50%);
        transition: transform 0.3s ease-out, visibility 0.3s;
    }
    .location-tooltip.show {
        transform: translateY(0);
        visibility: visible;
    }
    .tooltip-content {
        border-radius: 15px 15px 0 0;
    }

    /* --- 调整其他浮动元素的位置 --- */
    #logoContainer {
        bottom: auto;
        top: 15px;
        right: 15px;
        gap: 10px;
    }
    #logoContainer img {
        width: 100px;
    }
    #studentInfo {
        display: none;
    }

    .hawk-eye-map {
        width: 120px;
        height: 120px;
        bottom: 15px;
        left: 15px;
    }

    .cesium-scale-bar {
        bottom: 20px;
        left: auto;
        right: 20px;
        transform: none;
    }
    
    .pilgrimage-panel {
        width: 95vw;
        max-height: 90vh;
    }

    .panel-content {
        padding: 20px 15px;
    }
}

/* --------------------------------------------------------------------------
   更小屏幕断点： <= 480px (小型手机)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    /* --- 进一步缩小字体和间距 --- */
    .sidebar-header h2 {
        font-size: 20px;
    }
    .search-input-wrapper {
        flex-direction: column;
    }
    .anime-item h4 {
        font-size: 14px;
    }
    .anime-item p {
        font-size: 11px;
    }

    .location-title h4 {
        font-size: 18px;
    }

    .detail-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    .hawk-eye-map {
        width: 100px;
        height: 100px;
        bottom: 10px;
        left: 10px;
    }
    
    .cesium-scale-bar {
        bottom: 15px;
        right: 15px;
        padding: 5px 8px;
        font-size: 10px;
    }
}

/* --------------------------------------------------------------------------
   为移动端交互添加的辅助样式 (需要配合JavaScript)
   -------------------------------------------------------------------------- */
/* 汉堡菜单按钮样式 */
#menu-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 60px;  /* 稍微调整大小以获得更好的触控体验 */
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(30, 30, 30, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    z-index: 11001;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease; /* 添加点击反馈动画 */
}

#menu-toggle:active {
    transform: scale(0.95); /* 点击时缩小 */
}

@media (max-width: 768px) {
    #menu-toggle {
        display: flex;
    }
}