/* 多平台购买链接样式 */
.mpbl-buy-links {
    margin: 20px 0;
    padding: 0;
}

.mpbl-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mpbl-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mpbl-buy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 140px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.mpbl-buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white !important;
    text-decoration: none !important;
}

.mpbl-buy-button:active {
    transform: translateY(0);
}

.mpbl-buy-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* 加载状态 */
.mpbl-loading {
    animation: pulse 1s infinite;
}

.mpbl-success {
    color: #4CAF50;
}

.mpbl-error {
    color: #ffeb3b;
}

/* 复制成功状态 */
.mpbl-buy-button.mpbl-copied {
    background-color: #4CAF50 !important;
    animation: copiedPulse 0.6s ease;
}

@keyframes copiedPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* 口令指示器 */
.mpbl-code-indicator {
    margin-left: 5px;
    font-size: 12px;
    animation: indicatorPulse 2s infinite;
}

@keyframes indicatorPulse {
    0% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.7; transform: scale(1); }
}

/* 手动复制模态框 */
.mpbl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
}

.mpbl-modal {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mpbl-modal-header {
    padding: 20px 20px 10px;
    border-bottom: 1px solid #eee;
}

.mpbl-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.mpbl-modal-body {
    padding: 20px;
}

.mpbl-modal-body p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.5;
}

.mpbl-code-display {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.mpbl-code-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    background: #f9f9f9;
    font-family: monospace;
}

.mpbl-code-input:focus {
    outline: none;
    border-color: #2196F3;
}

.mpbl-copy-again-btn {
    padding: 12px 20px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.mpbl-copy-again-btn:hover {
    background: #1976D2;
}

.mpbl-tip {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin: 10px 0 0 0 !important;
}

.mpbl-modal-footer {
    padding: 15px 20px 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid #eee;
}

.mpbl-cancel-btn {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mpbl-cancel-btn:hover {
    background: #e0e0e0;
}

.mpbl-continue-btn {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.mpbl-continue-btn:hover {
    background: #45a049;
}

/* 小工具样式 */
.mpbl-widget .mpbl-buy-links {
    margin: 10px 0;
}

.mpbl-widget .mpbl-buy-button {
    font-size: 13px;
    padding: 10px 15px;
    min-width: auto;
}

/* 无链接提示 */
.mpbl-no-links {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mpbl-horizontal {
        flex-direction: column;
    }
    
    .mpbl-buy-button {
        width: 100%;
        min-width: auto;
    }
    
    .mpbl-widget .mpbl-buy-button {
        width: 100%;
    }
    
    .mpbl-modal {
        margin: 10px;
        max-width: none;
    }
    
    .mpbl-code-display {
        flex-direction: column;
    }
    
    .mpbl-modal-footer {
        flex-direction: column;
    }
    
    .mpbl-copy-again-btn,
    .mpbl-cancel-btn,
    .mpbl-continue-btn {
        width: 100%;
    }
}

/* 防止页面滚动 */
body.mpbl-modal-open {
    overflow: hidden;
}