/* 积分内容保护系统样式 */

/* 通用样式 */
.pcp-purchase-section,
.pcp-login-required,
.pcp-bind-required,
.pcp-insufficient-points {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.pcp-protected-content {
    background: #0b0809;
    color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pcp-protected-content p {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.pcp-protected-content p:last-of-type {
    margin-bottom: 20px;
}

/* 购买按钮样式 */
.pcp-purchase-btn {
    background: #28a745;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    padding: 10px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pcp-purchase-btn:hover,
.pcp-purchase-btn.pcp-btn-hover {
    background: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.pcp-purchase-btn:active {
    transform: translateY(0);
}

.pcp-purchase-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pcp-success-btn {
    background: #1e73be;
    cursor: default ;
    transform: none ;
}

/* 登录按钮样式 */
.pcp-login-btn {
    background: linear-gradient(45deg, #0984e3, #74b9ff);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.3);
}

.pcp-login-btn:hover {
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 132, 227, 0.4);
    color: white;
    text-decoration: none;
}

/* 提示信息样式 */
.pcp-login-required {
    background: #f8f9fa;
    color: black;
    border: none;
}

.pcp-bind-required {
    background: linear-gradient(135deg, #a29bfe, #fd79a8);
    color: white;
    border: none;
}

.pcp-insufficient-points {
    background: #0b0809;
    color: white;
    border: none;
}

.pcp-login-required p,
.pcp-bind-required p,
.pcp-insufficient-points p {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 500;
}

.pcp-login-required p:last-child,
.pcp-bind-required p:last-child,
.pcp-insufficient-points p:last-child {
    margin-bottom: 0;
}

/* 复制按钮样式 */
/* 增强的复制按钮样式 */
/* 增强的复制按钮样式 - 默认灰色版本 */
.pcp-copy-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 5px;
}

.pcp-copy-btn {
    /* 默认灰色背景 */
    background: #666;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    min-height: 36px;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
    position: relative;
    display: inline-block;
}

/* 悬停状态 - 变成彩色渐变并显示完整内容 */
.pcp-copy-btn:hover,
.pcp-copy-btn.pcp-copy-hover {
    background: linear-gradient(45deg, #00cec9, #55a3ff) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 206, 201, 0.3);
    white-space: normal;
    word-wrap: break-word;
    max-width: none;
    min-width: 120px;
    z-index: 100;
    padding: 12px 16px;
    line-height: 1.4;
}

/* 悬停提示气泡 */
.pcp-copy-btn::before {
    content: "点击复制";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    margin-bottom: 8px;
    pointer-events: none;
    font-weight: normal;
}

.pcp-copy-btn::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    margin-bottom: 3px;
    pointer-events: none;
}

.pcp-copy-btn:hover::before,
.pcp-copy-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 复制中状态 - 深灰色 */
.pcp-copy-btn.pcp-copying {
    background: #95a5a6 !important;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.pcp-copy-btn.pcp-copying::before,
.pcp-copy-btn.pcp-copying::after {
    display: none;
}

/* 成功状态 - 绿色渐变 */
.pcp-copy-btn.pcp-copy-success-btn {
    background: linear-gradient(45deg, #00b894, #55efc4) !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 184, 148, 0.3);
}

/* 错误状态 - 红色渐变 */
.pcp-copy-btn.pcp-copy-error-btn {
    background: linear-gradient(45deg, #e74c3c, #ff7675) !important;
    transform: none;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

/* 点击状态 - 稍微深一点的彩色 */
.pcp-copy-btn:active {
    background: linear-gradient(45deg, #00a085, #4d91e6) !important;
    transform: translateY(-1px);
}

/* 反馈提示样式增强 */
.pcp-copy-feedback {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    display: none;
    z-index: 1002;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* 提示状态 */
.pcp-copy-feedback.pcp-copy-hint {
    background: rgba(102, 126, 234, 0.9);
    display: block !important;
}

.pcp-copy-feedback.pcp-copy-success {
    background: rgba(0, 184, 148, 0.9);
    display: block !important;
}

.pcp-copy-feedback.pcp-copy-error {
    background: rgba(231, 76, 60, 0.9);
    display: block !important;
}

/* 反馈提示箭头 */
.pcp-copy-feedback:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
}

.pcp-copy-feedback.pcp-copy-hint:after {
    border-top-color: rgba(102, 126, 234, 0.9);
}

.pcp-copy-feedback.pcp-copy-success:after {
    border-top-color: rgba(0, 184, 148, 0.9);
}

.pcp-copy-feedback.pcp-copy-error:after {
    border-top-color: rgba(231, 76, 60, 0.9);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pcp-copy-btn {
        padding: 6px 12px;
        font-size: 13px;
        max-width: 90vw;
    }
    
    .pcp-copy-btn:hover,
    .pcp-copy-btn.pcp-copy-hover {
        max-width: 90vw;
        padding: 10px 14px;
    }
    
    .pcp-copy-feedback {
        top: -40px;
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .pcp-copy-btn::before {
        font-size: 11px;
        padding: 5px 8px;
    }
}

@media (max-width: 480px) {
    .pcp-copy-btn {
        max-width: 90vw;
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .pcp-copy-btn:hover,
    .pcp-copy-btn.pcp-copy-hover {
        max-width: 85vw;
        padding: 8px 12px;
    }
    
    .pcp-copy-btn::before {
        font-size: 10px;
        padding: 4px 6px;
    }
}

/* 动画增强 */
@keyframes pcp-copy-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pcp-copy-btn.pcp-copy-success-btn {
    animation: pcp-copy-pulse 0.3s ease-in-out;
}

/* 加载动画 */
.pcp-copy-btn.pcp-copying::after {
    content: "";
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: pcp-copy-spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes pcp-copy-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 优化层级和定位 */
.pcp-copy-wrapper:hover {
    z-index: 99;
}

.pcp-copy-btn:hover {
    z-index: 100;
    position: relative;
}

/* 焦点状态 */
.pcp-copy-btn:focus {
    outline: none;
    background: linear-gradient(45deg, #00cec9, #55a3ff) !important;
    box-shadow: 0 0 0 3px rgba(0, 206, 201, 0.3);
}

/* 图标样式 */
.pcp-bind-required::before {
    content: "🔒";
    font-size: 24px;
    display: block;
    margin-bottom: 15px;
}

.pcp-success-btn::before {
    content: "✅ ";
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pcp-purchase-section,
    .pcp-login-required,
    .pcp-bind-required,
    .pcp-insufficient-points {
        padding: 15px;
        margin: 15px 0;
    }
    
    .pcp-protected-content {
        padding: 20px;
    }
    
    .pcp-purchase-btn,
    .pcp-login-btn {
        padding: 10px 25px;
        font-size: 14px;
        width: 100%;
        margin-top: 10px;
    }
    
    .pcp-protected-content p {
        font-size: 14px;
    }
    
}

/* 动画效果 */
@keyframes pcp-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pcp-purchase-section,
.pcp-login-required,
.pcp-bind-required,
.pcp-insufficient-points {
    animation: pcp-fadeIn 0.5s ease-out;
}

/* 加载状态 */
.pcp-purchase-btn:disabled::after {
    content: "";
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: pcp-spin 1s linear infinite;
}

@keyframes pcp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 强调文本 */
.pcp-protected-content strong,
.pcp-login-required strong,
.pcp-bind-required strong,
.pcp-insufficient-points strong {
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* 悬浮效果 */
.pcp-protected-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}