/* cutestUI 热点标记组件样式 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 图像映射容器样式 */
.cutest-image-map {
    position: relative;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
}

/* 图像样式 */
.cutest-image-map img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* 热点标记点基础样式 */
.cutest-hotspot {
    position: absolute !important;
    width: 20px !important;
    height: 20px !important;
    background-color: rgba(255, 77, 77, 0.7);
    border-radius: 50% !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all 0.3s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* 热点悬停状态 */
.cutest-hotspot:hover {
    background-color: rgba(255, 77, 77, 0.9);
    transform: scale(1.3) !important;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.3);
}

/* 热点激活状态 */
.cutest-hotspot.active {
    background-color: rgba(77, 204, 77, 0.9);
    transform: scale(1.3) !important;
    box-shadow: 0 0 0 3px rgba(77, 204, 77, 0.3);
}

/* 热点脉冲动画 */
.cutest-hotspot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 77, 77, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: cutest-pulse 2s infinite;
    z-index: -1;
}

/* 激活状态的脉冲动画 */
.cutest-hotspot.active::before {
    background-color: rgba(77, 204, 77, 0.5);
}

@keyframes cutest-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* 热点提示框 */
.cutest-hotspot-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cutest-hotspot:hover .cutest-hotspot-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* 箭头 */
.cutest-hotspot-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

/* 缩放区域样式 */
.cutest-zoom-area {
    position: absolute;
    border: 2px dashed rgba(255, 255, 255, 0.7);
    background-color: rgba(77, 153, 255, 0.1);
    z-index: 5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cutest-zoom-area:hover {
    border-color: rgba(255, 255, 255, 1);
    background-color: rgba(77, 153, 255, 0.2);
    border-style: solid;
}

/* 模态框样式 */
.cutest-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cutest-image-modal.show {
    display: flex;
    opacity: 1;
}

.cutest-modal-content {
    background-color: white;
    padding: 0;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cutest-image-modal.show .cutest-modal-content {
    transform: scale(1);
}

.cutest-modal-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cutest-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.cutest-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cutest-modal-close:hover {
    background-color: #e9ecef;
    color: #000;
}

.cutest-modal-body {
    padding: 20px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

/* 控制按钮 */
.cutest-control-buttons {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

.cutest-control-btn {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #333;
}

.cutest-control-btn:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 热点数据详情卡片 */
.cutest-hotspot-details {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cutest-hotspot-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.cutest-hotspot-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cutest-hotspot-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.cutest-hotspot-meta-item {
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

/* 热点类型变体 */
.cutest-hotspot.type-primary {
    background-color: rgba(77, 153, 255, 0.7);
}

.cutest-hotspot.type-primary:hover, 
.cutest-hotspot.type-primary.active {
    background-color: rgba(77, 153, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(77, 153, 255, 0.3);
}

.cutest-hotspot.type-primary::before {
    background-color: rgba(77, 153, 255, 0.5);
}

.cutest-hotspot.type-success {
    background-color: rgba(77, 204, 77, 0.7);
}

.cutest-hotspot.type-success:hover, 
.cutest-hotspot.type-success.active {
    background-color: rgba(77, 204, 77, 0.9);
    box-shadow: 0 0 0 3px rgba(77, 204, 77, 0.3);
}

.cutest-hotspot.type-success::before {
    background-color: rgba(77, 204, 77, 0.5);
}

.cutest-hotspot.type-warning {
    background-color: rgba(255, 179, 77, 0.7);
}

.cutest-hotspot.type-warning:hover, 
.cutest-hotspot.type-warning.active {
    background-color: rgba(255, 179, 77, 0.9);
    box-shadow: 0 0 0 3px rgba(255, 179, 77, 0.3);
}

.cutest-hotspot.type-warning::before {
    background-color: rgba(255, 179, 77, 0.5);
}

.cutest-hotspot.type-info {
    background-color: rgba(77, 204, 255, 0.7);
}

.cutest-hotspot.type-info:hover, 
.cutest-hotspot.type-info.active {
    background-color: rgba(77, 204, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(77, 204, 255, 0.3);
}

.cutest-hotspot.type-info::before {
    background-color: rgba(77, 204, 255, 0.5);
}

/* 热点大小变体 */
.cutest-hotspot.size-small {
    width: 16px !important;
    height: 16px !important;
}

.cutest-hotspot.size-small::before {
    width: 16px;
    height: 16px;
}

.cutest-hotspot.size-large {
    width: 28px !important;
    height: 28px !important;
}

.cutest-hotspot.size-large::before {
    width: 28px;
    height: 28px;
}

.cutest-hotspot.size-xl {
    width: 40px !important;
    height: 40px !important;
}

.cutest-hotspot.size-xl::before {
    width: 40px;
    height: 40px;
}

/* 热点自定义内容 */
.cutest-hotspot-content {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 加载动画 */
.cutest-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: cutest-spin 1s ease-in-out infinite;
    z-index: 30;
}

@keyframes cutest-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cutest-hotspot {
        width: 16px !important;
        height: 16px !important;
    }
    
    .cutest-hotspot::before {
        width: 16px;
        height: 16px;
    }
    
    .cutest-hotspot-tooltip {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .cutest-control-buttons {
        bottom: 10px;
        right: 10px;
        gap: 5px;
    }
    
    .cutest-control-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .cutest-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .cutest-modal-header {
        padding: 12px 15px;
    }
    
    .cutest-modal-title {
        font-size: 16px;
    }
    
    .cutest-modal-body {
        padding: 15px;
    }
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    .cutest-hotspot::before {
        animation-duration: 20s;
    }
    
    .cutest-hotspot, 
    .cutest-hotspot:hover, 
    .cutest-control-btn, 
    .cutest-control-btn:hover {
        transition: none;
    }
}

/* 打印样式 */
@media print {
    .cutest-hotspot {
        background-color: #333 !important;
        opacity: 0.8 !important;
        box-shadow: none !important;
    }
    
    .cutest-hotspot::before {
        display: none;
    }
    
    .cutest-control-buttons, 
    .cutest-modal-close {
        display: none;
    }
}