/* 删除第一行多余的body定义，添加CSS根变量 */
:root {
    --primary-color: hsl(322, 68%, 60%);
    --primary-hover: hsl(322, 68%, 55%);
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --primary-color-hover: hsl(109, 42%, 50%);
    --primary-color-active: hsl(109, 42%, 40%);
    --text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --hsla: var(--primary-color);
    --hsla-h: 322;
    --hsla-s: 68%;
    --hsla-l: 60%;
    --hsla-raw: 322, 68%, 60%;
    --font-family-slogn: "快看世界体", sans-serif;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background: #f5f5f5;
}

.footprint-container {
    width: 100%;
    height: 100vh;
    position: relative;
    content-visibility: auto;
    contain: layout style paint;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    overflow: hidden;
}

/* 地图容器样式 */
#footprint-map {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #f5f5f5;
    transition: var(--transition);
    overflow: hidden;
}

#footprint-map.map-transitioning {
    filter: brightness(0.95);
}

#footprint-map.map-shake {
    animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Logo 容器样式优化 */
.logo-container {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 100;
    padding: 16px 20px;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-container.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
    font-family: "快看世界体", sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-version {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color);
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform-origin: left center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.logo-container:hover .logo-version {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.slogan {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
    max-width: 240px;
    position: relative;
    padding-left: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.logo-container.show .slogan {
    opacity: 1;
    transform: translateY(0);
}

.slogan::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
        hsla(var(--hsla-h), var(--hsla-s), var(--hsla-l), 0.8),
        hsla(var(--hsla-h), var(--hsla-s), var(--hsla-l), 0.4)
    );
    border-radius: 1px;
}

/* 地图控件样式 */
.map-controls {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 8px 10px;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08),
                inset 0 0 0 1px rgba(255, 255, 255, 0.5),
                inset 0 2px 4px rgba(0, 0, 0, 0.05);
    width: auto;
    min-width: 340px;
    flex-wrap: wrap;
    gap: 6px;
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: all 0.3s ease-out;
}

.map-controls.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
}

/* 按钮组通用样式 */
.button-group {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(240, 240, 240, 0.85);
    border-radius: 30px;
    padding: 3px;
    margin: 0 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 基础图层按钮 */
.control-btn {
    position: relative;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 20px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease-out;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.control-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 卫星图层按钮激活样式 - 与标准图层按钮保持一致 */
.control-btn[data-type="satellite"].active {
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: var(--box-shadow);
}

/* 开关按钮样式 */
.control-btn[data-type="road"],
.control-btn[data-type="traffic"] {
    position: relative;
    padding: 6px 12px 6px 42px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-width: 90px;
    text-align: left;
}

.control-btn[data-type="road"]::before,
.control-btn[data-type="traffic"]::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    width: 28px;
    height: 16px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    transform: translateY(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.control-btn[data-type="road"]::after,
.control-btn[data-type="traffic"]::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.control-btn[data-type="road"].active,
.control-btn[data-type="traffic"].active {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.control-btn[data-type="road"].active::before,
.control-btn[data-type="traffic"].active::before {
    background: var(--primary-color);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

.control-btn[data-type="road"].active::after,
.control-btn[data-type="traffic"].active::after {
    left: 22px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.control-btn[data-type="road"]:hover,
.control-btn[data-type="traffic"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 缩放按钮组样式 */
.zoom-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.zoom-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: rgba(0, 0, 0, 0.7);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    border-radius: 50%;
}

.zoom-btn:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.5);
}

.zoom-btn:active, .zoom-btn.zoom-active {
    color: white;
    background: var(--primary-color);
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 完全隐藏比例尺 */
.amap-scale,
.amap-scale-text,
.amap-scale-line {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    z-index: -9999 !important;
    pointer-events: none !important;
}

/* 信息窗体样式优化 */
.info-window {
    width: 320px;
    background: var(--bg-color);
    border-radius: 24px;
    box-shadow: 
        0 20px 48px -18px rgba(0, 0, 0, 0.2),
        0 10px 24px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    font-family: "快看世界体", sans-serif;
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    animation: infoWindowShow 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
    transform-origin: center bottom;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-window .image {
    position: relative;
    height: 200px;
    overflow: hidden;
    transform: translateZ(0);
}

.info-window .image::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.5) 30%,
        rgba(0, 0, 0, 0) 100%
    );
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) forwards 0.2s;
}

.info-window .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 1.2s cubic-bezier(0.2, 0.9, 0.3, 1);
    will-change: transform;
}

.info-window:hover .image img {
    transform: scale(1.02);
}

.info-window .content {
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    margin-top: -60px;
    border-radius: 24px 24px 0 0;
    z-index: 1;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-window h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) forwards 0.1s;
    letter-spacing: -0.02em;
    flex-wrap: wrap;
}

.info-window .type {
    display: inline-flex;
    align-items: center;
    margin: 0;
    opacity: 0;
    animation: fadeIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) forwards 0.2s;
}

.info-window .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(var(--hsla-raw), 0.08);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
    box-shadow: 
        inset 0 0 0 1px rgba(var(--hsla-raw), 0.15),
        0 1px 2px rgba(var(--hsla-raw), 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateY(1px);
}

.info-window .tag svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
    animation: iconPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.3s;
}

.info-window .tag:hover {
    background: rgba(var(--hsla-raw), 0.12);
    transform: translateY(-1px);
    box-shadow: 
        inset 0 0 0 1px rgba(var(--hsla-raw), 0.2),
        0 3px 6px rgba(var(--hsla-raw), 0.15);
}

.info-window .tag:hover svg {
    transform: rotate(10deg);
}

.info-window .meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) forwards 0.3s;
}

.info-window .meta p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-window .meta p:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateX(2px);
}

.info-window .meta svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
    animation: iconPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.4s;
}

.info-window .description {
    margin: 0 0 16px;
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) forwards 0.4s;
    padding: 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
}

.info-window .article-link {
    opacity: 0;
    animation: fadeIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) forwards 0.5s;
    text-align: right;
    margin-top: 12px;
}

.info-window .article-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    background: rgba(var(--hsla-raw), 0.08);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
    box-shadow: 
        inset 0 0 0 1px rgba(var(--hsla-raw), 0.2),
        0 2px 4px rgba(var(--hsla-raw), 0.1);
}

.info-window .article-link a:hover {
    background: rgba(var(--hsla-raw), 0.12);
    transform: translateY(-2px) translateX(-4px);
    box-shadow: 
        inset 0 0 0 1px rgba(var(--hsla-raw), 0.3),
        0 4px 8px rgba(var(--hsla-raw), 0.15);
    gap: 12px;
}

.info-window .article-link a::after {
    content: '→';
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.info-window .article-link a:hover::after {
    transform: translateX(4px);
}

.info-window .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transform: scale(0.8) rotate(-90deg);
    animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.3s;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.info-window .close-btn:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

@keyframes infoWindowShow {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes iconPop {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 隐藏高德地图默认的关闭按钮 */
.amap-info-close {
    display: none !important;
}

/* 自定义关闭按钮 */
.info-window .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-color);
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.info-window .close-btn:hover {
    background: var(--bg-color);
    transform: rotate(90deg);
}

/* 标记点样式 */
.custom-marker {
    cursor: pointer;
    transition: var(--transition);
}

.marker-image {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--bg-color);
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: var(--transition);
}

.marker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.custom-marker:hover .marker-image {
    transform: scale(1.15);
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* 移除地图 Logo */
.amap-logo {
    display: none !important;
}

.amap-copyright {
    display: none !important;
}

/* 主题控制样式 */
.theme-control {
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-label {
    color: rgba(0, 0, 0, 0.7);
    font-size: 13px;
    margin-right: 8px;
}

.theme-select {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 4px;
    padding: 6px 24px 6px 8px;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(0, 0, 0, 0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.theme-select:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.9);
}

.theme-select:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 0.9);
}

/* 按钮点击效果 */
.control-btn.btn-clicked {
    transform: scale(0.95) translateZ(0);
    opacity: 0.9;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 加载指示器样式优化 */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(322, 68%, 60%, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 16px;
    color: var(--text-light);
    font-size: 14px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 动画定义 */
@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes colorFadeIn {
    0% {
        opacity: 0;
        color: rgba(0, 0, 0, 0.2);
    }
    50% {
        opacity: 1;
        color: rgba(0, 0, 0, 0.5);
    }
    100% {
        opacity: 1;
        color: var(--primary-color);
    }
}

@keyframes controlsFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes buttonColorFadeIn {
    0% {
        background: rgba(0, 0, 0, 0.1);
    }
    100% {
        background: var(--primary-color);
    }
}
/* 隐藏高德地图默认的信息窗体样式 */
.amap-info-content {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.amap-info-outer,
.amap-info-inner {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.amap-info-sharp {
    display: none !important;
}

/* 控制栏动画 */
.map-controls {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: all 0.3s ease-out;
}

.map-controls.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.control-btn {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease-out;
}

.control-btn.show {
    opacity: 1;
    transform: scale(1);
}

.control-btn.scale-in {
    animation: scaleIn 0.3s ease-out;
}

.zoom-controls button {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease-out;
}

.zoom-controls button.show {
    opacity: 1;
    transform: translateX(0);
}

.zoom-controls button.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* 按钮点击动画 */
.btn-pulse {
    animation: pulse 0.3s ease-out;
}

/* 动画关键帧 */
@keyframes scaleIn {
    0% {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* 优化控制栏样式 */
.map-controls {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px;
    margin: 16px;
}

.control-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.control-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.control-btn:active::after {
    transform: translate(-50%, -50%) scale(2);
    opacity: 1;
}

.control-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

