  .image-modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            overflow: hidden;
        }
        
        .modal-content {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 100%;
            padding: 20px;
        }
        
        #modalImage {
            max-width: 90%;
            max-height: 80vh;
            transform-origin: center center;
            transition: transform 0.3s ease;
        }
        
        #caption {
            color: white;
            text-align: center;
            padding: 10px 0;
            font-size: 18px;
            margin-top: 15px;
        }
        
        .closed {
            position: absolute;
            top: 20px;
            right: 30px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s;
            z-index: 1001; /* 确保在模态框上方 */
        }
        
        .closed:hover {
            color: #bbb;
        }
        
        .controls {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 15px;
            background: rgba(255, 255, 255, 0.2);
            padding: 10px 15px;
            border-radius: 30px;
            backdrop-filter: blur(10px);
        }
        
        .control-btn {
            background: #3498db;
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s;
        }
        
        .control-btn:hover {
            background: #2980b9;
        }