.confirm-dialog {
    border-radius: 8px;
    overflow: hidden;
}
.browser-dialog .el-dialog {
    margin: 0 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.browser-dialog .el-dialog__body {
    flex: 1;
    padding: 0;
    position: relative;
    display: flex;
    align-items: flex-start; /* 改为顶部对齐 */
    justify-content: center;
    overflow-y: auto;
    height: 80vh; /* 可选：限制内容区域高度 */
}


.confirm-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 10;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}
.confirm-content {
    text-align: center;
    line-height: 1.6;
    font-size: 16px;
    color: #303133;
    max-height: 80vh;
    overflow-y: auto;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 12px;
    background-color: rgba(233, 233, 233, 0.64);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    margin: 0;
}
.confirm-footer {
    width: 100%;
    display: flex;
    justify-content: center;
}
.confirm-button {
    min-width: 120px;
    border-radius: 20px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    animation: button-pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
    position: relative;
    overflow: hidden;
}

.confirm-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.5), rgba(255,255,255,0) 70%);
    animation: button-shine 3s infinite linear;
    transform: translateX(-100%);
}

.confirm-button:hover {
    animation: none; /* 悬停时停止脉冲动画 */
}

.confirm-button:active {
    box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .confirm-content {
        font-size: 14px;
        width: 95%;
        max-width: none;
        padding: 20px 15px !important;
        max-height: 80vh;
    }
    .confirm-button {
        min-width: 100px;
    }
    .document-title {
        font-size: 18px;
    }
    .expiration-time {
        font-size: 13px;
        padding: 5px 10px;
    }
}

/* 动态背景样式 - 磨砂效果和随机方向 */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 1;
    overflow: hidden;
}

.animated-bg::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
            135deg,
            rgba(59, 154, 218, 0.6) 0%,
            rgba(160, 99, 184, 0.6) 10%,
            rgba(241, 199, 31, 0.6) 30%,
            rgba(57, 202, 118, 0.6) 50%,
            rgba(223, 92, 78, 0.6) 70%,
            rgba(74, 159, 216, 0.6) 100%
    );
    background-size: 400% 400%;
    animation: movingGradient 20s ease-in-out infinite;
    transform-origin: center center;
    opacity: 0.7;
}

.animated-bg::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0) 70%
    );
    background-size: 100% 100%;
    animation: pulseEffect 15s ease-in-out infinite alternate;
}

@keyframes movingGradient {
    0% {
        background-position: 0% 0%;
        transform: rotate(0deg);
    }
    25% {
        background-position: 100% 0%;
        transform: rotate(3deg);
    }
    50% {
        background-position: 100% 100%;
        transform: rotate(0deg);
    }
    75% {
        background-position: 0% 100%;
        transform: rotate(-3deg);
    }
    100% {
        background-position: 0% 0%;
        transform: rotate(0deg);
    }
}

@keyframes pulseEffect {
    0% {
        opacity: 0.3;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.3;
        transform: scale(0.95);
    }
}

@keyframes button-pulse {
    0% {
        box-shadow: 0 4px 8px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.1), 0 0 0 0 rgba(103, 194, 58, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 8px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.1), 0 0 0 15px rgba(103, 194, 58, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 4px 8px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.1), 0 0 0 0 rgba(103, 194, 58, 0);
        transform: scale(1);
    }
}

@keyframes button-shine {
    100% {
        transform: translateX(100%);
    }
}

/* 确保内容区域有更好的可读性 - 现代小纸条风格 */
.confirm-content {
    background-color: rgba(233, 233, 233, 0.5);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow:
            0 18px 55px rgba(0,0,0,.38),      /* 外部阴影：制造悬浮感 */
            inset 0 1px 0 rgba(255,255,255,.20); /* 内部阴影：模拟顶部高光 */
    background-size: 100% 24px;
    border-radius: 35px;
    padding: 25px 20px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.document-title {
    font-size: 22px;
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
    width: 100%;
    letter-spacing: 0.3px;
}

.expiration-time {
    font-size: 15px;
    color: #666;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.43);
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow:
            0 5px 55px rgba(0,0,0,0.10),      /* 外部阴影：制造悬浮感 */
            inset 0 1px 0 rgba(255,255,255,0.2);
    background-size: 100% 24px;
    border-radius: 35px;
    display: inline-block;
}

.message-content {
    width: 100%;
    margin-top: 15px;
    padding: 5px;
    padding-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.message-content p {
    margin-bottom: 12px;
    line-height: 1.6;
    text-align: left;
}

/* 统一按钮样式 */
.el-button--success.is-plain {
    background-color: #f0f9eb;
    border-color: #c2e7b0;
    transition: all 0.3s;
    width: 100%; /* 确保宽度一致 */
    text-align: center;
}

.el-button--success.is-plain:hover {
    background-color: #67c23a;
    border-color: #67c23a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(103, 194, 58, 0.3);
}

/* 复制按钮统一样式 */
.el-descriptions-item .el-button {
    transition: all 0.3s ease;
    border-radius: 4px;
    font-weight: 500;
    width: 100%; /* 确保宽度一致 */
    margin-top: 5px;
}

.el-descriptions-item .el-button--mini {
    padding: 8px 15px;
    font-size: 13px;
}

.el-descriptions-item .el-button i {
    margin-right: 5px;
}

/* 脉冲动画定义 */
@keyframes button-pulse {
    0% {
        box-shadow: 0 2px 12px 0 rgba(103, 194, 58, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px 0 rgba(103, 194, 58, 0.8);
        transform: scale(1.03);
    }
    100% {
        box-shadow: 0 2px 12px 0 rgba(103, 194, 58, 0.3);
        transform: scale(1);
    }
}

/* 绿色按钮脉冲效果 */
@keyframes success-button-pulse {
    0% {
        box-shadow: 0 2px 12px 0 rgba(103, 194, 58, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px 0 rgba(103, 194, 58, 0.8);
        transform: scale(1.03);
    }
    100% {
        box-shadow: 0 2px 12px 0 rgba(103, 194, 58, 0.3);
        transform: scale(1);
    }
}

/* 刷新按钮的基本样式 */
.refresh-button {
    padding: 10px 18px; /* 内边距 */
    margin-top: 10px;
    font-size: 14px; /* 字体大小 */
    color: #ffffff; /* 文字颜色 */
    background-color: #409EFF; /* 背景颜色改为Element UI的主色调 */
    border: none; /* 无边框 */
    border-radius: 4px; /* 圆角边框 */
    cursor: pointer; /* 鼠标样式 */
    text-align: center; /* 文字居中 */
    text-decoration: none; /* 文本装饰 */
    display: inline-block; /* 行内块元素 */
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    /* 添加脉冲动画 */
    animation: button-pulse 1.5s infinite;
}

/* 鼠标悬停时的按钮样式 */
.refresh-button:hover {
    animation: none; /* 悬停时停止动画 */
}

/* 优化分隔线 */
.el-divider {
    margin: 30px 0;
}

.el-divider__text {
    background-color: #fff;
    padding: 0 16px;
    color: #409EFF;
    font-weight: 600;
    font-size: 15px;
}