/* 复制弹窗样式 */
#copy-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none; /* 默认隐藏 */
}

.copy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.copy-content {
    position: relative;
    background-color: white;
    width: 85%;
    max-width: 320px;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 1001;
    animation: popup-appear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.copy-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #333;
    font-weight: bold;
}

.source-text {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 5px;
    text-align: left;
}

.source-link {
    background-color: #f0f5ff;
    border: 1px solid #d0deff;
    border-radius: 10px;
    padding: 12px;
    margin: 10px 0;
    font-size: 0.95rem;
    word-break: break-all;
    color: #627be1;
    font-weight: 500;
    text-align: center;
    animation: highlight 0.5s;
}

.copy-instruction {
    color: #666;
    line-height: 1.6;
    margin: 15px 0;
    font-size: 0.9rem;
}

.copy-image {
    width: 300px;
    height: 150px;
    margin: 10px auto 15px;
    background-color: #f0f5ff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-image img {
    max-width: 100%;
    max-height: 100%;
}

#close-copy {
    display: block;
    width: 100%;
    padding: 12px 0;
    background: linear-gradient(135deg, #627be1, #8b6cf0);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(98, 123, 225, 0.3);
    transition: all 0.3s ease;
}

#close-copy:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(98, 123, 225, 0.3);
}

/* 动画效果 */
@keyframes popup-appear {
    0% { 
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    100% { 
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* 暗黑模式适配 */
@media (prefers-color-scheme: dark) {
    .copy-content {
        background-color: #1e1e1e;
    }
    
    .copy-content h3 {
        color: #f0f0f0;
    }
    
    .source-text, .copy-instruction {
        color: #d0d0d0;
    }
    
    #close-copy {
        background: linear-gradient(135deg, #7a92eb, #a88ff5);
    }
    
    .source-link {
        background-color: #2a2a4a;
        border-color: #3a3a6a;
        color: #a88ff5;
    }
    
    .copy-image {
        background-color: #2a2a4a;
    }
}

/* 新的手动复制按钮样式 - 白色设计 */
.manual-copy-container {
    margin: 15px 20px 25px;
    text-align: center;
}

.manual-copy-btn {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 18px 25px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    width: calc(100% - 40px);
    max-width: 500px;
    justify-content: center;
}

.manual-copy-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.copy-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-icon img {
    max-width: 100%;
    max-height: 100%;
}

.copy-text {
    color: #627be1;
    font-weight: bold;
    font-size: 16px;
}

/* 按钮悬停效果 */
.manual-copy-btn:hover {
    border-color: #627be1;
    background-color: #f8faff;
}

/* 暗黑模式适配 */
@media (prefers-color-scheme: dark) {
    .manual-copy-btn {
        background-color: #292e32;
        border-color: #3a3a4a;
    }
    
    .copy-text {
        color: #7a92eb;
    }
    
    .manual-copy-btn:hover {
        border-color: #7a92eb;
        background-color: #1e1e2e;
    }
}