/* 广告文案违法检查工具样式 */
.checker-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* 分类选择 */
.category-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.category-tag {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.category-tag:hover {
    border-color: #cbd5e0;
}

.category-tag.active {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
}

/* 文本区域 */
.text-area-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.text-area-label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.char-count {
    font-size: 13px;
    color: #718096;
}

.text-input {
    width: 100%;
    min-height: 250px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.8;
    resize: vertical;
    transition: border-color 0.3s;
}

.text-input:focus {
    outline: none;
    border-color: #3b82f6;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-action {
    flex: 1;
    min-width: 150px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #fff;
    color: #2d3748;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

/* 检测结果 */
.result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.summary-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e2e8f0;
}

.summary-card.danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
}

.summary-card.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.summary-card.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
}

.summary-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}

/* 风险等级 */
.risk-level {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.risk-level.safe {
    background: #d1fae5;
    color: #065f46;
}

.risk-level.low {
    background: #dbeafe;
    color: #1e40af;
}

.risk-level.medium {
    background: #fef3c7;
    color: #92400e;
}

.risk-level.high {
    background: #fee2e2;
    color: #991b1b;
}

/* 违禁词列表 */
.forbidden-words-list {
    max-height: 400px;
    overflow-y: auto;
}

.word-item {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.word-item:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.word-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.word-text {
    font-size: 16px;
    font-weight: 600;
    color: #dc2626;
}

.word-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #fee2e2;
    color: #991b1b;
}

.word-context {
    background: #f7fafc;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 10px;
}

.word-context .highlight {
    background: #fef3c7;
    color: #dc2626;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
}

.word-suggestion {
    font-size: 13px;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 使用说明 */
.usage-tips {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
}

.usage-tips h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.usage-tips ul {
    margin: 0;
    padding-left: 20px;
}

.usage-tips li {
    font-size: 14px;
    color: #1e3a8a;
    margin-bottom: 5px;
}

/* 响应式 */
@media (max-width: 768px) {
    .result-summary {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
    }
}