/**
 * Steam验证码采集器 - 前端样式
 * 
 * @package Steam_Code_Collector
 */

/* 采集器容器 */
.scc-collect-wrapper {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 卡片样式 */
.scc-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.scc-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 20px;
    border-bottom: none;
}

.scc-badge {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.scc-badge i {
    margin-right: 8px;
    font-size: 16px;
}

.scc-card-body {
    padding: 20px;
}

/* 账号列表 */
.scc-account-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scc-account-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.scc-account-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.scc-label {
    color: #6c757d;
    font-size: 13px;
    min-width: 100px;
}

.scc-value {
    flex: 1;
    font-family: "Consolas", "Monaco", monospace;
    font-size: 14px;
    color: #333;
    word-break: break-all;
}

.scc-code {
    color: #e53935;
    font-weight: 600;
}

.scc-code-success {
    color: #28a745;
    animation: scc-pulse 2s ease-in-out infinite;
}

@keyframes scc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 复制按钮 */
.scc-copy-btn {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scc-copy-btn:hover {
    background: #5a6268;
}

.scc-copy-btn.scc-copy-success {
    background: #28a745;
}

/* 操作按钮 */
.scc-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #dee2e6;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 倒计时显示 */
.scc-countdown-display {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 20px;
    font-size: 13px;
    color: #856404;
    animation: scc-countdown-pulse 1s ease-in-out infinite;
}

.scc-countdown-display i {
    margin-right: 6px;
    font-size: 14px;
}

@keyframes scc-countdown-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.98); }
}

.scc-btn.countdown {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    cursor: not-allowed;
}

.scc-btn-text {
    font-weight: 500;
}

.scc-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scc-btn i {
    margin-right: 6px;
}

.scc-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.scc-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.scc-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.scc-btn.loading {
    opacity: 0.8;
}

/* 登录提示 */
.scc-login-required {
    text-align: center;
    padding: 30px 20px;
}

.scc-login-required p {
    color: #6c757d;
    margin-bottom: 15px;
}

.scc-no-account {
    text-align: center;
    padding: 20px;
}

.scc-no-account p {
    color: #6c757d;
    margin-bottom: 15px;
}

/* 错误反馈区域 */
.scc-error-feedback {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 1px solid #fc8181;
    border-radius: 8px;
    border-left: 4px solid #e53e3e;
    animation: scc-error-slide-in 0.3s ease;
}

@keyframes scc-error-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scc-error-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #c53030;
    font-size: 15px;
    font-weight: 600;
}

.scc-error-header i {
    margin-right: 8px;
    font-size: 18px;
    animation: scc-error-shake 0.5s ease;
}

@keyframes scc-error-shake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.scc-error-type {
    color: #c53030;
}

.scc-error-body {
    margin-bottom: 12px;
}

.scc-error-body p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #742a2a;
    line-height: 1.5;
}

.scc-error-body p:last-child {
    margin-bottom: 0;
}

.scc-error-body strong {
    color: #c53030;
}

.scc-error-desc {
    background: rgba(255, 255, 255, 0.5);
    padding: 8px 10px;
    border-radius: 4px;
}

.scc-error-suggestion {
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 10px;
    border-radius: 4px;
    border-left: 3px solid #ed8936;
}

.scc-error-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.scc-submit-error-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scc-submit-error-btn i {
    margin-right: 6px;
}

.scc-submit-error-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.scc-submit-error-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.scc-submit-error-btn.submitting {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
}

.scc-submit-error-btn.submitted {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.scc-submit-success {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    border: 1px solid #48bb78;
    border-radius: 6px;
    color: #22543d;
    font-size: 13px;
    font-weight: 500;
    animation: scc-success-pop 0.3s ease;
}

.scc-submit-success i {
    margin-right: 6px;
    color: #38a169;
}

@keyframes scc-success-pop {
    0% { opacity: 0; transform: scale(0.8); }
    50% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* 弹窗样式 */
.scc-modal-wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.scc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.scc-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: scc-modal-in 0.3s ease;
}

@keyframes scc-modal-in {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.scc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.scc-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.scc-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.scc-modal-close:hover {
    color: #333;
}

.scc-modal-body {
    padding: 20px;
    text-align: center;
}

.scc-qrcode-wrap {
    margin-bottom: 15px;
}

.scc-qrcode-wrap img {
    max-width: 200px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.scc-modal-body p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.scc-verify-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.scc-verify-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.scc-verify-form input:focus {
    outline: none;
    border-color: #667eea;
}

.scc-verify-form button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.scc-verify-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#scc-verify-message {
    margin-top: 15px;
    font-size: 14px;
}

#scc-verify-message .scc-success {
    color: #28a745;
}

#scc-verify-message .scc-error {
    color: #dc3545;
}

/* 消息提示 */
.scc-notice {
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    animation: scc-notice-in 0.3s ease;
}

@keyframes scc-notice-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scc-notice-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.scc-notice-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 响应式 */
@media (max-width: 576px) {
    .scc-card-header {
        padding: 12px 15px;
    }
    
    .scc-card-body {
        padding: 15px;
    }
    
    .scc-account-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .scc-label {
        min-width: auto;
    }
    
    .scc-verify-form {
        flex-direction: column;
    }
    
    .scc-modal {
        width: 95%;
        margin: 10px;
    }
    
    .scc-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .scc-countdown-display {
        margin-top: 10px;
    }
    
    .scc-error-feedback {
        padding: 12px;
    }
    
    .scc-error-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .scc-submit-error-btn {
        justify-content: center;
    }
}

/* 付费内容保护区域 */
.scc-paid-content-lock {
    margin: 20px 0;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    text-align: center;
}

.scc-lock-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.scc-lock-icon i {
    font-size: 24px;
    color: #fff;
}

.scc-lock-message {
    color: #495057;
}

.scc-lock-message p {
    margin: 0 0 15px 0;
    font-size: 15px;
    line-height: 1.6;
}

.scc-lock-message a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.scc-lock-message a:hover {
    text-decoration: underline;
}

.scc-buy-content-btn {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
}

.scc-buy-content-btn:hover {
    opacity: 0.9;
}

/* VIP会员限制区域 */
.scc-vip-required,
.scc-pay-required {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 12px;
    border: 2px solid #f59e0b;
}

.scc-vip-required .scc-lock-icon,
.scc-pay-required .scc-lock-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    animation: scc-crown-glow 2s ease-in-out infinite;
}

@keyframes scc-crown-glow {
    0%, 100% { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(245, 158, 11, 0.6); }
}

.scc-vip-required .scc-lock-icon i,
.scc-pay-required .scc-lock-icon i {
    font-size: 30px;
    color: #fff;
}

.scc-vip-required h4,
.scc-pay-required h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #92400e;
    font-weight: 600;
}

.scc-vip-required > p,
.scc-pay-required > p {
    color: #b45309;
    margin: 0 0 20px 0;
    font-size: 14px;
}

/* 价格显示框 */
.scc-price-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: #fff;
    border: 2px solid #f59e0b;
    border-radius: 10px;
    margin-bottom: 20px;
}

.scc-price-label {
    font-size: 14px;
    color: #92400e;
}

.scc-price-value {
    font-size: 28px;
    font-weight: 700;
    color: #dc2626;
}

/* 购买按钮区域 */
.scc-pay-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.scc-pay-or {
    color: #92400e;
    font-size: 13px;
}

.scc-btn-pay {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.scc-btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.scc-btn-vip-alt {
    background: transparent;
    color: #d97706;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #f59e0b;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.scc-btn-vip-alt:hover {
    background: #f59e0b;
    color: #fff;
}

/* 已购买标识 */
.scc-paid-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
    padding: 3px 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.scc-paid-badge i {
    font-size: 10px;
}

.scc-vip-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.scc-feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #78350f;
}

.scc-feature-item i {
    color: #16a34a;
    font-size: 16px;
}

.scc-btn-vip {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.scc-btn-vip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    color: #fff;
}

.scc-btn-vip i {
    font-size: 16px;
}

/* VIP标识 */
.scc-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
    padding: 3px 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.scc-vip-badge i {
    font-size: 10px;
}

/* 登录提示区域优化 */
.scc-login-required .scc-lock-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scc-login-required .scc-lock-icon i {
    font-size: 24px;
    color: #fff;
}

/* VIP提示条 */
.scc-vip-required-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    color: #92400e;
    font-size: 14px;
    animation: scc-vip-notice-in 0.3s ease;
}

@keyframes scc-vip-notice-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scc-vip-required-notice i {
    color: #d97706;
    font-size: 16px;
}

.scc-vip-required-notice a {
    color: #d97706;
    font-weight: 600;
    text-decoration: underline;
}

.scc-vip-required-notice a:hover {
    color: #92400e;
}

/* 付费提示条 */
.scc-pay-required-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 20px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #f87171;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
    animation: scc-pay-notice-in 0.3s ease;
}

@keyframes scc-pay-notice-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scc-pay-required-notice i {
    color: #dc2626;
    font-size: 16px;
}

.scc-pay-required-notice a {
    color: #dc2626;
    font-weight: 600;
    text-decoration: underline;
}

.scc-pay-required-notice a:hover {
    color: #991b1b;
}

.scc-btn-inline {
    padding: 4px 12px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scc-btn-inline:hover {
    opacity: 0.9;
}
