        /* 模态框样式 */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.9);
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        /* 显示模态框时的样式 */
        .modal.show {
            display: block;
            opacity: 1;
        }
        
        /* 模态框容器 - 用于居中图片 */
        .modal-container {
            position: relative;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        /* 模态框中的图片 */
        .modal-content {
            max-width: 90%;
            max-height: 80vh;
            transform: scale(0.9);
            transition: transform 0.3s ease;
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
        }
        
        /* 显示图片时的缩放效果 */
        .modal.show .modal-content {
            transform: scale(1);
        }
        
        /* 关闭按钮 */
        .close {
            position: absolute;
            top: 20px;
            right: 35px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            transition: 0.3s;
            cursor: pointer;
            z-index: 1001;
        }
        
        .close:hover,
        .close:focus {
            color: #bbb;
            text-decoration: none;
            transform: rotate(90deg);
        }
        
        /* 左右切换按钮 */
        .nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            color: white;
            font-size: 40px;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 1001;
        }
        
        .prev-btn {
            left: 20px;
        }
        
        .next-btn {
            right: 20px;
        }
        
        .nav-btn:hover {
            background-color: rgba(0, 0, 0, 0.8);
            transform: translateY(-50%) scale(1.1);
        }
        
        /* 图片悬停效果 */
        .zoom-img {
            cursor: zoom-in;
            transition: transform 0.2s;
            border: 3px solid transparent;
        }
        
        .zoom-img:hover {
            transform: scale(1.05);
            border-color: #337ab7;
        }
        
        /* 图片计数器 */
        .image-counter {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            background-color: rgba(0, 0, 0, 0.5);
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 16px;
            z-index: 1001;
        }