
/* 功能区 */
.tool-core {
    padding: 20px;
}

/* 行布局 */
.tool-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}
@media (min-width: 768px) {
    .tool-row {
        flex-direction: row;
    }
}

/* 表单项 */
.form-item {
    flex: 1;
}
.form-label {
    display: block;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

/* 输入框 */
.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.2s;
}
.form-input:focus {
    outline: none;
    border-color: #409EFF;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.25);
}

/* 输入框清空按钮 */
.input-wrapper {
    position: relative;
}
.input-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
}
.input-clear:hover {
    color: #374151;
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}
.btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary {
    background: #409EFF;
    color: #fff;
}
.btn-primary:hover {
    background: #338eef;
}
.btn-gray {
    background: #e5e7eb;
    color: #374151;
}
.btn-gray:hover {
    background: #d1d5db;
}
.btn-success {
    background: #67C23A;
    color: #fff;
}
.btn-success:hover {
    background: #5cae33;
}
.btn-danger {
    background: #F56C6C;
    color: #fff;
}
.btn-danger:hover {
    background: #f45454;
}

/* 文本编辑区 */
.editor-box {
    margin-bottom: 20px;
}
.editor-content {
    width: 100%;
    min-height: 250px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    white-space: pre-wrap;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.2s;
}
.editor-content:focus {
    outline: none;
    border-color: #409EFF;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.25);
}

/* 高亮样式 */
.highlight {
    background: #FFE588;
    padding: 0 2px;
    border-radius: 2px;
}

/* 底部统计行 */
.stat-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
}
@media (min-width: 640px) {
    .stat-row {
        flex-direction: row;
        align-items: center;
    }
}
.stat-info {
    display: flex;
    gap: 20px;
    color: #374151;
    font-weight: 500;
}