.tool-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
}
.tool-title {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tool-title::before {
    content: "🔍";
}
.tool-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.tool-row label {
    min-width: 90px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
.platform-group {
    display: flex;
    gap: 16px;
}
.platform-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}
.platform-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
    appearance: none;
    position: relative;
    background: #fff;
}
.platform-item input[type="checkbox"]:checked {
    background: #1677ff;
    border-color: #1677ff;
}
.platform-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;top: 2px;
    width: 5px;height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 1rem;
    line-height: 1.6;
}
/* 自定义词库高度调低 + 逗号分隔 */
#customWords {
    min-height: 50px;
    max-height: 60px;
}
#contentText {
    min-height: 160px;
}
textarea:focus {
    outline: none;
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22,119,255,0.1);
}
.tool-btn {
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: .2s;
}
.btn-primary {
    background: #1677ff;
    color: #fff;
}
.btn-primary:hover {
    background: #0F6AE8;
}
.btn-reset {
    background: #f5f5f5;
    color: #333;
}

/* ========== 双结果框样式 ========== */
.result-card {
    margin-top: 1rem;
    padding: 1.2rem;
    border-radius: 12px;
    background: #fafbfc;
    border: 1px solid #e9ecef;
    display: none;
}
.result-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}
.forbid-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.forbid-tag {
    background: #fff1f0;
    color: #f53f3f;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}
.no-tip {
    color: #52c41a;
    font-size: 14px;
}
.highlight-text {
    line-height: 1.9;
    font-size: 14px;
    word-break: break-all;
}
.forbid-red {
    display: inline-block;
    background: #ffebee;
    color: #d92525;
    padding: 2px 6px;
    border-radius: 5px;
    font-weight: 500;
    margin: 0 1px;
}