/* 缩放控制按钮样式 */
.zoom-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.zoom-controls:hover {
    opacity: 1;
}

.zoom-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.zoom-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.zoom-reset {
    font-size: 20px;
}

/* 古典风格 */
body[data-theme="classic"] .zoom-btn {
    background: linear-gradient(135deg, #d4af37 0%, #8b4513 100%);
}

/* 简约风格 */
body[data-theme="modern"] .zoom-btn {
    background: #000;
    border-radius: 0;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .zoom-controls {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .zoom-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .zoom-reset {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .zoom-controls {
        bottom: 10px;
        right: 10px;
        gap: 6px;
    }
    
    .zoom-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .zoom-reset {
        font-size: 16px;
    }
}

/* 缩放提示 */
.zoom-hint {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.zoom-hint.show {
    opacity: 1;
}

/* 容器缩放样式 */
.container {
    transition: transform 0.3s ease;
    transform-origin: center center;
    will-change: transform;
}

/* 防止缩放时内容溢出屏幕 */
body {
    overflow-x: hidden;
}

/* 移动端优化 - 防止缩放时内容移出视口 */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* 缩放指示器 */
.zoom-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.zoom-indicator.show {
    opacity: 1;
}

/* 移动端缩放指示器 */
@media (max-width: 768px) {
    .zoom-indicator {
        top: 15px;
        font-size: 12px;
        padding: 5px 12px;
    }
}
