/**
 * WordPress安全提醒插件 - 前台样式
 */

.wsn-security-notice {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    margin: 0 0 24px 0;
    border-radius: 8px;
    border-left: 4px solid #FF9800;
    background-color: #FFF3E0;
    color: #333333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

.wsn-security-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF9800, #FFB74D);
}

.wsn-notice-icon {
    flex-shrink: 0;
    margin-right: 12px;
    color: #FF9800;
    margin-top: 2px;
}

.wsn-notice-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.wsn-notice-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
}

.wsn-notice-content p {
    margin: 0 0 8px 0;
}

.wsn-notice-content p:last-child {
    margin-bottom: 0;
}

.wsn-notice-content strong {
    font-weight: 600;
    color: #E65100;
}

.wsn-notice-content a {
    color: #FF9800;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.wsn-notice-content a:hover {
    color: #F57C00;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wsn-security-notice {
        padding: 14px;
        margin: 0 0 20px 0;
        border-radius: 6px;
    }
    
    .wsn-notice-icon {
        margin-right: 10px;
    }
    
    .wsn-notice-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .wsn-notice-content {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .wsn-security-notice {
        padding: 12px;
        margin: 0 0 16px 0;
        border-radius: 4px;
    }
    
    .wsn-notice-icon {
        margin-right: 8px;
    }
    
    .wsn-notice-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .wsn-notice-content {
        font-size: 12px;
        line-height: 1.5;
    }
}

/* 深色主题适配 */
@media (prefers-color-scheme: dark) {
    .wsn-security-notice {
        background-color: rgba(255, 152, 0, 0.1);
        color: #ffffff;
        border-left-color: #FFB74D;
    }
    
    .wsn-notice-content strong {
        color: #FFB74D;
    }
    
    .wsn-notice-content a {
        color: #FFB74D;
    }
    
    .wsn-notice-content a:hover {
        color: #FFCC02;
    }
}

/* 打印样式 */
@media print {
    .wsn-security-notice {
        background-color: transparent !important;
        color: #000000 !important;
        border: 1px solid #cccccc !important;
        box-shadow: none !important;
    }
    
    .wsn-notice-icon {
        color: #000000 !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .wsn-security-notice {
        border-width: 2px;
        border-style: solid;
        background-color: #ffffff;
        color: #000000;
    }
    
    .wsn-notice-icon {
        color: #000000;
    }
    
    .wsn-notice-content a {
        color: #0000ff;
        text-decoration: underline;
    }
}

/* 减少动画效果 */
@media (prefers-reduced-motion: reduce) {
    .wsn-notice-content a {
        transition: none;
    }
}