/* ============================================================
   资质证照查看页面样式
   ============================================================ */

/* ---------- 列表区域 ---------- */
.zz-loading {
    text-align: center;
    padding: 60px 0;
    color: #888;
    font-size: 14px;
}

.zz-empty {
    text-align: center;
    padding: 60px 0;
    color: #999;
}

.zz-empty i {
    color: #ddd;
    margin-bottom: 15px;
}

.zz-empty p {
    margin: 0;
    font-size: 14px;
}

/* ---------- 资质列表网格 ---------- */
.zz-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    zoom: 1;
}

.zz-list::after {
    content: "";
    display: table;
    clear: both;
}

.zz-item {
    float: left;
    width: 25%;
    padding: 10px;
    margin: 0;
    text-align: center;
    list-style: none;
    box-sizing: border-box;
}

.zz-item-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    padding: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.zz-item-card:hover {
    border-color: #3c8dbc;
    box-shadow: 0 2px 12px rgba(60, 141, 188, 0.2);
    transform: translateY(-2px);
}

.zz-item-pic {
    display: block;
    width: 100%;
    padding-top: 142.9%; /* 205:293 比例 */
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 2px;
}

.zz-item-pic img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    display: block;
    border: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.zz-item-name {
    margin: 10px 0 5px 0;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
    color: #333;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 36px;
}

.zz-item-remark {
    margin: 0;
    font-size: 12px;
    color: #999;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- 响应式适配 ---------- */
@media (max-width: 1200px) {
    .zz-item {
        width: 33.333%;
    }
}

@media (max-width: 992px) {
    .zz-item {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .zz-item {
        width: 100%;
    }
}

/* ============================================================
   灯箱弹窗样式
   ============================================================ */

.zz-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.zz-lightbox.active {
    display: block;
}

.zz-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.zz-lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 关闭按钮 */
.zz-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}

.zz-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 左右切换按钮 */
.zz-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}

.zz-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.zz-lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.zz-lightbox-prev {
    left: -60px;
}

.zz-lightbox-next {
    right: -60px;
}

/* 图片容器 */
.zz-lightbox-image-wrap {
    position: relative;
    max-width: 85vw;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.zz-lightbox-image-wrap img {
    max-width: 85vw;
    max-height: 75vh;
    display: block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.zz-lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    display: none;
}

.zz-lightbox-loading.active {
    display: block;
}

/* 图注 */
.zz-lightbox-caption {
    margin-top: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    max-width: 80vw;
    word-wrap: break-word;
}

/* 计数器 */
.zz-lightbox-counter {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-align: center;
}

/* ---------- 响应式：小屏幕灯箱 ---------- */
@media (max-width: 768px) {
    .zz-lightbox-prev {
        left: 10px;
    }

    .zz-lightbox-next {
        right: 10px;
    }

    .zz-lightbox-close {
        top: 10px;
        right: 10px;
    }

    .zz-lightbox-image-wrap {
        max-width: 95vw;
        max-height: 70vh;
    }

    .zz-lightbox-image-wrap img {
        max-width: 95vw;
        max-height: 70vh;
    }
}

/* ---------- 动画 ---------- */
.zz-lightbox {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.zz-lightbox.active {
    opacity: 1;
}

.zz-lightbox-content {
    transform: translate(-50%, -50%) scale(0.95);
    transition: transform 0.2s ease;
}

.zz-lightbox.active .zz-lightbox-content {
    transform: translate(-50%, -50%) scale(1);
}
