/**
 * 前端样式 - 增强版
 *
 * @package WP_Content_Shield
 */

.wp-content-shield-form {
    margin: 20px 0;
    padding: 20px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wp-content-shield-form h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #23282d;
    font-size: 1.3em;
    font-weight: 600;
}

.wp-content-shield-form .form-group {
    margin-bottom: 20px;
}

.wp-content-shield-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #23282d;
}

.wp-content-shield-form input[type="text"] {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.wp-content-shield-form input[type="text"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

.wp-content-shield-form button {
    background: #0073aa;
    border: none;
    color: white;
    padding: 10px 18px;
    text-decoration: none;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.wp-content-shield-form button:hover {
    background: #005177;
}

.wp-content-shield-form button:disabled {
    background: #7e8993;
    cursor: not-allowed;
}

.wpcs-message {
    margin-top: 10px;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.wpcs-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wpcs-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.protected-content-placeholder {
    padding: 20px;
    background: #f8f8f8;
    border-left: 4px solid #0073aa;
    margin-bottom: 20px;
    color: #444;
    font-size: 16px;
    line-height: 1.5;
}

/* 验证码容器样式 */
.captcha-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    background: #fff;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: fit-content;
}

#captcha-image {
    height: 40px;
    border-radius: 3px;
    margin-right: 10px;
}

#refresh-captcha {
    color: #0073aa;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background 0.3s;
}

#refresh-captcha:hover {
    background: #f0f0f0;
}

.security-notice {
    margin-top: 15px;
    color: #666;
    font-size: 12px;
    text-align: center;
}

/* 验证用户特殊内容样式 */
.validated-special-content {
    padding: 20px;
    background: #f0f8ff;
    border-left: 4px solid #0073aa;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.validated-special-content h2,
.validated-special-content h3 {
    color: #0073aa;
}

.validated-special-content .special-offer {
    background: #fffbea;
    padding: 15px;
    border: 1px dashed #ffb900;
    margin: 10px 0;
    border-radius: 3px;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .wp-content-shield-form {
        padding: 15px;
    }
    
    .wp-content-shield-form button {
        width: 100%;
    }
}