/**
 * 自定义账户弹窗样式
 */
 .ct-panel{
    z-index: 1;
 }
/* Woo 风格通知样式增强（注册/登录弹窗顶部） */
.cam-woo-notice,
.ct-account-modal .woocommerce-message,
.ct-account-modal .woocommerce-error,
.ct-account-modal .woocommerce-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 46px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    background: #f3f4f6;
    color: #111827;
    animation: camWooFadeSlide 0.25s ease-out;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.ct-account-modal .woocommerce-notices-wrapper{
    margin: 0;
}
.cam-woo-notice,
.ct-account-modal .woocommerce-message br,
.ct-account-modal .woocommerce-error br,
.ct-account-modal .woocommerce-info br{
    display: none;
}
.cam-woo-notice::before,
.ct-account-modal .woocommerce-message::before,
.ct-account-modal .woocommerce-error::before,
.ct-account-modal .woocommerce-info::before {
    font-size: 18px;
    line-height: 1;
    margin-top: 2px;
    top: 12px;
}

.cam-woo-notice strong,
.ct-account-modal .woocommerce-message strong,
.ct-account-modal .woocommerce-error strong,
.ct-account-modal .woocommerce-info strong {
    font-weight: 600;
}

/* 成功 / 错误 / 警告 / 信息不同颜色 */
.cam-woo-notice-success,
.ct-account-modal .woocommerce-message {
    background: #ecfdf3;
    color: #166534;
}

.cam-woo-notice-error,
.ct-account-modal .woocommerce-error {
    background: #fef2f2;
    color: #b91c1c;
}

.cam-woo-notice-warning {
    background: #fffbeb;
    color: #92400e;
}

.cam-woo-notice-info,
.ct-account-modal .woocommerce-info {
    background: #eff6ff;
    color: #1d4ed8;
}

/* 自定义字段样式 */
.ct-account-modal {
    .required {
        color: #d63638;
        font-weight: bold;
    }
    
    .field-error {
        color: #d63638;
        font-size: 12px;
        display: block;
        margin-top: 5px;
    }
    
    .input.error {
        border-color: #d63638;
        box-shadow: 0 0 0 1px #d63638;
    }
    
    /* 注册通知样式 */
    .registration-notice {
        background: #fff3cd;
        border: 1px solid #ffeaa7;
        border-radius: 4px;
        padding: 15px;
        margin: 20px 0;
        border-left: 4px solid #ffc107;
    }
    
    .registration-notice p {
        margin: 0;
        color: #856404;
        font-size: 14px;
    }
    
    /* 密码强度指示器 */
    .password-strength {
        margin-top: 5px;
        font-size: 12px;
        
        &.weak {
            color: #d63638;
        }
        
        &.medium {
            color: #ff8c00;
        }
        
        &.strong {
            color: #00a32a;
        }
    }
    
    /* 字符计数器 */
    .char-counter {
        font-size: 12px;
        color: #666;
        margin-top: 5px;
        display: block;
    }
    
    /* 表单字段间距调整 */
    p {
        margin-bottom: 20px;
        
        &:last-child {
            margin-bottom: 0;
        }
    }
    
    /* 下拉选择框样式 */
    select.input {
        height: 40px;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background-color: #fff;
        font-size: 14px;
        
        &:focus {
            border-color: var(--theme-form-field-border-focus-color, #007cba);
            box-shadow: 0 0 0 1px var(--theme-form-field-border-focus-color, #007cba);
            outline: none;
        }
    }
    
    /* 电话输入框样式 */
    input[type="tel"] {
        font-family: monospace;
    }
    
    /* 加载状态样式增强 */
    .ct-button .ct-button-loader {
        display: none;
        margin-left: 8px;
        vertical-align: middle;
    }
    
    .ct-button.ct-loading {
        position: relative;
        
        .ct-button-loader {
            position: static;
            transform: none;
            display: inline-block !important;
        }
    }
    
    /* 响应式设计 */
    @media (max-width: 768px) {
        .registration-notice {
            padding: 12px;
            margin: 15px 0;
        }
        
        .ct-account-forms {
            padding: 30px 20px !important;
        }
        
        .col-2 {
            flex-direction: column;
            gap: 15px;
        }
    }
}

/* 管理页面样式 */
.wrap {
    .wp-list-table {
        th, td {
            vertical-align: middle;
        }
        
        .button {
            margin-right: 5px;
        }
    }
    
    .modal {
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-content {
        background-color: #fff;
        padding: 30px;
        border-radius: 8px;
        width: 90%;
        max-width: 500px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        
        h3 {
            margin-top: 0;
            margin-bottom: 20px;
            color: #1d2327;
        }
        
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #1d2327;
        }
        
        textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            resize: vertical;
            min-height: 100px;
            
            &:focus {
                border-color: #007cba;
                box-shadow: 0 0 0 1px #007cba;
                outline: none;
            }
        }
        
        .button {
            margin-right: 10px;
        }
    }
}

/* 动画效果 */
@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    
    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }
    
    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

.ct-account-modal.ct-error {
    animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes camWooFadeSlide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 表单验证样式 */
.ct-account-modal {
    .form-validation-error {
        border-color: #dc2626 !important;
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
    }

    .form-validation-success {
        border-color: #10b981 !important;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
    }
    
    .field-error {
        color: #dc2626;
        font-size: 12px;
        margin-top: 4px;
        display: block;
    }
}

/* 自定义字段组样式 */
.custom-field-group {
    margin-bottom: 20px;
    
    label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--theme-text-color);
    }
    
    .field-description {
        font-size: 12px;
        color: #666;
        margin-top: 5px;
        font-style: italic;
    }
}

/* 统一输入框样式 */
.ct-account-modal {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea,
    select {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid #e1e5e9;
        border-radius: 6px;
        font-size: 14px;
        line-height: 1.5;
        background-color: #fff;
        transition: all 0.3s ease;
        box-sizing: border-box;
        
        &:focus {
            outline: none;
            border-color: #007cba;
            box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
        }
        
        &:hover {
            border-color: #c3c7cb;
        }
        
        &::placeholder {
            color: #9ca3af;
            font-size: 14px;
        }
    }
    
    /* 标签样式 */
    label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: #374151;
        font-size: 14px;
        
        .required {
            color: #dc2626;
            margin-left: 2px;
        }
    }
    
    /* 表单项间距 */
    p {
        margin-bottom: 20px;
        
        &:last-child {
            margin-bottom: 0;
        }
    }
}

/* 图片上传字段样式 */
.image-upload-container {
    .image-upload-input {
        margin-bottom: 10px;
    }
    
    .image-preview {
        margin-top: 15px;
        text-align: center;
        padding: 15px;
        border: 1px solid #e1e5e9;
        border-radius: 6px;
        background-color: #f9fafb;
        
        .preview-image {
            max-width: 200px;
            max-height: 200px;
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        /* .remove-image {
            display: inline-block;
            margin-top: 10px;
            padding: 8px 16px;
            background: #dc2626;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.2s ease;
            
            &:hover {
                background: #b91c1c;
                transform: translateY(-1px);
            }
        } */
    }
    
    .image-upload-hint {
        display: block;
        margin-top: 8px;
        font-size: 12px;
        color: #6b7280;
        font-style: italic;
    }
}

/* 密码字段样式增强 */
.account-password-input {
    position: relative;
    
    input[type="password"] {
        padding-right: 45px; /* 为眼睛图标留出空间 */
    }
    
    .show-password-input {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: #6b7280;
        font-size: 16px;
        padding: 4px;
        border-radius: 4px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        
        &:hover {
            color: #374151;
            background-color: #f3f4f6;
        }
        
        &:before {
            content: "👁️";
        }
        
        &.show:before {
            content: "🙈";
        }
    }
}

/* 密码强度指示器样式增强 */
.password-strength {
    margin-top: 5px;
    font-size: 12px;
    font-weight: bold;
    
    &.weak {
        color: #d63638;
    }
    
    &.medium {
        color: #ff8c00;
    }
    
    &.strong {
        color: #00a32a;
    }
}

/* 文件上传字段样式 - 自定义包装器 */
.ct-account-modal {
    .file-input-wrapper {
        position: relative;
        width: 100%;
        cursor: pointer;
    }
    
    .file-input-hidden {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
        z-index: 2;
    }
    
    .file-input-display {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 12px 16px;
        border: 1px solid #e1e5e9;
        border-radius: 6px;
        background-color: #fff;
        font-size: 14px;
        transition: all 0.3s ease;
        box-sizing: border-box;
        min-height: 48px;
        
        &:hover {
            border-color: #c3c7cb;
        }
    }
    
    .file-input-text {
        color: #ccc;
        flex: 1;
        transition: color 0.3s ease;
    }
    
    /* 当有文件选择时 */
    .file-input-wrapper.has-file {
        .file-input-text {
            color: #374151;
        }
    }
    
    /* 图片预览样式 */
    .image-preview {
        display: none !important;
        margin-top: 10px;
        position: relative;
    }
    
    .image-preview.show {
        display: block !important;
    }
    
    .image-preview img {
        max-width: 200px;
        max-height: 200px;
        border-radius: 4px;
        display: block;
    }
    
    .image-preview .remove-image {
        position: absolute;
        top: 50%;
        right: 4px;
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.5);
        border: none;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .image-preview .remove-image:hover {
        background-color: rgba(220, 53, 69, 1);
        transform: translateY(-50%) scale(1.1);
    }
    
    .image-preview .remove-image::before {
        content: '×';
        color: white;
        font-size: 16px;
        line-height: 1;
        font-weight: 200;
        font-weight: bold;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/* 预览页面图片上传提示 */
.image-upload-hint {
    color: #666;
    font-size: 12px;
    font-style: italic;
    margin-top: 5px;
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ct-account-modal {
        input[type="text"],
        input[type="email"],
        input[type="tel"],
        input[type="password"],
        textarea,
        select,
        input[type="file"] {
            padding: 10px 12px;
            font-size: 16px; /* 防止iOS缩放 */
        }
        
        label {
            font-size: 14px;
        }
        
        .image-preview {
            padding: 10px;
            
            .preview-image {
                max-width: 150px;
                max-height: 150px;
            }
        }
        
        .account-password-input {
            .show-password-input {
                right: 10px;
                font-size: 14px;
            }
        }
    }
}

/* Modal Styles */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999999;
    /* Remove display: none to let JavaScript control visibility */
    animation: fadeIn 0.3s ease-in-out;
    /* Ensure modal is completely isolated */
    isolation: isolate;
    transform: translateZ(0); /* 重新建立顶层 context */
    pointer-events: auto;
}

.custom-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
    z-index: 10000000;
    /* Ensure content is above everything */
    position: relative;
}

.custom-modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.custom-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.custom-modal-title.success {
    color: #00a32a;
}

.custom-modal-title.error {
    color: #d63638;
}

.custom-modal-title.warning {
    color: #dba617;
}

.custom-modal-title.info {
    color: #0073aa;
}

.custom-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.custom-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.custom-modal-body {
    padding: 24px;
    line-height: 1.6;
    color: #555;
}

.custom-modal-body p {
    margin: 0;
    font-size: 16px;
}

.custom-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8f9fa;
}

.custom-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.custom-modal-btn.custom-modal-cancel {
    background: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
}

.custom-modal-btn.custom-modal-cancel:hover {
    background: #e0e0e0;
    color: #333;
}

.custom-modal-btn.custom-modal-confirm {
    background: #0073aa;
    color: white;
}

.custom-modal-btn.custom-modal-confirm:hover {
    background: #005a87;
}

.custom-modal-btn.custom-modal-confirm.success {
    background: #00a32a;
}

.custom-modal-btn.custom-modal-confirm.success:hover {
    background: #007a1f;
}

.custom-modal-btn.custom-modal-confirm.error {
    background: #d63638;
}

.custom-modal-btn.custom-modal-confirm.error:hover {
    background: #b32d2e;
}

.custom-modal-btn.custom-modal-confirm.warning {
    background: #dba617;
}

.custom-modal-btn.custom-modal-confirm.warning:hover {
    background: #c19a00;
}

/* Admin Modal Styles */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999999;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    /* Ensure modal is completely isolated */
    isolation: isolate;
    pointer-events: auto;
}

.admin-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
    z-index: 10000000;
    /* Ensure content is above everything */
    position: relative;
}

.admin-modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.admin-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.admin-modal-title.success {
    color: #00a32a;
}

.admin-modal-title.error {
    color: #d63638;
}

.admin-modal-title.warning {
    color: #dba617;
}

.admin-modal-title.info {
    color: #0073aa;
}

.admin-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.admin-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.admin-modal-body {
    padding: 24px;
    line-height: 1.6;
    color: #555;
}

.admin-modal-body p {
    margin: 0;
    font-size: 16px;
}

.admin-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8f9fa;
}

.admin-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.admin-modal-btn.admin-modal-cancel {
    background: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
}

.admin-modal-btn.admin-modal-cancel:hover {
    background: #e0e0e0;
    color: #333;
}

.admin-modal-btn.admin-modal-confirm {
    background: #0073aa;
    color: white;
}

.admin-modal-btn.admin-modal-confirm:hover {
    background: #005a87;
}

.admin-modal-btn.admin-modal-confirm.success {
    background: #00a32a;
}

.admin-modal-btn.admin-modal-confirm.success:hover {
    background: #007a1f;
}

.admin-modal-btn.admin-modal-confirm.error {
    background: #d63638;
}

.admin-modal-btn.admin-modal-confirm.error:hover {
    background: #b32d2e;
}

.admin-modal-btn.admin-modal-confirm.warning {
    background: #dba617;
}

.admin-modal-btn.admin-modal-confirm.warning:hover {
    background: #c19a00;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-modal-content,
    .admin-modal-content {
        min-width: 90%;
        max-width: 90%;
        margin: 20px;
    }
    
    .custom-modal-header,
    .admin-modal-header {
        padding: 16px 20px 12px;
    }
    
    .custom-modal-body,
    .admin-modal-body {
        padding: 20px;
    }
    
    .custom-modal-footer,
    .admin-modal-footer {
        padding: 12px 20px 20px;
        flex-direction: column;
    }
    
    .custom-modal-btn,
    .admin-modal-btn {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* Ensure our custom modals are isolated and don't interfere with theme modals */
.custom-modal-overlay {
    /* Reset only specific properties that might conflict */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 9999999 !important;
    /* Let JavaScript control visibility */
    animation: fadeIn 0.3s ease-in-out !important;
    isolation: isolate !important;
    /* Disable pointer events on overlay to prevent accidental closes */
    pointer-events: none !important;
}

.custom-modal-content {
    /* Enable pointer events only on content */
    pointer-events: auto !important;
}

.admin-modal-overlay {
    /* Reset only specific properties that might conflict */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 9999999 !important;
    display: none !important;
    animation: fadeIn 0.3s ease-in-out !important;
    isolation: isolate !important;
    pointer-events: auto !important;
}

.custom-modal-content,
.admin-modal-content {
    /* Override any theme modal content styles */
    all: unset;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    min-width: 400px !important;
    max-width: 500px !important;
    max-height: 80vh !important;
    overflow: hidden !important;
    animation: slideIn 0.3s ease-out !important;
    z-index: 10000000 !important;
}

form:is(.login,.register,.edit-account,.lost_reset_password) [class*=password-input] .show-password-input{
    top:calc(var(--theme-form-field-height, 40px)/2) !important;
}

/* 隐私协议样式 - 参考主题的.ct-checkbox */
.privacy-agreement-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

/* 自定义checkbox - 参考主题样式 */
.privacy-agreement-checkbox {
    display: inline-block;
    vertical-align: baseline;
    position: relative;
    top: 3px;
    min-width: 16px;
    width: 16px;
    height: 16px;
    min-height: initial;
    padding: 0 !important;
    margin: 0;
    margin-inline-end: 0.7em;
    border-width:  2px;
    border-style: solid;
    border-color: var(--theme-form-selection-field-initial-color, #ddd);
    border-radius: var(--theme-form-checkbox-border-radius, 3px);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* checkbox勾选图标 */
.privacy-agreement-checkbox::before {
    position: absolute;
    content: '';
    z-index: 2;
    inset: 0;
    opacity: 0;
    margin: auto;
    top: -2px;
    width: 8px;
    height: 5px;
    border: 2px solid #fff;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    transition: opacity 0.3s ease;
}

/* checkbox选中状态 */
.privacy-agreement-checkbox:checked {
    border-color: var(--theme-form-selection-field-active-color, #0073aa);
    background: var(--theme-form-selection-field-active-color, #0073aa);
}

.privacy-agreement-checkbox:checked::before {
    opacity: 1;
}

/* checkbox焦点状态 */
.privacy-agreement-checkbox:focus-visible {
    outline: none;
    border-color: var(--theme-form-selection-field-active-color, #0073aa);
}

/* 协议文字 */
.privacy-agreement-text {
    color: #666;
    font-size: 12px;
    line-height: 1.5;
}

.privacy-policy-link,
.terms-service-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.privacy-policy-link:hover,
.terms-service-link:hover {
    color: #005a87;
    text-decoration: underline;
}

/* 隐私协议错误状态 */
.privacy-agreement-label.error {
    color: #d63638;
}

.privacy-agreement-label.error .privacy-agreement-text {
    color: #d63638;
}

/* 后台管理页面样式 */
.field-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.field-row input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.field-row input[type="text"],
.field-row input[type="number"],
.field-row select,
.field-row textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.field-row textarea {
    resize: vertical;
    min-height: 80px;
}

.field-row .description {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    display: block;
}

/* 特殊字段配置样式 */
.special-field-config,
.agreement-text-config {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.agreement-text-config textarea {
    font-family: monospace;
    font-size: 13px;
}

/* 富文本编辑器样式 */
.rich-text-editor {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.editor-toolbar {
    background: #f7f7f7;
    border-bottom: 1px solid #ddd;
    padding: 8px;
    display: flex;
    gap: 4px;
}

.toolbar-btn {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    background: #e6e6e6;
    border-color: #999;
}

.toolbar-btn.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.editor-content {
    min-height: 80px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.4;
    outline: none;
    border: none;
    background: #fff;
}

.editor-content:empty:before {
    content: attr(data-placeholder);
    color: #999;
    font-style: italic;
}

.editor-content:focus {
    outline: none;
}

.editor-content a {
    color: #0073aa;
    text-decoration: underline;
}

.editor-content strong,
.editor-content b {
    font-weight: bold;
}

.editor-content em,
.editor-content i {
    font-style: italic;
}