/* 
 * 作者：json
 * 文档详情页样式文件
 */

/* 文档详情页 */
.document-detail {
    margin-top: 4rem;
    padding: 2rem 1rem;
}

.document-container {
    max-width: 75rem;
    margin: 0 auto;
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* 文档信息区 */
.document-info {
    margin-bottom: 2rem;
}

.document-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.document-attributes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.attribute {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.attribute .label {
    color: #666;
}

.attribute .value {
    color: var(--primary-color);
    font-weight: 500;
}

.disclaimer {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: flex-end;
}

.action-buttons button {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-btn {
    background-color: #52c41a;
    color: white;
}

.contact-btn:hover {
    background-color: #389e0d;
}

/* 文档截图区 */
.document-screenshots {
    margin-top: 2rem;
}

.screenshots-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.screenshot-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.screenshot-item {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 15rem;
}

.screenshot-item:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.screenshot-image {
    width: 100%;
    height: 100%;
    min-height: 15rem;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.screenshot-item:hover .screenshot-image {
    transform: scale(1.02);
}

/* 模态框样式 */
.image-modal,
.qrcode-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1110;
}

.modal-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.qrcode-container1 {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    position: relative;
}
.qrcode-modal .close-modal {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1110;
}
.qrcode-image {
    width: 15rem;
    height: 15rem;
    margin-bottom: 1rem;
}

.qrcode-tip {
    color: #666;
    font-size: 1rem;
}

/* 响应式布局 */
@media screen and (max-width: 48rem) {
    .document-detail {
        margin-top: 6rem;
        padding: 1rem;
    }

    .document-container {
        padding: 1rem;
    }

    .document-title {
        font-size: 1.5rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons button {
        width: 100%;
    }

    .screenshot-list {
        grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
        gap: 1rem;
    }
}

@media screen and (max-width: 30rem) {
    .document-detail {
        margin-top: 8rem;
    }

    .document-attributes {
        grid-template-columns: 1fr;
    }

    .document-title {
        font-size: 1.25rem;
    }

    .screenshot-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}
