    /* 盖章样式 */
    .print-stamp {
        float: right;
        bottom: 50px;
        right: 50px;
        margin-top: -120px;
        z-index: 10;
    }

    /* 在现有的 <style> 标签中添加以下CSS */
    @media print {

        /* 隐藏所有内容 */
        body * {
            visibility: hidden;
        }

        /* 只显示模态框内容 */
        .modal,
        .modal *,
        .modal-content,
        .modal-content * {
            visibility: visible;
        }

        .modal {
            position: static !important;
            background: transparent !important;
            width: auto !important;
            height: auto !important;
        }

        .modal-content {
            position: static !important;
            background: white !important;
            box-shadow: none !important;
            border: none !important;
            padding: 0 !important;
            margin: 0 !important;
            max-width: none !important;
            width: 100% !important;
            transform: none !important;
        }

        /* 隐藏关闭按钮 */
        .close-button {
            display: none !important;
        }

        /* 显示盖章 */
        .print-stamp {
            display: block !important;
        }
    }

    .modal {
        display: none;
        position: fixed;
        z-index: 1010;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        overflow: hidden;
        /* 改为 hidden 防止出现滚动条 */
    }

    .modal-content {
        position: absolute;
        background-color: #fefefe;
        padding: 20px;
        border-radius: 8px;
        max-width: 480px;
        width: 90%;
        /* 添加这行以确保在移动设备上也有好的显示效果 */
        animation: modalOpen 0.3s ease-out;

        /* 居中显示的关键代码 */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: opacity 0.2s ease-in-out;
    }

    @keyframes modalOpen {
        from {
            opacity: 0;
            transform: translate(-50%, -60%);
        }

        to {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
    }

    .close-button {
        position: absolute;
        right: 20px;
        top: 0px;
        color: #aaa;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }

    .close-button:hover {
        color: #555;
    }

    .success-message {
        margin: 20px 0;
        color: #155724;
        background-color: #d4edda;
        border: 1px solid #c3e6cb;
        padding: 10px;
        border-radius: 4px;
    }

    .success-message .content {
        display: flex;
        flex-direction: column;
        gap: 10px;
        background-color: #fff;
        padding: 15px;
        border-radius: 4px;
    }

    /* Update result-area styles */
    .result-area {
        margin-top: 20px;
        padding: 15px;
        border-radius: 4px;
    }

    .modal .success-message,
    .modal {
        margin: 20px 0;
        text-align: center;
    }

    .certificate-form-wrapper {
        max-width: 600px;
        margin: 40px auto;
        padding: 20px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .verification-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .form-group label {
        font-weight: bold;
        color: #333;
    }

    .form-control {
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 16px;
    }

    .submit-button {
        background-color: #0073aa;
        color: white;
        padding: 12px 24px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.3s;
    }

    .submit-button:hover {
        background-color: #005177;
    }

    .result-area {
        margin-top: 20px;
        padding: 15px;
        border-radius: 4px;
        display: none;
    }

    .error-message {
        color: #721c24;
        background-color: #f8d7da;
        border: 1px solid #f5c6cb;
        padding: 10px;
        border-radius: 4px;
        margin: 20px 0;
        text-align: center;
    }

    .success-message {
        color: #155724;
        background-color: #d4edda;
        border: 1px solid #c3e6cb;
        padding: 10px;
        border-radius: 4px;
    }

    /* 模态框样式 */
    .modal {
        display: none;
        position: fixed;
        z-index: 1010;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        overflow: hidden;
    }

    .modal-content {
        position: absolute;
        background-color: #fefefe;
        padding: 20px;
        border-radius: 8px;
        max-width: 480px;
        width: 90%;
        animation: modalOpen 0.3s ease-out;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-height: 90vh;
        overflow-y: auto;
    }

    /* 模态框动画 */
    @keyframes modalOpen {
        from {
            opacity: 0;
            transform: translate(-50%, -60%);
        }

        to {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
    }

    /* 顶部容器样式 */
    .modal-top-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 20px;
    }

    /* 左侧信息样式 */
    .modal-left-info {
        flex: 1;
        min-width: 250px;
        order: 1;
    }

    /* 右侧图片容器样式 */
    .branch-image {
        flex: 1;
        max-width: 400px;
        text-align: center;
        order: 2;
    }

    .branch-image img {
        margin-top: 10px;
        width: 100px;
        height: 150px;
        max-height: 300px;
        object-fit: contain;
        border: 8px solid white;
        border-radius: 8px;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    }


    /* 底部信息样式 */
    .modal-bottom-info {
        border-top: 1px solid #ebeef5;
        margin-top: 15px;
    }

    /* 分会详情样式 */
    .branch-details dd,
    .branch-basic-info dd {
        width: 100%;
        padding: 12px 0;
        margin: 0;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #ebeef5;
    }

    .branch-details dd:last-child,
    .branch-basic-info dd:last-child {
        border-bottom: none;
    }

    .branch-details dd>span:first-child,
    .branch-basic-info dd>span:first-child {
        width: 110px;
        color: #606266;
        font-size: 14px;
        font-weight: 500;
        position: relative;
        padding-left: 12px;
    }

    .branch-details dd>span:first-child::before,
    .branch-basic-info dd>span:first-child::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 4px;
        background: #409EFF;
        border-radius: 50%;
    }

    .branch-details dd>span:last-child,
    .branch-basic-info dd>span:last-child {
        color: #303133;
        font-size: 14px;
        font-weight: 500;
        flex: 1;
    }

    /* 关闭按钮样式 */
    .close-button {
        position: absolute;
        right: 10px;
        top: 10px;
        margin-bottom: 10px;
        color: #aaa;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        z-index: 1;
    }

    .close-button:hover {
        color: #555;
    }

    /* 加载和无图片提示样式 */
    .loading {
        text-align: center;
        padding: 20px;
    }

    .no-image-text {
        color: #666;
        background: #f5f5f5;
        border-radius: 4px;
        width: 100px;
        height: 150px;
        object-fit: contain;
        border: 8px solid white;
        border-radius: 8px;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    }

    /* 响应式布局 */
    @media screen and (max-width: 768px) {
        .modal-content {
            width: 85%;
            padding: 15px;
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal-top-container {
            flex-direction: column;
            gap: 10px;
        }

        .branch-image {
            order: -1;
            max-width: 100%;
            margin: 0 auto 15px auto;
            width: 100%;
        }

        .modal-left-info {
            order: 2;
            min-width: 100%;
            width: 100%;
        }

        .branch-image img {
            width: auto;
            max-width: 100%;
            height: auto;
            max-height: 200px;
            margin: 10px auto;
            display: block;
            border-width: 4px;
        }

        .branch-basic-info,
        .branch-details {
            margin-top: 10px;
        }

        .branch-basic-info dd,
        .branch-details dd {
            padding: 8px 0;
        }

        .branch-details dd>span:first-child,
        .branch-basic-info dd>span:first-child {
            width: 90px;
            font-size: 13px;
        }

        .branch-details dd>span:last-child,
        .branch-basic-info dd>span:last-child {
            font-size: 13px;
        }

        .close-button {
            top: 5px;
            right: 5px;
            font-size: 24px;
        }
    }